From 8225a22c06a76af5112a7826a1d37f2125c9a724 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 18 Sep 2023 11:39:58 -0400 Subject: [PATCH 01/16] - refreshes github client --- .../GitHub/GitHubClient/GitHubClient.cs | 37 +- .../GitHubClient/Models/AppPermissions.cs | 198 ++------ .../Models/AppPermissions_actions.cs | 9 +- .../Models/AppPermissions_administration.cs | 9 +- .../Models/AppPermissions_checks.cs | 9 +- .../Models/AppPermissions_contents.cs | 9 +- .../Models/AppPermissions_deployments.cs | 9 +- .../Models/AppPermissions_environments.cs | 9 +- .../Models/AppPermissions_issues.cs | 9 +- .../Models/AppPermissions_members.cs | 9 +- .../Models/AppPermissions_metadata.cs | 9 +- ...Permissions_organization_administration.cs | 9 +- ...sions_organization_announcement_banners.cs | 9 +- ...ppPermissions_organization_custom_roles.cs | 9 +- .../AppPermissions_organization_hooks.cs | 9 +- .../AppPermissions_organization_packages.cs | 9 +- ...nization_personal_access_token_requests.cs | 9 +- ...ons_organization_personal_access_tokens.cs | 9 +- .../AppPermissions_organization_plan.cs | 9 +- .../AppPermissions_organization_projects.cs | 9 +- .../AppPermissions_organization_secrets.cs | 9 +- ...ssions_organization_self_hosted_runners.cs | 9 +- ...pPermissions_organization_user_blocking.cs | 9 +- .../Models/AppPermissions_packages.cs | 9 +- .../Models/AppPermissions_pages.cs | 9 +- .../Models/AppPermissions_pull_requests.cs | 9 +- .../Models/AppPermissions_repository_hooks.cs | 9 +- .../AppPermissions_repository_projects.cs | 9 +- .../AppPermissions_secret_scanning_alerts.cs | 9 +- .../Models/AppPermissions_secrets.cs | 9 +- .../Models/AppPermissions_security_events.cs | 9 +- .../Models/AppPermissions_single_file.cs | 9 +- .../Models/AppPermissions_statuses.cs | 9 +- .../Models/AppPermissions_team_discussions.cs | 9 +- .../AppPermissions_vulnerability_alerts.cs | 9 +- .../Models/AppPermissions_workflows.cs | 9 +- .../GitHub/GitHubClient/Models/BasicError.cs | 52 +- .../GitHub/GitHubClient/Models/ContentFile.cs | 100 +--- .../GitHubClient/Models/ContentFile__links.cs | 45 +- .../GitHubClient/Models/ContentFile_type.cs | 9 +- .../GitHubClient/Models/ContentSubmodule.cs | 85 +--- .../Models/ContentSubmodule__links.cs | 45 +- .../Models/ContentSubmodule_type.cs | 9 +- .../GitHubClient/Models/ContentSymlink.cs | 85 +--- .../Models/ContentSymlink__links.cs | 45 +- .../Models/ContentSymlink_type.cs | 9 +- .../GitHub/GitHubClient/Models/Enterprise.cs | 80 +-- .../GitHub/GitHubClient/Models/FileCommit.cs | 40 +- .../GitHubClient/Models/FileCommit503Error.cs | 47 +- .../GitHubClient/Models/FileCommit_commit.cs | 80 +-- .../Models/FileCommit_commit_author.cs | 45 +- .../Models/FileCommit_commit_committer.cs | 45 +- .../Models/FileCommit_commit_parents.cs | 45 +- .../Models/FileCommit_commit_tree.cs | 40 +- .../Models/FileCommit_commit_verification.cs | 50 +- .../GitHubClient/Models/FileCommit_content.cs | 80 +-- .../Models/FileCommit_content__links.cs | 45 +- .../GitHubClient/Models/Installation.cs | 179 ++----- .../Installation_repository_selection.cs | 9 +- .../Models/NullableLicenseSimple.cs | 58 +-- .../GitHubClient/Models/NullableSimpleUser.cs | 133 ++--- .../GitHubClient/Models/ReactionRollup.cs | 78 +-- .../GitHub/GitHubClient/Models/Release.cs | 145 ++---- .../GitHubClient/Models/ReleaseAsset.cs | 93 +--- .../GitHubClient/Models/ReleaseAsset_state.cs | 9 +- .../Models/RepoSearchResultItem.cs | 479 ++++-------------- .../RepoSearchResultItem_permissions.cs | 53 +- ...ltItem_text_matches.cs => Repositories.cs} | 63 +-- .../Models/Repositories503Error.cs | 45 +- ...hes_matches.cs => Repositories_matches.cs} | 42 +- .../GitHub/GitHubClient/Models/SimpleUser.cs | 133 ++--- .../GitHubClient/Models/ValidationError.cs | 47 +- .../Models/ValidationError_errors.cs | 132 ++--- .../Models/WithPathResponseMember1.cs | 31 +- .../Item/Contents/ContentsRequestBuilder.cs | 34 +- .../Item/WithPathDeleteRequestBody.cs | 53 +- .../Item/WithPathDeleteRequestBody_author.cs | 38 +- .../WithPathDeleteRequestBody_committer.cs | 38 +- .../Item/WithPathItemRequestBuilder.cs | 79 ++- .../Contents/Item/WithPathPutRequestBody.cs | 58 +-- .../Item/WithPathPutRequestBody_author.cs | 43 +- .../Item/WithPathPutRequestBody_committer.cs | 43 +- .../Item/Releases/ReleasesPostRequestBody.cs | 73 +-- .../ReleasesPostRequestBody_make_latest.cs | 9 +- .../Item/Releases/ReleasesRequestBuilder.cs | 113 ++--- .../Item/Item/WithRepoItemRequestBuilder.cs | 29 +- .../Repos/Item/WithOwnerItemRequestBuilder.cs | 34 +- .../GitHubClient/Repos/ReposRequestBuilder.cs | 34 +- .../RepositoriesRequestBuilder.cs | 108 ++-- .../Repositories/RepositoriesResponse.cs | 45 +- .../Search/SearchRequestBuilder.cs | 23 +- .../InstallationsRequestBuilder.cs | 77 ++- .../Installations/InstallationsResponse.cs | 40 +- .../GitHubClient/User/UserRequestBuilder.cs | 23 +- .../GitHub/GitHubClient/kiota-lock.json | 4 +- .../GitHub/GitHubSearchProvider.cs | 5 +- 96 files changed, 1302 insertions(+), 3052 deletions(-) rename src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/{RepoSearchResultItem_text_matches.cs => Repositories.cs} (68%) rename src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/{RepoSearchResultItem_text_matches_matches.cs => Repositories_matches.cs} (71%) diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/GitHubClient.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/GitHubClient.cs index 527d32831b..7c1f76d531 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/GitHubClient.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/GitHubClient.cs @@ -1,55 +1,46 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; +// using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos; using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Search; using Kiota.Builder.SearchProviders.GitHub.GitHubClient.User; -using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; using Microsoft.Kiota.Serialization.Form; using Microsoft.Kiota.Serialization.Json; using Microsoft.Kiota.Serialization.Text; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient -{ +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient { /// /// The main entry point of the SDK, exposes the configuration and the fluent API. /// - public class GitHubClient : BaseRequestBuilder - { + public class GitHubClient : BaseRequestBuilder { /// The repos property - public ReposRequestBuilder Repos - { - get => + public ReposRequestBuilder Repos { get => new ReposRequestBuilder(PathParameters, RequestAdapter); } /// The search property - public SearchRequestBuilder Search - { - get => + public SearchRequestBuilder Search { get => new SearchRequestBuilder(PathParameters, RequestAdapter); } /// The user property - public UserRequestBuilder User - { - get => + public UserRequestBuilder User { get => new UserRequestBuilder(PathParameters, RequestAdapter); } /// /// Instantiates a new GitHubClient and sets the default values. /// /// The request adapter to use to execute the requests. - public GitHubClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) - { + public GitHubClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) { ApiClientBuilder.RegisterDefaultSerializer(); ApiClientBuilder.RegisterDefaultSerializer(); ApiClientBuilder.RegisterDefaultSerializer(); ApiClientBuilder.RegisterDefaultDeserializer(); ApiClientBuilder.RegisterDefaultDeserializer(); ApiClientBuilder.RegisterDefaultDeserializer(); - if (string.IsNullOrEmpty(RequestAdapter.BaseUrl)) - { + if (string.IsNullOrEmpty(RequestAdapter.BaseUrl)) { RequestAdapter.BaseUrl = "https://api.github.com"; } PathParameters.TryAdd("baseurl", RequestAdapter.BaseUrl); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions.cs index 13609151c3..407bac9b70 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions.cs @@ -1,211 +1,102 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// The permissions granted to the user access token. /// - public class AppPermissions : IAdditionalDataHolder, IParsable - { + public 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 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; - } + 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 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 AppPermissions_checks? Checks { 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 AppPermissions_contents? Contents { get; set; } /// The level of permission to grant the access token for deployments and deployment statuses. - public AppPermissions_deployments? Deployments - { - get; set; - } + public AppPermissions_deployments? Deployments { get; set; } /// The level of permission to grant the access token for managing repository environments. - public AppPermissions_environments? Environments - { - get; set; - } + public AppPermissions_environments? Environments { 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 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 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 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 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 AppPermissions_organization_announcement_banners? OrganizationAnnouncementBanners { get; set; } /// The level of permission to grant the access token for custom repository roles management. This property is in beta and is subject to change. - public AppPermissions_organization_custom_roles? OrganizationCustomRoles - { - get; set; - } + public AppPermissions_organization_custom_roles? OrganizationCustomRoles { 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 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 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 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 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 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 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 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 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 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 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 AppPermissions_pages? Pages { 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 AppPermissions_pull_requests? PullRequests { 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 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 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 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 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 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 AppPermissions_single_file? SingleFile { get; set; } /// The level of permission to grant the access token for commit statuses. - public AppPermissions_statuses? Statuses - { - get; set; - } + public 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 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 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 AppPermissions_workflows? Workflows { get; set; } /// /// Instantiates a new appPermissions and sets the default values. /// - public AppPermissions() - { + public AppPermissions() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static AppPermissions CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static AppPermissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new AppPermissions(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"actions", n => { Actions = n.GetEnumValue(); } }, {"administration", n => { Administration = n.GetEnumValue(); } }, @@ -247,8 +138,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("actions", Actions); writer.WriteEnumValue("administration", Administration); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_actions.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_actions.cs index 91ce1f96d4..e00683d67a 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_actions.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_actions.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. - public enum AppPermissions_actions - { + public enum AppPermissions_actions { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_administration.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_administration.cs index 7f39c799ca..19e30b6f2b 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_administration.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_administration.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. - public enum AppPermissions_administration - { + public enum AppPermissions_administration { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_checks.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_checks.cs index 5e2b962529..2dd718bf4e 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_checks.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_checks.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for checks on code. - public enum AppPermissions_checks - { + public enum AppPermissions_checks { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_contents.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_contents.cs index a1bd25d54b..282a4f3087 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_contents.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_contents.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. - public enum AppPermissions_contents - { + public enum AppPermissions_contents { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_deployments.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_deployments.cs index e2354a6ef1..0778d58873 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_deployments.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_deployments.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for deployments and deployment statuses. - public enum AppPermissions_deployments - { + public enum AppPermissions_deployments { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_environments.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_environments.cs index a6bb33b01f..581c488d18 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_environments.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_environments.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for managing repository environments. - public enum AppPermissions_environments - { + public enum AppPermissions_environments { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_issues.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_issues.cs index ad3221d0f2..d23deee86c 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_issues.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_issues.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. - public enum AppPermissions_issues - { + public enum AppPermissions_issues { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_members.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_members.cs index 2b9584243f..027a332e63 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_members.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_members.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for organization teams and members. - public enum AppPermissions_members - { + public enum AppPermissions_members { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_metadata.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_metadata.cs index 55b2c718c4..49ded1fad9 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_metadata.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_metadata.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. - public enum AppPermissions_metadata - { + public enum AppPermissions_metadata { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_administration.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_administration.cs index 9b29b541d1..92443e2842 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_administration.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_administration.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to manage access to an organization. - public enum AppPermissions_organization_administration - { + public enum AppPermissions_organization_administration { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_announcement_banners.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_announcement_banners.cs index b7d0c335b4..ddb9ffbec0 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_announcement_banners.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_announcement_banners.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to view and manage announcement banners for an organization. - public enum AppPermissions_organization_announcement_banners - { + public enum AppPermissions_organization_announcement_banners { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_custom_roles.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_custom_roles.cs index 97198104ec..2c66d5c0fc 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_custom_roles.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_custom_roles.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for custom repository roles management. This property is in beta and is subject to change. - public enum AppPermissions_organization_custom_roles - { + public enum AppPermissions_organization_custom_roles { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_hooks.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_hooks.cs index 9143c9a777..155dafba93 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_hooks.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_hooks.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to manage the post-receive hooks for an organization. - public enum AppPermissions_organization_hooks - { + public enum AppPermissions_organization_hooks { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_packages.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_packages.cs index 6172087a2f..4097318d14 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_packages.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_packages.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for organization packages published to GitHub Packages. - public enum AppPermissions_organization_packages - { + public enum AppPermissions_organization_packages { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_personal_access_token_requests.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_personal_access_token_requests.cs index 33931c34e0..8c660f3148 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_personal_access_token_requests.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_personal_access_token_requests.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.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. - public enum AppPermissions_organization_personal_access_token_requests - { + public enum AppPermissions_organization_personal_access_token_requests { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_personal_access_tokens.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_personal_access_tokens.cs index bfca22884c..0431cb6526 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_personal_access_tokens.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_personal_access_tokens.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. - public enum AppPermissions_organization_personal_access_tokens - { + public enum AppPermissions_organization_personal_access_tokens { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_plan.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_plan.cs index 1d43febfb3..f29678694d 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_plan.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_plan.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for viewing an organization's plan. - public enum AppPermissions_organization_plan - { + public enum AppPermissions_organization_plan { [EnumMember(Value = "read")] Read, } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_projects.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_projects.cs index 7b541aa76e..e1bb66c058 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_projects.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_projects.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to manage organization projects and projects beta (where available). - public enum AppPermissions_organization_projects - { + public enum AppPermissions_organization_projects { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_secrets.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_secrets.cs index d0ab9223c4..467293a3b0 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_secrets.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_secrets.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to manage organization secrets. - public enum AppPermissions_organization_secrets - { + public enum AppPermissions_organization_secrets { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_self_hosted_runners.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_self_hosted_runners.cs index 8443f97ccb..e1c894ab7b 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_self_hosted_runners.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_self_hosted_runners.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. - public enum AppPermissions_organization_self_hosted_runners - { + public enum AppPermissions_organization_self_hosted_runners { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_user_blocking.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_user_blocking.cs index 4e3ef6aee3..21d2f8e477 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_user_blocking.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_organization_user_blocking.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to view and manage users blocked by the organization. - public enum AppPermissions_organization_user_blocking - { + public enum AppPermissions_organization_user_blocking { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_packages.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_packages.cs index eb5c955475..321b8d7d20 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_packages.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_packages.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for packages published to GitHub Packages. - public enum AppPermissions_packages - { + public enum AppPermissions_packages { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_pages.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_pages.cs index eccc51b53b..f2c74d21ad 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_pages.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_pages.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. - public enum AppPermissions_pages - { + public enum AppPermissions_pages { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_pull_requests.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_pull_requests.cs index b9d986cdaf..97db8ae3e9 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_pull_requests.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_pull_requests.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. - public enum AppPermissions_pull_requests - { + public enum AppPermissions_pull_requests { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_repository_hooks.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_repository_hooks.cs index b32add0923..daf0cda4c6 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_repository_hooks.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_repository_hooks.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to manage the post-receive hooks for a repository. - public enum AppPermissions_repository_hooks - { + public enum AppPermissions_repository_hooks { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_repository_projects.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_repository_projects.cs index b584342caa..d26cbb4592 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_repository_projects.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_repository_projects.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to manage repository projects, columns, and cards. - public enum AppPermissions_repository_projects - { + public enum AppPermissions_repository_projects { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_secret_scanning_alerts.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_secret_scanning_alerts.cs index 73ff45ee0d..45dbab4600 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_secret_scanning_alerts.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_secret_scanning_alerts.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to view and manage secret scanning alerts. - public enum AppPermissions_secret_scanning_alerts - { + public enum AppPermissions_secret_scanning_alerts { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_secrets.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_secrets.cs index 2f3f1c755e..daa8b0d0f2 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_secrets.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_secrets.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to manage repository secrets. - public enum AppPermissions_secrets - { + public enum AppPermissions_secrets { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_security_events.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_security_events.cs index 79bf314e00..80c206fb46 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_security_events.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_security_events.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to view and manage security events like code scanning alerts. - public enum AppPermissions_security_events - { + public enum AppPermissions_security_events { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_single_file.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_single_file.cs index 189774ac5f..bc3813fbf6 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_single_file.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_single_file.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to manage just a single file. - public enum AppPermissions_single_file - { + public enum AppPermissions_single_file { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_statuses.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_statuses.cs index fbecf6938d..11770a05be 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_statuses.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_statuses.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token for commit statuses. - public enum AppPermissions_statuses - { + public enum AppPermissions_statuses { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_team_discussions.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_team_discussions.cs index 4cc7752073..15c010293b 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_team_discussions.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_team_discussions.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to manage team discussions and related comments. - public enum AppPermissions_team_discussions - { + public enum AppPermissions_team_discussions { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_vulnerability_alerts.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_vulnerability_alerts.cs index fa88683be5..15c74e4c61 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_vulnerability_alerts.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_vulnerability_alerts.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to manage Dependabot alerts. - public enum AppPermissions_vulnerability_alerts - { + public enum AppPermissions_vulnerability_alerts { [EnumMember(Value = "read")] Read, [EnumMember(Value = "write")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_workflows.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_workflows.cs index 641480b1c7..b990918a83 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_workflows.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/AppPermissions_workflows.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// The level of permission to grant the access token to update GitHub Actions workflow files. - public enum AppPermissions_workflows - { + public enum AppPermissions_workflows { [EnumMember(Value = "write")] Write, } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/BasicError.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/BasicError.cs index c062bf5111..c19ea8dd21 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/BasicError.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/BasicError.cs @@ -1,28 +1,21 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// Basic Error /// - public class BasicError : ApiException, IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The documentation_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DocumentationUrl - { - get; set; - } + public string? DocumentationUrl { get; set; } #nullable restore #else public string DocumentationUrl { get; set; } @@ -30,10 +23,7 @@ public string? DocumentationUrl /// The message property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? MessageEscaped - { - get; set; - } + public string? MessageEscaped { get; set; } #nullable restore #else public string MessageEscaped { get; set; } @@ -41,10 +31,7 @@ public string? MessageEscaped /// The status property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Status - { - get; set; - } + public string? Status { get; set; } #nullable restore #else public string Status { get; set; } @@ -52,35 +39,29 @@ public string? Status /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } #endif /// - /// Instantiates a new BasicError and sets the default values. + /// Instantiates a new basicError and sets the default values. /// - public BasicError() - { + public BasicError() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static BasicError CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static BasicError CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new BasicError(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, {"message", n => { MessageEscaped = n.GetStringValue(); } }, @@ -92,8 +73,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("documentation_url", DocumentationUrl); writer.WriteStringValue("message", MessageEscaped); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile.cs index 506d2492c6..bbd4e9ed97 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// Content File /// - public class ContentFile : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The content property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Content - { - get; set; - } + public string? Content { get; set; } #nullable restore #else public string Content { get; set; } @@ -29,10 +22,7 @@ public string? Content /// The download_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DownloadUrl - { - get; set; - } + public string? DownloadUrl { get; set; } #nullable restore #else public string DownloadUrl { get; set; } @@ -40,10 +30,7 @@ public string? DownloadUrl /// The encoding property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Encoding - { - get; set; - } + public string? Encoding { get; set; } #nullable restore #else public string Encoding { get; set; } @@ -51,10 +38,7 @@ public string? Encoding /// The git_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GitUrl - { - get; set; - } + public string? GitUrl { get; set; } #nullable restore #else public string GitUrl { get; set; } @@ -62,10 +46,7 @@ public string? GitUrl /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } @@ -73,10 +54,7 @@ public string? HtmlUrl /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ContentFile__links? Links - { - get; set; - } + public ContentFile__links? Links { get; set; } #nullable restore #else public ContentFile__links Links { get; set; } @@ -84,10 +62,7 @@ public ContentFile__links? Links /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -95,10 +70,7 @@ public string? Name /// The path property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Path - { - get; set; - } + public string? Path { get; set; } #nullable restore #else public string Path { get; set; } @@ -106,26 +78,17 @@ public string? Path /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Sha - { - get; set; - } + public string? Sha { get; set; } #nullable restore #else public string Sha { get; set; } #endif /// The size property - public int? Size - { - get; set; - } + public int? Size { get; set; } /// The submodule_git_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? SubmoduleGitUrl - { - get; set; - } + public string? SubmoduleGitUrl { get; set; } #nullable restore #else public string SubmoduleGitUrl { get; set; } @@ -133,51 +96,39 @@ public string? SubmoduleGitUrl /// The target property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Target - { - get; set; - } + public string? Target { get; set; } #nullable restore #else public string Target { get; set; } #endif /// The type property - public ContentFile_type? Type - { - get; set; - } + public ContentFile_type? Type { get; set; } /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } #endif /// - /// Instantiates a new ContentFile and sets the default values. + /// Instantiates a new contentFile and sets the default values. /// - public ContentFile() - { + public ContentFile() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ContentFile CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static ContentFile CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ContentFile(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"content", n => { Content = n.GetStringValue(); } }, {"download_url", n => { DownloadUrl = n.GetStringValue(); } }, @@ -199,8 +150,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content", Content); writer.WriteStringValue("download_url", DownloadUrl); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile__links.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile__links.cs index 901e2bdbf2..3c3e0ef14a 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile__links.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile__links.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class ContentFile__links : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class ContentFile__links : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The git property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Git - { - get; set; - } + public string? Git { get; set; } #nullable restore #else public string Git { get; set; } @@ -26,10 +19,7 @@ public string? Git /// The html property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Html - { - get; set; - } + public string? Html { get; set; } #nullable restore #else public string Html { get; set; } @@ -37,35 +27,29 @@ public string? Html /// The self property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Self - { - get; set; - } + public string? Self { get; set; } #nullable restore #else public string Self { get; set; } #endif /// - /// Instantiates a new ContentFile__links and sets the default values. + /// Instantiates a new contentFile__links and sets the default values. /// - public ContentFile__links() - { + public ContentFile__links() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ContentFile__links CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static ContentFile__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ContentFile__links(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"git", n => { Git = n.GetStringValue(); } }, {"html", n => { Html = n.GetStringValue(); } }, @@ -76,8 +60,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("git", Git); writer.WriteStringValue("html", Html); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile_type.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile_type.cs index f27c7c73fc..3865e57fe1 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile_type.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentFile_type.cs @@ -1,9 +1,8 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public enum ContentFile_type - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public enum ContentFile_type { [EnumMember(Value = "file")] File, } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule.cs index 736e8fa32d..d59e0b87af 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// An object describing a submodule /// - public class ContentSubmodule : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The download_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DownloadUrl - { - get; set; - } + public string? DownloadUrl { get; set; } #nullable restore #else public string DownloadUrl { get; set; } @@ -29,10 +22,7 @@ public string? DownloadUrl /// The git_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GitUrl - { - get; set; - } + public string? GitUrl { get; set; } #nullable restore #else public string GitUrl { get; set; } @@ -40,10 +30,7 @@ public string? GitUrl /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } @@ -51,10 +38,7 @@ public string? HtmlUrl /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ContentSubmodule__links? Links - { - get; set; - } + public ContentSubmodule__links? Links { get; set; } #nullable restore #else public ContentSubmodule__links Links { get; set; } @@ -62,10 +46,7 @@ public ContentSubmodule__links? Links /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -73,10 +54,7 @@ public string? Name /// The path property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Path - { - get; set; - } + public string? Path { get; set; } #nullable restore #else public string Path { get; set; } @@ -84,67 +62,49 @@ public string? Path /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Sha - { - get; set; - } + public string? Sha { get; set; } #nullable restore #else public string Sha { get; set; } #endif /// The size property - public int? Size - { - get; set; - } + public int? Size { get; set; } /// The submodule_git_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? SubmoduleGitUrl - { - get; set; - } + public string? SubmoduleGitUrl { get; set; } #nullable restore #else public string SubmoduleGitUrl { get; set; } #endif /// The type property - public ContentSubmodule_type? Type - { - get; set; - } + public ContentSubmodule_type? Type { get; set; } /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } #endif /// - /// Instantiates a new ContentSubmodule and sets the default values. + /// Instantiates a new contentSubmodule and sets the default values. /// - public ContentSubmodule() - { + public ContentSubmodule() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ContentSubmodule CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static ContentSubmodule CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ContentSubmodule(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"download_url", n => { DownloadUrl = n.GetStringValue(); } }, {"git_url", n => { GitUrl = n.GetStringValue(); } }, @@ -163,8 +123,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("download_url", DownloadUrl); writer.WriteStringValue("git_url", GitUrl); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule__links.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule__links.cs index 2ace2ab0ab..52194d82b7 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule__links.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule__links.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class ContentSubmodule__links : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class ContentSubmodule__links : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The git property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Git - { - get; set; - } + public string? Git { get; set; } #nullable restore #else public string Git { get; set; } @@ -26,10 +19,7 @@ public string? Git /// The html property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Html - { - get; set; - } + public string? Html { get; set; } #nullable restore #else public string Html { get; set; } @@ -37,35 +27,29 @@ public string? Html /// The self property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Self - { - get; set; - } + public string? Self { get; set; } #nullable restore #else public string Self { get; set; } #endif /// - /// Instantiates a new ContentSubmodule__links and sets the default values. + /// Instantiates a new contentSubmodule__links and sets the default values. /// - public ContentSubmodule__links() - { + public ContentSubmodule__links() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ContentSubmodule__links CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static ContentSubmodule__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ContentSubmodule__links(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"git", n => { Git = n.GetStringValue(); } }, {"html", n => { Html = n.GetStringValue(); } }, @@ -76,8 +60,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("git", Git); writer.WriteStringValue("html", Html); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule_type.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule_type.cs index 860a8de98f..2e1eac7687 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule_type.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSubmodule_type.cs @@ -1,9 +1,8 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public enum ContentSubmodule_type - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public enum ContentSubmodule_type { [EnumMember(Value = "submodule")] Submodule, } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink.cs index a2944cc2ce..4d3708ccf5 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// An object describing a symlink /// - public class ContentSymlink : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The download_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DownloadUrl - { - get; set; - } + public string? DownloadUrl { get; set; } #nullable restore #else public string DownloadUrl { get; set; } @@ -29,10 +22,7 @@ public string? DownloadUrl /// The git_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GitUrl - { - get; set; - } + public string? GitUrl { get; set; } #nullable restore #else public string GitUrl { get; set; } @@ -40,10 +30,7 @@ public string? GitUrl /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } @@ -51,10 +38,7 @@ public string? HtmlUrl /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ContentSymlink__links? Links - { - get; set; - } + public ContentSymlink__links? Links { get; set; } #nullable restore #else public ContentSymlink__links Links { get; set; } @@ -62,10 +46,7 @@ public ContentSymlink__links? Links /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -73,10 +54,7 @@ public string? Name /// The path property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Path - { - get; set; - } + public string? Path { get; set; } #nullable restore #else public string Path { get; set; } @@ -84,67 +62,49 @@ public string? Path /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Sha - { - get; set; - } + public string? Sha { get; set; } #nullable restore #else public string Sha { get; set; } #endif /// The size property - public int? Size - { - get; set; - } + public int? Size { get; set; } /// The target property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Target - { - get; set; - } + public string? Target { get; set; } #nullable restore #else public string Target { get; set; } #endif /// The type property - public ContentSymlink_type? Type - { - get; set; - } + public ContentSymlink_type? Type { get; set; } /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } #endif /// - /// Instantiates a new ContentSymlink and sets the default values. + /// Instantiates a new contentSymlink and sets the default values. /// - public ContentSymlink() - { + public ContentSymlink() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ContentSymlink CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static ContentSymlink CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ContentSymlink(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"download_url", n => { DownloadUrl = n.GetStringValue(); } }, {"git_url", n => { GitUrl = n.GetStringValue(); } }, @@ -163,8 +123,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("download_url", DownloadUrl); writer.WriteStringValue("git_url", GitUrl); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink__links.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink__links.cs index a9be9672a7..d996d6caa4 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink__links.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink__links.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class ContentSymlink__links : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class ContentSymlink__links : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The git property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Git - { - get; set; - } + public string? Git { get; set; } #nullable restore #else public string Git { get; set; } @@ -26,10 +19,7 @@ public string? Git /// The html property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Html - { - get; set; - } + public string? Html { get; set; } #nullable restore #else public string Html { get; set; } @@ -37,35 +27,29 @@ public string? Html /// The self property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Self - { - get; set; - } + public string? Self { get; set; } #nullable restore #else public string Self { get; set; } #endif /// - /// Instantiates a new ContentSymlink__links and sets the default values. + /// Instantiates a new contentSymlink__links and sets the default values. /// - public ContentSymlink__links() - { + public ContentSymlink__links() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ContentSymlink__links CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static ContentSymlink__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ContentSymlink__links(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"git", n => { Git = n.GetStringValue(); } }, {"html", n => { Html = n.GetStringValue(); } }, @@ -76,8 +60,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("git", Git); writer.WriteStringValue("html", Html); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink_type.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink_type.cs index 6b4dfa8cb0..eb05d7148c 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink_type.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ContentSymlink_type.cs @@ -1,9 +1,8 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public enum ContentSymlink_type - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public enum ContentSymlink_type { [EnumMember(Value = "symlink")] Symlink, } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Enterprise.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Enterprise.cs index 9b03c4d525..b7f2c5734c 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Enterprise.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Enterprise.cs @@ -1,43 +1,30 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// An enterprise on GitHub. /// - public class Enterprise : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The avatar_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? AvatarUrl - { - get; set; - } + public string? AvatarUrl { get; set; } #nullable restore #else public string AvatarUrl { get; set; } #endif /// The created_at property - public DateTimeOffset? CreatedAt - { - get; set; - } + public DateTimeOffset? CreatedAt { get; set; } /// A short description of the enterprise. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Description - { - get; set; - } + public string? Description { get; set; } #nullable restore #else public string Description { get; set; } @@ -45,26 +32,17 @@ public string? Description /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } #endif /// Unique identifier of the enterprise - public int? Id - { - get; set; - } + public int? Id { get; set; } /// The name of the enterprise. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -72,10 +50,7 @@ public string? Name /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? NodeId - { - get; set; - } + public string? NodeId { get; set; } #nullable restore #else public string NodeId { get; set; } @@ -83,51 +58,39 @@ public string? NodeId /// The slug url identifier for the enterprise. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Slug - { - get; set; - } + public string? Slug { get; set; } #nullable restore #else public string Slug { get; set; } #endif /// The updated_at property - public DateTimeOffset? UpdatedAt - { - get; set; - } + public DateTimeOffset? UpdatedAt { get; set; } /// The enterprise's website URL. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? WebsiteUrl - { - get; set; - } + public string? WebsiteUrl { get; set; } #nullable restore #else public string WebsiteUrl { get; set; } #endif /// - /// Instantiates a new Enterprise and sets the default values. + /// Instantiates a new enterprise and sets the default values. /// - public Enterprise() - { + public Enterprise() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static Enterprise CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static Enterprise CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Enterprise(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, {"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, @@ -145,8 +108,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("avatar_url", AvatarUrl); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit.cs index 36a2dd5099..ec35fe2373 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// File Commit /// - public class FileCommit : IAdditionalDataHolder, IParsable - { + public 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; - } + 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 FileCommit_commit? Commit { get; set; } #nullable restore #else public FileCommit_commit Commit { get; set; } @@ -29,35 +22,29 @@ public FileCommit_commit? Commit /// The content property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_content? Content - { - get; set; - } + public FileCommit_content? Content { get; set; } #nullable restore #else public FileCommit_content Content { get; set; } #endif /// - /// Instantiates a new FileCommit and sets the default values. + /// Instantiates a new fileCommit and sets the default values. /// - public FileCommit() - { + public FileCommit() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static FileCommit CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static FileCommit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FileCommit(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"commit", n => { Commit = n.GetObjectValue(FileCommit_commit.CreateFromDiscriminatorValue); } }, {"content", n => { Content = n.GetObjectValue(FileCommit_content.CreateFromDiscriminatorValue); } }, @@ -67,8 +54,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("commit", Commit); writer.WriteObjectValue("content", Content); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit503Error.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit503Error.cs index 1e1877fef6..ac88d74685 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit503Error.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit503Error.cs @@ -1,25 +1,18 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class FileCommit503Error : ApiException, IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class FileCommit503Error : 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; - } + public IDictionary AdditionalData { get; set; } /// The code property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Code - { - get; set; - } + public string? Code { get; set; } #nullable restore #else public string Code { get; set; } @@ -27,10 +20,7 @@ public string? Code /// The documentation_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DocumentationUrl - { - get; set; - } + public string? DocumentationUrl { get; set; } #nullable restore #else public string DocumentationUrl { get; set; } @@ -38,35 +28,29 @@ public string? DocumentationUrl /// The message property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? MessageEscaped - { - get; set; - } + public string? MessageEscaped { get; set; } #nullable restore #else public string MessageEscaped { get; set; } #endif /// - /// Instantiates a new FileCommit503Error and sets the default values. + /// Instantiates a new fileCommit503Error and sets the default values. /// - public FileCommit503Error() - { + public FileCommit503Error() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static FileCommit503Error CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static FileCommit503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FileCommit503Error(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, @@ -77,8 +61,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit.cs index 5133fede60..a27bf86d55 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class FileCommit_commit : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class FileCommit_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; - } + public IDictionary AdditionalData { get; set; } /// The author property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_commit_author? Author - { - get; set; - } + public FileCommit_commit_author? Author { get; set; } #nullable restore #else public FileCommit_commit_author Author { get; set; } @@ -26,10 +19,7 @@ public FileCommit_commit_author? Author /// The committer property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_commit_committer? Committer - { - get; set; - } + public FileCommit_commit_committer? Committer { get; set; } #nullable restore #else public FileCommit_commit_committer Committer { get; set; } @@ -37,10 +27,7 @@ public FileCommit_commit_committer? Committer /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } @@ -48,10 +35,7 @@ public string? HtmlUrl /// The message property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Message - { - get; set; - } + public string? Message { get; set; } #nullable restore #else public string Message { get; set; } @@ -59,10 +43,7 @@ public string? Message /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? NodeId - { - get; set; - } + public string? NodeId { get; set; } #nullable restore #else public string NodeId { get; set; } @@ -70,10 +51,7 @@ public string? NodeId /// 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; } @@ -81,10 +59,7 @@ public List? Parents /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Sha - { - get; set; - } + public string? Sha { get; set; } #nullable restore #else public string Sha { get; set; } @@ -92,10 +67,7 @@ public string? Sha /// The tree property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_commit_tree? Tree - { - get; set; - } + public FileCommit_commit_tree? Tree { get; set; } #nullable restore #else public FileCommit_commit_tree Tree { get; set; } @@ -103,10 +75,7 @@ public FileCommit_commit_tree? Tree /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } @@ -114,35 +83,29 @@ public string? Url /// The verification property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_commit_verification? Verification - { - get; set; - } + public FileCommit_commit_verification? Verification { get; set; } #nullable restore #else public FileCommit_commit_verification Verification { get; set; } #endif /// - /// Instantiates a new FileCommit_commit and sets the default values. + /// Instantiates a new fileCommit_commit and sets the default values. /// - public FileCommit_commit() - { + public FileCommit_commit() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static FileCommit_commit CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FileCommit_commit(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"author", n => { Author = n.GetObjectValue(FileCommit_commit_author.CreateFromDiscriminatorValue); } }, {"committer", n => { Committer = n.GetObjectValue(FileCommit_commit_committer.CreateFromDiscriminatorValue); } }, @@ -160,8 +123,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("author", Author); writer.WriteObjectValue("committer", Committer); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_author.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_author.cs index 1fac3b10d7..90716dd1f5 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_author.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_author.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class FileCommit_commit_author : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class FileCommit_commit_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; - } + public IDictionary AdditionalData { get; set; } /// The date property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Date - { - get; set; - } + public string? Date { get; set; } #nullable restore #else public string Date { get; set; } @@ -26,10 +19,7 @@ public string? Date /// The email property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Email - { - get; set; - } + public string? Email { get; set; } #nullable restore #else public string Email { get; set; } @@ -37,35 +27,29 @@ public string? Email /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } #endif /// - /// Instantiates a new FileCommit_commit_author and sets the default values. + /// Instantiates a new fileCommit_commit_author and sets the default values. /// - public FileCommit_commit_author() - { + public FileCommit_commit_author() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit_author CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static FileCommit_commit_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FileCommit_commit_author(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"date", n => { Date = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, @@ -76,8 +60,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("date", Date); writer.WriteStringValue("email", Email); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_committer.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_committer.cs index cf273c4341..e6cb3840a5 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_committer.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_committer.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class FileCommit_commit_committer : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class FileCommit_commit_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; - } + public IDictionary AdditionalData { get; set; } /// The date property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Date - { - get; set; - } + public string? Date { get; set; } #nullable restore #else public string Date { get; set; } @@ -26,10 +19,7 @@ public string? Date /// The email property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Email - { - get; set; - } + public string? Email { get; set; } #nullable restore #else public string Email { get; set; } @@ -37,35 +27,29 @@ public string? Email /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } #endif /// - /// Instantiates a new FileCommit_commit_committer and sets the default values. + /// Instantiates a new fileCommit_commit_committer and sets the default values. /// - public FileCommit_commit_committer() - { + public FileCommit_commit_committer() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit_committer CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static FileCommit_commit_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FileCommit_commit_committer(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"date", n => { Date = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, @@ -76,8 +60,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("date", Date); writer.WriteStringValue("email", Email); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_parents.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_parents.cs index f4bab4a4bd..28031e01ab 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_parents.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_parents.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class FileCommit_commit_parents : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class FileCommit_commit_parents : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } @@ -26,10 +19,7 @@ public string? HtmlUrl /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Sha - { - get; set; - } + public string? Sha { get; set; } #nullable restore #else public string Sha { get; set; } @@ -37,35 +27,29 @@ public string? Sha /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } #endif /// - /// Instantiates a new FileCommit_commit_parents and sets the default values. + /// Instantiates a new fileCommit_commit_parents and sets the default values. /// - public FileCommit_commit_parents() - { + public FileCommit_commit_parents() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit_parents CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static FileCommit_commit_parents CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FileCommit_commit_parents(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, {"sha", n => { Sha = n.GetStringValue(); } }, @@ -76,8 +60,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteStringValue("sha", Sha); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_tree.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_tree.cs index 53ca3514c9..e0719fa211 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_tree.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_tree.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class FileCommit_commit_tree : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class FileCommit_commit_tree : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Sha - { - get; set; - } + public string? Sha { get; set; } #nullable restore #else public string Sha { get; set; } @@ -26,35 +19,29 @@ public string? Sha /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } #endif /// - /// Instantiates a new FileCommit_commit_tree and sets the default values. + /// Instantiates a new fileCommit_commit_tree and sets the default values. /// - public FileCommit_commit_tree() - { + public FileCommit_commit_tree() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit_tree CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static FileCommit_commit_tree CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FileCommit_commit_tree(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"sha", n => { Sha = n.GetStringValue(); } }, {"url", n => { Url = n.GetStringValue(); } }, @@ -64,8 +51,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("sha", Sha); writer.WriteStringValue("url", Url); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_verification.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_verification.cs index 2be42bd897..1e36b97abe 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_verification.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_commit_verification.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class FileCommit_commit_verification : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class FileCommit_commit_verification : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The payload property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Payload - { - get; set; - } + public string? Payload { get; set; } #nullable restore #else public string Payload { get; set; } @@ -26,10 +19,7 @@ public string? Payload /// The reason property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Reason - { - get; set; - } + public string? Reason { get; set; } #nullable restore #else public string Reason { get; set; } @@ -37,40 +27,31 @@ public string? Reason /// The signature property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Signature - { - get; set; - } + public string? Signature { get; set; } #nullable restore #else public string Signature { get; set; } #endif /// The verified property - public bool? Verified - { - get; set; - } + public bool? Verified { get; set; } /// - /// Instantiates a new FileCommit_commit_verification and sets the default values. + /// Instantiates a new fileCommit_commit_verification and sets the default values. /// - public FileCommit_commit_verification() - { + public FileCommit_commit_verification() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static FileCommit_commit_verification CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static FileCommit_commit_verification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FileCommit_commit_verification(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"payload", n => { Payload = n.GetStringValue(); } }, {"reason", n => { Reason = n.GetStringValue(); } }, @@ -82,8 +63,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("payload", Payload); writer.WriteStringValue("reason", Reason); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_content.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_content.cs index 28e871b14e..81ed37ac37 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_content.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_content.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class FileCommit_content : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class FileCommit_content : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The download_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DownloadUrl - { - get; set; - } + public string? DownloadUrl { get; set; } #nullable restore #else public string DownloadUrl { get; set; } @@ -26,10 +19,7 @@ public string? DownloadUrl /// The git_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GitUrl - { - get; set; - } + public string? GitUrl { get; set; } #nullable restore #else public string GitUrl { get; set; } @@ -37,10 +27,7 @@ public string? GitUrl /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } @@ -48,10 +35,7 @@ public string? HtmlUrl /// The _links property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FileCommit_content__links? Links - { - get; set; - } + public FileCommit_content__links? Links { get; set; } #nullable restore #else public FileCommit_content__links Links { get; set; } @@ -59,10 +43,7 @@ public FileCommit_content__links? Links /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -70,10 +51,7 @@ public string? Name /// The path property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Path - { - get; set; - } + public string? Path { get; set; } #nullable restore #else public string Path { get; set; } @@ -81,26 +59,17 @@ public string? Path /// The sha property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Sha - { - get; set; - } + public string? Sha { get; set; } #nullable restore #else public string Sha { get; set; } #endif /// The size property - public int? Size - { - get; set; - } + public int? Size { get; set; } /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Type - { - get; set; - } + public string? Type { get; set; } #nullable restore #else public string Type { get; set; } @@ -108,35 +77,29 @@ public string? Type /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } #endif /// - /// Instantiates a new FileCommit_content and sets the default values. + /// Instantiates a new fileCommit_content and sets the default values. /// - public FileCommit_content() - { + public FileCommit_content() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static FileCommit_content CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static FileCommit_content CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FileCommit_content(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"download_url", n => { DownloadUrl = n.GetStringValue(); } }, {"git_url", n => { GitUrl = n.GetStringValue(); } }, @@ -154,8 +117,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("download_url", DownloadUrl); writer.WriteStringValue("git_url", GitUrl); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_content__links.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_content__links.cs index 4acd927128..419f468b6d 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_content__links.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/FileCommit_content__links.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class FileCommit_content__links : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class FileCommit_content__links : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The git property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Git - { - get; set; - } + public string? Git { get; set; } #nullable restore #else public string Git { get; set; } @@ -26,10 +19,7 @@ public string? Git /// The html property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Html - { - get; set; - } + public string? Html { get; set; } #nullable restore #else public string Html { get; set; } @@ -37,35 +27,29 @@ public string? Html /// The self property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Self - { - get; set; - } + public string? Self { get; set; } #nullable restore #else public string Self { get; set; } #endif /// - /// Instantiates a new FileCommit_content__links and sets the default values. + /// Instantiates a new fileCommit_content__links and sets the default values. /// - public FileCommit_content__links() - { + public FileCommit_content__links() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static FileCommit_content__links CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static FileCommit_content__links CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new FileCommit_content__links(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"git", n => { Git = n.GetStringValue(); } }, {"html", n => { Html = n.GetStringValue(); } }, @@ -76,8 +60,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("git", Git); writer.WriteStringValue("html", Html); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Installation.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Installation.cs index 1826d4bf4d..280cd3956c 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Installation.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Installation.cs @@ -1,22 +1,18 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// Installation /// - public class Installation : IAdditionalDataHolder, IParsable - { + public class Installation : IAdditionalDataHolder, IParsable { /// The access_tokens_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? AccessTokensUrl - { - get; set; - } + public string? AccessTokensUrl { get; set; } #nullable restore #else public string AccessTokensUrl { get; set; } @@ -24,31 +20,19 @@ public string? AccessTokensUrl /// The account property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Installations? Account - { - get; set; - } + public Installations? Account { get; set; } #nullable restore #else public Installations 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; - } + public IDictionary AdditionalData { get; set; } /// The app_id property - public int? AppId - { - get; set; - } + public int? AppId { get; set; } /// The app_slug property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? AppSlug - { - get; set; - } + public string? AppSlug { get; set; } #nullable restore #else public string AppSlug { get; set; } @@ -56,58 +40,37 @@ public string? AppSlug /// The contact_email property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ContactEmail - { - get; set; - } + public string? ContactEmail { get; set; } #nullable restore #else public string ContactEmail { get; set; } #endif /// The created_at property - public DateTimeOffset? CreatedAt - { - get; set; - } + public DateTimeOffset? CreatedAt { get; set; } /// 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; } #endif /// The has_multiple_single_files property - public bool? HasMultipleSingleFiles - { - get; set; - } + public bool? HasMultipleSingleFiles { get; set; } /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } #endif /// The ID of the installation. - public int? Id - { - get; set; - } + public int? Id { get; set; } /// 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 AppPermissions? Permissions { get; set; } #nullable restore #else public AppPermissions Permissions { get; set; } @@ -115,26 +78,17 @@ public AppPermissions? Permissions /// The repositories_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? RepositoriesUrl - { - get; set; - } + public string? RepositoriesUrl { get; set; } #nullable restore #else 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 Installation_repository_selection? RepositorySelection { get; set; } /// The single_file_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? SingleFileName - { - get; set; - } + public string? SingleFileName { get; set; } #nullable restore #else public string SingleFileName { get; set; } @@ -142,72 +96,51 @@ public string? SingleFileName /// The single_file_paths property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? SingleFilePaths - { - get; set; - } + public List? SingleFilePaths { get; set; } #nullable restore #else public List SingleFilePaths { get; set; } #endif /// The suspended_at property - public DateTimeOffset? SuspendedAt - { - get; set; - } + public DateTimeOffset? SuspendedAt { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? SuspendedBy - { - get; set; - } + public NullableSimpleUser? SuspendedBy { get; set; } #nullable restore #else public NullableSimpleUser SuspendedBy { get; set; } #endif /// The ID of the user or organization this token is being scoped to. - public int? TargetId - { - get; set; - } + public int? TargetId { get; set; } /// The target_type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? TargetType - { - get; set; - } + public string? TargetType { get; set; } #nullable restore #else public string TargetType { get; set; } #endif /// The updated_at property - public DateTimeOffset? UpdatedAt - { - get; set; - } + public DateTimeOffset? UpdatedAt { get; set; } /// /// Instantiates a new installation and sets the default values. /// - public Installation() - { + public Installation() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static Installation CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static Installation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Installation(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"access_tokens_url", n => { AccessTokensUrl = n.GetStringValue(); } }, {"account", n => { Account = n.GetObjectValue(Installations.CreateFromDiscriminatorValue); } }, @@ -235,8 +168,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("access_tokens_url", AccessTokensUrl); writer.WriteObjectValue("account", Account); @@ -261,61 +193,30 @@ public void Serialize(ISerializationWriter writer) writer.WriteAdditionalData(AdditionalData); } /// - /// Composed type wrapper for classes simpleUser, enterprise + /// Composed type wrapper for classes enterprise, simpleUser /// - public class Installations : IAdditionalDataHolder, IParsable - { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public class Installations : IComposedTypeWrapper, IParsable { /// Composed type representation for type enterprise #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models.Enterprise? Enterprise - { - get; set; - } + public Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models.Enterprise? Enterprise { get; set; } #nullable restore #else public Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models.Enterprise Enterprise { get; set; } -#endif - /// Serialization hint for the current wrapper. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerializationHint - { - get; set; - } -#nullable restore -#else - public string SerializationHint { get; set; } #endif /// Composed type representation for type simpleUser #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models.SimpleUser? SimpleUser - { - get; set; - } + public Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models.SimpleUser? SimpleUser { get; set; } #nullable restore #else public Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models.SimpleUser SimpleUser { get; set; } #endif - /// - /// Instantiates a new installations and sets the default values. - /// - public Installations() - { - AdditionalData = new Dictionary(); - } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static Installations CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static Installations CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var result = new Installations(); result.Enterprise = new Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models.Enterprise(); @@ -325,10 +226,8 @@ public static Installations CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { - if (Enterprise != null || SimpleUser != null) - { + public IDictionary> GetFieldDeserializers() { + if(Enterprise != null || SimpleUser != null) { return ParseNodeHelper.MergeDeserializersForIntersectionWrapper(Enterprise, SimpleUser); } return new Dictionary>(); @@ -337,11 +236,9 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue(null, Enterprise, SimpleUser); - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Installation_repository_selection.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Installation_repository_selection.cs index c7a3490b87..ae00cb4206 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Installation_repository_selection.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Installation_repository_selection.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// Describe whether all repositories have been selected or there's a selection involved - public enum Installation_repository_selection - { + public enum Installation_repository_selection { [EnumMember(Value = "all")] All, [EnumMember(Value = "selected")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/NullableLicenseSimple.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/NullableLicenseSimple.cs index 0f1da469d0..36dc4f87f2 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/NullableLicenseSimple.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/NullableLicenseSimple.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// License Simple /// - public class NullableLicenseSimple : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } @@ -29,10 +22,7 @@ public string? HtmlUrl /// The key property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Key - { - get; set; - } + public string? Key { get; set; } #nullable restore #else public string Key { get; set; } @@ -40,10 +30,7 @@ public string? Key /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -51,10 +38,7 @@ public string? Name /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? NodeId - { - get; set; - } + public string? NodeId { get; set; } #nullable restore #else public string NodeId { get; set; } @@ -62,10 +46,7 @@ public string? NodeId /// The spdx_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? SpdxId - { - get; set; - } + public string? SpdxId { get; set; } #nullable restore #else public string SpdxId { get; set; } @@ -73,10 +54,7 @@ public string? SpdxId /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } @@ -84,24 +62,21 @@ public string? Url /// /// Instantiates a new nullableLicenseSimple and sets the default values. /// - public NullableLicenseSimple() - { + public NullableLicenseSimple() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static NullableLicenseSimple CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static NullableLicenseSimple CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new NullableLicenseSimple(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"html_url", n => { HtmlUrl = n.GetStringValue(); } }, {"key", n => { Key = n.GetStringValue(); } }, @@ -115,8 +90,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteStringValue("key", Key); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/NullableSimpleUser.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/NullableSimpleUser.cs index 4f97e63143..280b5e3c02 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/NullableSimpleUser.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/NullableSimpleUser.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// A GitHub user. /// - public class NullableSimpleUser : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The avatar_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? AvatarUrl - { - get; set; - } + public string? AvatarUrl { get; set; } #nullable restore #else public string AvatarUrl { get; set; } @@ -29,10 +22,7 @@ public string? AvatarUrl /// The email property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Email - { - get; set; - } + public string? Email { get; set; } #nullable restore #else public string Email { get; set; } @@ -40,10 +30,7 @@ public string? Email /// The events_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? EventsUrl - { - get; set; - } + public string? EventsUrl { get; set; } #nullable restore #else public string EventsUrl { get; set; } @@ -51,10 +38,7 @@ public string? EventsUrl /// The followers_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? FollowersUrl - { - get; set; - } + public string? FollowersUrl { get; set; } #nullable restore #else public string FollowersUrl { get; set; } @@ -62,10 +46,7 @@ public string? FollowersUrl /// The following_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? FollowingUrl - { - get; set; - } + public string? FollowingUrl { get; set; } #nullable restore #else public string FollowingUrl { get; set; } @@ -73,10 +54,7 @@ public string? FollowingUrl /// The gists_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GistsUrl - { - get; set; - } + public string? GistsUrl { get; set; } #nullable restore #else public string GistsUrl { get; set; } @@ -84,10 +62,7 @@ public string? GistsUrl /// The gravatar_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GravatarId - { - get; set; - } + public string? GravatarId { get; set; } #nullable restore #else public string GravatarId { get; set; } @@ -95,26 +70,17 @@ public string? GravatarId /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } #endif /// The id property - public int? Id - { - get; set; - } + public int? Id { get; set; } /// The login property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Login - { - get; set; - } + public string? Login { get; set; } #nullable restore #else public string Login { get; set; } @@ -122,10 +88,7 @@ public string? Login /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -133,10 +96,7 @@ public string? Name /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? NodeId - { - get; set; - } + public string? NodeId { get; set; } #nullable restore #else public string NodeId { get; set; } @@ -144,10 +104,7 @@ public string? NodeId /// The organizations_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? OrganizationsUrl - { - get; set; - } + public string? OrganizationsUrl { get; set; } #nullable restore #else public string OrganizationsUrl { get; set; } @@ -155,10 +112,7 @@ public string? OrganizationsUrl /// The received_events_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ReceivedEventsUrl - { - get; set; - } + public string? ReceivedEventsUrl { get; set; } #nullable restore #else public string ReceivedEventsUrl { get; set; } @@ -166,26 +120,17 @@ public string? ReceivedEventsUrl /// The repos_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ReposUrl - { - get; set; - } + public string? ReposUrl { get; set; } #nullable restore #else public string ReposUrl { get; set; } #endif /// The site_admin property - public bool? SiteAdmin - { - get; set; - } + public bool? SiteAdmin { get; set; } /// The starred_at property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? StarredAt - { - get; set; - } + public string? StarredAt { get; set; } #nullable restore #else public string StarredAt { get; set; } @@ -193,10 +138,7 @@ public string? StarredAt /// The starred_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? StarredUrl - { - get; set; - } + public string? StarredUrl { get; set; } #nullable restore #else public string StarredUrl { get; set; } @@ -204,10 +146,7 @@ public string? StarredUrl /// The subscriptions_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? SubscriptionsUrl - { - get; set; - } + public string? SubscriptionsUrl { get; set; } #nullable restore #else public string SubscriptionsUrl { get; set; } @@ -215,10 +154,7 @@ public string? SubscriptionsUrl /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Type - { - get; set; - } + public string? Type { get; set; } #nullable restore #else public string Type { get; set; } @@ -226,10 +162,7 @@ public string? Type /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } @@ -237,24 +170,21 @@ public string? Url /// /// Instantiates a new nullableSimpleUser and sets the default values. /// - public NullableSimpleUser() - { + public NullableSimpleUser() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static NullableSimpleUser CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static NullableSimpleUser CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new NullableSimpleUser(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, @@ -283,8 +213,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("avatar_url", AvatarUrl); writer.WriteStringValue("email", Email); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReactionRollup.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReactionRollup.cs index 7f7fc2f719..87ffaddc7c 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReactionRollup.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReactionRollup.cs @@ -1,69 +1,35 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class ReactionRollup : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class ReactionRollup : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The confused property - public int? Confused - { - get; set; - } + public int? Confused { get; set; } /// The eyes property - public int? Eyes - { - get; set; - } + public int? Eyes { get; set; } /// The heart property - public int? Heart - { - get; set; - } + public int? Heart { get; set; } /// The hooray property - public int? Hooray - { - get; set; - } + public int? Hooray { get; set; } /// The laugh property - public int? Laugh - { - get; set; - } + public int? Laugh { get; set; } /// The minus_1 property - public int? Minus1 - { - get; set; - } + public int? Minus1 { get; set; } /// The plus_1 property - public int? Plus1 - { - get; set; - } + public int? Plus1 { get; set; } /// The rocket property - public int? Rocket - { - get; set; - } + public int? Rocket { get; set; } /// The total_count property - public int? TotalCount - { - get; set; - } + public int? TotalCount { get; set; } /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } @@ -71,24 +37,21 @@ public string? Url /// /// Instantiates a new reactionRollup and sets the default values. /// - public ReactionRollup() - { + public ReactionRollup() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ReactionRollup CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static ReactionRollup CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ReactionRollup(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"confused", n => { Confused = n.GetIntValue(); } }, {"eyes", n => { Eyes = n.GetIntValue(); } }, @@ -106,8 +69,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("confused", Confused); writer.WriteIntValue("eyes", Eyes); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Release.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Release.cs index 2f08dc2c4e..002958613c 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Release.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Release.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// A release. /// - public class Release : IAdditionalDataHolder, IParsable - { + public 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; - } + 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; } @@ -29,10 +22,7 @@ public List? Assets /// The assets_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? AssetsUrl - { - get; set; - } + public string? AssetsUrl { get; set; } #nullable restore #else public string AssetsUrl { get; set; } @@ -40,10 +30,7 @@ public string? AssetsUrl /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SimpleUser? Author - { - get; set; - } + public SimpleUser? Author { get; set; } #nullable restore #else public SimpleUser Author { get; set; } @@ -51,10 +38,7 @@ public SimpleUser? Author /// The body property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Body - { - get; set; - } + public string? Body { get; set; } #nullable restore #else public string Body { get; set; } @@ -62,10 +46,7 @@ public string? Body /// The body_html property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? BodyHtml - { - get; set; - } + public string? BodyHtml { get; set; } #nullable restore #else public string BodyHtml { get; set; } @@ -73,63 +54,39 @@ public string? BodyHtml /// The body_text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? BodyText - { - get; set; - } + public string? BodyText { get; set; } #nullable restore #else public string BodyText { get; set; } #endif /// The created_at property - public DateTimeOffset? CreatedAt - { - get; set; - } + public DateTimeOffset? CreatedAt { get; set; } /// The URL of the release discussion. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DiscussionUrl - { - get; set; - } + public string? DiscussionUrl { get; set; } #nullable restore #else public string DiscussionUrl { get; set; } #endif /// true to create a draft (unpublished) release, false to create a published one. - public bool? Draft - { - get; set; - } + public bool? Draft { get; set; } /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } #endif /// The id property - public int? Id - { - get; set; - } + public int? Id { get; set; } /// The mentions_count property - public int? MentionsCount - { - get; set; - } + public int? MentionsCount { get; set; } /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -137,31 +94,19 @@ public string? Name /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? NodeId - { - get; set; - } + public string? NodeId { get; set; } #nullable restore #else public string NodeId { get; set; } #endif /// Whether to identify the release as a prerelease or a full release. - public bool? Prerelease - { - get; set; - } + public bool? Prerelease { get; set; } /// The published_at property - public DateTimeOffset? PublishedAt - { - get; set; - } + public DateTimeOffset? PublishedAt { get; set; } /// The reactions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ReactionRollup? Reactions - { - get; set; - } + public ReactionRollup? Reactions { get; set; } #nullable restore #else public ReactionRollup Reactions { get; set; } @@ -169,10 +114,7 @@ public ReactionRollup? Reactions /// The name of the tag. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? TagName - { - get; set; - } + public string? TagName { get; set; } #nullable restore #else public string TagName { get; set; } @@ -180,10 +122,7 @@ public string? TagName /// The tarball_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? TarballUrl - { - get; set; - } + public string? TarballUrl { get; set; } #nullable restore #else public string TarballUrl { get; set; } @@ -191,10 +130,7 @@ public string? TarballUrl /// Specifies the commitish value that determines where the Git tag is created from. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? TargetCommitish - { - get; set; - } + public string? TargetCommitish { get; set; } #nullable restore #else public string TargetCommitish { get; set; } @@ -202,10 +138,7 @@ public string? TargetCommitish /// The upload_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? UploadUrl - { - get; set; - } + public string? UploadUrl { get; set; } #nullable restore #else public string UploadUrl { get; set; } @@ -213,10 +146,7 @@ public string? UploadUrl /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } @@ -224,35 +154,29 @@ public string? Url /// The zipball_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ZipballUrl - { - get; set; - } + public string? ZipballUrl { get; set; } #nullable restore #else public string ZipballUrl { get; set; } #endif /// - /// Instantiates a new Release and sets the default values. + /// Instantiates a new release and sets the default values. /// - public Release() - { + public Release() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static Release CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static Release CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Release(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"assets", n => { Assets = n.GetCollectionOfObjectValues(ReleaseAsset.CreateFromDiscriminatorValue)?.ToList(); } }, {"assets_url", n => { AssetsUrl = n.GetStringValue(); } }, @@ -283,8 +207,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("assets", Assets); writer.WriteStringValue("assets_url", AssetsUrl); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReleaseAsset.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReleaseAsset.cs index 2c49c05377..4a1bc0f98a 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReleaseAsset.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReleaseAsset.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// Data related to a release. /// - public class ReleaseAsset : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The browser_download_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? BrowserDownloadUrl - { - get; set; - } + public string? BrowserDownloadUrl { get; set; } #nullable restore #else public string BrowserDownloadUrl { get; set; } @@ -29,36 +22,21 @@ public string? BrowserDownloadUrl /// The content_type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ContentType - { - get; set; - } + public string? ContentType { get; set; } #nullable restore #else public string ContentType { get; set; } #endif /// The created_at property - public DateTimeOffset? CreatedAt - { - get; set; - } + public DateTimeOffset? CreatedAt { get; set; } /// The download_count property - public int? DownloadCount - { - get; set; - } + public int? DownloadCount { get; set; } /// The id property - public int? Id - { - get; set; - } + public int? Id { get; set; } /// The label property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Label - { - get; set; - } + public string? Label { get; set; } #nullable restore #else public string Label { get; set; } @@ -66,10 +44,7 @@ public string? Label /// The file name of the asset. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -77,36 +52,21 @@ public string? Name /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? NodeId - { - get; set; - } + public string? NodeId { get; set; } #nullable restore #else public string NodeId { get; set; } #endif /// The size property - public int? Size - { - get; set; - } + public int? Size { get; set; } /// State of the release asset. - public ReleaseAsset_state? State - { - get; set; - } + public ReleaseAsset_state? State { get; set; } /// The updated_at property - public DateTimeOffset? UpdatedAt - { - get; set; - } + 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 NullableSimpleUser? Uploader { get; set; } #nullable restore #else public NullableSimpleUser Uploader { get; set; } @@ -114,10 +74,7 @@ public NullableSimpleUser? Uploader /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } @@ -125,24 +82,21 @@ public string? Url /// /// Instantiates a new releaseAsset and sets the default values. /// - public ReleaseAsset() - { + public ReleaseAsset() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ReleaseAsset CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static ReleaseAsset CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ReleaseAsset(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"browser_download_url", n => { BrowserDownloadUrl = n.GetStringValue(); } }, {"content_type", n => { ContentType = n.GetStringValue(); } }, @@ -163,8 +117,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("browser_download_url", BrowserDownloadUrl); writer.WriteStringValue("content_type", ContentType); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReleaseAsset_state.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReleaseAsset_state.cs index dbff32c904..b880848c92 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReleaseAsset_state.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ReleaseAsset_state.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// State of the release asset. - public enum ReleaseAsset_state - { + public enum ReleaseAsset_state { [EnumMember(Value = "uploaded")] Uploaded, [EnumMember(Value = "open")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem.cs index 8c6b96124d..f072033e76 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem.cs @@ -1,57 +1,32 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// Repo Search Result Item /// - public class RepoSearchResultItem : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The allow_auto_merge property - public bool? AllowAutoMerge - { - get; set; - } + public bool? AllowAutoMerge { get; set; } /// The allow_forking property - public bool? AllowForking - { - get; set; - } + public bool? AllowForking { get; set; } /// The allow_merge_commit property - public bool? AllowMergeCommit - { - get; set; - } + public bool? AllowMergeCommit { get; set; } /// The allow_rebase_merge property - public bool? AllowRebaseMerge - { - get; set; - } + public bool? AllowRebaseMerge { get; set; } /// The allow_squash_merge property - public bool? AllowSquashMerge - { - get; set; - } + public bool? AllowSquashMerge { get; set; } /// The archived property - public bool? Archived - { - get; set; - } + public bool? Archived { get; set; } /// The archive_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ArchiveUrl - { - get; set; - } + public string? ArchiveUrl { get; set; } #nullable restore #else public string ArchiveUrl { get; set; } @@ -59,10 +34,7 @@ public string? ArchiveUrl /// The assignees_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? AssigneesUrl - { - get; set; - } + public string? AssigneesUrl { get; set; } #nullable restore #else public string AssigneesUrl { get; set; } @@ -70,10 +42,7 @@ public string? AssigneesUrl /// The blobs_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? BlobsUrl - { - get; set; - } + public string? BlobsUrl { get; set; } #nullable restore #else public string BlobsUrl { get; set; } @@ -81,10 +50,7 @@ public string? BlobsUrl /// The branches_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? BranchesUrl - { - get; set; - } + public string? BranchesUrl { get; set; } #nullable restore #else public string BranchesUrl { get; set; } @@ -92,10 +58,7 @@ public string? BranchesUrl /// The clone_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? CloneUrl - { - get; set; - } + public string? CloneUrl { get; set; } #nullable restore #else public string CloneUrl { get; set; } @@ -103,10 +66,7 @@ public string? CloneUrl /// The collaborators_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? CollaboratorsUrl - { - get; set; - } + public string? CollaboratorsUrl { get; set; } #nullable restore #else public string CollaboratorsUrl { get; set; } @@ -114,10 +74,7 @@ public string? CollaboratorsUrl /// The comments_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? CommentsUrl - { - get; set; - } + public string? CommentsUrl { get; set; } #nullable restore #else public string CommentsUrl { get; set; } @@ -125,10 +82,7 @@ public string? CommentsUrl /// The commits_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? CommitsUrl - { - get; set; - } + public string? CommitsUrl { get; set; } #nullable restore #else public string CommitsUrl { get; set; } @@ -136,10 +90,7 @@ public string? CommitsUrl /// The compare_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? CompareUrl - { - get; set; - } + public string? CompareUrl { get; set; } #nullable restore #else public string CompareUrl { get; set; } @@ -147,10 +98,7 @@ public string? CompareUrl /// The contents_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ContentsUrl - { - get; set; - } + public string? ContentsUrl { get; set; } #nullable restore #else public string ContentsUrl { get; set; } @@ -158,42 +106,27 @@ public string? ContentsUrl /// The contributors_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ContributorsUrl - { - get; set; - } + public string? ContributorsUrl { get; set; } #nullable restore #else public string ContributorsUrl { get; set; } #endif /// The created_at property - public DateTimeOffset? CreatedAt - { - get; set; - } + public DateTimeOffset? CreatedAt { get; set; } /// The default_branch property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DefaultBranch - { - get; set; - } + public string? DefaultBranch { get; set; } #nullable restore #else public string DefaultBranch { get; set; } #endif /// The delete_branch_on_merge property - public bool? DeleteBranchOnMerge - { - get; set; - } + public bool? DeleteBranchOnMerge { get; set; } /// The deployments_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DeploymentsUrl - { - get; set; - } + public string? DeploymentsUrl { get; set; } #nullable restore #else public string DeploymentsUrl { get; set; } @@ -201,26 +134,17 @@ public string? DeploymentsUrl /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Description - { - get; set; - } + public string? Description { get; set; } #nullable restore #else public string Description { get; set; } #endif /// Returns whether or not this repository disabled. - public bool? Disabled - { - get; set; - } + public bool? Disabled { get; set; } /// The downloads_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DownloadsUrl - { - get; set; - } + public string? DownloadsUrl { get; set; } #nullable restore #else public string DownloadsUrl { get; set; } @@ -228,36 +152,21 @@ public string? DownloadsUrl /// The events_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? EventsUrl - { - get; set; - } + public string? EventsUrl { get; set; } #nullable restore #else public string EventsUrl { get; set; } #endif /// The fork property - public bool? Fork - { - get; set; - } + public bool? Fork { get; set; } /// The forks property - public int? Forks - { - get; set; - } + public int? Forks { get; set; } /// The forks_count property - public int? ForksCount - { - get; set; - } + public int? ForksCount { get; set; } /// The forks_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ForksUrl - { - get; set; - } + public string? ForksUrl { get; set; } #nullable restore #else public string ForksUrl { get; set; } @@ -265,10 +174,7 @@ public string? ForksUrl /// The full_name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? FullName - { - get; set; - } + public string? FullName { get; set; } #nullable restore #else public string FullName { get; set; } @@ -276,10 +182,7 @@ public string? FullName /// The git_commits_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GitCommitsUrl - { - get; set; - } + public string? GitCommitsUrl { get; set; } #nullable restore #else public string GitCommitsUrl { get; set; } @@ -287,10 +190,7 @@ public string? GitCommitsUrl /// The git_refs_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GitRefsUrl - { - get; set; - } + public string? GitRefsUrl { get; set; } #nullable restore #else public string GitRefsUrl { get; set; } @@ -298,10 +198,7 @@ public string? GitRefsUrl /// The git_tags_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GitTagsUrl - { - get; set; - } + public string? GitTagsUrl { get; set; } #nullable restore #else public string GitTagsUrl { get; set; } @@ -309,51 +206,27 @@ public string? GitTagsUrl /// The git_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GitUrl - { - get; set; - } + public string? GitUrl { get; set; } #nullable restore #else public string GitUrl { get; set; } #endif /// The has_discussions property - public bool? HasDiscussions - { - get; set; - } + public bool? HasDiscussions { get; set; } /// The has_downloads property - public bool? HasDownloads - { - get; set; - } + public bool? HasDownloads { get; set; } /// The has_issues property - public bool? HasIssues - { - get; set; - } + public bool? HasIssues { get; set; } /// The has_pages property - public bool? HasPages - { - get; set; - } + public bool? HasPages { get; set; } /// The has_projects property - public bool? HasProjects - { - get; set; - } + public bool? HasProjects { get; set; } /// The has_wiki property - public bool? HasWiki - { - get; set; - } + public bool? HasWiki { get; set; } /// The homepage property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Homepage - { - get; set; - } + public string? Homepage { get; set; } #nullable restore #else public string Homepage { get; set; } @@ -361,10 +234,7 @@ public string? Homepage /// The hooks_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HooksUrl - { - get; set; - } + public string? HooksUrl { get; set; } #nullable restore #else public string HooksUrl { get; set; } @@ -372,26 +242,17 @@ public string? HooksUrl /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } #endif /// The id property - public int? Id - { - get; set; - } + public int? Id { get; set; } /// The issue_comment_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? IssueCommentUrl - { - get; set; - } + public string? IssueCommentUrl { get; set; } #nullable restore #else public string IssueCommentUrl { get; set; } @@ -399,10 +260,7 @@ public string? IssueCommentUrl /// The issue_events_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? IssueEventsUrl - { - get; set; - } + public string? IssueEventsUrl { get; set; } #nullable restore #else public string IssueEventsUrl { get; set; } @@ -410,26 +268,17 @@ public string? IssueEventsUrl /// The issues_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? IssuesUrl - { - get; set; - } + public string? IssuesUrl { get; set; } #nullable restore #else public string IssuesUrl { get; set; } #endif /// The is_template property - public bool? IsTemplate - { - get; set; - } + public bool? IsTemplate { get; set; } /// The keys_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? KeysUrl - { - get; set; - } + public string? KeysUrl { get; set; } #nullable restore #else public string KeysUrl { get; set; } @@ -437,10 +286,7 @@ public string? KeysUrl /// The labels_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? LabelsUrl - { - get; set; - } + public string? LabelsUrl { get; set; } #nullable restore #else public string LabelsUrl { get; set; } @@ -448,10 +294,7 @@ public string? LabelsUrl /// The language property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Language - { - get; set; - } + public string? Language { get; set; } #nullable restore #else public string Language { get; set; } @@ -459,10 +302,7 @@ public string? Language /// The languages_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? LanguagesUrl - { - get; set; - } + public string? LanguagesUrl { get; set; } #nullable restore #else public string LanguagesUrl { get; set; } @@ -470,10 +310,7 @@ public string? LanguagesUrl /// License Simple #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableLicenseSimple? License - { - get; set; - } + public NullableLicenseSimple? License { get; set; } #nullable restore #else public NullableLicenseSimple License { get; set; } @@ -481,10 +318,7 @@ public NullableLicenseSimple? License /// The master_branch property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? MasterBranch - { - get; set; - } + public string? MasterBranch { get; set; } #nullable restore #else public string MasterBranch { get; set; } @@ -492,10 +326,7 @@ public string? MasterBranch /// The merges_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? MergesUrl - { - get; set; - } + public string? MergesUrl { get; set; } #nullable restore #else public string MergesUrl { get; set; } @@ -503,10 +334,7 @@ public string? MergesUrl /// The milestones_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? MilestonesUrl - { - get; set; - } + public string? MilestonesUrl { get; set; } #nullable restore #else public string MilestonesUrl { get; set; } @@ -514,10 +342,7 @@ public string? MilestonesUrl /// The mirror_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? MirrorUrl - { - get; set; - } + public string? MirrorUrl { get; set; } #nullable restore #else public string MirrorUrl { get; set; } @@ -525,10 +350,7 @@ public string? MirrorUrl /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -536,10 +358,7 @@ public string? Name /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? NodeId - { - get; set; - } + public string? NodeId { get; set; } #nullable restore #else public string NodeId { get; set; } @@ -547,31 +366,19 @@ public string? NodeId /// The notifications_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? NotificationsUrl - { - get; set; - } + public string? NotificationsUrl { get; set; } #nullable restore #else public string NotificationsUrl { get; set; } #endif /// The open_issues property - public int? OpenIssues - { - get; set; - } + public int? OpenIssues { get; set; } /// The open_issues_count property - public int? OpenIssuesCount - { - get; set; - } + public int? OpenIssuesCount { get; set; } /// A GitHub user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public NullableSimpleUser? Owner - { - get; set; - } + public NullableSimpleUser? Owner { get; set; } #nullable restore #else public NullableSimpleUser Owner { get; set; } @@ -579,79 +386,49 @@ public NullableSimpleUser? Owner /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RepoSearchResultItem_permissions? Permissions - { - get; set; - } + public RepoSearchResultItem_permissions? Permissions { get; set; } #nullable restore #else public RepoSearchResultItem_permissions Permissions { get; set; } #endif /// The private property - public bool? Private - { - get; set; - } + public bool? Private { get; set; } /// The pulls_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? PullsUrl - { - get; set; - } + public string? PullsUrl { get; set; } #nullable restore #else public string PullsUrl { get; set; } #endif /// The pushed_at property - public DateTimeOffset? PushedAt - { - get; set; - } + public DateTimeOffset? PushedAt { get; set; } /// The releases_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ReleasesUrl - { - get; set; - } + public string? ReleasesUrl { get; set; } #nullable restore #else public string ReleasesUrl { get; set; } #endif /// The score property - public double? Score - { - get; set; - } + public double? Score { get; set; } /// The size property - public int? Size - { - get; set; - } + public int? Size { get; set; } /// The ssh_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? SshUrl - { - get; set; - } + public string? SshUrl { get; set; } #nullable restore #else public string SshUrl { get; set; } #endif /// The stargazers_count property - public int? StargazersCount - { - get; set; - } + public int? StargazersCount { get; set; } /// The stargazers_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? StargazersUrl - { - get; set; - } + public string? StargazersUrl { get; set; } #nullable restore #else public string StargazersUrl { get; set; } @@ -659,10 +436,7 @@ public string? StargazersUrl /// The statuses_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? StatusesUrl - { - get; set; - } + public string? StatusesUrl { get; set; } #nullable restore #else public string StatusesUrl { get; set; } @@ -670,10 +444,7 @@ public string? StatusesUrl /// The subscribers_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? SubscribersUrl - { - get; set; - } + public string? SubscribersUrl { get; set; } #nullable restore #else public string SubscribersUrl { get; set; } @@ -681,10 +452,7 @@ public string? SubscribersUrl /// The subscription_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? SubscriptionUrl - { - get; set; - } + public string? SubscriptionUrl { get; set; } #nullable restore #else public string SubscriptionUrl { get; set; } @@ -692,10 +460,7 @@ public string? SubscriptionUrl /// The svn_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? SvnUrl - { - get; set; - } + public string? SvnUrl { get; set; } #nullable restore #else public string SvnUrl { get; set; } @@ -703,10 +468,7 @@ public string? SvnUrl /// The tags_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? TagsUrl - { - get; set; - } + public string? TagsUrl { get; set; } #nullable restore #else public string TagsUrl { get; set; } @@ -714,10 +476,7 @@ public string? TagsUrl /// The teams_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? TeamsUrl - { - get; set; - } + public string? TeamsUrl { get; set; } #nullable restore #else public string TeamsUrl { get; set; } @@ -725,10 +484,7 @@ public string? TeamsUrl /// The temp_clone_token property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? TempCloneToken - { - get; set; - } + public string? TempCloneToken { get; set; } #nullable restore #else public string TempCloneToken { get; set; } @@ -736,21 +492,15 @@ public string? TempCloneToken /// 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 #nullable enable - public List? Topics - { - get; set; - } + public List? Topics { get; set; } #nullable restore #else public List Topics { get; set; } @@ -758,26 +508,17 @@ public List? Topics /// The trees_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? TreesUrl - { - get; set; - } + public string? TreesUrl { get; set; } #nullable restore #else public string TreesUrl { get; set; } #endif /// The updated_at property - public DateTimeOffset? UpdatedAt - { - get; set; - } + public DateTimeOffset? UpdatedAt { get; set; } /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } @@ -785,50 +526,35 @@ public string? Url /// The repository visibility: public, private, or internal. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Visibility - { - get; set; - } + public string? Visibility { get; set; } #nullable restore #else public string Visibility { get; set; } #endif /// The watchers property - public int? Watchers - { - get; set; - } + public int? Watchers { get; set; } /// The watchers_count property - public int? WatchersCount - { - get; set; - } + public int? WatchersCount { get; set; } /// The web_commit_signoff_required property - public bool? WebCommitSignoffRequired - { - get; set; - } + public bool? WebCommitSignoffRequired { get; set; } /// /// Instantiates a new repoSearchResultItem and sets the default values. /// - public RepoSearchResultItem() - { + public RepoSearchResultItem() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static RepoSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static RepoSearchResultItem CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RepoSearchResultItem(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allow_auto_merge", n => { AllowAutoMerge = n.GetBoolValue(); } }, {"allow_forking", n => { AllowForking = n.GetBoolValue(); } }, @@ -910,7 +636,7 @@ public IDictionary> GetFieldDeserializers() {"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(RepoSearchResultItem_text_matches.CreateFromDiscriminatorValue)?.ToList(); } }, + {"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(); } }, @@ -925,8 +651,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allow_auto_merge", AllowAutoMerge); writer.WriteBoolValue("allow_forking", AllowForking); @@ -1008,7 +733,7 @@ public 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/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem_permissions.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem_permissions.cs index 276fa080f2..46154c48a8 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem_permissions.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem_permissions.cs @@ -1,63 +1,41 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class RepoSearchResultItem_permissions : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class RepoSearchResultItem_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; - } + public IDictionary AdditionalData { get; set; } /// The admin property - public bool? Admin - { - get; set; - } + public bool? Admin { get; set; } /// The maintain property - public bool? Maintain - { - get; set; - } + public bool? Maintain { get; set; } /// The pull property - public bool? Pull - { - get; set; - } + public bool? Pull { get; set; } /// The push property - public bool? Push - { - get; set; - } + public bool? Push { get; set; } /// The triage property - public bool? Triage - { - get; set; - } + public bool? Triage { get; set; } /// /// Instantiates a new repoSearchResultItem_permissions and sets the default values. /// - public RepoSearchResultItem_permissions() - { + public RepoSearchResultItem_permissions() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static RepoSearchResultItem_permissions CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static RepoSearchResultItem_permissions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RepoSearchResultItem_permissions(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"admin", n => { Admin = n.GetBoolValue(); } }, {"maintain", n => { Maintain = n.GetBoolValue(); } }, @@ -70,8 +48,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("admin", Admin); writer.WriteBoolValue("maintain", Maintain); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem_text_matches.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Repositories.cs similarity index 68% rename from src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem_text_matches.cs rename to src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Repositories.cs index d2dcace915..51b38ed3e4 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem_text_matches.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Repositories.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class RepoSearchResultItem_text_matches : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class Repositories : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The fragment property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Fragment - { - get; set; - } + public string? Fragment { get; set; } #nullable restore #else public string Fragment { get; set; } @@ -26,21 +19,15 @@ public string? Fragment /// 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 #nullable enable - public string? ObjectType - { - get; set; - } + public string? ObjectType { get; set; } #nullable restore #else public string ObjectType { get; set; } @@ -48,10 +35,7 @@ public string? ObjectType /// The object_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ObjectUrl - { - get; set; - } + public string? ObjectUrl { get; set; } #nullable restore #else public string ObjectUrl { get; set; } @@ -59,38 +43,32 @@ public string? ObjectUrl /// The property property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Property - { - get; set; - } + public string? Property { get; set; } #nullable restore #else public string Property { get; set; } #endif /// - /// Instantiates a new repoSearchResultItem_text_matches and sets the default values. + /// Instantiates a new repositories and sets the default values. /// - public RepoSearchResultItem_text_matches() - { + public Repositories() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static RepoSearchResultItem_text_matches CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static Repositories CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepoSearchResultItem_text_matches(); + return new Repositories(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"fragment", n => { Fragment = n.GetStringValue(); } }, - {"matches", n => { Matches = n.GetCollectionOfObjectValues(RepoSearchResultItem_text_matches_matches.CreateFromDiscriminatorValue)?.ToList(); } }, + {"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(); } }, @@ -100,11 +78,10 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public 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/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Repositories503Error.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Repositories503Error.cs index 8a0e1e257a..782bb7c33e 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Repositories503Error.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Repositories503Error.cs @@ -1,25 +1,18 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class Repositories503Error : ApiException, IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class Repositories503Error : 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; - } + public IDictionary AdditionalData { get; set; } /// The code property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Code - { - get; set; - } + public string? Code { get; set; } #nullable restore #else public string Code { get; set; } @@ -27,10 +20,7 @@ public string? Code /// The documentation_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DocumentationUrl - { - get; set; - } + public string? DocumentationUrl { get; set; } #nullable restore #else public string DocumentationUrl { get; set; } @@ -38,10 +28,7 @@ public string? DocumentationUrl /// The message property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? MessageEscaped - { - get; set; - } + public string? MessageEscaped { get; set; } #nullable restore #else public string MessageEscaped { get; set; } @@ -49,24 +36,21 @@ public string? MessageEscaped /// /// Instantiates a new repositories503Error and sets the default values. /// - public Repositories503Error() - { + public Repositories503Error() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static Repositories503Error CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static Repositories503Error CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new Repositories503Error(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"code", n => { Code = n.GetStringValue(); } }, {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, @@ -77,8 +61,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("documentation_url", DocumentationUrl); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem_text_matches_matches.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Repositories_matches.cs similarity index 71% rename from src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem_text_matches_matches.cs rename to src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Repositories_matches.cs index 69d768bf7a..2b6f2f886e 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/RepoSearchResultItem_text_matches_matches.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/Repositories_matches.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class RepoSearchResultItem_text_matches_matches : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class Repositories_matches : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The indices property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Indices - { - get; set; - } + public List? Indices { get; set; } #nullable restore #else public List Indices { get; set; } @@ -26,35 +19,29 @@ public List? Indices /// The text property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Text - { - get; set; - } + public string? Text { get; set; } #nullable restore #else public string Text { get; set; } #endif /// - /// Instantiates a new repoSearchResultItem_text_matches_matches and sets the default values. + /// Instantiates a new repositories_matches and sets the default values. /// - public RepoSearchResultItem_text_matches_matches() - { + public Repositories_matches() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static RepoSearchResultItem_text_matches_matches CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static Repositories_matches CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RepoSearchResultItem_text_matches_matches(); + return new Repositories_matches(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, {"text", n => { Text = n.GetStringValue(); } }, @@ -64,8 +51,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("indices", Indices); writer.WriteStringValue("text", Text); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/SimpleUser.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/SimpleUser.cs index 7e37595dc6..03a762f396 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/SimpleUser.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/SimpleUser.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// A GitHub user. /// - public class SimpleUser : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The avatar_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? AvatarUrl - { - get; set; - } + public string? AvatarUrl { get; set; } #nullable restore #else public string AvatarUrl { get; set; } @@ -29,10 +22,7 @@ public string? AvatarUrl /// The email property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Email - { - get; set; - } + public string? Email { get; set; } #nullable restore #else public string Email { get; set; } @@ -40,10 +30,7 @@ public string? Email /// The events_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? EventsUrl - { - get; set; - } + public string? EventsUrl { get; set; } #nullable restore #else public string EventsUrl { get; set; } @@ -51,10 +38,7 @@ public string? EventsUrl /// The followers_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? FollowersUrl - { - get; set; - } + public string? FollowersUrl { get; set; } #nullable restore #else public string FollowersUrl { get; set; } @@ -62,10 +46,7 @@ public string? FollowersUrl /// The following_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? FollowingUrl - { - get; set; - } + public string? FollowingUrl { get; set; } #nullable restore #else public string FollowingUrl { get; set; } @@ -73,10 +54,7 @@ public string? FollowingUrl /// The gists_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GistsUrl - { - get; set; - } + public string? GistsUrl { get; set; } #nullable restore #else public string GistsUrl { get; set; } @@ -84,10 +62,7 @@ public string? GistsUrl /// The gravatar_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? GravatarId - { - get; set; - } + public string? GravatarId { get; set; } #nullable restore #else public string GravatarId { get; set; } @@ -95,26 +70,17 @@ public string? GravatarId /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? HtmlUrl - { - get; set; - } + public string? HtmlUrl { get; set; } #nullable restore #else public string HtmlUrl { get; set; } #endif /// The id property - public int? Id - { - get; set; - } + public int? Id { get; set; } /// The login property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Login - { - get; set; - } + public string? Login { get; set; } #nullable restore #else public string Login { get; set; } @@ -122,10 +88,7 @@ public string? Login /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -133,10 +96,7 @@ public string? Name /// The node_id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? NodeId - { - get; set; - } + public string? NodeId { get; set; } #nullable restore #else public string NodeId { get; set; } @@ -144,10 +104,7 @@ public string? NodeId /// The organizations_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? OrganizationsUrl - { - get; set; - } + public string? OrganizationsUrl { get; set; } #nullable restore #else public string OrganizationsUrl { get; set; } @@ -155,10 +112,7 @@ public string? OrganizationsUrl /// The received_events_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ReceivedEventsUrl - { - get; set; - } + public string? ReceivedEventsUrl { get; set; } #nullable restore #else public string ReceivedEventsUrl { get; set; } @@ -166,26 +120,17 @@ public string? ReceivedEventsUrl /// The repos_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? ReposUrl - { - get; set; - } + public string? ReposUrl { get; set; } #nullable restore #else public string ReposUrl { get; set; } #endif /// The site_admin property - public bool? SiteAdmin - { - get; set; - } + public bool? SiteAdmin { get; set; } /// The starred_at property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? StarredAt - { - get; set; - } + public string? StarredAt { get; set; } #nullable restore #else public string StarredAt { get; set; } @@ -193,10 +138,7 @@ public string? StarredAt /// The starred_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? StarredUrl - { - get; set; - } + public string? StarredUrl { get; set; } #nullable restore #else public string StarredUrl { get; set; } @@ -204,10 +146,7 @@ public string? StarredUrl /// The subscriptions_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? SubscriptionsUrl - { - get; set; - } + public string? SubscriptionsUrl { get; set; } #nullable restore #else public string SubscriptionsUrl { get; set; } @@ -215,10 +154,7 @@ public string? SubscriptionsUrl /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Type - { - get; set; - } + public string? Type { get; set; } #nullable restore #else public string Type { get; set; } @@ -226,10 +162,7 @@ public string? Type /// The url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Url - { - get; set; - } + public string? Url { get; set; } #nullable restore #else public string Url { get; set; } @@ -237,24 +170,21 @@ public string? Url /// /// Instantiates a new simpleUser and sets the default values. /// - public SimpleUser() - { + public SimpleUser() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static SimpleUser CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static SimpleUser CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new SimpleUser(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, @@ -283,8 +213,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("avatar_url", AvatarUrl); writer.WriteStringValue("email", Email); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ValidationError.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ValidationError.cs index 4555ee65a2..fa0ffa9b59 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ValidationError.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ValidationError.cs @@ -1,28 +1,21 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// Validation Error /// - public class ValidationError : ApiException, IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The documentation_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DocumentationUrl - { - get; set; - } + public string? DocumentationUrl { get; set; } #nullable restore #else public string DocumentationUrl { get; set; } @@ -30,10 +23,7 @@ public string? DocumentationUrl /// 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; } @@ -41,35 +31,29 @@ public List? Errors /// The message property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? MessageEscaped - { - get; set; - } + public string? MessageEscaped { get; set; } #nullable restore #else public string MessageEscaped { get; set; } #endif /// - /// Instantiates a new ValidationError and sets the default values. + /// Instantiates a new validationError and sets the default values. /// - public ValidationError() - { + public ValidationError() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ValidationError CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static ValidationError CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ValidationError(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, {"errors", n => { Errors = n.GetCollectionOfObjectValues(ValidationError_errors.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -80,8 +64,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("documentation_url", DocumentationUrl); writer.WriteCollectionOfObjectValues("errors", Errors); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ValidationError_errors.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ValidationError_errors.cs index be02e9ca51..9edc561670 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ValidationError_errors.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/ValidationError_errors.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ - public class ValidationError_errors : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { + public class ValidationError_errors : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The code property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Code - { - get; set; - } + public string? Code { get; set; } #nullable restore #else public string Code { get; set; } @@ -26,26 +19,17 @@ public string? Code /// The field property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Field - { - get; set; - } + public string? Field { get; set; } #nullable restore #else public string Field { get; set; } #endif /// The index property - public int? Index - { - get; set; - } + public int? Index { get; set; } /// The message property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Message - { - get; set; - } + public string? Message { get; set; } #nullable restore #else public string Message { get; set; } @@ -53,10 +37,7 @@ public string? Message /// The resource property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Resource - { - get; set; - } + public string? Resource { get; set; } #nullable restore #else public string Resource { get; set; } @@ -64,118 +45,89 @@ public string? Resource /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithPath? Value - { - get; set; - } + public Repositories? Value { get; set; } #nullable restore #else - public WithPath Value { get; set; } + public Repositories Value { get; set; } #endif /// - /// Instantiates a new ValidationError_errors and sets the default values. + /// Instantiates a new validationError_errors and sets the default values. /// - public ValidationError_errors() - { + public ValidationError_errors() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ValidationError_errors CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static ValidationError_errors CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ValidationError_errors(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public 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(WithPath.CreateFromDiscriminatorValue); } }, + {"value", n => { Value = n.GetObjectValue(Repositories.CreateFromDiscriminatorValue); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); writer.WriteStringValue("field", Field); 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 string, integer, string + /// Composed type wrapper for classes integer, string, string /// - public class WithPath : IAdditionalDataHolder, IParsable - { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public class Repositories : IComposedTypeWrapper, IParsable { /// Composed type representation for type integer - public int? Integer - { - get; set; - } - /// Serialization hint for the current wrapper. + public int? Integer { get; set; } + /// Composed type representation for type string #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? SerializationHint - { - get; set; - } + public string? RepositoriesString { get; set; } #nullable restore #else - public string SerializationHint { get; set; } + public string RepositoriesString { get; set; } #endif /// Composed type representation for type string #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? String - { - get; set; - } + public string? String { get; set; } #nullable restore #else public string String { get; set; } #endif - /// - /// Instantiates a new WithPath and sets the default values. - /// - public WithPath() - { - AdditionalData = new Dictionary(); - } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static WithPath CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static Repositories CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); - var result = new WithPath(); - if (parseNode.GetIntValue() is int integerValue) - { + var result = new Repositories(); + if(parseNode.GetIntValue() is int integerValue) { result.Integer = integerValue; } - else if (parseNode.GetStringValue() is string stringValue) - { + else if(parseNode.GetStringValue() is string repositoriesStringValue) { + result.RepositoriesString = repositoriesStringValue; + } + else if(parseNode.GetStringValue() is string stringValue) { result.String = stringValue; } return result; @@ -183,26 +135,24 @@ public static WithPath CreateFromDiscriminatorValue(IParseNode parseNode) /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary>(); } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - if (Integer != null) - { + if(Integer != null) { writer.WriteIntValue(null, Integer); } - else if (String != null) - { + else if(RepositoriesString != null) { + writer.WriteStringValue(null, RepositoriesString); + } + else if(String != null) { writer.WriteStringValue(null, String); } - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/WithPathResponseMember1.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/WithPathResponseMember1.cs index 1ae95aa1df..365a75f2b3 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/WithPathResponseMember1.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Models/WithPathResponseMember1.cs @@ -1,51 +1,42 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models { /// /// A list of directory items /// - public class WithPathResponseMember1 : IAdditionalDataHolder, IParsable - { + public class WithPathResponseMember1 : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// /// Instantiates a new WithPathResponseMember1 and sets the default values. /// - public WithPathResponseMember1() - { + public WithPathResponseMember1() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static WithPathResponseMember1 CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static WithPathResponseMember1 CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new WithPathResponseMember1(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { - return new Dictionary> - { + public IDictionary> GetFieldDeserializers() { + return new Dictionary> { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/ContentsRequestBuilder.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/ContentsRequestBuilder.cs index dfff266672..6bd1ee7bdb 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/ContentsRequestBuilder.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/ContentsRequestBuilder.cs @@ -1,42 +1,36 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item; -using Microsoft.Kiota.Abstractions; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents { /// /// Builds and executes requests for operations under \repos\{owner}\{repo}\contents /// - public class ContentsRequestBuilder : BaseRequestBuilder - { + public class ContentsRequestBuilder : BaseRequestBuilder { /// Gets an item from the Kiota.Builder.SearchProviders.GitHub.GitHubClient.repos.item.item.contents.item collection - public WithPathItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("path", position); - return new WithPathItemRequestBuilder(urlTplParams, RequestAdapter); - } - } + /// path parameter + public WithPathItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("path", position); + return new WithPathItemRequestBuilder(urlTplParams, RequestAdapter); + } } /// /// Instantiates a new ContentsRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ContentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}/contents", pathParameters) - { + public ContentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}/contents", pathParameters) { } /// /// Instantiates a new ContentsRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}/contents", rawUrl) - { + public ContentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}/contents", rawUrl) { } } } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody.cs index 376ed5ef41..fef22e8831 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item -{ - public class WithPathDeleteRequestBody : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item { + public class WithPathDeleteRequestBody : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// object containing information about the author. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithPathDeleteRequestBody_author? Author - { - get; set; - } + public WithPathDeleteRequestBody_author? Author { get; set; } #nullable restore #else public WithPathDeleteRequestBody_author Author { get; set; } @@ -26,10 +19,7 @@ public WithPathDeleteRequestBody_author? Author /// The branch name. Default: the repository’s default branch #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Branch - { - get; set; - } + public string? Branch { get; set; } #nullable restore #else public string Branch { get; set; } @@ -37,10 +27,7 @@ public string? Branch /// object containing information about the committer. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public WithPathDeleteRequestBody_committer? Committer - { - get; set; - } + public WithPathDeleteRequestBody_committer? Committer { get; set; } #nullable restore #else public WithPathDeleteRequestBody_committer Committer { get; set; } @@ -48,10 +35,7 @@ public WithPathDeleteRequestBody_committer? Committer /// The commit message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Message - { - get; set; - } + public string? Message { get; set; } #nullable restore #else public string Message { get; set; } @@ -59,10 +43,7 @@ public string? Message /// The blob SHA of the file being deleted. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Sha - { - get; set; - } + public string? Sha { get; set; } #nullable restore #else public string Sha { get; set; } @@ -70,24 +51,21 @@ public string? Sha /// /// Instantiates a new WithPathDeleteRequestBody and sets the default values. /// - public WithPathDeleteRequestBody() - { + public WithPathDeleteRequestBody() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static WithPathDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static WithPathDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new WithPathDeleteRequestBody(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"author", n => { Author = n.GetObjectValue(WithPathDeleteRequestBody_author.CreateFromDiscriminatorValue); } }, {"branch", n => { Branch = n.GetStringValue(); } }, @@ -100,8 +78,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("author", Author); writer.WriteStringValue("branch", Branch); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_author.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_author.cs index 12c1ed74d1..4186b60ae6 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_author.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_author.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item { /// /// object containing information about the author. /// - public class WithPathDeleteRequestBody_author : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The email of the author (or committer) of the commit #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Email - { - get; set; - } + public string? Email { get; set; } #nullable restore #else public string Email { get; set; } @@ -29,10 +22,7 @@ public string? Email /// The name of the author (or committer) of the commit #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -40,24 +30,21 @@ public string? Name /// /// Instantiates a new WithPathDeleteRequestBody_author and sets the default values. /// - public WithPathDeleteRequestBody_author() - { + public WithPathDeleteRequestBody_author() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static WithPathDeleteRequestBody_author CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static WithPathDeleteRequestBody_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new WithPathDeleteRequestBody_author(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"email", n => { Email = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -67,8 +54,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("email", Email); writer.WriteStringValue("name", Name); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_committer.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_committer.cs index a386a26f2f..fb4c5d3063 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_committer.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathDeleteRequestBody_committer.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item { /// /// object containing information about the committer. /// - public class WithPathDeleteRequestBody_committer : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The email of the author (or committer) of the commit #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Email - { - get; set; - } + public string? Email { get; set; } #nullable restore #else public string Email { get; set; } @@ -29,10 +22,7 @@ public string? Email /// The name of the author (or committer) of the commit #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -40,24 +30,21 @@ public string? Name /// /// Instantiates a new WithPathDeleteRequestBody_committer and sets the default values. /// - public WithPathDeleteRequestBody_committer() - { + public WithPathDeleteRequestBody_committer() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static WithPathDeleteRequestBody_committer CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static WithPathDeleteRequestBody_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new WithPathDeleteRequestBody_committer(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"email", n => { Email = n.GetStringValue(); } }, {"name", n => { Name = n.GetStringValue(); } }, @@ -67,8 +54,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("email", Email); writer.WriteStringValue("name", Name); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathItemRequestBuilder.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathItemRequestBuilder.cs index 55bebd7ba2..40be2be9c2 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathItemRequestBuilder.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathItemRequestBuilder.cs @@ -1,12 +1,13 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; -using System.Threading; using System.Threading.Tasks; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Serialization; +using System.Threading; +using System; namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item { /// @@ -31,8 +32,8 @@ 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/rest/reference/repos/#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 + /// 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/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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -53,32 +54,32 @@ public async Task DeleteAsync(WithPathDeleteRequestBody body, Action {"422", ValidationError.CreateFromDiscriminatorValue}, {"503", FileCommit503Error.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, FileCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + return await RequestAdapter.SendAsync(requestInfo, FileCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. Files and symlinks support [a custom media type](https://docs.github.com/rest/reference/repos#custom-media-types) forretrieving the raw content or rendered HTML (when supported). All content types support [a custom mediatype](https://docs.github.com/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistentobject format.**Notes**:* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/rest/reference/git#trees).* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git TreesAPI](https://docs.github.com/rest/reference/git#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.#### Size limitsIf 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](https://docs.github.com/rest/repos/contents#custom-media-types-for-repository-contents) are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an empty string 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.#### If the content is a directoryThe 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 in API v3 [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 If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then theAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object describing the symlink itself.#### If the content is a submoduleThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specificcommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks outthe submodule at that specific commit.If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and thegithub.com URLs (`html_url` and `_links["html"]`) will have null values. - /// API method documentation + /// Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. Files and symlinks support [a custom media type](https://docs.github.com/rest/overview/media-types) forretrieving the raw content or rendered HTML (when supported). All content types support [a custom mediatype](https://docs.github.com/rest/overview/media-types) to ensure the content is returned in a consistentobject format.**Notes**:* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/rest/git/trees#get-a-tree).* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git TreesAPI](https://docs.github.com/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. Size limits: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](https://docs.github.com/rest/repos/contents#custom-media-types-for-repository-contents) are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an empty string 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. 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 in API v3 [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: If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then theAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object describing the symlink itself. If the content is a submodule:The `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specificcommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks outthe submodule at that specific commit.If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and thegithub.com URLs (`html_url` and `_links["html"]`) will have null values. + /// API method documentation /// /// 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 errorMapping = new Dictionary> { {"403", BasicError.CreateFromDiscriminatorValue}, {"404", BasicError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, WithPathResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + return await RequestAdapter.SendAsync(requestInfo, ContentFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.**Note:** If you use this endpoint and the "[Delete a file](https://docs.github.com/rest/reference/repos/#delete-file)" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead. - /// API method documentation + /// Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `repo` scope to use this endpoint. If you want to modify files in the `.github/workflows` directory, you must authenticate using an access token with the `workflow` scope.**Note:** If you use this endpoint and the "[Delete a file](https://docs.github.com/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. + /// API method documentation /// /// The request body /// Cancellation token to use when cancelling requests @@ -98,10 +99,10 @@ public async Task PutAsync(WithPathPutRequestBody body, Action(requestInfo, FileCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + return await RequestAdapter.SendAsync(requestInfo, 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/rest/reference/repos/#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. + /// 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/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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,7 +133,7 @@ public RequestInformation ToDeleteRequestInformation(WithPathDeleteRequestBody b return requestInfo; } /// - /// Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. Files and symlinks support [a custom media type](https://docs.github.com/rest/reference/repos#custom-media-types) forretrieving the raw content or rendered HTML (when supported). All content types support [a custom mediatype](https://docs.github.com/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistentobject format.**Notes**:* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/rest/reference/git#trees).* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git TreesAPI](https://docs.github.com/rest/reference/git#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.#### Size limitsIf 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](https://docs.github.com/rest/repos/contents#custom-media-types-for-repository-contents) are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an empty string 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.#### If the content is a directoryThe 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 in API v3 [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 If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then theAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object describing the symlink itself.#### If the content is a submoduleThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specificcommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks outthe submodule at that specific commit.If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and thegithub.com URLs (`html_url` and `_links["html"]`) will have null values. + /// Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. Files and symlinks support [a custom media type](https://docs.github.com/rest/overview/media-types) forretrieving the raw content or rendered HTML (when supported). All content types support [a custom mediatype](https://docs.github.com/rest/overview/media-types) to ensure the content is returned in a consistentobject format.**Notes**:* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/rest/git/trees#get-a-tree).* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git TreesAPI](https://docs.github.com/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. Size limits: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](https://docs.github.com/rest/repos/contents#custom-media-types-for-repository-contents) are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an empty string 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. 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 in API v3 [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: If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then theAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object describing the symlink itself. If the content is a submodule:The `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specificcommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks outthe submodule at that specific commit.If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and thegithub.com URLs (`html_url` and `_links["html"]`) will have null values. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -161,7 +162,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `workflow` scope to use this endpoint.**Note:** If you use this endpoint and the "[Delete a file](https://docs.github.com/rest/reference/repos/#delete-file)" endpoint in parallel, the concurrent requests will conflict and you will receive errors. You must use these endpoints serially instead. + /// Creates a new file or replaces an existing file in a repository. You must authenticate using an access token with the `repo` scope to use this endpoint. If you want to modify files in the `.github/workflows` directory, you must authenticate using an access token with the `workflow` scope.**Note:** If you use this endpoint and the "[Delete a file](https://docs.github.com/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. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,6 +193,14 @@ public RequestInformation ToPutRequestInformation(WithPathPutRequestBody body, A return requestInfo; } /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public WithPathItemRequestBuilder WithUrl(string rawUrl) + { + return new WithPathItemRequestBuilder(rawUrl, RequestAdapter); + } + /// /// Configuration for the request such as headers, query parameters, and middleware options. /// public class WithPathItemRequestBuilderDeleteRequestConfiguration @@ -216,19 +225,21 @@ public WithPathItemRequestBuilderDeleteRequestConfiguration() } } /// - /// Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. Files and symlinks support [a custom media type](https://docs.github.com/rest/reference/repos#custom-media-types) forretrieving the raw content or rendered HTML (when supported). All content types support [a custom mediatype](https://docs.github.com/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistentobject format.**Notes**:* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/rest/reference/git#trees).* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git TreesAPI](https://docs.github.com/rest/reference/git#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.#### Size limitsIf 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](https://docs.github.com/rest/repos/contents#custom-media-types-for-repository-contents) are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an empty string 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.#### If the content is a directoryThe 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 in API v3 [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 If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then theAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object describing the symlink itself.#### If the content is a submoduleThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specificcommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks outthe submodule at that specific commit.If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and thegithub.com URLs (`html_url` and `_links["html"]`) will have null values. + /// Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit`:path`, you will receive the contents of the repository's root directory. See the description below regarding what the API response includes for directories. Files and symlinks support [a custom media type](https://docs.github.com/rest/overview/media-types) forretrieving the raw content or rendered HTML (when supported). All content types support [a custom mediatype](https://docs.github.com/rest/overview/media-types) to ensure the content is returned in a consistentobject format.**Notes**:* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/rest/git/trees#get-a-tree).* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git TreesAPI](https://docs.github.com/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. Size limits: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](https://docs.github.com/rest/repos/contents#custom-media-types-for-repository-contents) are supported. Both will work as normal, except that when using the `object` media type, the `content` field will be an empty string 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. 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 in API v3 [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: If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then theAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object describing the symlink itself. If the content is a submodule:The `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specificcommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks outthe submodule at that specific commit.If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and thegithub.com URLs (`html_url` and `_links["html"]`) will have null values. /// public class WithPathItemRequestBuilderGetQueryParameters { /// The name of the commit/branch/tag. Default: the repository’s default branch. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable + [QueryParameter("ref")] public string? Ref { get; set; } #nullable restore #else + [QueryParameter("ref")] public string Ref { get; set; } #endif } @@ -283,15 +294,10 @@ public WithPathItemRequestBuilderPutRequestConfiguration() } } /// - /// Composed type wrapper for classes WithPathResponseMember1, contentFile, contentSymlink, contentSubmodule + /// Composed type wrapper for classes contentFile, contentSubmodule, contentSymlink, WithPathResponseMember1 /// - public class WithPathResponse : IAdditionalDataHolder, IParsable + public class WithPathResponse : IComposedTypeWrapper, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } /// Composed type representation for type contentFile #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -324,17 +330,6 @@ public Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models.ContentSymlink? #nullable restore #else public Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models.ContentSymlink ContentSymlink { get; set; } -#endif - /// Serialization hint for the current wrapper. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SerializationHint - { - get; set; - } -#nullable restore -#else - public string SerializationHint { get; set; } #endif /// Composed type representation for type WithPathResponseMember1 #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -347,13 +342,6 @@ public Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models.WithPathResponse #else public Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models.WithPathResponseMember1 WithPathResponseMember1 { get; set; } #endif - /// - /// Instantiates a new WithPathResponse and sets the default values. - /// - public WithPathResponse() - { - AdditionalData = new Dictionary(); - } /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -427,7 +415,6 @@ public void Serialize(ISerializationWriter writer) { writer.WriteObjectValue(null, WithPathResponseMember1); } - writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody.cs index d4fa012e50..72181795ee 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item -{ - public class WithPathPutRequestBody : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item { + public class WithPathPutRequestBody : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// 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 WithPathPutRequestBody_author? Author { get; set; } #nullable restore #else public WithPathPutRequestBody_author Author { get; set; } @@ -26,10 +19,7 @@ public WithPathPutRequestBody_author? Author /// The branch name. Default: the repository’s default branch. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Branch - { - get; set; - } + public string? Branch { get; set; } #nullable restore #else public string Branch { get; set; } @@ -37,10 +27,7 @@ public string? Branch /// 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 WithPathPutRequestBody_committer? Committer { get; set; } #nullable restore #else public WithPathPutRequestBody_committer Committer { get; set; } @@ -48,10 +35,7 @@ public WithPathPutRequestBody_committer? Committer /// The new file content, using Base64 encoding. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Content - { - get; set; - } + public string? Content { get; set; } #nullable restore #else public string Content { get; set; } @@ -59,10 +43,7 @@ public string? Content /// The commit message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Message - { - get; set; - } + public string? Message { get; set; } #nullable restore #else public string Message { get; set; } @@ -70,10 +51,7 @@ public string? Message /// **Required if you are updating a file**. The blob SHA of the file being replaced. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Sha - { - get; set; - } + public string? Sha { get; set; } #nullable restore #else public string Sha { get; set; } @@ -81,24 +59,21 @@ public string? Sha /// /// Instantiates a new WithPathPutRequestBody and sets the default values. /// - public WithPathPutRequestBody() - { + public WithPathPutRequestBody() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static WithPathPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static WithPathPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new WithPathPutRequestBody(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"author", n => { Author = n.GetObjectValue(WithPathPutRequestBody_author.CreateFromDiscriminatorValue); } }, {"branch", n => { Branch = n.GetStringValue(); } }, @@ -112,8 +87,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("author", Author); writer.WriteStringValue("branch", Branch); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_author.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_author.cs index 594b5ae1ae..5548f8f2d9 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_author.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_author.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.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 - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The date property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Date - { - get; set; - } + public string? Date { get; set; } #nullable restore #else public string Date { get; set; } @@ -29,10 +22,7 @@ public string? Date /// The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Email - { - get; set; - } + public string? Email { get; set; } #nullable restore #else public string Email { get; set; } @@ -40,10 +30,7 @@ public string? Email /// The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -51,24 +38,21 @@ public string? Name /// /// Instantiates a new WithPathPutRequestBody_author and sets the default values. /// - public WithPathPutRequestBody_author() - { + public WithPathPutRequestBody_author() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static WithPathPutRequestBody_author CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static WithPathPutRequestBody_author CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new WithPathPutRequestBody_author(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"date", n => { Date = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, @@ -79,8 +63,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("date", Date); writer.WriteStringValue("email", Email); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_committer.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_committer.cs index 87feebd36e..0338b76a72 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_committer.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Contents/Item/WithPathPutRequestBody_committer.cs @@ -1,27 +1,20 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents.Item { /// /// The person that committed the file. Default: the authenticated user. /// - public class WithPathPutRequestBody_committer : IAdditionalDataHolder, IParsable - { + public 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; - } + public IDictionary AdditionalData { get; set; } /// The date property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Date - { - get; set; - } + public string? Date { get; set; } #nullable restore #else public string Date { get; set; } @@ -29,10 +22,7 @@ public string? Date /// The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Email - { - get; set; - } + public string? Email { get; set; } #nullable restore #else public string Email { get; set; } @@ -40,10 +30,7 @@ public string? Email /// The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } @@ -51,24 +38,21 @@ public string? Name /// /// Instantiates a new WithPathPutRequestBody_committer and sets the default values. /// - public WithPathPutRequestBody_committer() - { + public WithPathPutRequestBody_committer() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static WithPathPutRequestBody_committer CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static WithPathPutRequestBody_committer CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new WithPathPutRequestBody_committer(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"date", n => { Date = n.GetStringValue(); } }, {"email", n => { Email = n.GetStringValue(); } }, @@ -79,8 +63,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("date", Date); writer.WriteStringValue("email", Email); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesPostRequestBody.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesPostRequestBody.cs index 494e03e1f8..1f92903345 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesPostRequestBody.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesPostRequestBody.cs @@ -1,24 +1,17 @@ -using System; +// +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Releases -{ - public class ReleasesPostRequestBody : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Releases { + public class ReleasesPostRequestBody : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// Text describing the contents of the tag. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Body - { - get; set; - } + public string? Body { get; set; } #nullable restore #else public string Body { get; set; } @@ -26,52 +19,31 @@ public string? Body /// If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see "[Managing categories for discussions in your repository](https://docs.github.com/discussions/managing-discussions-for-your-community/managing-categories-for-discussions-in-your-repository)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? DiscussionCategoryName - { - get; set; - } + public string? DiscussionCategoryName { get; set; } #nullable restore #else public string DiscussionCategoryName { get; set; } #endif /// `true` to create a draft (unpublished) release, `false` to create a published one. - public bool? Draft - { - get; set; - } + public bool? Draft { get; set; } /// Whether to automatically generate the name and body for this release. If `name` is specified, the specified name will be used; otherwise, a name will be automatically generated. If `body` is specified, the body will be pre-pended to the automatically generated notes. - public bool? GenerateReleaseNotes - { - get; set; - } + public bool? GenerateReleaseNotes { get; set; } /// Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version. - public ReleasesPostRequestBody_make_latest? MakeLatest - { - get; set; - } + public ReleasesPostRequestBody_make_latest? MakeLatest { get; set; } /// The name of the release. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Name - { - get; set; - } + public string? Name { get; set; } #nullable restore #else public string Name { get; set; } #endif /// `true` to identify the release as a prerelease. `false` to identify the release as a full release. - public bool? Prerelease - { - get; set; - } + public bool? Prerelease { get; set; } /// The name of the tag. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? TagName - { - get; set; - } + public string? TagName { get; set; } #nullable restore #else public string TagName { get; set; } @@ -79,10 +51,7 @@ public string? TagName /// Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? TargetCommitish - { - get; set; - } + public string? TargetCommitish { get; set; } #nullable restore #else public string TargetCommitish { get; set; } @@ -90,8 +59,7 @@ public string? TargetCommitish /// /// Instantiates a new releasesPostRequestBody and sets the default values. /// - public ReleasesPostRequestBody() - { + public ReleasesPostRequestBody() { AdditionalData = new Dictionary(); MakeLatest = ReleasesPostRequestBody_make_latest.True; } @@ -99,16 +67,14 @@ public ReleasesPostRequestBody() /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static ReleasesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static ReleasesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new ReleasesPostRequestBody(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"body", n => { Body = n.GetStringValue(); } }, {"discussion_category_name", n => { DiscussionCategoryName = n.GetStringValue(); } }, @@ -125,8 +91,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("body", Body); writer.WriteStringValue("discussion_category_name", DiscussionCategoryName); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesPostRequestBody_make_latest.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesPostRequestBody_make_latest.cs index c509242122..454bb67049 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesPostRequestBody_make_latest.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesPostRequestBody_make_latest.cs @@ -1,10 +1,9 @@ -using System; +// using System.Runtime.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Releases -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Releases { /// Specifies whether this release should be set as the latest release for the repository. Drafts and prereleases cannot be set as latest. Defaults to `true` for newly published releases. `legacy` specifies that the latest release should be determined based on the release creation date and higher semantic version. - public enum ReleasesPostRequestBody_make_latest - { + public enum ReleasesPostRequestBody_make_latest { [EnumMember(Value = "true")] True, [EnumMember(Value = "false")] diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesRequestBuilder.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesRequestBuilder.cs index dadb04e922..7cb33bdce9 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesRequestBuilder.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/Releases/ReleasesRequestBuilder.cs @@ -1,45 +1,41 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; -using System.Threading; using System.Threading.Tasks; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Releases -{ +using System.Threading; +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Releases { /// /// Builds and executes requests for operations under \repos\{owner}\{repo}\releases /// - public class ReleasesRequestBuilder : BaseRequestBuilder - { + public class ReleasesRequestBuilder : BaseRequestBuilder { /// /// Instantiates a new ReleasesRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ReleasesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}/releases{?per_page*,page*}", pathParameters) - { + public ReleasesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}/releases{?per_page*,page*}", pathParameters) { } /// /// Instantiates a new ReleasesRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ReleasesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}/releases{?per_page*,page*}", rawUrl) - { + public ReleasesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}/releases{?per_page*,page*}", rawUrl) { } /// - /// This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://docs.github.com/rest/reference/repos#list-repository-tags).Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. - /// API method documentation + /// This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://docs.github.com/rest/repos/repos#list-repository-tags).Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. + /// API method documentation /// /// 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) { @@ -48,7 +44,7 @@ public async Task> GetAsync(Action> { {"404", BasicError.CreateFromDiscriminatorValue}, }; - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Release.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Release.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); return collectionResult?.ToList(); } /// @@ -60,8 +56,7 @@ 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 PostAsync(ReleasesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) - { + public async Task PostAsync(ReleasesPostRequestBody body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else public async Task PostAsync(ReleasesPostRequestBody body, Action requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -72,29 +67,26 @@ public async Task PostAsync(ReleasesPostRequestBody body, Action(requestInfo, Release.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + return await RequestAdapter.SendAsync(requestInfo, Release.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://docs.github.com/rest/reference/repos#list-repository-tags).Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. + /// This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://docs.github.com/rest/repos/repos#list-repository-tags).Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. /// /// 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) { #endif - var requestInfo = new RequestInformation - { + var requestInfo = new RequestInformation { HttpMethod = Method.GET, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; requestInfo.Headers.Add("Accept", "application/json"); - if (requestConfiguration != null) - { + if (requestConfiguration != null) { var requestConfig = new ReleasesRequestBuilderGetRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddQueryParameters(requestConfig.QueryParameters); @@ -110,23 +102,20 @@ 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(ReleasesPostRequestBody body, Action? requestConfiguration = default) - { + public RequestInformation ToPostRequestInformation(ReleasesPostRequestBody body, Action? requestConfiguration = default) { #nullable restore #else public RequestInformation ToPostRequestInformation(ReleasesPostRequestBody body, Action requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation - { + var requestInfo = new RequestInformation { HttpMethod = Method.POST, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; requestInfo.Headers.Add("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - if (requestConfiguration != null) - { + if (requestConfiguration != null) { var requestConfig = new ReleasesRequestBuilderPostRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddRequestOptions(requestConfig.Options); @@ -135,43 +124,37 @@ public RequestInformation ToPostRequestInformation(ReleasesPostRequestBody body, return requestInfo; } /// - /// This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://docs.github.com/rest/reference/repos#list-repository-tags).Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// The raw URL to use for the request builder. + public ReleasesRequestBuilder WithUrl(string rawUrl) { + return new ReleasesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://docs.github.com/rest/repos/repos#list-repository-tags).Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. /// - public class ReleasesRequestBuilderGetQueryParameters - { + public class ReleasesRequestBuilderGetQueryParameters { /// Page number of the results to fetch. - public int? Page - { - get; set; - } + [QueryParameter("page")] + public int? Page { get; set; } /// The number of results per page (max 100). - public int? Per_page - { - get; set; - } + [QueryParameter("per_page")] + public int? PerPage { get; set; } } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class ReleasesRequestBuilderGetRequestConfiguration - { + public class ReleasesRequestBuilderGetRequestConfiguration { /// Request headers - public RequestHeaders Headers - { - get; set; - } + public RequestHeaders Headers { get; set; } /// Request options - public IList Options - { - get; set; - } + public IList Options { get; set; } /// Request query parameters public ReleasesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new ReleasesRequestBuilderGetQueryParameters(); /// /// Instantiates a new releasesRequestBuilderGetRequestConfiguration and sets the default values. /// - public ReleasesRequestBuilderGetRequestConfiguration() - { + public ReleasesRequestBuilderGetRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } @@ -179,23 +162,15 @@ public ReleasesRequestBuilderGetRequestConfiguration() /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class ReleasesRequestBuilderPostRequestConfiguration - { + public class ReleasesRequestBuilderPostRequestConfiguration { /// Request headers - public RequestHeaders Headers - { - get; set; - } + public RequestHeaders Headers { get; set; } /// Request options - public IList Options - { - get; set; - } + public IList Options { get; set; } /// /// Instantiates a new releasesRequestBuilderPostRequestConfiguration and sets the default values. /// - public ReleasesRequestBuilderPostRequestConfiguration() - { + public ReleasesRequestBuilderPostRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/WithRepoItemRequestBuilder.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/WithRepoItemRequestBuilder.cs index 1597e63ffd..7620116498 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/WithRepoItemRequestBuilder.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/Item/WithRepoItemRequestBuilder.cs @@ -1,28 +1,23 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents; +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Releases; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Contents; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item.Releases; -using Microsoft.Kiota.Abstractions; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item { /// /// Builds and executes requests for operations under \repos\{owner}\{repo} /// - public class WithRepoItemRequestBuilder : BaseRequestBuilder - { + public class WithRepoItemRequestBuilder : BaseRequestBuilder { /// The contents property - public ContentsRequestBuilder Contents - { - get => + public ContentsRequestBuilder Contents { get => new ContentsRequestBuilder(PathParameters, RequestAdapter); } /// The releases property - public ReleasesRequestBuilder Releases - { - get => + public ReleasesRequestBuilder Releases { get => new ReleasesRequestBuilder(PathParameters, RequestAdapter); } /// @@ -30,16 +25,14 @@ public ReleasesRequestBuilder Releases /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithRepoItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}", pathParameters) - { + public WithRepoItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}", pathParameters) { } /// /// Instantiates a new WithRepoItemRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithRepoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}", rawUrl) - { + public WithRepoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}/{repo}", rawUrl) { } } } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/WithOwnerItemRequestBuilder.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/WithOwnerItemRequestBuilder.cs index 6346ae6330..88482426a1 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/WithOwnerItemRequestBuilder.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/Item/WithOwnerItemRequestBuilder.cs @@ -1,42 +1,36 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item.Item; -using Microsoft.Kiota.Abstractions; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item { /// /// Builds and executes requests for operations under \repos\{owner} /// - public class WithOwnerItemRequestBuilder : BaseRequestBuilder - { + public class WithOwnerItemRequestBuilder : BaseRequestBuilder { /// Gets an item from the Kiota.Builder.SearchProviders.GitHub.GitHubClient.repos.item.item collection - public WithRepoItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("repo", position); - return new WithRepoItemRequestBuilder(urlTplParams, RequestAdapter); - } - } + /// Unique identifier of the item + public WithRepoItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("repo", position); + return new WithRepoItemRequestBuilder(urlTplParams, RequestAdapter); + } } /// /// Instantiates a new WithOwnerItemRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithOwnerItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}", pathParameters) - { + public WithOwnerItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}", pathParameters) { } /// /// Instantiates a new WithOwnerItemRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithOwnerItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}", rawUrl) - { + public WithOwnerItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner}", rawUrl) { } } } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/ReposRequestBuilder.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/ReposRequestBuilder.cs index 8f6b4f83f7..89e0c55399 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/ReposRequestBuilder.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Repos/ReposRequestBuilder.cs @@ -1,42 +1,36 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos.Item; -using Microsoft.Kiota.Abstractions; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Repos { /// /// Builds and executes requests for operations under \repos /// - public class ReposRequestBuilder : BaseRequestBuilder - { + public class ReposRequestBuilder : BaseRequestBuilder { /// Gets an item from the Kiota.Builder.SearchProviders.GitHub.GitHubClient.repos.item collection - public WithOwnerItemRequestBuilder this[string position] - { - get - { - var urlTplParams = new Dictionary(PathParameters); - if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("owner", position); - return new WithOwnerItemRequestBuilder(urlTplParams, RequestAdapter); - } - } + /// Unique identifier of the item + public WithOwnerItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("owner", position); + return new WithOwnerItemRequestBuilder(urlTplParams, RequestAdapter); + } } /// /// Instantiates a new ReposRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ReposRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos", pathParameters) - { + public ReposRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos", pathParameters) { } /// /// Instantiates a new ReposRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ReposRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos", rawUrl) - { + public ReposRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos", rawUrl) { } } } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/Repositories/RepositoriesRequestBuilder.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/Repositories/RepositoriesRequestBuilder.cs index f60dba027b..1f6e26600b 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/Repositories/RepositoriesRequestBuilder.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/Repositories/RepositoriesRequestBuilder.cs @@ -1,45 +1,41 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; -using System.Threading; using System.Threading.Tasks; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Search.Repositories -{ +using System.Threading; +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Search.Repositories { /// /// Builds and executes requests for operations under \search\repositories /// - public class RepositoriesRequestBuilder : BaseRequestBuilder - { + public class RepositoriesRequestBuilder : BaseRequestBuilder { /// /// Instantiates a new RepositoriesRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RepositoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/search/repositories{?q*,sort*,order*,per_page*,page*}", pathParameters) - { + public RepositoriesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/search/repositories{?q*,sort*,order*,per_page*,page*}", pathParameters) { } /// /// Instantiates a new RepositoriesRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/search/repositories{?q*,sort*,order*,per_page*,page*}", rawUrl) - { + public RepositoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/search/repositories{?q*,sort*,order*,per_page*,page*}", rawUrl) { } /// - /// Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata).For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:`q=tetris+language:assembly&sort=stars&order=desc`This query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results. - /// API method documentation + /// Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:`q=tetris+language:assembly&sort=stars&order=desc`This query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results. + /// API method documentation /// /// 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) { @@ -49,29 +45,26 @@ public async Task GetAsync(Action(requestInfo, RepositoriesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + return await RequestAdapter.SendAsync(requestInfo, RepositoriesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata).For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:`q=tetris+language:assembly&sort=stars&order=desc`This query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results. + /// Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:`q=tetris+language:assembly&sort=stars&order=desc`This query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results. /// /// 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) { #endif - var requestInfo = new RequestInformation - { + var requestInfo = new RequestInformation { HttpMethod = Method.GET, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; requestInfo.Headers.Add("Accept", "application/json"); - if (requestConfiguration != null) - { + if (requestConfiguration != null) { var requestConfig = new RepositoriesRequestBuilderGetRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddQueryParameters(requestConfig.QueryParameters); @@ -81,76 +74,67 @@ public RequestInformation ToGetRequestInformation(Action - /// Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata).For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:`q=tetris+language:assembly&sort=stars&order=desc`This query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results. + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - public class RepositoriesRequestBuilderGetQueryParameters - { + /// The raw URL to use for the request builder. + public RepositoriesRequestBuilder WithUrl(string rawUrl) { + return new RepositoriesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/search/search#text-match-metadata).For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:`q=tetris+language:assembly&sort=stars&order=desc`This query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results. + /// + public class RepositoriesRequestBuilderGetQueryParameters { /// Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Order - { - get; set; - } + [QueryParameter("order")] + public string? Order { get; set; } #nullable restore #else + [QueryParameter("order")] public string Order { get; set; } #endif /// Page number of the results to fetch. - public int? Page - { - get; set; - } + [QueryParameter("page")] + public int? Page { get; set; } /// The number of results per page (max 100). - public int? Per_page - { - get; set; - } - /// The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/reference/search#constructing-a-search-query). See "[Searching for repositories](https://docs.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. + [QueryParameter("per_page")] + public int? PerPage { get; set; } + /// The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching for repositories](https://docs.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Q - { - get; set; - } + [QueryParameter("q")] + public string? Q { get; set; } #nullable restore #else + [QueryParameter("q")] public string Q { get; set; } #endif - /// Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://docs.github.com/rest/reference/search#ranking-search-results) + /// Sorts the results of your query by number of `stars`, `forks`, or `help-wanted-issues` or how recently the items were `updated`. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Sort - { - get; set; - } + [QueryParameter("sort")] + public string? Sort { get; set; } #nullable restore #else + [QueryParameter("sort")] public string Sort { get; set; } #endif } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class RepositoriesRequestBuilderGetRequestConfiguration - { + public class RepositoriesRequestBuilderGetRequestConfiguration { /// Request headers - public RequestHeaders Headers - { - get; set; - } + public RequestHeaders Headers { get; set; } /// Request options - public IList Options - { - get; set; - } + public IList Options { get; set; } /// Request query parameters public RepositoriesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new RepositoriesRequestBuilderGetQueryParameters(); /// /// Instantiates a new repositoriesRequestBuilderGetRequestConfiguration and sets the default values. /// - public RepositoriesRequestBuilderGetRequestConfiguration() - { + public RepositoriesRequestBuilderGetRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/Repositories/RepositoriesResponse.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/Repositories/RepositoriesResponse.cs index a59b6ad4ad..153982132f 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/Repositories/RepositoriesResponse.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/Repositories/RepositoriesResponse.cs @@ -1,60 +1,44 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Search.Repositories -{ - public class RepositoriesResponse : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Search.Repositories { + public class RepositoriesResponse : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// The incomplete_results property - public bool? IncompleteResults - { - get; set; - } + public bool? IncompleteResults { get; set; } /// The items property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Items - { - get; set; - } + public List? Items { get; set; } #nullable restore #else public List Items { get; set; } #endif /// The total_count property - public int? TotalCount - { - get; set; - } + public int? TotalCount { get; set; } /// /// Instantiates a new repositoriesResponse and sets the default values. /// - public RepositoriesResponse() - { + public RepositoriesResponse() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static RepositoriesResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static RepositoriesResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new RepositoriesResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"incomplete_results", n => { IncompleteResults = n.GetBoolValue(); } }, {"items", n => { Items = n.GetCollectionOfObjectValues(RepoSearchResultItem.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -65,8 +49,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("incomplete_results", IncompleteResults); writer.WriteCollectionOfObjectValues("items", Items); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/SearchRequestBuilder.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/SearchRequestBuilder.cs index 0b5e8ef8c3..de73d16e54 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/SearchRequestBuilder.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/Search/SearchRequestBuilder.cs @@ -1,21 +1,18 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Search.Repositories; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Search.Repositories; -using Microsoft.Kiota.Abstractions; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Search -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Search { /// /// Builds and executes requests for operations under \search /// - public class SearchRequestBuilder : BaseRequestBuilder - { + public class SearchRequestBuilder : BaseRequestBuilder { /// The repositories property - public RepositoriesRequestBuilder Repositories - { - get => + public RepositoriesRequestBuilder Repositories { get => new RepositoriesRequestBuilder(PathParameters, RequestAdapter); } /// @@ -23,16 +20,14 @@ public RepositoriesRequestBuilder Repositories /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/search", pathParameters) - { + public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/search", pathParameters) { } /// /// Instantiates a new SearchRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/search", rawUrl) - { + public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/search", rawUrl) { } } } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/Installations/InstallationsRequestBuilder.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/Installations/InstallationsRequestBuilder.cs index f243e50a80..17a7d82377 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/Installations/InstallationsRequestBuilder.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/Installations/InstallationsRequestBuilder.cs @@ -1,45 +1,41 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; -using System.Threading; using System.Threading.Tasks; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.User.Installations -{ +using System.Threading; +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.User.Installations { /// /// Builds and executes requests for operations under \user\installations /// - public class InstallationsRequestBuilder : BaseRequestBuilder - { + public class InstallationsRequestBuilder : BaseRequestBuilder { /// /// Instantiates a new InstallationsRequestBuilder and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public InstallationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/user/installations{?per_page*,page*}", pathParameters) - { + public InstallationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/user/installations{?per_page*,page*}", pathParameters) { } /// /// Instantiates a new InstallationsRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public InstallationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/user/installations{?per_page*,page*}", rawUrl) - { + public InstallationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/user/installations{?per_page*,page*}", rawUrl) { } /// /// Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.You can find the permissions for the installation under the `permissions` key. - /// API method documentation + /// API method documentation /// /// 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) { @@ -49,7 +45,7 @@ public async Task GetAsync(Action(requestInfo, InstallationsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + return await RequestAdapter.SendAsync(requestInfo, InstallationsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.You can find the permissions for the installation under the `permissions` key. @@ -57,21 +53,18 @@ 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) { #endif - var requestInfo = new RequestInformation - { + var requestInfo = new RequestInformation { HttpMethod = Method.GET, UrlTemplate = UrlTemplate, PathParameters = PathParameters, }; requestInfo.Headers.Add("Accept", "application/json"); - if (requestConfiguration != null) - { + if (requestConfiguration != null) { var requestConfig = new InstallationsRequestBuilderGetRequestConfiguration(); requestConfiguration.Invoke(requestConfig); requestInfo.AddQueryParameters(requestConfig.QueryParameters); @@ -81,43 +74,37 @@ 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. + /// + /// The raw URL to use for the request builder. + public InstallationsRequestBuilder WithUrl(string rawUrl) { + return new InstallationsRequestBuilder(rawUrl, RequestAdapter); + } + /// /// Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.You must use a [user access token](https://docs.github.com/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app), created for a user who has authorized your GitHub App, to access this endpoint.The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.You can find the permissions for the installation under the `permissions` key. /// - public class InstallationsRequestBuilderGetQueryParameters - { + public class InstallationsRequestBuilderGetQueryParameters { /// Page number of the results to fetch. - public int? Page - { - get; set; - } + [QueryParameter("page")] + public int? Page { get; set; } /// The number of results per page (max 100). - public int? Per_page - { - get; set; - } + [QueryParameter("per_page")] + public int? PerPage { get; set; } } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// - public class InstallationsRequestBuilderGetRequestConfiguration - { + public class InstallationsRequestBuilderGetRequestConfiguration { /// Request headers - public RequestHeaders Headers - { - get; set; - } + public RequestHeaders Headers { get; set; } /// Request options - public IList Options - { - get; set; - } + public IList Options { get; set; } /// Request query parameters public InstallationsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new InstallationsRequestBuilderGetQueryParameters(); /// /// Instantiates a new installationsRequestBuilderGetRequestConfiguration and sets the default values. /// - public InstallationsRequestBuilderGetRequestConfiguration() - { + public InstallationsRequestBuilderGetRequestConfiguration() { Options = new List(); Headers = new RequestHeaders(); } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/Installations/InstallationsResponse.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/Installations/InstallationsResponse.cs index 3023ef601e..a22be7fe3b 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/Installations/InstallationsResponse.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/Installations/InstallationsResponse.cs @@ -1,55 +1,42 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models; -using Microsoft.Kiota.Abstractions.Serialization; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.User.Installations -{ - public class InstallationsResponse : IAdditionalDataHolder, IParsable - { +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.User.Installations { + public class InstallationsResponse : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData - { - get; set; - } + public IDictionary AdditionalData { get; set; } /// 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; } #endif /// The total_count property - public int? TotalCount - { - get; set; - } + public int? TotalCount { get; set; } /// /// Instantiates a new installationsResponse and sets the default values. /// - public InstallationsResponse() - { + public InstallationsResponse() { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// The parse node to use to read the discriminator value and create the object - public static InstallationsResponse CreateFromDiscriminatorValue(IParseNode parseNode) - { + public static InstallationsResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); return new InstallationsResponse(); } /// /// The deserialization information for the current model /// - public IDictionary> GetFieldDeserializers() - { + public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"installations", n => { Installations = n.GetCollectionOfObjectValues(Installation.CreateFromDiscriminatorValue)?.ToList(); } }, {"total_count", n => { TotalCount = n.GetIntValue(); } }, @@ -59,8 +46,7 @@ public IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public void Serialize(ISerializationWriter writer) - { + public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfObjectValues("installations", Installations); writer.WriteIntValue("total_count", TotalCount); diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/UserRequestBuilder.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/UserRequestBuilder.cs index 895b2cc4bd..450be78a81 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/UserRequestBuilder.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/User/UserRequestBuilder.cs @@ -1,21 +1,18 @@ -using System; +// +using Kiota.Builder.SearchProviders.GitHub.GitHubClient.User.Installations; +using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; -using Kiota.Builder.SearchProviders.GitHub.GitHubClient.User.Installations; -using Microsoft.Kiota.Abstractions; -namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.User -{ +using System; +namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.User { /// /// Builds and executes requests for operations under \user /// - public class UserRequestBuilder : BaseRequestBuilder - { + public class UserRequestBuilder : BaseRequestBuilder { /// The installations property - public InstallationsRequestBuilder Installations - { - get => + public InstallationsRequestBuilder Installations { get => new InstallationsRequestBuilder(PathParameters, RequestAdapter); } /// @@ -23,16 +20,14 @@ public InstallationsRequestBuilder Installations /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/user", pathParameters) - { + public UserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/user", pathParameters) { } /// /// Instantiates a new UserRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/user", rawUrl) - { + public UserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/user", rawUrl) { } } } diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/kiota-lock.json b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/kiota-lock.json index bdb9b15fcb..226089fd75 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/kiota-lock.json +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubClient/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "087014597DDCFE72CDA938DFB2C642D0C08DD30659AE1F8F5E5DD76867D6880817810549C61F832C864D3C7247192308E1FC6AF7900384BA1C7970A33FFE8D24", + "descriptionHash": "77543E6F637859FD64E2067E3ADB19193B93889719B8D93D5957D8DC103AB3614C3064A6956EA50A96C33123F53FD9477E94296825BDD94358971D0CECA162B6", "descriptionLocation": "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.2022-11-28.json", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.3.0", + "kiotaVersion": "1.6.1", "clientClassName": "GitHubClient", "clientNamespaceName": "Kiota.Builder.SearchProviders.GitHub.GitHubClient", "language": "CSharp", diff --git a/src/Kiota.Builder/SearchProviders/GitHub/GitHubSearchProvider.cs b/src/Kiota.Builder/SearchProviders/GitHub/GitHubSearchProvider.cs index 17b489a0b4..d861af8be1 100644 --- a/src/Kiota.Builder/SearchProviders/GitHub/GitHubSearchProvider.cs +++ b/src/Kiota.Builder/SearchProviders/GitHub/GitHubSearchProvider.cs @@ -140,7 +140,6 @@ private static T deserializeDocumentFromYaml(Stream document) using var reader = new StreamReader(document); return _deserializer.Value.Deserialize(reader); } - private const string DownloadUrlKey = "download_url"; private async Task>> GetSearchResultsFromRepo(GitHubClient.GitHubClient gitHubClient, string? org, string? repo, string fileName, string accept, CancellationToken cancellationToken) { if (string.IsNullOrEmpty(org) || string.IsNullOrEmpty(repo)) @@ -148,7 +147,7 @@ private async Task>> GetSearchResultsFro try { var response = await gitHubClient.Repos[org][repo].Contents[fileName].GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false); - if (response == null || !response.AdditionalData.TryGetValue(DownloadUrlKey, out var rawDownloadUrl) || rawDownloadUrl is not string downloadUrl || string.IsNullOrEmpty(downloadUrl)) + if (response == null || response.DownloadUrl is not string downloadUrl || string.IsNullOrEmpty(downloadUrl)) return Enumerable.Empty>(); var targetUrl = new Uri(downloadUrl); #pragma warning disable CA2007 @@ -220,7 +219,7 @@ private async Task GetUrlForRelativeDescriptions(List originalRes { var fileName = originalUrl.TrimStart('/'); var response = await gitHubClient.Repos[org][repo].Contents[fileName].GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false); - if (response != null && response.AdditionalData.TryGetValue(DownloadUrlKey, out var rawDownloadUrl) && rawDownloadUrl is string downloadUrl && !string.IsNullOrEmpty(downloadUrl)) + if (response != null && response.DownloadUrl is string downloadUrl && !string.IsNullOrEmpty(downloadUrl)) return new Tuple(originalUrl, downloadUrl); } catch (BasicError) From de439a36441b89fe58c3ef24498fc3173236d869 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 18 Sep 2023 13:14:33 -0400 Subject: [PATCH 02/16] - disables caching for localhost descriptions --- CHANGELOG.md | 2 ++ .../Caching/DocumentCachingProvider.cs | 13 +++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f80ffb049a..b15d0d68d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Localhost based descriptions are not cached anymore to facilitate development workflows. [#3316](https://github.com/microsoft/kiota/issues/3316) + ## [1.6.1] - 2023-09-11 ### Changed diff --git a/src/Kiota.Builder/Caching/DocumentCachingProvider.cs b/src/Kiota.Builder/Caching/DocumentCachingProvider.cs index 2cb29c30ac..7bb280c983 100644 --- a/src/Kiota.Builder/Caching/DocumentCachingProvider.cs +++ b/src/Kiota.Builder/Caching/DocumentCachingProvider.cs @@ -84,12 +84,17 @@ private async Task DownloadDocumentFromSourceAsync(Uri documentUri, stri responseMessage.EnsureSuccessStatusCode(); content = new MemoryStream(); await responseMessage.Content.CopyToAsync(content, token).ConfigureAwait(false); + if (documentUri.IsLoopback) + Logger.LogInformation("skipping cache write for URI {Uri} as it is a loopback address", documentUri); + else + { #pragma warning disable CA2007 - await using var fileStream = File.Create(target); + await using var fileStream = File.Create(target); #pragma warning restore CA2007 - content.Position = 0; - await content.CopyToAsync(fileStream, token).ConfigureAwait(false); - await fileStream.FlushAsync(token).ConfigureAwait(false); + content.Position = 0; + await content.CopyToAsync(fileStream, token).ConfigureAwait(false); + await fileStream.FlushAsync(token).ConfigureAwait(false); + } content.Position = 0; return content; } From bdd85a1567cd00f0685699a46459fbbb3c7e956f Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 18 Sep 2023 14:12:12 -0400 Subject: [PATCH 03/16] - adds auto-generated comment for typescript file - fixes functions comment emission Signed-off-by: Vincent Biret --- CHANGELOG.md | 2 + .../Writers/TypeScript/CodeBlockEndWriter.cs | 9 +- .../TypeScript/CodeClassDeclarationWriter.cs | 2 + .../Writers/TypeScript/CodeFunctionWriter.cs | 1 + .../CodeInterfaceDeclarationWriter.cs | 32 ++--- .../TypeScript/TypeScriptConventionService.cs | 11 ++ .../Writers/TypeScript/TypeScriptWriter.cs | 2 +- .../CodeClassDeclarationWriterTests.cs | 8 ++ .../TypeScript/CodeClassEndWriterTests.cs | 6 +- .../TypeScript/CodeFunctionWriterTests.cs | 25 ++++ .../CodeInterfaceDeclarationWriterTests .cs | 124 +++++++++--------- 11 files changed, 143 insertions(+), 79 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b15d0d68d2..fd1ad37cf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Added auto-generated comment for TypeScript generation. [#3244](https://github.com/microsoft/kiota/issues/3244) + ### Changed - Localhost based descriptions are not cached anymore to facilitate development workflows. [#3316](https://github.com/microsoft/kiota/issues/3316) diff --git a/src/Kiota.Builder/Writers/TypeScript/CodeBlockEndWriter.cs b/src/Kiota.Builder/Writers/TypeScript/CodeBlockEndWriter.cs index b867201b9e..ad1e6d07e9 100644 --- a/src/Kiota.Builder/Writers/TypeScript/CodeBlockEndWriter.cs +++ b/src/Kiota.Builder/Writers/TypeScript/CodeBlockEndWriter.cs @@ -2,13 +2,18 @@ using Kiota.Builder.CodeDOM; namespace Kiota.Builder.Writers.TypeScript; -public class CodeBlockEndWriter : ICodeElementWriter +public class CodeBlockEndWriter : BaseElementWriter { - public void WriteCodeElement(BlockEnd codeElement, LanguageWriter writer) + public CodeBlockEndWriter(TypeScriptConventionService conventionService) : base(conventionService) + { + } + public override void WriteCodeElement(BlockEnd codeElement, LanguageWriter writer) { ArgumentNullException.ThrowIfNull(codeElement); ArgumentNullException.ThrowIfNull(writer); if (codeElement.Parent is CodeNamespace) return; writer.CloseBlock(); + if (codeElement.Parent?.Parent is CodeNamespace) + conventions.WriteAutoGeneratedEnd(writer); } } diff --git a/src/Kiota.Builder/Writers/TypeScript/CodeClassDeclarationWriter.cs b/src/Kiota.Builder/Writers/TypeScript/CodeClassDeclarationWriter.cs index a2c86fab5b..a5614cf670 100644 --- a/src/Kiota.Builder/Writers/TypeScript/CodeClassDeclarationWriter.cs +++ b/src/Kiota.Builder/Writers/TypeScript/CodeClassDeclarationWriter.cs @@ -16,6 +16,8 @@ public override void WriteCodeElement(ClassDeclaration codeElement, LanguageWrit { ArgumentNullException.ThrowIfNull(codeElement); ArgumentNullException.ThrowIfNull(writer); + if (codeElement.Parent?.Parent is CodeNamespace) + conventions.WriteAutoGeneratedStart(writer); var parentNamespace = codeElement.GetImmediateParentOfType(); _codeUsingWriter.WriteCodeElement(codeElement.Usings, parentNamespace, writer); diff --git a/src/Kiota.Builder/Writers/TypeScript/CodeFunctionWriter.cs b/src/Kiota.Builder/Writers/TypeScript/CodeFunctionWriter.cs index 5a7c0a2eaa..851e4bd1fe 100644 --- a/src/Kiota.Builder/Writers/TypeScript/CodeFunctionWriter.cs +++ b/src/Kiota.Builder/Writers/TypeScript/CodeFunctionWriter.cs @@ -23,6 +23,7 @@ public override void WriteCodeElement(CodeFunction codeElement, LanguageWriter w if (codeElement.OriginalLocalMethod == null) throw new InvalidOperationException($"{nameof(codeElement.OriginalLocalMethod)} should not be null"); ArgumentNullException.ThrowIfNull(writer); if (codeElement.Parent is not CodeNamespace) throw new InvalidOperationException("the parent of a function should be a namespace"); + conventions.WriteAutoGeneratedStart(writer); _codeUsingWriter.WriteCodeElement(codeElement.StartBlock.Usings, codeElement.GetImmediateParentOfType(), writer); var codeMethod = codeElement.OriginalLocalMethod; diff --git a/src/Kiota.Builder/Writers/TypeScript/CodeInterfaceDeclarationWriter.cs b/src/Kiota.Builder/Writers/TypeScript/CodeInterfaceDeclarationWriter.cs index bb938fd1a1..71b86539fc 100644 --- a/src/Kiota.Builder/Writers/TypeScript/CodeInterfaceDeclarationWriter.cs +++ b/src/Kiota.Builder/Writers/TypeScript/CodeInterfaceDeclarationWriter.cs @@ -4,26 +4,26 @@ using Kiota.Builder.CodeDOM; using Kiota.Builder.Extensions; -namespace Kiota.Builder.Writers.TypeScript +namespace Kiota.Builder.Writers.TypeScript; +public class CodeInterfaceDeclarationWriter : BaseElementWriter { - public class CodeInterfaceDeclarationWriter : BaseElementWriter + private readonly CodeUsingWriter _codeUsingWriter; + public CodeInterfaceDeclarationWriter(TypeScriptConventionService conventionService, string clientNamespaceName) : base(conventionService) { - private readonly CodeUsingWriter _codeUsingWriter; - public CodeInterfaceDeclarationWriter(TypeScriptConventionService conventionService, string clientNamespaceName) : base(conventionService) - { - _codeUsingWriter = new(clientNamespaceName); - } + _codeUsingWriter = new(clientNamespaceName); + } - public override void WriteCodeElement(InterfaceDeclaration codeElement, LanguageWriter writer) - { - ArgumentNullException.ThrowIfNull(codeElement); - ArgumentNullException.ThrowIfNull(writer); + public override void WriteCodeElement(InterfaceDeclaration codeElement, LanguageWriter writer) + { + ArgumentNullException.ThrowIfNull(codeElement); + ArgumentNullException.ThrowIfNull(writer); - var parentNamespace = codeElement.GetImmediateParentOfType(); - _codeUsingWriter.WriteCodeElement(codeElement.Usings, parentNamespace, writer); + var parentNamespace = codeElement.GetImmediateParentOfType(); + if (codeElement.Parent?.Parent is CodeNamespace) + conventions.WriteAutoGeneratedStart(writer); + _codeUsingWriter.WriteCodeElement(codeElement.Usings, parentNamespace, writer); - var derivation = codeElement.Implements.Any() ? $" extends {codeElement.Implements.Select(static x => x.Name).Aggregate(static (x, y) => x + ", " + y)}" : string.Empty; - writer.StartBlock($"export interface {codeElement.Name.ToFirstCharacterUpperCase()}{derivation} {{"); - } + var derivation = codeElement.Implements.Any() ? $" extends {codeElement.Implements.Select(static x => x.Name).Aggregate(static (x, y) => x + ", " + y)}" : string.Empty; + writer.StartBlock($"export interface {codeElement.Name.ToFirstCharacterUpperCase()}{derivation} {{"); } } diff --git a/src/Kiota.Builder/Writers/TypeScript/TypeScriptConventionService.cs b/src/Kiota.Builder/Writers/TypeScript/TypeScriptConventionService.cs index bad753c134..5d0d63f64c 100644 --- a/src/Kiota.Builder/Writers/TypeScript/TypeScriptConventionService.cs +++ b/src/Kiota.Builder/Writers/TypeScript/TypeScriptConventionService.cs @@ -15,6 +15,17 @@ public TypeScriptConventionService(LanguageWriter languageWriter) { writer = languageWriter; } + internal void WriteAutoGeneratedStart(LanguageWriter writer) + { + writer.WriteLine("// tslint:disable"); + writer.WriteLine("// eslint-disable"); + writer.WriteLine("// Generated by Microsoft Kiota"); + } + internal void WriteAutoGeneratedEnd(LanguageWriter writer) + { + writer.WriteLine("// tslint:enable"); + writer.WriteLine("// eslint-enable"); + } private readonly LanguageWriter writer; public override string StreamTypeName => "ArrayBuffer"; public override string VoidTypeName => "void"; diff --git a/src/Kiota.Builder/Writers/TypeScript/TypeScriptWriter.cs b/src/Kiota.Builder/Writers/TypeScript/TypeScriptWriter.cs index e63a6174eb..d941c5ec81 100644 --- a/src/Kiota.Builder/Writers/TypeScript/TypeScriptWriter.cs +++ b/src/Kiota.Builder/Writers/TypeScript/TypeScriptWriter.cs @@ -9,7 +9,7 @@ public TypeScriptWriter(string rootPath, string clientNamespaceName, bool usesBa PathSegmenter = new TypeScriptPathSegmenter(rootPath, clientNamespaceName); var conventionService = new TypeScriptConventionService(this); AddOrReplaceCodeElementWriter(new CodeClassDeclarationWriter(conventionService, clientNamespaceName)); - AddOrReplaceCodeElementWriter(new CodeBlockEndWriter()); + AddOrReplaceCodeElementWriter(new CodeBlockEndWriter(conventionService)); AddOrReplaceCodeElementWriter(new CodeEnumWriter(conventionService)); AddOrReplaceCodeElementWriter(new CodeMethodWriter(conventionService, usesBackingStore)); AddOrReplaceCodeElementWriter(new CodeFunctionWriter(conventionService, clientNamespaceName)); diff --git a/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeClassDeclarationWriterTests.cs b/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeClassDeclarationWriterTests.cs index e1dbdf0448..a33b8f81fe 100644 --- a/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeClassDeclarationWriterTests.cs +++ b/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeClassDeclarationWriterTests.cs @@ -37,6 +37,14 @@ public void Dispose() GC.SuppressFinalize(this); } [Fact] + public void WritesAutoGenerationStart() + { + codeElementWriter.WriteCodeElement(parentClass.StartBlock, writer); + var result = tw.ToString(); + Assert.Contains("// eslint-disable", result); + Assert.Contains("// tslint:disable", result); + } + [Fact] public void WritesSimpleDeclaration() { codeElementWriter.WriteCodeElement(parentClass.StartBlock, writer); diff --git a/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeClassEndWriterTests.cs b/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeClassEndWriterTests.cs index f1af0e7b4c..1513b0e70c 100644 --- a/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeClassEndWriterTests.cs +++ b/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeClassEndWriterTests.cs @@ -19,8 +19,8 @@ public class CodeClassEndWriterTests : IDisposable private readonly CodeClass parentClass; public CodeClassEndWriterTests() { - codeElementWriter = new CodeBlockEndWriter(); writer = LanguageWriter.GetLanguageWriter(GenerationLanguage.TypeScript, DefaultPath, DefaultName); + codeElementWriter = new CodeBlockEndWriter(new(writer)); tw = new StringWriter(); writer.SetTextWriter(tw); var root = CodeNamespace.InitRootNamespace(); @@ -45,12 +45,16 @@ public void ClosesNestedClasses() codeElementWriter.WriteCodeElement(child.EndBlock, writer); var result = tw.ToString(); Assert.Equal(1, result.Count(x => x == '}')); + Assert.DoesNotContain("// eslint-enable", result); + Assert.DoesNotContain("// tslint:enable", result); } [Fact] public void ClosesNonNestedClasses() { codeElementWriter.WriteCodeElement(parentClass.EndBlock, writer); var result = tw.ToString(); + Assert.Contains("// eslint-enable", result); + Assert.Contains("// tslint:enable", result); Assert.Equal(1, result.Count(x => x == '}')); } } diff --git a/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeFunctionWriterTests.cs b/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeFunctionWriterTests.cs index aeca11d3f7..cb45af6c10 100644 --- a/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeFunctionWriterTests.cs +++ b/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeFunctionWriterTests.cs @@ -33,6 +33,31 @@ public void Dispose() GC.SuppressFinalize(this); } + [Fact] + public async Task WritesAutoGenerationStart() + { + var parentClass = TestHelper.CreateModelClass(root, "parentClass", true); + TestHelper.AddSerializationPropertiesToModelClass(parentClass); + await ILanguageRefiner.Refine(new GenerationConfiguration { Language = GenerationLanguage.TypeScript }, root); + var serializeFunction = root.FindChildByName($"deserializeInto{parentClass.Name.ToFirstCharacterUpperCase()}"); + writer.Write(serializeFunction); + var result = tw.ToString(); + Assert.Contains("// eslint-disable", result); + Assert.Contains("// tslint:disable", result); + } + [Fact] + public async Task WritesAutoGenerationEnd() + { + var parentClass = TestHelper.CreateModelClass(root, "parentClass", true); + TestHelper.AddSerializationPropertiesToModelClass(parentClass); + await ILanguageRefiner.Refine(new GenerationConfiguration { Language = GenerationLanguage.TypeScript }, root); + var serializeFunction = root.FindChildByName($"deserializeInto{parentClass.Name.ToFirstCharacterUpperCase()}"); + writer.Write(serializeFunction); + var result = tw.ToString(); + Assert.DoesNotContain("// eslint-enable", result); //written by code end block writer + Assert.DoesNotContain("// tslint:enable", result); + } + [Fact] public async Task WritesModelFactoryBody() { diff --git a/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeInterfaceDeclarationWriterTests .cs b/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeInterfaceDeclarationWriterTests .cs index f22a8500d5..4250c495ec 100644 --- a/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeInterfaceDeclarationWriterTests .cs +++ b/tests/Kiota.Builder.Tests/Writers/TypeScript/CodeInterfaceDeclarationWriterTests .cs @@ -3,71 +3,77 @@ using Kiota.Builder.CodeDOM; using Xunit; -namespace Kiota.Builder.Writers.TypeScript.Tests +namespace Kiota.Builder.Writers.TypeScript.Tests; +public class CodeInterfaceDeclaraterWriterTests : IDisposable { - public class CodeInterfaceDeclaraterWriterTests : IDisposable - { - private const string DefaultPath = "./"; - private const string DefaultName = "name"; - private readonly StringWriter tw; - private readonly LanguageWriter writer; - private readonly CodeInterface parentInterface; + private const string DefaultPath = "./"; + private const string DefaultName = "name"; + private readonly StringWriter tw; + private readonly LanguageWriter writer; + private readonly CodeInterface parentInterface; - public CodeInterfaceDeclaraterWriterTests() - { - writer = LanguageWriter.GetLanguageWriter(GenerationLanguage.TypeScript, DefaultPath, DefaultName); - tw = new StringWriter(); - writer.SetTextWriter(tw); - var root = CodeNamespace.InitRootNamespace(); - var ns = root.AddNamespace("graphtests.models"); - parentInterface = new CodeInterface() - { - Name = "parent" - }; - ns.AddInterface(parentInterface); - } - public void Dispose() - { - tw?.Dispose(); - GC.SuppressFinalize(this); - } - [Fact] - public void WritesSimpleDeclaration() + public CodeInterfaceDeclaraterWriterTests() + { + writer = LanguageWriter.GetLanguageWriter(GenerationLanguage.TypeScript, DefaultPath, DefaultName); + tw = new StringWriter(); + writer.SetTextWriter(tw); + var root = CodeNamespace.InitRootNamespace(); + var ns = root.AddNamespace("graphtests.models"); + parentInterface = new CodeInterface() { - writer.Write(parentInterface.StartBlock); - var result = tw.ToString(); - Assert.Contains("export interface", result); - } + Name = "parent" + }; + ns.AddInterface(parentInterface); + } + public void Dispose() + { + tw?.Dispose(); + GC.SuppressFinalize(this); + } + [Fact] + public void WritesAutoGenerationStart() + { + writer.Write(parentInterface.StartBlock); + var result = tw.ToString(); + Assert.Contains("// eslint-disable", result); + Assert.Contains("// tslint:disable", result); + } + [Fact] + public void WritesSimpleDeclaration() + { + writer.Write(parentInterface.StartBlock); + var result = tw.ToString(); + Assert.Contains("export interface", result); + } - [Fact] - public void WritesInheritance() - { + [Fact] + public void WritesInheritance() + { - parentInterface.StartBlock.AddImplements(new CodeType() - { - Name = "someInterface" - }); - writer.Write(parentInterface.StartBlock); - var result = tw.ToString(); - Assert.Contains("extends", result); - } - [Fact] - public void WritesImports() + parentInterface.StartBlock.AddImplements(new CodeType() + { + Name = "someInterface" + }); + writer.Write(parentInterface.StartBlock); + var result = tw.ToString(); + Assert.Contains("extends", result); + } + [Fact] + public void WritesImports() + { + parentInterface.StartBlock.AddUsings(new CodeUsing { - parentInterface.StartBlock.AddUsings(new CodeUsing + Name = "Objects", + Declaration = new() { - Name = "Objects", - Declaration = new() - { - Name = "util", - IsExternal = true, - } - }); - writer.Write(parentInterface.StartBlock); - var result = tw.ToString(); - Assert.Contains("import", result); - Assert.Contains("from", result); - Assert.Contains("'util'", result); - } + Name = "util", + IsExternal = true, + } + }); + writer.Write(parentInterface.StartBlock); + var result = tw.ToString(); + Assert.Contains("import", result); + Assert.Contains("from", result); + Assert.Contains("'util'", result); } } From 5f2cb2cb914d3d83df01457b74c1cfe6219c75cb Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 18 Sep 2023 14:20:08 -0400 Subject: [PATCH 04/16] - removes redundant undefined qualifier in TypeScript for properties --- CHANGELOG.md | 1 + src/Kiota.Builder/Writers/TypeScript/CodePropertyWriter.cs | 4 ++-- .../Writers/TypeScript/CodePropertyWriterTests.cs | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd1ad37cf7..ef03f8118c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Localhost based descriptions are not cached anymore to facilitate development workflows. [#3316](https://github.com/microsoft/kiota/issues/3316) +- Removed redundant undefined qualifier in TypeScript for properties. [#3244](https://github.com/microsoft/kiota/issues/3244) ## [1.6.1] - 2023-09-11 diff --git a/src/Kiota.Builder/Writers/TypeScript/CodePropertyWriter.cs b/src/Kiota.Builder/Writers/TypeScript/CodePropertyWriter.cs index 20e4cbc36a..f12b8815df 100644 --- a/src/Kiota.Builder/Writers/TypeScript/CodePropertyWriter.cs +++ b/src/Kiota.Builder/Writers/TypeScript/CodePropertyWriter.cs @@ -30,7 +30,7 @@ public override void WriteCodeElement(CodeProperty codeElement, LanguageWriter w private static void WriteCodePropertyForInterface(CodeProperty codeElement, LanguageWriter writer, string returnType, bool isFlagEnum) { - writer.WriteLine($"{codeElement.Name.ToFirstCharacterLowerCase()}?: {returnType}{(isFlagEnum ? "[]" : string.Empty)}{(codeElement.Type.IsNullable ? " | undefined" : string.Empty)};"); + writer.WriteLine($"{codeElement.Name.ToFirstCharacterLowerCase()}?: {returnType}{(isFlagEnum ? "[]" : string.Empty)};"); } private void WriteCodePropertyForClass(CodeProperty codeElement, CodeClass parentClass, LanguageWriter writer, string returnType, bool isFlagEnum) @@ -45,7 +45,7 @@ private void WriteCodePropertyForClass(CodeProperty codeElement, CodeClass paren writer.CloseBlock(); break; default: - writer.WriteLine($"{conventions.GetAccessModifier(codeElement.Access)} {codeElement.NamePrefix}{codeElement.Name.ToFirstCharacterLowerCase()}{(codeElement.Type.IsNullable ? "?" : string.Empty)}: {returnType}{(isFlagEnum ? "[]" : string.Empty)}{(codeElement.Type.IsNullable ? " | undefined" : string.Empty)};"); + writer.WriteLine($"{conventions.GetAccessModifier(codeElement.Access)} {codeElement.NamePrefix}{codeElement.Name.ToFirstCharacterLowerCase()}{(codeElement.Type.IsNullable ? "?" : string.Empty)}: {returnType}{(isFlagEnum ? "[]" : string.Empty)};"); break; } } diff --git a/tests/Kiota.Builder.Tests/Writers/TypeScript/CodePropertyWriterTests.cs b/tests/Kiota.Builder.Tests/Writers/TypeScript/CodePropertyWriterTests.cs index 9d9e2ef90e..8961fc4114 100644 --- a/tests/Kiota.Builder.Tests/Writers/TypeScript/CodePropertyWriterTests.cs +++ b/tests/Kiota.Builder.Tests/Writers/TypeScript/CodePropertyWriterTests.cs @@ -75,7 +75,8 @@ public void WritesCustomProperty() property.Kind = CodePropertyKind.Custom; writer.Write(property); var result = tw.ToString(); - Assert.Contains($"{PropertyName}?: {TypeName} | undefined", result); + Assert.Contains($"{PropertyName}?: {TypeName}", result); + Assert.DoesNotContain("| undefined", result); // redundant with ? } [Fact] public void WritesFlagEnums() From be4593814f93a119fad0c027da8ab692fef2165f Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 18 Sep 2023 14:35:34 -0400 Subject: [PATCH 05/16] - fixes workflow so we only release preview images when we find entries in release notes so it's aligned with ADO Signed-off-by: Vincent Biret --- .github/workflows/docker.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 723e9bd22e..c5922ca9c7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -50,6 +50,16 @@ jobs: shell: pwsh name: "Get Kiota's version-number from .csproj" + - run: ./scripts/get-release-notes.ps1 -version "${{ steps.getversion.outputs.version }}" + if: ${{!contains(github.ref, env.PREVIEW_BRANCH)}} + name: "Get release notes from CHANGELOG.md" + shell: pwsh + + - run: ./scripts/get-release-notes.ps1 -version Unreleased + if: contains(github.ref, env.PREVIEW_BRANCH) + name: "Get release notes from CHANGELOG.md" + shell: pwsh + - run: ./scripts/update-versions.ps1 shell: pwsh name: "Update dependencies versions" From 71d01ac7d4a104e88502fa8ee5df3e11be274495 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 18 Sep 2023 14:44:53 -0400 Subject: [PATCH 06/16] - adds the check switch so we don't end up generating a file Signed-off-by: Vincent Biret --- .github/workflows/docker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index c5922ca9c7..a40bfd8d4e 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -50,12 +50,12 @@ jobs: shell: pwsh name: "Get Kiota's version-number from .csproj" - - run: ./scripts/get-release-notes.ps1 -version "${{ steps.getversion.outputs.version }}" + - run: ./scripts/get-release-notes.ps1 -version "${{ steps.getversion.outputs.version }}" -check if: ${{!contains(github.ref, env.PREVIEW_BRANCH)}} name: "Get release notes from CHANGELOG.md" shell: pwsh - - run: ./scripts/get-release-notes.ps1 -version Unreleased + - run: ./scripts/get-release-notes.ps1 -version Unreleased -check if: contains(github.ref, env.PREVIEW_BRANCH) name: "Get release notes from CHANGELOG.md" shell: pwsh From c4e664f524f39822c6e0fc398807b34cfa2e8d0f Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Mon, 18 Sep 2023 15:32:44 -0400 Subject: [PATCH 07/16] - applies review feedback Signed-off-by: Vincent Biret --- .azure-pipelines/ci-build.yml | 8 ++++---- .github/workflows/docker.yml | 4 ++-- scripts/get-release-notes.ps1 | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml index 65a496f713..8684e84c56 100644 --- a/.azure-pipelines/ci-build.yml +++ b/.azure-pipelines/ci-build.yml @@ -116,11 +116,11 @@ stages: - pwsh: $(Build.SourcesDirectory)/scripts/get-version-from-csproj.ps1 displayName: "Get Kiota's version-number from .csproj" - - pwsh: $(Build.SourcesDirectory)/scripts/get-release-notes.ps1 -version $(artifactVersion) -check + - pwsh: $(Build.SourcesDirectory)/scripts/get-release-notes.ps1 -version $(artifactVersion) condition: eq(variables['isPrerelease'], 'false') displayName: "Get release notes from CHANGELOG.md" - - pwsh: $(Build.SourcesDirectory)/scripts/get-release-notes.ps1 -version Unreleased -check + - pwsh: $(Build.SourcesDirectory)/scripts/get-release-notes.ps1 -version Unreleased condition: eq(variables['isPrerelease'], 'true') # Build the Product project @@ -600,10 +600,10 @@ stages: displayName: "Set version suffix" - pwsh: $(Build.SourcesDirectory)/scripts/get-version-from-csproj.ps1 displayName: "Get Kiota's version-number from .csproj" - - pwsh: $(Build.SourcesDirectory)/scripts/get-release-notes.ps1 -version $(artifactVersion) + - pwsh: $(Build.SourcesDirectory)/scripts/get-release-notes.ps1 -version $(artifactVersion) -createNotes condition: eq(variables['isPrerelease'], 'false') displayName: "Get release notes from CHANGELOG.md" - - pwsh: $(Build.SourcesDirectory)/scripts/get-release-notes.ps1 -version Unreleased + - pwsh: $(Build.SourcesDirectory)/scripts/get-release-notes.ps1 -version Unreleased -createNotes condition: eq(variables['isPrerelease'], 'true') displayName: "Get release notes from CHANGELOG.md" - task: GitHubRelease@1 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index a40bfd8d4e..c5922ca9c7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -50,12 +50,12 @@ jobs: shell: pwsh name: "Get Kiota's version-number from .csproj" - - run: ./scripts/get-release-notes.ps1 -version "${{ steps.getversion.outputs.version }}" -check + - run: ./scripts/get-release-notes.ps1 -version "${{ steps.getversion.outputs.version }}" if: ${{!contains(github.ref, env.PREVIEW_BRANCH)}} name: "Get release notes from CHANGELOG.md" shell: pwsh - - run: ./scripts/get-release-notes.ps1 -version Unreleased -check + - run: ./scripts/get-release-notes.ps1 -version Unreleased if: contains(github.ref, env.PREVIEW_BRANCH) name: "Get release notes from CHANGELOG.md" shell: pwsh diff --git a/scripts/get-release-notes.ps1 b/scripts/get-release-notes.ps1 index 1d4843f92c..b9c36d5f03 100644 --- a/scripts/get-release-notes.ps1 +++ b/scripts/get-release-notes.ps1 @@ -4,7 +4,7 @@ param ( $version, [switch] [bool] - $check + $createNotes ) $version = $version.TrimStart("v") @@ -23,7 +23,7 @@ $releaseNotes = $changeLogContent.Substring($headerLineNumber, $endLineNumber - if ($version -eq "Unreleased" -and [string]::IsNullOrWhiteSpace($releaseNotes.Replace("### Changed", "").Replace("### Added", ""))) { throw "Version $version not found in CHANGELOG.md make sure you've updated the changelog" } -if ($check -eq $false) { +if ($createNotes -eq $true) { $targetFile = Join-Path (Split-Path $changelogPath -Parent) "release-notes.txt" Set-Content -Path $targetFile -Value $releaseNotes -Verbose } \ No newline at end of file From f311a166d3ea8037cfc445d7038ad2bd80ff9179 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:14:07 +0000 Subject: [PATCH 08/16] Bump @typescript-eslint/parser in /vscode/microsoft-kiota Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.7.0 to 6.7.2. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.2/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- vscode/microsoft-kiota/package-lock.json | 90 +++++++++++++++++++++--- vscode/microsoft-kiota/package.json | 2 +- 2 files changed, 83 insertions(+), 9 deletions(-) diff --git a/vscode/microsoft-kiota/package-lock.json b/vscode/microsoft-kiota/package-lock.json index 11d317414a..b7d84f070d 100644 --- a/vscode/microsoft-kiota/package-lock.json +++ b/vscode/microsoft-kiota/package-lock.json @@ -22,7 +22,7 @@ "@types/node": "20.x", "@types/vscode": "^1.82.0", "@typescript-eslint/eslint-plugin": "^6.7.0", - "@typescript-eslint/parser": "^6.7.0", + "@typescript-eslint/parser": "^6.7.2", "@vscode/test-electron": "^2.3.4", "eslint": "^8.49.0", "glob": "^10.3.4", @@ -850,15 +850,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.7.0.tgz", - "integrity": "sha512-jZKYwqNpNm5kzPVP5z1JXAuxjtl2uG+5NpaMocFPTNC2EdYIgbXIPImObOkhbONxtFTTdoZstLZefbaK+wXZng==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.7.2.tgz", + "integrity": "sha512-KA3E4ox0ws+SPyxQf9iSI25R6b4Ne78ORhNHeVKrPQnoYsb9UhieoiRoJgrzgEeKGOXhcY1i8YtOeCHHTDa6Fw==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.7.0", - "@typescript-eslint/types": "6.7.0", - "@typescript-eslint/typescript-estree": "6.7.0", - "@typescript-eslint/visitor-keys": "6.7.0", + "@typescript-eslint/scope-manager": "6.7.2", + "@typescript-eslint/types": "6.7.2", + "@typescript-eslint/typescript-estree": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2", "debug": "^4.3.4" }, "engines": { @@ -877,6 +877,80 @@ } } }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.2.tgz", + "integrity": "sha512-bgi6plgyZjEqapr7u2mhxGR6E8WCzKNUFWNh6fkpVe9+yzRZeYtDTbsIBzKbcxI+r1qVWt6VIoMSNZ4r2A+6Yw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.2.tgz", + "integrity": "sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.2.tgz", + "integrity": "sha512-kiJKVMLkoSciGyFU0TOY0fRxnp9qq1AzVOHNeN1+B9erKFCJ4Z8WdjAkKQPP+b1pWStGFqezMLltxO+308dJTQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.2.tgz", + "integrity": "sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.7.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, "node_modules/@typescript-eslint/scope-manager": { "version": "6.7.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.0.tgz", diff --git a/vscode/microsoft-kiota/package.json b/vscode/microsoft-kiota/package.json index cd3c169d5d..b89bcbe2f8 100644 --- a/vscode/microsoft-kiota/package.json +++ b/vscode/microsoft-kiota/package.json @@ -262,7 +262,7 @@ "@types/node": "20.x", "@types/vscode": "^1.82.0", "@typescript-eslint/eslint-plugin": "^6.7.0", - "@typescript-eslint/parser": "^6.7.0", + "@typescript-eslint/parser": "^6.7.2", "@vscode/test-electron": "^2.3.4", "eslint": "^8.49.0", "glob": "^10.3.4", From bf4af76530b8da2cf193def875326bea0c6e013a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:22:20 +0000 Subject: [PATCH 09/16] Bump @typescript-eslint/eslint-plugin in /vscode/microsoft-kiota Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.7.0 to 6.7.2. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.2/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- vscode/microsoft-kiota/package-lock.json | 144 ++++++----------------- vscode/microsoft-kiota/package.json | 2 +- 2 files changed, 36 insertions(+), 110 deletions(-) diff --git a/vscode/microsoft-kiota/package-lock.json b/vscode/microsoft-kiota/package-lock.json index b7d84f070d..8b59959ace 100644 --- a/vscode/microsoft-kiota/package-lock.json +++ b/vscode/microsoft-kiota/package-lock.json @@ -21,7 +21,7 @@ "@types/mocha": "^10.0.1", "@types/node": "20.x", "@types/vscode": "^1.82.0", - "@typescript-eslint/eslint-plugin": "^6.7.0", + "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", "@vscode/test-electron": "^2.3.4", "eslint": "^8.49.0", @@ -798,9 +798,9 @@ "dev": true }, "node_modules/@types/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg==", + "version": "7.5.2", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.2.tgz", + "integrity": "sha512-7aqorHYgdNO4DM36stTiGO3DvKoex9TQRwsJU6vMaFGyqpBA1MNZkz+PG3gaNUPpTAOYhT1WR7M1JyA3fbS9Cw==", "dev": true }, "node_modules/@types/shimmer": { @@ -815,16 +815,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.0.tgz", - "integrity": "sha512-gUqtknHm0TDs1LhY12K2NA3Rmlmp88jK9Tx8vGZMfHeNMLE3GH2e9TRub+y+SOjuYgtOmok+wt1AyDPZqxbNag==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.2.tgz", + "integrity": "sha512-ooaHxlmSgZTM6CHYAFRlifqh1OAr3PAQEwi7lhYhaegbnXrnh7CDcHmc3+ihhbQC7H0i4JF0psI5ehzkF6Yl6Q==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.7.0", - "@typescript-eslint/type-utils": "6.7.0", - "@typescript-eslint/utils": "6.7.0", - "@typescript-eslint/visitor-keys": "6.7.0", + "@typescript-eslint/scope-manager": "6.7.2", + "@typescript-eslint/type-utils": "6.7.2", + "@typescript-eslint/utils": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -877,7 +877,7 @@ } } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { + "node_modules/@typescript-eslint/scope-manager": { "version": "6.7.2", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.2.tgz", "integrity": "sha512-bgi6plgyZjEqapr7u2mhxGR6E8WCzKNUFWNh6fkpVe9+yzRZeYtDTbsIBzKbcxI+r1qVWt6VIoMSNZ4r2A+6Yw==", @@ -894,88 +894,14 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.2.tgz", - "integrity": "sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg==", - "dev": true, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.2.tgz", - "integrity": "sha512-kiJKVMLkoSciGyFU0TOY0fRxnp9qq1AzVOHNeN1+B9erKFCJ4Z8WdjAkKQPP+b1pWStGFqezMLltxO+308dJTQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.7.2", - "@typescript-eslint/visitor-keys": "6.7.2", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.2.tgz", - "integrity": "sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.7.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.0.tgz", - "integrity": "sha512-lAT1Uau20lQyjoLUQ5FUMSX/dS07qux9rYd5FGzKz/Kf8W8ccuvMyldb8hadHdK/qOI7aikvQWqulnEq2nCEYA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.7.0", - "@typescript-eslint/visitor-keys": "6.7.0" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.7.0.tgz", - "integrity": "sha512-f/QabJgDAlpSz3qduCyQT0Fw7hHpmhOzY/Rv6zO3yO+HVIdPfIWhrQoAyG+uZVtWAIS85zAyzgAFfyEr+MgBpg==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.7.2.tgz", + "integrity": "sha512-36F4fOYIROYRl0qj95dYKx6kybddLtsbmPIYNK0OBeXv2j9L5nZ17j9jmfy+bIDHKQgn2EZX+cofsqi8NPATBQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.7.0", - "@typescript-eslint/utils": "6.7.0", + "@typescript-eslint/typescript-estree": "6.7.2", + "@typescript-eslint/utils": "6.7.2", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -996,9 +922,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.0.tgz", - "integrity": "sha512-ihPfvOp7pOcN/ysoj0RpBPOx3HQTJTrIN8UZK+WFd3/iDeFHHqeyYxa4hQk4rMhsz9H9mXpR61IzwlBVGXtl9Q==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.2.tgz", + "integrity": "sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1009,13 +935,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.0.tgz", - "integrity": "sha512-dPvkXj3n6e9yd/0LfojNU8VMUGHWiLuBZvbM6V6QYD+2qxqInE7J+J/ieY2iGwR9ivf/R/haWGkIj04WVUeiSQ==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.2.tgz", + "integrity": "sha512-kiJKVMLkoSciGyFU0TOY0fRxnp9qq1AzVOHNeN1+B9erKFCJ4Z8WdjAkKQPP+b1pWStGFqezMLltxO+308dJTQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.7.0", - "@typescript-eslint/visitor-keys": "6.7.0", + "@typescript-eslint/types": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -1036,17 +962,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.7.0.tgz", - "integrity": "sha512-MfCq3cM0vh2slSikQYqK2Gq52gvOhe57vD2RM3V4gQRZYX4rDPnKLu5p6cm89+LJiGlwEXU8hkYxhqqEC/V3qA==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.7.2.tgz", + "integrity": "sha512-ZCcBJug/TS6fXRTsoTkgnsvyWSiXwMNiPzBUani7hDidBdj1779qwM1FIAmpH4lvlOZNF3EScsxxuGifjpLSWQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.7.0", - "@typescript-eslint/types": "6.7.0", - "@typescript-eslint/typescript-estree": "6.7.0", + "@typescript-eslint/scope-manager": "6.7.2", + "@typescript-eslint/types": "6.7.2", + "@typescript-eslint/typescript-estree": "6.7.2", "semver": "^7.5.4" }, "engines": { @@ -1061,12 +987,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.0.tgz", - "integrity": "sha512-/C1RVgKFDmGMcVGeD8HjKv2bd72oI1KxQDeY8uc66gw9R0OK0eMq48cA+jv9/2Ag6cdrsUGySm1yzYmfz0hxwQ==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.2.tgz", + "integrity": "sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.7.0", + "@typescript-eslint/types": "6.7.2", "eslint-visitor-keys": "^3.4.1" }, "engines": { diff --git a/vscode/microsoft-kiota/package.json b/vscode/microsoft-kiota/package.json index b89bcbe2f8..8b5c7e9f47 100644 --- a/vscode/microsoft-kiota/package.json +++ b/vscode/microsoft-kiota/package.json @@ -261,7 +261,7 @@ "@types/mocha": "^10.0.1", "@types/node": "20.x", "@types/vscode": "^1.82.0", - "@typescript-eslint/eslint-plugin": "^6.7.0", + "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", "@vscode/test-electron": "^2.3.4", "eslint": "^8.49.0", From 8305e20c56766508ee347f9e8c7c3456638da046 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:22:31 +0000 Subject: [PATCH 10/16] Bump @typescript-eslint/eslint-plugin in /it/typescript Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.7.0 to 6.7.2. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.2/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- it/typescript/package-lock.json | 228 ++++++++++++++++++++++++++++---- it/typescript/package.json | 2 +- 2 files changed, 204 insertions(+), 26 deletions(-) diff --git a/it/typescript/package-lock.json b/it/typescript/package-lock.json index ec3b96368f..329d4729b3 100644 --- a/it/typescript/package-lock.json +++ b/it/typescript/package-lock.json @@ -23,7 +23,7 @@ "devDependencies": { "@es-exec/esbuild-plugin-start": "^0.0.5", "@types/node": "^20.6.2", - "@typescript-eslint/eslint-plugin": "^6.7.0", + "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.0", "esbuild": "^0.19.3", "eslint": "^8.49.0", @@ -799,9 +799,9 @@ } }, "node_modules/@types/json-schema": { - "version": "7.0.12", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz", - "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==", + "version": "7.0.13", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.13.tgz", + "integrity": "sha512-RbSSoHliUbnXj3ny0CNFOoxrIDV6SUGyStHsvDqosw6CkdPV8TtWGlfecuK4ToyMEAql6pzNxgCFKanovUzlgQ==", "dev": true }, "node_modules/@types/node": { @@ -811,22 +811,22 @@ "dev": true }, "node_modules/@types/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg==", + "version": "7.5.2", + "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.2.tgz", + "integrity": "sha512-7aqorHYgdNO4DM36stTiGO3DvKoex9TQRwsJU6vMaFGyqpBA1MNZkz+PG3gaNUPpTAOYhT1WR7M1JyA3fbS9Cw==", "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.0.tgz", - "integrity": "sha512-gUqtknHm0TDs1LhY12K2NA3Rmlmp88jK9Tx8vGZMfHeNMLE3GH2e9TRub+y+SOjuYgtOmok+wt1AyDPZqxbNag==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.7.2.tgz", + "integrity": "sha512-ooaHxlmSgZTM6CHYAFRlifqh1OAr3PAQEwi7lhYhaegbnXrnh7CDcHmc3+ihhbQC7H0i4JF0psI5ehzkF6Yl6Q==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.7.0", - "@typescript-eslint/type-utils": "6.7.0", - "@typescript-eslint/utils": "6.7.0", - "@typescript-eslint/visitor-keys": "6.7.0", + "@typescript-eslint/scope-manager": "6.7.2", + "@typescript-eslint/type-utils": "6.7.2", + "@typescript-eslint/utils": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -851,6 +851,53 @@ } } }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.2.tgz", + "integrity": "sha512-bgi6plgyZjEqapr7u2mhxGR6E8WCzKNUFWNh6fkpVe9+yzRZeYtDTbsIBzKbcxI+r1qVWt6VIoMSNZ4r2A+6Yw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.2.tgz", + "integrity": "sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.2.tgz", + "integrity": "sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.7.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, "node_modules/@typescript-eslint/parser": { "version": "6.7.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.7.0.tgz", @@ -897,13 +944,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.7.0.tgz", - "integrity": "sha512-f/QabJgDAlpSz3qduCyQT0Fw7hHpmhOzY/Rv6zO3yO+HVIdPfIWhrQoAyG+uZVtWAIS85zAyzgAFfyEr+MgBpg==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.7.2.tgz", + "integrity": "sha512-36F4fOYIROYRl0qj95dYKx6kybddLtsbmPIYNK0OBeXv2j9L5nZ17j9jmfy+bIDHKQgn2EZX+cofsqi8NPATBQ==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.7.0", - "@typescript-eslint/utils": "6.7.0", + "@typescript-eslint/typescript-estree": "6.7.2", + "@typescript-eslint/utils": "6.7.2", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -923,6 +970,63 @@ } } }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.2.tgz", + "integrity": "sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.2.tgz", + "integrity": "sha512-kiJKVMLkoSciGyFU0TOY0fRxnp9qq1AzVOHNeN1+B9erKFCJ4Z8WdjAkKQPP+b1pWStGFqezMLltxO+308dJTQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.2.tgz", + "integrity": "sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.7.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, "node_modules/@typescript-eslint/types": { "version": "6.7.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.0.tgz", @@ -964,17 +1068,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.7.0.tgz", - "integrity": "sha512-MfCq3cM0vh2slSikQYqK2Gq52gvOhe57vD2RM3V4gQRZYX4rDPnKLu5p6cm89+LJiGlwEXU8hkYxhqqEC/V3qA==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.7.2.tgz", + "integrity": "sha512-ZCcBJug/TS6fXRTsoTkgnsvyWSiXwMNiPzBUani7hDidBdj1779qwM1FIAmpH4lvlOZNF3EScsxxuGifjpLSWQ==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.7.0", - "@typescript-eslint/types": "6.7.0", - "@typescript-eslint/typescript-estree": "6.7.0", + "@typescript-eslint/scope-manager": "6.7.2", + "@typescript-eslint/types": "6.7.2", + "@typescript-eslint/typescript-estree": "6.7.2", "semver": "^7.5.4" }, "engines": { @@ -988,6 +1092,80 @@ "eslint": "^7.0.0 || ^8.0.0" } }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.2.tgz", + "integrity": "sha512-bgi6plgyZjEqapr7u2mhxGR6E8WCzKNUFWNh6fkpVe9+yzRZeYtDTbsIBzKbcxI+r1qVWt6VIoMSNZ4r2A+6Yw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.2.tgz", + "integrity": "sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.2.tgz", + "integrity": "sha512-kiJKVMLkoSciGyFU0TOY0fRxnp9qq1AzVOHNeN1+B9erKFCJ4Z8WdjAkKQPP+b1pWStGFqezMLltxO+308dJTQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.2.tgz", + "integrity": "sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.7.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, "node_modules/@typescript-eslint/visitor-keys": { "version": "6.7.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.0.tgz", diff --git a/it/typescript/package.json b/it/typescript/package.json index 0bca9e1c16..dfbc1d2c5c 100644 --- a/it/typescript/package.json +++ b/it/typescript/package.json @@ -20,7 +20,7 @@ "devDependencies": { "@es-exec/esbuild-plugin-start": "^0.0.5", "@types/node": "^20.6.2", - "@typescript-eslint/eslint-plugin": "^6.7.0", + "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.0", "esbuild": "^0.19.3", "eslint": "^8.49.0", From a3925220857e385dc1c9dc90ce95aca1b7b232df Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:48:30 +0000 Subject: [PATCH 11/16] Bump microsoft-kiota-http from 0.6.0 to 0.6.1 in /it/python Bumps [microsoft-kiota-http](https://github.com/microsoft/kiota) from 0.6.0 to 0.6.1. - [Release notes](https://github.com/microsoft/kiota/releases) - [Changelog](https://github.com/microsoft/kiota/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota/commits) --- updated-dependencies: - dependency-name: microsoft-kiota-http dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- it/python/requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it/python/requirements-dev.txt b/it/python/requirements-dev.txt index 2bb7313e73..8515c13682 100644 --- a/it/python/requirements-dev.txt +++ b/it/python/requirements-dev.txt @@ -102,7 +102,7 @@ microsoft-kiota-abstractions==0.8.5 microsoft-kiota-authentication-azure==0.3.0 -microsoft-kiota-http==0.6.0 +microsoft-kiota-http==0.6.1 microsoft-kiota-serialization-json==0.4.0 From ae86bee228f2b8f022547b4d9be2c118b44a8280 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 08:48:34 +0000 Subject: [PATCH 12/16] Bump zipp from 3.16.2 to 3.17.0 in /it/python Bumps [zipp](https://github.com/jaraco/zipp) from 3.16.2 to 3.17.0. - [Release notes](https://github.com/jaraco/zipp/releases) - [Changelog](https://github.com/jaraco/zipp/blob/main/NEWS.rst) - [Commits](https://github.com/jaraco/zipp/compare/v3.16.2...v3.17.0) --- updated-dependencies: - dependency-name: zipp dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- it/python/requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it/python/requirements-dev.txt b/it/python/requirements-dev.txt index 2bb7313e73..1134be27d4 100644 --- a/it/python/requirements-dev.txt +++ b/it/python/requirements-dev.txt @@ -64,7 +64,7 @@ wrapt==1.15.0 ; python_version < '3.11' yapf==0.40.1 -zipp==3.16.2 ; python_version >= '3.7' +zipp==3.17.0 ; python_version >= '3.7' aiohttp==3.8.5 ; python_version >= '3.6' From 20ead10bd4caab74beaac70ce34b4b242ceab463 Mon Sep 17 00:00:00 2001 From: samwelkanda Date: Tue, 19 Sep 2023 11:55:35 +0300 Subject: [PATCH 13/16] Rearrange parameter order in with url method body --- src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs b/src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs index ae2a137e8b..9c04fbd605 100644 --- a/src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs +++ b/src/Kiota.Builder/Writers/Python/CodeMethodWriter.cs @@ -114,7 +114,7 @@ private void WriteRawUrlBuilderBody(CodeClass parentClass, CodeMethod codeElemen { var rawUrlParameter = codeElement.Parameters.OfKind(CodeParameterKind.RawUrl) ?? throw new InvalidOperationException("RawUrlBuilder method should have a RawUrl parameter"); var requestAdapterProperty = parentClass.GetPropertyOfKind(CodePropertyKind.RequestAdapter) ?? throw new InvalidOperationException("RawUrlBuilder method should have a RequestAdapter property"); - writer.WriteLine($"return {parentClass.Name.ToFirstCharacterUpperCase()}({rawUrlParameter.Name.ToSnakeCase()}, self.{requestAdapterProperty.Name.ToSnakeCase()})"); + writer.WriteLine($"return {parentClass.Name.ToFirstCharacterUpperCase()}(self.{requestAdapterProperty.Name.ToSnakeCase()}, {rawUrlParameter.Name.ToSnakeCase()})"); } private const string DiscriminatorMappingVarName = "mapping_value"; From 9c3adc02adf121a9cefe9e57f748305a9bb7551e Mon Sep 17 00:00:00 2001 From: samwelkanda Date: Tue, 19 Sep 2023 11:55:47 +0300 Subject: [PATCH 14/16] Update tests --- .../Kiota.Builder.Tests/Writers/Python/CodeMethodWriterTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Kiota.Builder.Tests/Writers/Python/CodeMethodWriterTests.cs b/tests/Kiota.Builder.Tests/Writers/Python/CodeMethodWriterTests.cs index 9178cb74da..cb284b1c02 100644 --- a/tests/Kiota.Builder.Tests/Writers/Python/CodeMethodWriterTests.cs +++ b/tests/Kiota.Builder.Tests/Writers/Python/CodeMethodWriterTests.cs @@ -1509,6 +1509,7 @@ public void WritesWithUrl() writer.Write(method); var result = tw.ToString(); Assert.Contains($"return {parentClass.Name.ToFirstCharacterUpperCase()}", result); + Assert.Contains("request_adapter, raw_url", result); } [Fact] public void WritesConstructorForReqestBuilder() From c4ca1ff86e86fb444741d18eded4d679cc481308 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Sep 2023 09:01:57 +0000 Subject: [PATCH 15/16] Bump @typescript-eslint/parser from 6.7.0 to 6.7.2 in /it/typescript Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.7.0 to 6.7.2. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.7.2/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- it/typescript/package-lock.json | 208 +++----------------------------- it/typescript/package.json | 2 +- 2 files changed, 16 insertions(+), 194 deletions(-) diff --git a/it/typescript/package-lock.json b/it/typescript/package-lock.json index 329d4729b3..b148084236 100644 --- a/it/typescript/package-lock.json +++ b/it/typescript/package-lock.json @@ -24,7 +24,7 @@ "@es-exec/esbuild-plugin-start": "^0.0.5", "@types/node": "^20.6.2", "@typescript-eslint/eslint-plugin": "^6.7.2", - "@typescript-eslint/parser": "^6.7.0", + "@typescript-eslint/parser": "^6.7.2", "esbuild": "^0.19.3", "eslint": "^8.49.0", "eslint-config-prettier": "^9.0.0", @@ -851,63 +851,16 @@ } } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.2.tgz", - "integrity": "sha512-bgi6plgyZjEqapr7u2mhxGR6E8WCzKNUFWNh6fkpVe9+yzRZeYtDTbsIBzKbcxI+r1qVWt6VIoMSNZ4r2A+6Yw==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.7.2", - "@typescript-eslint/visitor-keys": "6.7.2" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.2.tgz", - "integrity": "sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg==", - "dev": true, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": { + "node_modules/@typescript-eslint/parser": { "version": "6.7.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.2.tgz", - "integrity": "sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ==", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.7.2.tgz", + "integrity": "sha512-KA3E4ox0ws+SPyxQf9iSI25R6b4Ne78ORhNHeVKrPQnoYsb9UhieoiRoJgrzgEeKGOXhcY1i8YtOeCHHTDa6Fw==", "dev": true, "dependencies": { + "@typescript-eslint/scope-manager": "6.7.2", "@typescript-eslint/types": "6.7.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.7.0.tgz", - "integrity": "sha512-jZKYwqNpNm5kzPVP5z1JXAuxjtl2uG+5NpaMocFPTNC2EdYIgbXIPImObOkhbONxtFTTdoZstLZefbaK+wXZng==", - "dev": true, - "dependencies": { - "@typescript-eslint/scope-manager": "6.7.0", - "@typescript-eslint/types": "6.7.0", - "@typescript-eslint/typescript-estree": "6.7.0", - "@typescript-eslint/visitor-keys": "6.7.0", + "@typescript-eslint/typescript-estree": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2", "debug": "^4.3.4" }, "engines": { @@ -927,13 +880,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.0.tgz", - "integrity": "sha512-lAT1Uau20lQyjoLUQ5FUMSX/dS07qux9rYd5FGzKz/Kf8W8ccuvMyldb8hadHdK/qOI7aikvQWqulnEq2nCEYA==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.2.tgz", + "integrity": "sha512-bgi6plgyZjEqapr7u2mhxGR6E8WCzKNUFWNh6fkpVe9+yzRZeYtDTbsIBzKbcxI+r1qVWt6VIoMSNZ4r2A+6Yw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.7.0", - "@typescript-eslint/visitor-keys": "6.7.0" + "@typescript-eslint/types": "6.7.2", + "@typescript-eslint/visitor-keys": "6.7.2" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -970,7 +923,7 @@ } } }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": { + "node_modules/@typescript-eslint/types": { "version": "6.7.2", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.2.tgz", "integrity": "sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg==", @@ -983,7 +936,7 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": { + "node_modules/@typescript-eslint/typescript-estree": { "version": "6.7.2", "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.2.tgz", "integrity": "sha512-kiJKVMLkoSciGyFU0TOY0fRxnp9qq1AzVOHNeN1+B9erKFCJ4Z8WdjAkKQPP+b1pWStGFqezMLltxO+308dJTQ==", @@ -1010,63 +963,6 @@ } } }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.2.tgz", - "integrity": "sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.7.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/types": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.0.tgz", - "integrity": "sha512-ihPfvOp7pOcN/ysoj0RpBPOx3HQTJTrIN8UZK+WFd3/iDeFHHqeyYxa4hQk4rMhsz9H9mXpR61IzwlBVGXtl9Q==", - "dev": true, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.0.tgz", - "integrity": "sha512-dPvkXj3n6e9yd/0LfojNU8VMUGHWiLuBZvbM6V6QYD+2qxqInE7J+J/ieY2iGwR9ivf/R/haWGkIj04WVUeiSQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.7.0", - "@typescript-eslint/visitor-keys": "6.7.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "node_modules/@typescript-eslint/utils": { "version": "6.7.2", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.7.2.tgz", @@ -1092,64 +988,7 @@ "eslint": "^7.0.0 || ^8.0.0" } }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.7.2.tgz", - "integrity": "sha512-bgi6plgyZjEqapr7u2mhxGR6E8WCzKNUFWNh6fkpVe9+yzRZeYtDTbsIBzKbcxI+r1qVWt6VIoMSNZ4r2A+6Yw==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.7.2", - "@typescript-eslint/visitor-keys": "6.7.2" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.7.2.tgz", - "integrity": "sha512-flJYwMYgnUNDAN9/GAI3l8+wTmvTYdv64fcH8aoJK76Y+1FCZ08RtI5zDerM/FYT5DMkAc+19E4aLmd5KqdFyg==", - "dev": true, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { - "version": "6.7.2", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.7.2.tgz", - "integrity": "sha512-kiJKVMLkoSciGyFU0TOY0fRxnp9qq1AzVOHNeN1+B9erKFCJ4Z8WdjAkKQPP+b1pWStGFqezMLltxO+308dJTQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.7.2", - "@typescript-eslint/visitor-keys": "6.7.2", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { + "node_modules/@typescript-eslint/visitor-keys": { "version": "6.7.2", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.2.tgz", "integrity": "sha512-uVw9VIMFBUTz8rIeaUT3fFe8xIUx8r4ywAdlQv1ifH+6acn/XF8Y6rwJ7XNmkNMDrTW+7+vxFFPIF40nJCVsMQ==", @@ -1166,23 +1005,6 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.7.0.tgz", - "integrity": "sha512-/C1RVgKFDmGMcVGeD8HjKv2bd72oI1KxQDeY8uc66gw9R0OK0eMq48cA+jv9/2Ag6cdrsUGySm1yzYmfz0hxwQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.7.0", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", diff --git a/it/typescript/package.json b/it/typescript/package.json index dfbc1d2c5c..2945ab884e 100644 --- a/it/typescript/package.json +++ b/it/typescript/package.json @@ -21,7 +21,7 @@ "@es-exec/esbuild-plugin-start": "^0.0.5", "@types/node": "^20.6.2", "@typescript-eslint/eslint-plugin": "^6.7.2", - "@typescript-eslint/parser": "^6.7.0", + "@typescript-eslint/parser": "^6.7.2", "esbuild": "^0.19.3", "eslint": "^8.49.0", "eslint-config-prettier": "^9.0.0", From fd21a8f34919efc9852246ccf6e06ca344c80c89 Mon Sep 17 00:00:00 2001 From: samwelkanda Date: Tue, 19 Sep 2023 12:07:53 +0300 Subject: [PATCH 16/16] Add CHANGELOG entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b15d0d68d2..5c32b0fd49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Localhost based descriptions are not cached anymore to facilitate development workflows. [#3316](https://github.com/microsoft/kiota/issues/3316) +- Changed parameter order in with_url method body to match the signature of RequestBuilder constructor in Python. [#3328](https://github.com/microsoft/kiota/issues/3328) ## [1.6.1] - 2023-09-11