Skip to content

Commit

Permalink
Merge pull request #5573 from Balkoth/genMajorVersion
Browse files Browse the repository at this point in the history
Changed GeneratedCode attribute applied when generating CSharp to only include the major version of Kiota
  • Loading branch information
baywet authored Oct 10, 2024
2 parents df0230e + 0791a2d commit c64eab8
Show file tree
Hide file tree
Showing 96 changed files with 112 additions and 103 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed incompatibility with detecting odata primitives after conversion library updates at [OpenAPI.NET.OData#581](https://github.com/microsoft/OpenAPI.NET.OData/issues/581);
- Fixed cyclic dependencies in generated Go code. [#2834](https://github.com/microsoft/kiota/issues/2834)
- Fixed a bug where default output folder is created on plugin edit and generate commands. [#5510](https://github.com/microsoft/kiota/issues/5429)
- Changed GeneratedCode attribute applied when generating CSharp to only include the major version of Kiota. [#5489](https://github.com/microsoft/kiota/issues/5489)

## [1.19.0] - 2024-10-03

### Added

- Control generated type access modifier for C# via `--type-access-modifier` flag. [#4788](https://github.com/microsoft/kiota/issues/4788)
-

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient
/// <summary>
/// The main entry point of the SDK, exposes the configuration and the fluent API.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class GitHubClient : BaseRequestBuilder
{
/// <summary>The repos property</summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// <auto-generated/>
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
Expand All @@ -10,7 +10,7 @@ namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
/// <summary>
/// The permissions granted to the user access token.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class AppPermissions : IAdditionalDataHolder, IParsable
{
/// <summary>The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_actions
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_administration
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for checks on code.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_checks
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to create, edit, delete, and list Codespaces.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_codespaces
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_contents
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The leve of permission to grant the access token to manage Dependabot secrets.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_dependabot_secrets
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for deployments and deployment statuses.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_deployments
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to manage the email addresses belonging to a user.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_email_addresses
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for managing repository environments.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_environments
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to manage the followers belonging to a user.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_followers
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to manage git SSH keys.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_git_ssh_keys
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to view and manage GPG keys belonging to a user.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_gpg_keys
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to view and manage interaction limits on a repository.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_interaction_limits
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_issues
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for organization teams and members.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_members
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_metadata
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to manage access to an organization.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_administration
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to view and manage announcement banners for an organization.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_announcement_banners
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_copilot_seat_management
{
[EnumMember(Value = "write")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for custom organization roles management.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_custom_org_roles
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for custom property management.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_custom_properties
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for custom repository roles management.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_custom_roles
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to view events triggered by an activity in an organization.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_events
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to manage the post-receive hooks for an organization.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_hooks
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for organization packages published to GitHub Packages.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_packages
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>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.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_personal_access_token_requests
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_personal_access_tokens
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for viewing an organization&apos;s plan.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_plan
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to manage organization projects and projects beta (where available).</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_projects
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to manage organization secrets.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_secrets
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_self_hosted_runners
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to view and manage users blocked by the organization.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_organization_user_blocking
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for packages published to GitHub Packages.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_packages
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_pages
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to manage the profile settings belonging to a user.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_profile
{
[EnumMember(Value = "write")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_pull_requests
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_repository_custom_properties
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to manage the post-receive hooks for a repository.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_repository_hooks
{
[EnumMember(Value = "read")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Kiota.Builder.SearchProviders.GitHub.GitHubClient.Models
{
/// <summary>The level of permission to grant the access token to manage repository projects, columns, and cards.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public enum AppPermissions_repository_projects
{
[EnumMember(Value = "read")]
Expand Down
Loading

0 comments on commit c64eab8

Please sign in to comment.