From 3b8abbc86e66e3a6ceaafa046e4289420e59a635 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Wed, 6 Nov 2024 00:30:27 +0000 Subject: [PATCH 01/14] New updates to generated code --- .../Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs | 6 +++--- src/GitHub/Models/DeployKey.cs | 4 ++++ src/GitHub/Models/OrganizationFull.cs | 4 ++++ .../Models/OrganizationProgrammaticAccessGrant.cs | 10 ++++++++++ .../OrganizationProgrammaticAccessGrantRequest.cs | 10 ++++++++++ .../Orgs/Item/Copilot/Billing/BillingRequestBuilder.cs | 4 ++-- .../Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs | 6 +++--- .../Selected_teams/Selected_teamsDeleteResponse.cs | 2 +- .../Selected_teams/Selected_teamsPostResponse.cs | 2 +- .../Selected_teams/Selected_teamsRequestBuilder.cs | 8 ++++---- .../Selected_users/Selected_usersDeleteResponse.cs | 2 +- .../Selected_users/Selected_usersPostResponse.cs | 2 +- .../Selected_users/Selected_usersRequestBuilder.cs | 8 ++++---- .../Item/Members/Item/Copilot/CopilotRequestBuilder.cs | 4 ++-- src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs | 4 ++++ src/GitHub/kiota-lock.json | 2 +- 16 files changed, 55 insertions(+), 23 deletions(-) diff --git a/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs index 2b4a9476d..ce4e254a4 100644 --- a/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs @@ -34,7 +34,7 @@ public SeatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all Copilot seats currently being billed for across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Each seat object contains information about the assigned user's most recent Copilot activity. Users must havetelemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`. For more information about activity data,see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// API method documentation /// /// A @@ -64,7 +64,7 @@ public SeatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Enterprises.Item.Copilot.Billing.Seats.SeatsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all Copilot seats currently being billed for across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Each seat object contains information about the assigned user's most recent Copilot activity. Users must havetelemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`. For more information about activity data,see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -92,7 +92,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all Copilot seats currently being billed for across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Each seat object contains information about the assigned user's most recent Copilot activity. Users must havetelemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`. For more information about activity data,see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class SeatsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Models/DeployKey.cs b/src/GitHub/Models/DeployKey.cs index 6c87836e0..9229bfa62 100644 --- a/src/GitHub/Models/DeployKey.cs +++ b/src/GitHub/Models/DeployKey.cs @@ -31,6 +31,8 @@ public partial class DeployKey : IAdditionalDataHolder, IParsable #else public string CreatedAt { get; set; } #endif + /// The enabled property + public bool? Enabled { get; set; } /// The id property public int? Id { get; set; } /// The key property @@ -96,6 +98,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "added_by", n => { AddedBy = n.GetStringValue(); } }, { "created_at", n => { CreatedAt = n.GetStringValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, { "id", n => { Id = n.GetIntValue(); } }, { "key", n => { Key = n.GetStringValue(); } }, { "last_used", n => { LastUsed = n.GetStringValue(); } }, @@ -114,6 +117,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("added_by", AddedBy); writer.WriteStringValue("created_at", CreatedAt); + writer.WriteBoolValue("enabled", Enabled); writer.WriteIntValue("id", Id); writer.WriteStringValue("key", Key); writer.WriteStringValue("last_used", LastUsed); diff --git a/src/GitHub/Models/OrganizationFull.cs b/src/GitHub/Models/OrganizationFull.cs index 789587ff5..cf6a619f6 100644 --- a/src/GitHub/Models/OrganizationFull.cs +++ b/src/GitHub/Models/OrganizationFull.cs @@ -73,6 +73,8 @@ public partial class OrganizationFull : IAdditionalDataHolder, IParsable /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.Whether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.This field is only visible to organization owners or members of a team with the security manager role. [Obsolete("")] public bool? DependencyGraphEnabledForNewRepositories { get; set; } + /// Controls whether or not deploy keys may be added and used for repositories in the organization. + public bool? DeployKeysEnabledForRepositories { get; set; } /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -316,6 +318,7 @@ public virtual IDictionary> GetFieldDeserializers() { "dependabot_alerts_enabled_for_new_repositories", n => { DependabotAlertsEnabledForNewRepositories = n.GetBoolValue(); } }, { "dependabot_security_updates_enabled_for_new_repositories", n => { DependabotSecurityUpdatesEnabledForNewRepositories = n.GetBoolValue(); } }, { "dependency_graph_enabled_for_new_repositories", n => { DependencyGraphEnabledForNewRepositories = n.GetBoolValue(); } }, + { "deploy_keys_enabled_for_repositories", n => { DeployKeysEnabledForRepositories = n.GetBoolValue(); } }, { "description", n => { Description = n.GetStringValue(); } }, { "disk_usage", n => { DiskUsage = n.GetIntValue(); } }, { "email", n => { Email = n.GetStringValue(); } }, @@ -382,6 +385,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("dependabot_alerts_enabled_for_new_repositories", DependabotAlertsEnabledForNewRepositories); writer.WriteBoolValue("dependabot_security_updates_enabled_for_new_repositories", DependabotSecurityUpdatesEnabledForNewRepositories); writer.WriteBoolValue("dependency_graph_enabled_for_new_repositories", DependencyGraphEnabledForNewRepositories); + writer.WriteBoolValue("deploy_keys_enabled_for_repositories", DeployKeysEnabledForRepositories); writer.WriteStringValue("description", Description); writer.WriteIntValue("disk_usage", DiskUsage); writer.WriteStringValue("email", Email); diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrant.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrant.cs index bee2ba3d7..b3d1b3ec8 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrant.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrant.cs @@ -70,6 +70,14 @@ public partial class OrganizationProgrammaticAccessGrant : IAdditionalDataHolder #nullable restore #else public string TokenLastUsedAt { get; set; } +#endif + /// The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TokenName { get; set; } +#nullable restore +#else + public string TokenName { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -106,6 +114,7 @@ public virtual IDictionary> GetFieldDeserializers() { "token_expires_at", n => { TokenExpiresAt = n.GetStringValue(); } }, { "token_id", n => { TokenId = n.GetIntValue(); } }, { "token_last_used_at", n => { TokenLastUsedAt = n.GetStringValue(); } }, + { "token_name", n => { TokenName = n.GetStringValue(); } }, }; } /// @@ -125,6 +134,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("token_expires_at", TokenExpiresAt); writer.WriteIntValue("token_id", TokenId); writer.WriteStringValue("token_last_used_at", TokenLastUsedAt); + writer.WriteStringValue("token_name", TokenName); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest.cs b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest.cs index b8e475cd3..1908cefbc 100644 --- a/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest.cs +++ b/src/GitHub/Models/OrganizationProgrammaticAccessGrantRequest.cs @@ -78,6 +78,14 @@ public partial class OrganizationProgrammaticAccessGrantRequest : IAdditionalDat #nullable restore #else public string TokenLastUsedAt { get; set; } +#endif + /// The name given to the user's token. This field can also be found in an organization's settings page for Active Tokens. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TokenName { get; set; } +#nullable restore +#else + public string TokenName { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -115,6 +123,7 @@ public virtual IDictionary> GetFieldDeserializers() { "token_expires_at", n => { TokenExpiresAt = n.GetStringValue(); } }, { "token_id", n => { TokenId = n.GetIntValue(); } }, { "token_last_used_at", n => { TokenLastUsedAt = n.GetStringValue(); } }, + { "token_name", n => { TokenName = n.GetStringValue(); } }, }; } /// @@ -135,6 +144,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("token_expires_at", TokenExpiresAt); writer.WriteIntValue("token_id", TokenId); writer.WriteStringValue("token_last_used_at", TokenLastUsedAt); + writer.WriteStringValue("token_name", TokenName); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/BillingRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/BillingRequestBuilder.cs index 1b432a413..31b15d940 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/BillingRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/BillingRequestBuilder.cs @@ -52,7 +52,7 @@ public BillingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba { } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Gets information about an organization's Copilot subscription, including seat breakdownand feature policies. To configure these settings, go to your organization's settings on GitHub.com.For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)".Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Gets information about an organization's Copilot subscription, including seat breakdownand feature policies. To configure these settings, go to your organization's settings on GitHub.com.For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)."Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -82,7 +82,7 @@ public BillingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CopilotOrganizationDetails.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Gets information about an organization's Copilot subscription, including seat breakdownand feature policies. To configure these settings, go to your organization's settings on GitHub.com.For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)".Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Gets information about an organization's Copilot subscription, including seat breakdownand feature policies. To configure these settings, go to your organization's settings on GitHub.com.For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)."Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs index 72c45e7de..5f5e41f6e 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs @@ -34,7 +34,7 @@ public SeatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription.Only organization owners can view assigned seats.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all Copilot seats for which an organization with a Copilot Business or Copilot Enterprise subscription is currently being billed.Only organization owners can view assigned seats.Each seat object contains information about the assigned user's most recent Copilot activity. Users must have telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`.For more information about activity data, see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -64,7 +64,7 @@ public SeatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Seats.SeatsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription.Only organization owners can view assigned seats.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all Copilot seats for which an organization with a Copilot Business or Copilot Enterprise subscription is currently being billed.Only organization owners can view assigned seats.Each seat object contains information about the assigned user's most recent Copilot activity. Users must have telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`.For more information about activity data, see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -92,7 +92,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription.Only organization owners can view assigned seats.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Lists all Copilot seats for which an organization with a Copilot Business or Copilot Enterprise subscription is currently being billed.Only organization owners can view assigned seats.Each seat object contains information about the assigned user's most recent Copilot activity. Users must have telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`.For more information about activity data, see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class SeatsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteResponse.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteResponse.cs index c52973476..ed10b4ce2 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteResponse.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsDeleteResponse.cs @@ -8,7 +8,7 @@ namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams { /// - /// The total number of seat assignments cancelled. + /// The total number of seats set to "pending cancellation" for members of the specified team(s). /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class Selected_teamsDeleteResponse : IAdditionalDataHolder, IParsable diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostResponse.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostResponse.cs index 3a3a00eab..643993199 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostResponse.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsPostResponse.cs @@ -8,7 +8,7 @@ namespace GitHub.Orgs.Item.Copilot.Billing.Selected_teams { /// - /// The total number of seat assignments created. + /// The total number of seats created for members of the specified team(s). /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class Selected_teamsPostResponse : IAdditionalDataHolder, IParsable diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs index 018015cbc..7f35ee27b 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs @@ -34,7 +34,7 @@ public Selected_teamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte { } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Cancels the Copilot seat assignment for all members of each team specified.This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all members of each team specified to "pending cancellation".This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team.For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response will contain the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -66,7 +66,7 @@ public Selected_teamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for all users within each specified team.The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for all users within each specified team.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -98,7 +98,7 @@ public Selected_teamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Cancels the Copilot seat assignment for all members of each team specified.This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all members of each team specified to "pending cancellation".This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team.For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response will contain the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// A /// The request body @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Co return requestInfo; } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for all users within each specified team.The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for all users within each specified team.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteResponse.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteResponse.cs index 9e41ac9b7..9cfd3e068 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteResponse.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersDeleteResponse.cs @@ -8,7 +8,7 @@ namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users { /// - /// The total number of seat assignments cancelled. + /// The total number of seats set to "pending cancellation" for the specified users. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class Selected_usersDeleteResponse : IAdditionalDataHolder, IParsable diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostResponse.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostResponse.cs index c39902134..5e97fa21a 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostResponse.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersPostResponse.cs @@ -8,7 +8,7 @@ namespace GitHub.Orgs.Item.Copilot.Billing.Selected_users { /// - /// The total number of seat assignments created. + /// The total number of seats created for the specified user(s). /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class Selected_usersPostResponse : IAdditionalDataHolder, IParsable diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs index 17c084575..c7aa0837d 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs @@ -34,7 +34,7 @@ public Selected_usersRequestBuilder(string rawUrl, IRequestAdapter requestAdapte { } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Cancels the Copilot seat assignment for each user specified.This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all users specified to "pending cancellation".This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership.For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response will contain the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -66,7 +66,7 @@ public Selected_usersRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for each user specified.The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for each user specified.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -98,7 +98,7 @@ public Selected_usersRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Cancels the Copilot seat assignment for each user specified.This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all users specified to "pending cancellation".This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership.For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response will contain the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// A /// The request body @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Co return requestInfo; } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for each user specified.The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for each user specified.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Orgs/Item/Members/Item/Copilot/CopilotRequestBuilder.cs b/src/GitHub/Orgs/Item/Members/Item/Copilot/CopilotRequestBuilder.cs index 2e5b238fc..6f98615a8 100644 --- a/src/GitHub/Orgs/Item/Members/Item/Copilot/CopilotRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Members/Item/Copilot/CopilotRequestBuilder.cs @@ -34,7 +34,7 @@ public CopilotRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba { } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot.Only organization owners can view Copilot seat assignment details for members of their organization.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot.The seat object contains information about the user's most recent Copilot activity. Users must have telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`.For more information about activity data, see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."Only organization owners can view Copilot seat assignment details for members of their organization.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -64,7 +64,7 @@ public CopilotRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CopilotSeatDetails.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot.Only organization owners can view Copilot seat assignment details for members of their organization.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Gets the GitHub Copilot seat details for a member of an organization who currently has access to GitHub Copilot.The seat object contains information about the user's most recent Copilot activity. Users must have telemetry enabled in their IDE for Copilot in the IDE activity to be reflected in `last_activity_at`.For more information about activity data, see "[Reviewing user activity data for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/reviewing-activity-related-to-github-copilot-in-your-organization/reviewing-user-activity-data-for-copilot-in-your-organization)."Only organization owners can view Copilot seat assignment details for members of their organization.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs index 60dc5c644..41ab9bc81 100644 --- a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs @@ -52,6 +52,8 @@ public partial class WithOrgPatchRequestBody : IAdditionalDataHolder, IParsable /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead.Whether dependency graph is automatically enabled for new repositories and repositories transferred to this organization.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. [Obsolete("")] public bool? DependencyGraphEnabledForNewRepositories { get; set; } + /// Controls whether or not deploy keys may be added and used for repositories in the organization. + public bool? DeployKeysEnabledForRepositories { get; set; } /// The description of the company. The maximum size is 160 characters. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -166,6 +168,7 @@ public virtual IDictionary> GetFieldDeserializers() { "dependabot_alerts_enabled_for_new_repositories", n => { DependabotAlertsEnabledForNewRepositories = n.GetBoolValue(); } }, { "dependabot_security_updates_enabled_for_new_repositories", n => { DependabotSecurityUpdatesEnabledForNewRepositories = n.GetBoolValue(); } }, { "dependency_graph_enabled_for_new_repositories", n => { DependencyGraphEnabledForNewRepositories = n.GetBoolValue(); } }, + { "deploy_keys_enabled_for_repositories", n => { DeployKeysEnabledForRepositories = n.GetBoolValue(); } }, { "description", n => { Description = n.GetStringValue(); } }, { "email", n => { Email = n.GetStringValue(); } }, { "has_organization_projects", n => { HasOrganizationProjects = n.GetBoolValue(); } }, @@ -204,6 +207,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("dependabot_alerts_enabled_for_new_repositories", DependabotAlertsEnabledForNewRepositories); writer.WriteBoolValue("dependabot_security_updates_enabled_for_new_repositories", DependabotSecurityUpdatesEnabledForNewRepositories); writer.WriteBoolValue("dependency_graph_enabled_for_new_repositories", DependencyGraphEnabledForNewRepositories); + writer.WriteBoolValue("deploy_keys_enabled_for_repositories", DeployKeysEnabledForRepositories); writer.WriteStringValue("description", Description); writer.WriteStringValue("email", Email); writer.WriteBoolValue("has_organization_projects", HasOrganizationProjects); diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 977eccab4..58e9056ae 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "CF15A790EDB46847DBAB6A56C38421F51E18945AF7B3B699418AD2F2FB8E3E0CE6E03666D7CF66A7182E136238FAA493463FE5F8CB445BC20F4BC0C23327AF55", + "descriptionHash": "F295E6C4635B38A700004CD624468F132C5D2297BCBE742CA3D2D18048001711980E12595B66A25CE9B3DF5134DC253E24378BCAF73A6735615DA5336286A728", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From 46760ffc6f044ebdb0e4ecf28b983b284dcf4137 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Thu, 7 Nov 2024 00:30:39 +0000 Subject: [PATCH 02/14] New updates to generated code --- .../Item/Copilot/Usage/UsageRequestBuilder.cs | 6 +- .../Models/DependencyGraphSpdxSbom_sbom.cs | 30 ++++--- ...endencyGraphSpdxSbom_sbom_relationships.cs | 85 +++++++++++++++++++ src/GitHub/kiota-lock.json | 2 +- 4 files changed, 109 insertions(+), 14 deletions(-) create mode 100644 src/GitHub/Models/DependencyGraphSpdxSbom_sbom_relationships.cs diff --git a/src/GitHub/Enterprises/Item/Copilot/Usage/UsageRequestBuilder.cs b/src/GitHub/Enterprises/Item/Copilot/Usage/UsageRequestBuilder.cs index 469c0d646..2530b41c0 100644 --- a/src/GitHub/Enterprises/Item/Copilot/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Copilot/Usage/UsageRequestBuilder.cs @@ -34,7 +34,7 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances,and number of active users by editor and language for each day. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances,and number of active users by editor and language for each day. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.The time zone in the response is in UTC time, that means that the cutoff time for the "day" is UTC time.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// API method documentation /// /// A List<global::GitHub.Models.CopilotUsageMetrics> @@ -65,7 +65,7 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return collectionResult?.AsList(); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances,and number of active users by editor and language for each day. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances,and number of active users by editor and language for each day. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.The time zone in the response is in UTC time, that means that the cutoff time for the "day" is UTC time.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -93,7 +93,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!NOTE]> This endpoint is in public preview and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances,and number of active users by editor and language for each day. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances,and number of active users by editor and language for each day. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.The time zone in the response is in UTC time, that means that the cutoff time for the "day" is UTC time.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class UsageRequestBuilderGetQueryParameters diff --git a/src/GitHub/Models/DependencyGraphSpdxSbom_sbom.cs b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom.cs index 6a15b86f1..ee63f4582 100644 --- a/src/GitHub/Models/DependencyGraphSpdxSbom_sbom.cs +++ b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom.cs @@ -14,6 +14,14 @@ public partial class DependencyGraphSpdxSbom_sbom : IAdditionalDataHolder, IPars { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// An optional comment about the SPDX document. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif /// The creationInfo property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -29,14 +37,6 @@ public partial class DependencyGraphSpdxSbom_sbom : IAdditionalDataHolder, IPars #nullable restore #else public string DataLicense { get; set; } -#endif - /// The name of the repository that the SPDX document describes. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DocumentDescribes { get; set; } -#nullable restore -#else - public List DocumentDescribes { get; set; } #endif /// The namespace for the SPDX document. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -61,6 +61,14 @@ public partial class DependencyGraphSpdxSbom_sbom : IAdditionalDataHolder, IPars #nullable restore #else public List Packages { get; set; } +#endif + /// The relationships property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Relationships { get; set; } +#nullable restore +#else + public List Relationships { get; set; } #endif /// The SPDX identifier for the SPDX document. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -103,12 +111,13 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "comment", n => { Comment = n.GetStringValue(); } }, { "creationInfo", n => { CreationInfo = n.GetObjectValue(global::GitHub.Models.DependencyGraphSpdxSbom_sbom_creationInfo.CreateFromDiscriminatorValue); } }, { "dataLicense", n => { DataLicense = n.GetStringValue(); } }, - { "documentDescribes", n => { DocumentDescribes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "documentNamespace", n => { DocumentNamespace = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, { "packages", n => { Packages = n.GetCollectionOfObjectValues(global::GitHub.Models.DependencyGraphSpdxSbom_sbom_packages.CreateFromDiscriminatorValue)?.AsList(); } }, + { "relationships", n => { Relationships = n.GetCollectionOfObjectValues(global::GitHub.Models.DependencyGraphSpdxSbom_sbom_relationships.CreateFromDiscriminatorValue)?.AsList(); } }, { "SPDXID", n => { SPDXID = n.GetStringValue(); } }, { "spdxVersion", n => { SpdxVersion = n.GetStringValue(); } }, }; @@ -120,12 +129,13 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("comment", Comment); writer.WriteObjectValue("creationInfo", CreationInfo); writer.WriteStringValue("dataLicense", DataLicense); - writer.WriteCollectionOfPrimitiveValues("documentDescribes", DocumentDescribes); writer.WriteStringValue("documentNamespace", DocumentNamespace); writer.WriteStringValue("name", Name); writer.WriteCollectionOfObjectValues("packages", Packages); + writer.WriteCollectionOfObjectValues("relationships", Relationships); writer.WriteStringValue("SPDXID", SPDXID); writer.WriteStringValue("spdxVersion", SpdxVersion); writer.WriteAdditionalData(AdditionalData); diff --git a/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_relationships.cs b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_relationships.cs new file mode 100644 index 000000000..735284d66 --- /dev/null +++ b/src/GitHub/Models/DependencyGraphSpdxSbom_sbom_relationships.cs @@ -0,0 +1,85 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class DependencyGraphSpdxSbom_sbom_relationships : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The SPDX identifier of the package that is the target of the relationship. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RelatedSpdxElement { get; set; } +#nullable restore +#else + public string RelatedSpdxElement { get; set; } +#endif + /// The type of relationship between the two SPDX elements. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RelationshipType { get; set; } +#nullable restore +#else + public string RelationshipType { get; set; } +#endif + /// The SPDX identifier of the package that is the source of the relationship. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SpdxElementId { get; set; } +#nullable restore +#else + public string SpdxElementId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DependencyGraphSpdxSbom_sbom_relationships() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.DependencyGraphSpdxSbom_sbom_relationships CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.DependencyGraphSpdxSbom_sbom_relationships(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "relatedSpdxElement", n => { RelatedSpdxElement = n.GetStringValue(); } }, + { "relationshipType", n => { RelationshipType = n.GetStringValue(); } }, + { "spdxElementId", n => { SpdxElementId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("relatedSpdxElement", RelatedSpdxElement); + writer.WriteStringValue("relationshipType", RelationshipType); + writer.WriteStringValue("spdxElementId", SpdxElementId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 58e9056ae..768dce27b 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "F295E6C4635B38A700004CD624468F132C5D2297BCBE742CA3D2D18048001711980E12595B66A25CE9B3DF5134DC253E24378BCAF73A6735615DA5336286A728", + "descriptionHash": "6EF5B0829FBA2898CFABEB2EC18D7D334A65B05ECCDA76F161E634281001836CAE4BB574D3BBBAC169572D44410B31922C594AA90BA20C9266C0F5423357CE42", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From 7f452a106b8d1b2b86e868bc99937c7fbf89a2e1 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Fri, 8 Nov 2024 00:30:23 +0000 Subject: [PATCH 03/14] New updates to generated code --- src/GitHub/Models/EnterpriseTeam.cs | 12 +++++++++--- src/GitHub/kiota-lock.json | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/GitHub/Models/EnterpriseTeam.cs b/src/GitHub/Models/EnterpriseTeam.cs index 84b6837bb..22261ec88 100644 --- a/src/GitHub/Models/EnterpriseTeam.cs +++ b/src/GitHub/Models/EnterpriseTeam.cs @@ -18,7 +18,13 @@ public partial class EnterpriseTeam : IAdditionalDataHolder, IParsable /// The created_at property public DateTimeOffset? CreatedAt { get; set; } /// The group_id property - public int? GroupId { get; set; } +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? GroupId { get; set; } +#nullable restore +#else + public string GroupId { get; set; } +#endif /// The html_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -97,7 +103,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, - { "group_id", n => { GroupId = n.GetIntValue(); } }, + { "group_id", n => { GroupId = n.GetStringValue(); } }, { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, { "id", n => { Id = n.GetLongValue(); } }, { "members_url", n => { MembersUrl = n.GetStringValue(); } }, @@ -116,7 +122,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); - writer.WriteIntValue("group_id", GroupId); + writer.WriteStringValue("group_id", GroupId); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteLongValue("id", Id); writer.WriteStringValue("members_url", MembersUrl); diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 768dce27b..ec2fb2830 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "6EF5B0829FBA2898CFABEB2EC18D7D334A65B05ECCDA76F161E634281001836CAE4BB574D3BBBAC169572D44410B31922C594AA90BA20C9266C0F5423357CE42", + "descriptionHash": "192FF0E68BFCECD544F385CFE30A1F0C4C603CA47F8EC874C4A1DA4DA77F8C0EB599E619241DC8C87822B7BB04BB992B810942432572656BECD68CC7D6AA04B3", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From 33f4df1e7b4e4f779eb2e5ce0988ad7140f20214 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Thu, 14 Nov 2024 00:31:05 +0000 Subject: [PATCH 04/14] New updates to generated code --- .../Access_tokensRequestBuilder.cs | 4 +-- src/GitHub/Models/CustomProperty.cs | 4 +++ .../Models/CustomProperty_source_type.cs | 19 ++++++++++++ src/GitHub/Models/OrganizationRole.cs | 8 +++++ .../Models/OrganizationRole_base_role.cs | 31 +++++++++++++++++++ src/GitHub/Models/OrganizationRole_source.cs | 23 ++++++++++++++ .../Models/OrganizationSecretScanningAlert.cs | 30 ++++++++++++++++++ src/GitHub/Models/SecretScanningAlert.cs | 30 ++++++++++++++++++ src/GitHub/Models/TeamRoleAssignment.cs | 4 +++ .../Models/TeamRoleAssignment_assignment.cs | 23 ++++++++++++++ src/GitHub/Models/UserRoleAssignment.cs | 14 +++++++++ .../Models/UserRoleAssignment_assignment.cs | 23 ++++++++++++++ .../Item/WithAsset_ItemRequestBuilder.cs | 4 +-- src/GitHub/kiota-lock.json | 2 +- 14 files changed, 214 insertions(+), 5 deletions(-) create mode 100644 src/GitHub/Models/CustomProperty_source_type.cs create mode 100644 src/GitHub/Models/OrganizationRole_base_role.cs create mode 100644 src/GitHub/Models/OrganizationRole_source.cs create mode 100644 src/GitHub/Models/TeamRoleAssignment_assignment.cs create mode 100644 src/GitHub/Models/UserRoleAssignment_assignment.cs diff --git a/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs b/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs index 701de9254..8b36d1c81 100644 --- a/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs +++ b/src/GitHub/App/Installations/Item/Access_tokens/Access_tokensRequestBuilder.cs @@ -34,7 +34,7 @@ public Access_tokensRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.When using the repository or permission parameters to reduce the access of the token, the complexity of the token is increased due to both the number of permissions in the request and the number of repositories the token will have access to. If the complexity is too large, the token will fail to be issued. If this occurs, the error message will indicate the maximum number of repositories that should be requested. For the average application requesting 8 permissions, this limit is around 5000 repositories. With fewer permissions requested, more repositories are supported.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + /// Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// API method documentation /// /// A @@ -66,7 +66,7 @@ public Access_tokensRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.InstallationToken.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.When using the repository or permission parameters to reduce the access of the token, the complexity of the token is increased due to both the number of permissions in the request and the number of repositories the token will have access to. If the complexity is too large, the token will fail to be issued. If this occurs, the error message will indicate the maximum number of repositories that should be requested. For the average application requesting 8 permissions, this limit is around 5000 repositories. With fewer permissions requested, more repositories are supported.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + /// Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access.Optionally, you can use the `repositories` or `repository_ids` body parameters to specify individual repositories that the installation access token can access. If you don't use `repositories` or `repository_ids` to grant access to specific repositories, the installation access token will have access to all repositories that the installation was granted access to. The installation access token cannot be granted access to repositories that the installation was not granted access to. Up to 500 repositories can be listed in this manner.Optionally, use the `permissions` body parameter to specify the permissions that the installation access token should have. If `permissions` is not specified, the installation access token will have all of the permissions that were granted to the app. The installation access token cannot be granted permissions that the app was not granted.You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Models/CustomProperty.cs b/src/GitHub/Models/CustomProperty.cs index bec80963a..9505689ab 100644 --- a/src/GitHub/Models/CustomProperty.cs +++ b/src/GitHub/Models/CustomProperty.cs @@ -49,6 +49,8 @@ public partial class CustomProperty : IAdditionalDataHolder, IParsable #endif /// Whether the property is required. public bool? Required { get; set; } + /// The source type of the property + public global::GitHub.Models.CustomProperty_source_type? SourceType { get; set; } /// The URL that can be used to fetch, update, or delete info about this property via the API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -91,6 +93,7 @@ public virtual IDictionary> GetFieldDeserializers() { "description", n => { Description = n.GetStringValue(); } }, { "property_name", n => { PropertyName = n.GetStringValue(); } }, { "required", n => { Required = n.GetBoolValue(); } }, + { "source_type", n => { SourceType = n.GetEnumValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, { "value_type", n => { ValueType = n.GetEnumValue(); } }, { "values_editable_by", n => { ValuesEditableBy = n.GetEnumValue(); } }, @@ -108,6 +111,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("description", Description); writer.WriteStringValue("property_name", PropertyName); writer.WriteBoolValue("required", Required); + writer.WriteEnumValue("source_type", SourceType); writer.WriteStringValue("url", Url); writer.WriteEnumValue("values_editable_by", ValuesEditableBy); writer.WriteEnumValue("value_type", ValueType); diff --git a/src/GitHub/Models/CustomProperty_source_type.cs b/src/GitHub/Models/CustomProperty_source_type.cs new file mode 100644 index 000000000..a5295d2de --- /dev/null +++ b/src/GitHub/Models/CustomProperty_source_type.cs @@ -0,0 +1,19 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// The source type of the property + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum CustomProperty_source_type + { + [EnumMember(Value = "organization")] + #pragma warning disable CS1591 + Organization, + #pragma warning restore CS1591 + [EnumMember(Value = "enterprise")] + #pragma warning disable CS1591 + Enterprise, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Models/OrganizationRole.cs b/src/GitHub/Models/OrganizationRole.cs index 2cd888b19..959cfa669 100644 --- a/src/GitHub/Models/OrganizationRole.cs +++ b/src/GitHub/Models/OrganizationRole.cs @@ -15,6 +15,8 @@ public partial class OrganizationRole : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The system role from which this role inherits permissions. + public global::GitHub.Models.OrganizationRole_base_role? BaseRole { get; set; } /// The date and time the role was created. public DateTimeOffset? CreatedAt { get; set; } /// A short description about who this role is for or what permissions it grants. @@ -51,6 +53,8 @@ public partial class OrganizationRole : IAdditionalDataHolder, IParsable #else public List Permissions { get; set; } #endif + /// Source answers the question, "where did this role come from?" + public global::GitHub.Models.OrganizationRole_source? Source { get; set; } /// The date and time the role was last updated. public DateTimeOffset? UpdatedAt { get; set; } /// @@ -78,12 +82,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "base_role", n => { BaseRole = n.GetEnumValue(); } }, { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, { "description", n => { Description = n.GetStringValue(); } }, { "id", n => { Id = n.GetLongValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, { "organization", n => { Organization = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, { "permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "source", n => { Source = n.GetEnumValue(); } }, { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, }; } @@ -94,12 +100,14 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("base_role", BaseRole); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("description", Description); writer.WriteLongValue("id", Id); writer.WriteStringValue("name", Name); writer.WriteObjectValue("organization", Organization); writer.WriteCollectionOfPrimitiveValues("permissions", Permissions); + writer.WriteEnumValue("source", Source); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/GitHub/Models/OrganizationRole_base_role.cs b/src/GitHub/Models/OrganizationRole_base_role.cs new file mode 100644 index 000000000..112498290 --- /dev/null +++ b/src/GitHub/Models/OrganizationRole_base_role.cs @@ -0,0 +1,31 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// The system role from which this role inherits permissions. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum OrganizationRole_base_role + { + [EnumMember(Value = "read")] + #pragma warning disable CS1591 + Read, + #pragma warning restore CS1591 + [EnumMember(Value = "triage")] + #pragma warning disable CS1591 + Triage, + #pragma warning restore CS1591 + [EnumMember(Value = "write")] + #pragma warning disable CS1591 + Write, + #pragma warning restore CS1591 + [EnumMember(Value = "maintain")] + #pragma warning disable CS1591 + Maintain, + #pragma warning restore CS1591 + [EnumMember(Value = "admin")] + #pragma warning disable CS1591 + Admin, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Models/OrganizationRole_source.cs b/src/GitHub/Models/OrganizationRole_source.cs new file mode 100644 index 000000000..dcfac5b28 --- /dev/null +++ b/src/GitHub/Models/OrganizationRole_source.cs @@ -0,0 +1,23 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// Source answers the question, "where did this role come from?" + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum OrganizationRole_source + { + [EnumMember(Value = "Organization")] + #pragma warning disable CS1591 + Organization, + #pragma warning restore CS1591 + [EnumMember(Value = "Enterprise")] + #pragma warning disable CS1591 + Enterprise, + #pragma warning restore CS1591 + [EnumMember(Value = "Predefined")] + #pragma warning disable CS1591 + Predefined, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Models/OrganizationSecretScanningAlert.cs b/src/GitHub/Models/OrganizationSecretScanningAlert.cs index e5b8d30b8..baf2ffe4c 100644 --- a/src/GitHub/Models/OrganizationSecretScanningAlert.cs +++ b/src/GitHub/Models/OrganizationSecretScanningAlert.cs @@ -49,6 +49,30 @@ public partial class OrganizationSecretScanningAlert : IAdditionalDataHolder, IP #nullable restore #else public global::GitHub.Models.NullableSimpleUser PushProtectionBypassedBy { get; set; } +#endif + /// An optional comment when requesting a push protection bypass. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PushProtectionBypassRequestComment { get; set; } +#nullable restore +#else + public string PushProtectionBypassRequestComment { get; set; } +#endif + /// The URL to a push protection bypass request. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PushProtectionBypassRequestHtmlUrl { get; set; } +#nullable restore +#else + public string PushProtectionBypassRequestHtmlUrl { get; set; } +#endif + /// A GitHub user. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.NullableSimpleUser? PushProtectionBypassRequestReviewer { get; set; } +#nullable restore +#else + public global::GitHub.Models.NullableSimpleUser PushProtectionBypassRequestReviewer { get; set; } #endif /// A GitHub repository. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,6 +171,9 @@ public virtual IDictionary> GetFieldDeserializers() { "multi_repo", n => { MultiRepo = n.GetBoolValue(); } }, { "number", n => { Number = n.GetIntValue(); } }, { "publicly_leaked", n => { PubliclyLeaked = n.GetBoolValue(); } }, + { "push_protection_bypass_request_comment", n => { PushProtectionBypassRequestComment = n.GetStringValue(); } }, + { "push_protection_bypass_request_html_url", n => { PushProtectionBypassRequestHtmlUrl = n.GetStringValue(); } }, + { "push_protection_bypass_request_reviewer", n => { PushProtectionBypassRequestReviewer = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, { "push_protection_bypassed", n => { PushProtectionBypassed = n.GetBoolValue(); } }, { "push_protection_bypassed_at", n => { PushProtectionBypassedAt = n.GetDateTimeOffsetValue(); } }, { "push_protection_bypassed_by", n => { PushProtectionBypassedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, @@ -177,6 +204,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("push_protection_bypassed", PushProtectionBypassed); writer.WriteDateTimeOffsetValue("push_protection_bypassed_at", PushProtectionBypassedAt); writer.WriteObjectValue("push_protection_bypassed_by", PushProtectionBypassedBy); + writer.WriteStringValue("push_protection_bypass_request_comment", PushProtectionBypassRequestComment); + writer.WriteStringValue("push_protection_bypass_request_html_url", PushProtectionBypassRequestHtmlUrl); + writer.WriteObjectValue("push_protection_bypass_request_reviewer", PushProtectionBypassRequestReviewer); writer.WriteObjectValue("repository", Repository); writer.WriteEnumValue("resolution", Resolution); writer.WriteStringValue("resolution_comment", ResolutionComment); diff --git a/src/GitHub/Models/SecretScanningAlert.cs b/src/GitHub/Models/SecretScanningAlert.cs index c34e69374..2fa9c8efa 100644 --- a/src/GitHub/Models/SecretScanningAlert.cs +++ b/src/GitHub/Models/SecretScanningAlert.cs @@ -49,6 +49,30 @@ public partial class SecretScanningAlert : IAdditionalDataHolder, IParsable #nullable restore #else public global::GitHub.Models.NullableSimpleUser PushProtectionBypassedBy { get; set; } +#endif + /// An optional comment when requesting a push protection bypass. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PushProtectionBypassRequestComment { get; set; } +#nullable restore +#else + public string PushProtectionBypassRequestComment { get; set; } +#endif + /// The URL to a push protection bypass request. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PushProtectionBypassRequestHtmlUrl { get; set; } +#nullable restore +#else + public string PushProtectionBypassRequestHtmlUrl { get; set; } +#endif + /// A GitHub user. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.NullableSimpleUser? PushProtectionBypassRequestReviewer { get; set; } +#nullable restore +#else + public global::GitHub.Models.NullableSimpleUser PushProtectionBypassRequestReviewer { get; set; } #endif /// **Required when the `state` is `resolved`.** The reason for resolving the alert. public global::GitHub.Models.SecretScanningAlertResolution? Resolution { get; set; } @@ -139,6 +163,9 @@ public virtual IDictionary> GetFieldDeserializers() { "multi_repo", n => { MultiRepo = n.GetBoolValue(); } }, { "number", n => { Number = n.GetIntValue(); } }, { "publicly_leaked", n => { PubliclyLeaked = n.GetBoolValue(); } }, + { "push_protection_bypass_request_comment", n => { PushProtectionBypassRequestComment = n.GetStringValue(); } }, + { "push_protection_bypass_request_html_url", n => { PushProtectionBypassRequestHtmlUrl = n.GetStringValue(); } }, + { "push_protection_bypass_request_reviewer", n => { PushProtectionBypassRequestReviewer = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, { "push_protection_bypassed", n => { PushProtectionBypassed = n.GetBoolValue(); } }, { "push_protection_bypassed_at", n => { PushProtectionBypassedAt = n.GetDateTimeOffsetValue(); } }, { "push_protection_bypassed_by", n => { PushProtectionBypassedBy = n.GetObjectValue(global::GitHub.Models.NullableSimpleUser.CreateFromDiscriminatorValue); } }, @@ -168,6 +195,9 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("push_protection_bypassed", PushProtectionBypassed); writer.WriteDateTimeOffsetValue("push_protection_bypassed_at", PushProtectionBypassedAt); writer.WriteObjectValue("push_protection_bypassed_by", PushProtectionBypassedBy); + writer.WriteStringValue("push_protection_bypass_request_comment", PushProtectionBypassRequestComment); + writer.WriteStringValue("push_protection_bypass_request_html_url", PushProtectionBypassRequestHtmlUrl); + writer.WriteObjectValue("push_protection_bypass_request_reviewer", PushProtectionBypassRequestReviewer); writer.WriteEnumValue("resolution", Resolution); writer.WriteStringValue("resolution_comment", ResolutionComment); writer.WriteDateTimeOffsetValue("resolved_at", ResolvedAt); diff --git a/src/GitHub/Models/TeamRoleAssignment.cs b/src/GitHub/Models/TeamRoleAssignment.cs index 80fbbda44..3503cda82 100644 --- a/src/GitHub/Models/TeamRoleAssignment.cs +++ b/src/GitHub/Models/TeamRoleAssignment.cs @@ -15,6 +15,8 @@ public partial class TeamRoleAssignment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// Determines if the team has a direct, indirect, or mixed relationship to a role + public global::GitHub.Models.TeamRoleAssignment_assignment? Assignment { get; set; } /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -146,6 +148,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "assignment", n => { Assignment = n.GetEnumValue(); } }, { "description", n => { Description = n.GetStringValue(); } }, { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, { "id", n => { Id = n.GetIntValue(); } }, @@ -169,6 +172,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("assignment", Assignment); writer.WriteStringValue("description", Description); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteIntValue("id", Id); diff --git a/src/GitHub/Models/TeamRoleAssignment_assignment.cs b/src/GitHub/Models/TeamRoleAssignment_assignment.cs new file mode 100644 index 000000000..d5b21e1e5 --- /dev/null +++ b/src/GitHub/Models/TeamRoleAssignment_assignment.cs @@ -0,0 +1,23 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// Determines if the team has a direct, indirect, or mixed relationship to a role + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum TeamRoleAssignment_assignment + { + [EnumMember(Value = "direct")] + #pragma warning disable CS1591 + Direct, + #pragma warning restore CS1591 + [EnumMember(Value = "indirect")] + #pragma warning disable CS1591 + Indirect, + #pragma warning restore CS1591 + [EnumMember(Value = "mixed")] + #pragma warning disable CS1591 + Mixed, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Models/UserRoleAssignment.cs b/src/GitHub/Models/UserRoleAssignment.cs index 64e17d93c..db0734dbe 100644 --- a/src/GitHub/Models/UserRoleAssignment.cs +++ b/src/GitHub/Models/UserRoleAssignment.cs @@ -15,6 +15,8 @@ public partial class UserRoleAssignment : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// Determines if the user has a direct, indirect, or mixed relationship to a role + public global::GitHub.Models.UserRoleAssignment_assignment? Assignment { get; set; } /// The avatar_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -81,6 +83,14 @@ public partial class UserRoleAssignment : IAdditionalDataHolder, IParsable #endif /// The id property public int? Id { get; set; } + /// Team the user has gotten the role through +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? InheritedFrom { get; set; } +#nullable restore +#else + public List InheritedFrom { get; set; } +#endif /// The login property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -204,6 +214,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { + { "assignment", n => { Assignment = n.GetEnumValue(); } }, { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, { "email", n => { Email = n.GetStringValue(); } }, { "events_url", n => { EventsUrl = n.GetStringValue(); } }, @@ -213,6 +224,7 @@ public virtual IDictionary> GetFieldDeserializers() { "gravatar_id", n => { GravatarId = n.GetStringValue(); } }, { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, { "id", n => { Id = n.GetIntValue(); } }, + { "inherited_from", n => { InheritedFrom = n.GetCollectionOfObjectValues(global::GitHub.Models.TeamSimple.CreateFromDiscriminatorValue)?.AsList(); } }, { "login", n => { Login = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, { "node_id", n => { NodeId = n.GetStringValue(); } }, @@ -235,6 +247,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("assignment", Assignment); writer.WriteStringValue("avatar_url", AvatarUrl); writer.WriteStringValue("email", Email); writer.WriteStringValue("events_url", EventsUrl); @@ -244,6 +257,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("gravatar_id", GravatarId); writer.WriteStringValue("html_url", HtmlUrl); writer.WriteIntValue("id", Id); + writer.WriteCollectionOfObjectValues("inherited_from", InheritedFrom); writer.WriteStringValue("login", Login); writer.WriteStringValue("name", Name); writer.WriteStringValue("node_id", NodeId); diff --git a/src/GitHub/Models/UserRoleAssignment_assignment.cs b/src/GitHub/Models/UserRoleAssignment_assignment.cs new file mode 100644 index 000000000..f37a1b439 --- /dev/null +++ b/src/GitHub/Models/UserRoleAssignment_assignment.cs @@ -0,0 +1,23 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// Determines if the user has a direct, indirect, or mixed relationship to a role + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum UserRoleAssignment_assignment + { + [EnumMember(Value = "direct")] + #pragma warning disable CS1591 + Direct, + #pragma warning restore CS1591 + [EnumMember(Value = "indirect")] + #pragma warning disable CS1591 + Indirect, + #pragma warning restore CS1591 + [EnumMember(Value = "mixed")] + #pragma warning disable CS1591 + Mixed, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Repos/Item/Item/Releases/Assets/Item/WithAsset_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Releases/Assets/Item/WithAsset_ItemRequestBuilder.cs index b7586445e..05a504986 100644 --- a/src/GitHub/Repos/Item/Item/Releases/Assets/Item/WithAsset_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Releases/Assets/Item/WithAsset_ItemRequestBuilder.cs @@ -52,7 +52,7 @@ public async Task DeleteAsync(Action - /// To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response. + /// To download the asset's binary content:- If within a browser, fetch the location specified in the `browser_download_url` key provided in the response.- Alternatively, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response. /// API method documentation /// /// A @@ -112,7 +112,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response. + /// To download the asset's binary content:- If within a browser, fetch the location specified in the `browser_download_url` key provided in the response.- Alternatively, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types). The API will either redirect the client to the location, or stream it directly if possible. API clients should handle both a `200` or `302` response. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index ec2fb2830..f4d9c9e34 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "192FF0E68BFCECD544F385CFE30A1F0C4C603CA47F8EC874C4A1DA4DA77F8C0EB599E619241DC8C87822B7BB04BB992B810942432572656BECD68CC7D6AA04B3", + "descriptionHash": "1F2E3F16AD1164BC535473DE8FBF3FF0C773EEADF2589BC3277A7DEB78306F57E6708CF83716C4FDD5A91263A32EDB7A21EDB69FF5E06DBEA1B7062EFD818839", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From 1e3bb8112bc6ecc3d47ea493f9f7178c942aa309 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Wed, 20 Nov 2024 00:32:09 +0000 Subject: [PATCH 05/14] New updates to generated code --- .../RouteStats/Item/Item/WithActor_ItemRequestBuilder.cs | 8 ++++---- .../Api/SubjectStats/SubjectStatsRequestBuilder.cs | 8 ++++---- .../Item/Item/WithActor_ItemRequestBuilder.cs | 8 ++++---- .../Api/SummaryStats/SummaryStatsRequestBuilder.cs | 8 ++++---- .../Users/Item/WithUser_ItemRequestBuilder.cs | 8 ++++---- .../TimeStats/Item/Item/WithActor_ItemRequestBuilder.cs | 8 ++++---- .../Insights/Api/TimeStats/TimeStatsRequestBuilder.cs | 8 ++++---- .../TimeStats/Users/Item/WithUser_ItemRequestBuilder.cs | 8 ++++---- .../Api/UserStats/Item/WithUser_ItemRequestBuilder.cs | 8 ++++---- src/GitHub/kiota-lock.json | 2 +- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/GitHub/Orgs/Item/Insights/Api/RouteStats/Item/Item/WithActor_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/RouteStats/Item/Item/WithActor_ItemRequestBuilder.cs index 63e3520cb..a0f96e84e 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/RouteStats/Item/Item/WithActor_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/RouteStats/Item/Item/WithActor_ItemRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class WithActor_ItemRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithActor_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}{&direction*,page*,per_page*,sort*}", pathParameters) + public WithActor_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public WithActor_ItemRequestBuilder(Dictionary pathParameters, I /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithActor_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}{&direction*,page*,per_page*,sort*}", rawUrl) + public WithActor_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", rawUrl) { } /// @@ -90,7 +90,7 @@ public partial class WithActor_ItemRequestBuilderGetQueryParameters /// The direction to sort the results by. [QueryParameter("direction")] public global::GitHub.Orgs.Item.Insights.Api.RouteStats.Item.Item.GetDirectionQueryParameterType? Direction { get; set; } - /// The maximum timestamp to query for stats + /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("max_timestamp")] @@ -100,7 +100,7 @@ public partial class WithActor_ItemRequestBuilderGetQueryParameters [QueryParameter("max_timestamp")] public string MaxTimestamp { get; set; } #endif - /// The minimum timestamp to query for stats + /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("min_timestamp")] diff --git a/src/GitHub/Orgs/Item/Insights/Api/SubjectStats/SubjectStatsRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/SubjectStats/SubjectStatsRequestBuilder.cs index df2d881c7..fe4ef40d7 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/SubjectStats/SubjectStatsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/SubjectStats/SubjectStatsRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class SubjectStatsRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SubjectStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/subject-stats?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}{&direction*,page*,per_page*,sort*}", pathParameters) + public SubjectStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/subject-stats?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public SubjectStatsRequestBuilder(Dictionary pathParameters, IRe /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SubjectStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/subject-stats?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}{&direction*,page*,per_page*,sort*}", rawUrl) + public SubjectStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/subject-stats?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", rawUrl) { } /// @@ -90,7 +90,7 @@ public partial class SubjectStatsRequestBuilderGetQueryParameters /// The direction to sort the results by. [QueryParameter("direction")] public global::GitHub.Orgs.Item.Insights.Api.SubjectStats.GetDirectionQueryParameterType? Direction { get; set; } - /// The maximum timestamp to query for stats + /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("max_timestamp")] @@ -100,7 +100,7 @@ public partial class SubjectStatsRequestBuilderGetQueryParameters [QueryParameter("max_timestamp")] public string MaxTimestamp { get; set; } #endif - /// The minimum timestamp to query for stats + /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("min_timestamp")] diff --git a/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/Item/Item/WithActor_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/Item/Item/WithActor_ItemRequestBuilder.cs index 2e57aca63..4146d57b6 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/Item/Item/WithActor_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/Item/Item/WithActor_ItemRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class WithActor_ItemRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithActor_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}", pathParameters) + public WithActor_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}?min_timestamp={min_timestamp}{&max_timestamp*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public WithActor_ItemRequestBuilder(Dictionary pathParameters, I /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithActor_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}", rawUrl) + public WithActor_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}?min_timestamp={min_timestamp}{&max_timestamp*}", rawUrl) { } /// @@ -86,7 +86,7 @@ public RequestInformation ToGetRequestInformation(ActionThe maximum timestamp to query for stats + /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("max_timestamp")] @@ -96,7 +96,7 @@ public partial class WithActor_ItemRequestBuilderGetQueryParameters [QueryParameter("max_timestamp")] public string MaxTimestamp { get; set; } #endif - /// The minimum timestamp to query for stats + /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("min_timestamp")] diff --git a/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/SummaryStatsRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/SummaryStatsRequestBuilder.cs index a9022febc..8cbb5ea93 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/SummaryStatsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/SummaryStatsRequestBuilder.cs @@ -41,7 +41,7 @@ public partial class SummaryStatsRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SummaryStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}", pathParameters) + public SummaryStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats?min_timestamp={min_timestamp}{&max_timestamp*}", pathParameters) { } /// @@ -49,7 +49,7 @@ public SummaryStatsRequestBuilder(Dictionary pathParameters, IRe /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SummaryStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}", rawUrl) + public SummaryStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats?min_timestamp={min_timestamp}{&max_timestamp*}", rawUrl) { } /// @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(ActionThe maximum timestamp to query for stats + /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("max_timestamp")] @@ -115,7 +115,7 @@ public partial class SummaryStatsRequestBuilderGetQueryParameters [QueryParameter("max_timestamp")] public string MaxTimestamp { get; set; } #endif - /// The minimum timestamp to query for stats + /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("min_timestamp")] diff --git a/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/Users/Item/WithUser_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/Users/Item/WithUser_ItemRequestBuilder.cs index bfaf6a0e2..7e41f5e58 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/Users/Item/WithUser_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/SummaryStats/Users/Item/WithUser_ItemRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class WithUser_ItemRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithUser_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats/users/{user_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}", pathParameters) + public WithUser_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats/users/{user_id}?min_timestamp={min_timestamp}{&max_timestamp*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public WithUser_ItemRequestBuilder(Dictionary pathParameters, IR /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithUser_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats/users/{user_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}", rawUrl) + public WithUser_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/summary-stats/users/{user_id}?min_timestamp={min_timestamp}{&max_timestamp*}", rawUrl) { } /// @@ -86,7 +86,7 @@ public RequestInformation ToGetRequestInformation(ActionThe maximum timestamp to query for stats + /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("max_timestamp")] @@ -96,7 +96,7 @@ public partial class WithUser_ItemRequestBuilderGetQueryParameters [QueryParameter("max_timestamp")] public string MaxTimestamp { get; set; } #endif - /// The minimum timestamp to query for stats + /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("min_timestamp")] diff --git a/src/GitHub/Orgs/Item/Insights/Api/TimeStats/Item/Item/WithActor_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/TimeStats/Item/Item/WithActor_ItemRequestBuilder.cs index 0a400eb82..84d2cafcf 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/TimeStats/Item/Item/WithActor_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/TimeStats/Item/Item/WithActor_ItemRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class WithActor_ItemRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithActor_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}", pathParameters) + public WithActor_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}?min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}{&max_timestamp*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public WithActor_ItemRequestBuilder(Dictionary pathParameters, I /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithActor_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}", rawUrl) + public WithActor_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats/{actor_type}/{actor_id}?min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}{&max_timestamp*}", rawUrl) { } /// @@ -87,7 +87,7 @@ public RequestInformation ToGetRequestInformation(ActionThe maximum timestamp to query for stats + /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("max_timestamp")] @@ -97,7 +97,7 @@ public partial class WithActor_ItemRequestBuilderGetQueryParameters [QueryParameter("max_timestamp")] public string MaxTimestamp { get; set; } #endif - /// The minimum timestamp to query for stats + /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("min_timestamp")] diff --git a/src/GitHub/Orgs/Item/Insights/Api/TimeStats/TimeStatsRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/TimeStats/TimeStatsRequestBuilder.cs index 52de9ba5c..55c683ba2 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/TimeStats/TimeStatsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/TimeStats/TimeStatsRequestBuilder.cs @@ -41,7 +41,7 @@ public partial class TimeStatsRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public TimeStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}", pathParameters) + public TimeStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats?min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}{&max_timestamp*}", pathParameters) { } /// @@ -49,7 +49,7 @@ public TimeStatsRequestBuilder(Dictionary pathParameters, IReque /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public TimeStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}", rawUrl) + public TimeStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats?min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}{&max_timestamp*}", rawUrl) { } /// @@ -106,7 +106,7 @@ public RequestInformation ToGetRequestInformation(ActionThe maximum timestamp to query for stats + /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("max_timestamp")] @@ -116,7 +116,7 @@ public partial class TimeStatsRequestBuilderGetQueryParameters [QueryParameter("max_timestamp")] public string MaxTimestamp { get; set; } #endif - /// The minimum timestamp to query for stats + /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("min_timestamp")] diff --git a/src/GitHub/Orgs/Item/Insights/Api/TimeStats/Users/Item/WithUser_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/TimeStats/Users/Item/WithUser_ItemRequestBuilder.cs index edc2b43da..bd633f922 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/TimeStats/Users/Item/WithUser_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/TimeStats/Users/Item/WithUser_ItemRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class WithUser_ItemRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithUser_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats/users/{user_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}", pathParameters) + public WithUser_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats/users/{user_id}?min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}{&max_timestamp*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public WithUser_ItemRequestBuilder(Dictionary pathParameters, IR /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithUser_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats/users/{user_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}", rawUrl) + public WithUser_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/time-stats/users/{user_id}?min_timestamp={min_timestamp}×tamp_increment={timestamp_increment}{&max_timestamp*}", rawUrl) { } /// @@ -87,7 +87,7 @@ public RequestInformation ToGetRequestInformation(ActionThe maximum timestamp to query for stats + /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("max_timestamp")] @@ -97,7 +97,7 @@ public partial class WithUser_ItemRequestBuilderGetQueryParameters [QueryParameter("max_timestamp")] public string MaxTimestamp { get; set; } #endif - /// The minimum timestamp to query for stats + /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("min_timestamp")] diff --git a/src/GitHub/Orgs/Item/Insights/Api/UserStats/Item/WithUser_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/UserStats/Item/WithUser_ItemRequestBuilder.cs index f11cb4633..2f8e49948 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/UserStats/Item/WithUser_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/UserStats/Item/WithUser_ItemRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class WithUser_ItemRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithUser_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/user-stats/{user_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}{&direction*,page*,per_page*,sort*}", pathParameters) + public WithUser_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/user-stats/{user_id}?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public WithUser_ItemRequestBuilder(Dictionary pathParameters, IR /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithUser_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/user-stats/{user_id}?max_timestamp={max_timestamp}&min_timestamp={min_timestamp}{&direction*,page*,per_page*,sort*}", rawUrl) + public WithUser_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/user-stats/{user_id}?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", rawUrl) { } /// @@ -90,7 +90,7 @@ public partial class WithUser_ItemRequestBuilderGetQueryParameters /// The direction to sort the results by. [QueryParameter("direction")] public global::GitHub.Orgs.Item.Insights.Api.UserStats.Item.GetDirectionQueryParameterType? Direction { get; set; } - /// The maximum timestamp to query for stats + /// The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("max_timestamp")] @@ -100,7 +100,7 @@ public partial class WithUser_ItemRequestBuilderGetQueryParameters [QueryParameter("max_timestamp")] public string MaxTimestamp { get; set; } #endif - /// The minimum timestamp to query for stats + /// The minimum timestamp to query for stats. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("min_timestamp")] diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index f4d9c9e34..8592f1c43 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "1F2E3F16AD1164BC535473DE8FBF3FF0C773EEADF2589BC3277A7DEB78306F57E6708CF83716C4FDD5A91263A32EDB7A21EDB69FF5E06DBEA1B7062EFD818839", + "descriptionHash": "CDEF6C3DAC0E0FEF9CD50CECF39A8E9192F22D889C522151D331319FC11F45E2805F96C590C59D6766503A18665DB53F820E59879C0ECAC12B40A270EB42D897", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From 511f223878bee11d7ddaa7c2662f6855394f79d8 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Thu, 21 Nov 2024 00:32:23 +0000 Subject: [PATCH 06/14] New updates to generated code --- src/GitHub/Models/CopilotDotcomChat_models.cs | 2 +- .../Models/CopilotDotcomPullRequests_repositories_models.cs | 2 +- src/GitHub/Models/CopilotIdeChat_editors_models.cs | 2 +- src/GitHub/Models/CopilotIdeCodeCompletions_editors_models.cs | 2 +- src/GitHub/kiota-lock.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/GitHub/Models/CopilotDotcomChat_models.cs b/src/GitHub/Models/CopilotDotcomChat_models.cs index f2d790648..855770a5e 100644 --- a/src/GitHub/Models/CopilotDotcomChat_models.cs +++ b/src/GitHub/Models/CopilotDotcomChat_models.cs @@ -24,7 +24,7 @@ public partial class CopilotDotcomChat_models : IAdditionalDataHolder, IParsable #endif /// Indicates whether a model is custom or default. public bool? IsCustomModel { get; set; } - /// Name of the language used for Copilot code completion suggestions, for the given editor. + /// Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { get; set; } diff --git a/src/GitHub/Models/CopilotDotcomPullRequests_repositories_models.cs b/src/GitHub/Models/CopilotDotcomPullRequests_repositories_models.cs index f28a3866d..56e6acdbf 100644 --- a/src/GitHub/Models/CopilotDotcomPullRequests_repositories_models.cs +++ b/src/GitHub/Models/CopilotDotcomPullRequests_repositories_models.cs @@ -24,7 +24,7 @@ public partial class CopilotDotcomPullRequests_repositories_models : IAdditional #endif /// Indicates whether a model is custom or default. public bool? IsCustomModel { get; set; } - /// Name of the language used for Copilot code completion suggestions, for the given editor. + /// Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { get; set; } diff --git a/src/GitHub/Models/CopilotIdeChat_editors_models.cs b/src/GitHub/Models/CopilotIdeChat_editors_models.cs index 4a6c73147..9be76add9 100644 --- a/src/GitHub/Models/CopilotIdeChat_editors_models.cs +++ b/src/GitHub/Models/CopilotIdeChat_editors_models.cs @@ -24,7 +24,7 @@ public partial class CopilotIdeChat_editors_models : IAdditionalDataHolder, IPar #endif /// Indicates whether a model is custom or default. public bool? IsCustomModel { get; set; } - /// Name of the language used for Copilot code completion suggestions, for the given editor. + /// Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { get; set; } diff --git a/src/GitHub/Models/CopilotIdeCodeCompletions_editors_models.cs b/src/GitHub/Models/CopilotIdeCodeCompletions_editors_models.cs index 44ebc1254..607b2c497 100644 --- a/src/GitHub/Models/CopilotIdeCodeCompletions_editors_models.cs +++ b/src/GitHub/Models/CopilotIdeCodeCompletions_editors_models.cs @@ -32,7 +32,7 @@ public partial class CopilotIdeCodeCompletions_editors_models : IAdditionalDataH #else public List Languages { get; set; } #endif - /// Name of the language used for Copilot code completion suggestions, for the given editor. + /// Name of the model used for Copilot code completion suggestions. If the default model is used will appear as 'default'. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Name { get; set; } diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 8592f1c43..5b6954dff 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "CDEF6C3DAC0E0FEF9CD50CECF39A8E9192F22D889C522151D331319FC11F45E2805F96C590C59D6766503A18665DB53F820E59879C0ECAC12B40A270EB42D897", + "descriptionHash": "0AB8C0BEBB4CF2CCBAA118062E332EAAB5120B55A149F9ADCA6C6FCA3F01668CDA3C0B67CC026F7F5171A453F27F4A184F747AA1CED8E8AB979AE5C080815180", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From 5c09634f8dfe9ec965fba3b889156426f5ff5405 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Sat, 23 Nov 2024 00:31:44 +0000 Subject: [PATCH 07/14] New updates to generated code --- src/GitHub/Models/BillingUsageReport.cs | 65 +++++++++ .../Models/BillingUsageReport503Error.cs | 88 ++++++++++++ .../Models/BillingUsageReport_usageItems.cs | 135 ++++++++++++++++++ .../Settings/Billing/BillingRequestBuilder.cs | 41 ++++++ .../Billing/Usage/UsageRequestBuilder.cs | 115 +++++++++++++++ .../Item/Settings/SettingsRequestBuilder.cs | 41 ++++++ .../Item/WithOrgItemRequestBuilder.cs | 41 ++++++ .../OrganizationsRequestBuilder.cs | 13 ++ src/GitHub/kiota-lock.json | 2 +- 9 files changed, 540 insertions(+), 1 deletion(-) create mode 100644 src/GitHub/Models/BillingUsageReport.cs create mode 100644 src/GitHub/Models/BillingUsageReport503Error.cs create mode 100644 src/GitHub/Models/BillingUsageReport_usageItems.cs create mode 100644 src/GitHub/Organizations/Item/Settings/Billing/BillingRequestBuilder.cs create mode 100644 src/GitHub/Organizations/Item/Settings/Billing/Usage/UsageRequestBuilder.cs create mode 100644 src/GitHub/Organizations/Item/Settings/SettingsRequestBuilder.cs create mode 100644 src/GitHub/Organizations/Item/WithOrgItemRequestBuilder.cs diff --git a/src/GitHub/Models/BillingUsageReport.cs b/src/GitHub/Models/BillingUsageReport.cs new file mode 100644 index 000000000..fa728ec0d --- /dev/null +++ b/src/GitHub/Models/BillingUsageReport.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class BillingUsageReport : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The usageItems property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? UsageItems { get; set; } +#nullable restore +#else + public List UsageItems { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BillingUsageReport() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.BillingUsageReport CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.BillingUsageReport(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "usageItems", n => { UsageItems = n.GetCollectionOfObjectValues(global::GitHub.Models.BillingUsageReport_usageItems.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("usageItems", UsageItems); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Models/BillingUsageReport503Error.cs b/src/GitHub/Models/BillingUsageReport503Error.cs new file mode 100644 index 000000000..308a3dc8c --- /dev/null +++ b/src/GitHub/Models/BillingUsageReport503Error.cs @@ -0,0 +1,88 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class BillingUsageReport503Error : ApiException, IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The code property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Code { get; set; } +#nullable restore +#else + public string Code { get; set; } +#endif + /// The documentation_url property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DocumentationUrl { get; set; } +#nullable restore +#else + public string DocumentationUrl { get; set; } +#endif + /// The primary error message. + public override string Message { get => MessageEscaped ?? string.Empty; } + /// The message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MessageEscaped { get; set; } +#nullable restore +#else + public string MessageEscaped { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BillingUsageReport503Error() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.BillingUsageReport503Error CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.BillingUsageReport503Error(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "message", n => { MessageEscaped = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("code", Code); + writer.WriteStringValue("documentation_url", DocumentationUrl); + writer.WriteStringValue("message", MessageEscaped); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Models/BillingUsageReport_usageItems.cs b/src/GitHub/Models/BillingUsageReport_usageItems.cs new file mode 100644 index 000000000..1ac0387da --- /dev/null +++ b/src/GitHub/Models/BillingUsageReport_usageItems.cs @@ -0,0 +1,135 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class BillingUsageReport_usageItems : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Date of the usage line item. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Date { get; set; } +#nullable restore +#else + public string Date { get; set; } +#endif + /// Discount amount of the usage line item. + public double? DiscountAmount { get; set; } + /// Gross amount of the usage line item. + public double? GrossAmount { get; set; } + /// Net amount of the usage line item. + public double? NetAmount { get; set; } + /// Name of the organization. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationName { get; set; } +#nullable restore +#else + public string OrganizationName { get; set; } +#endif + /// Price per unit of the usage line item. + public double? PricePerUnit { get; set; } + /// Product name. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Product { get; set; } +#nullable restore +#else + public string Product { get; set; } +#endif + /// Quantity of the usage line item. + public int? Quantity { get; set; } + /// Name of the repository. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RepositoryName { get; set; } +#nullable restore +#else + public string RepositoryName { get; set; } +#endif + /// SKU name. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Sku { get; set; } +#nullable restore +#else + public string Sku { get; set; } +#endif + /// Unit type of the usage line item. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UnitType { get; set; } +#nullable restore +#else + public string UnitType { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BillingUsageReport_usageItems() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.BillingUsageReport_usageItems CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.BillingUsageReport_usageItems(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "date", n => { Date = n.GetStringValue(); } }, + { "discountAmount", n => { DiscountAmount = n.GetDoubleValue(); } }, + { "grossAmount", n => { GrossAmount = n.GetDoubleValue(); } }, + { "netAmount", n => { NetAmount = n.GetDoubleValue(); } }, + { "organizationName", n => { OrganizationName = n.GetStringValue(); } }, + { "pricePerUnit", n => { PricePerUnit = n.GetDoubleValue(); } }, + { "product", n => { Product = n.GetStringValue(); } }, + { "quantity", n => { Quantity = n.GetIntValue(); } }, + { "repositoryName", n => { RepositoryName = n.GetStringValue(); } }, + { "sku", n => { Sku = n.GetStringValue(); } }, + { "unitType", n => { UnitType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("date", Date); + writer.WriteDoubleValue("discountAmount", DiscountAmount); + writer.WriteDoubleValue("grossAmount", GrossAmount); + writer.WriteDoubleValue("netAmount", NetAmount); + writer.WriteStringValue("organizationName", OrganizationName); + writer.WriteDoubleValue("pricePerUnit", PricePerUnit); + writer.WriteStringValue("product", Product); + writer.WriteIntValue("quantity", Quantity); + writer.WriteStringValue("repositoryName", RepositoryName); + writer.WriteStringValue("sku", Sku); + writer.WriteStringValue("unitType", UnitType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Organizations/Item/Settings/Billing/BillingRequestBuilder.cs b/src/GitHub/Organizations/Item/Settings/Billing/BillingRequestBuilder.cs new file mode 100644 index 000000000..f9051043c --- /dev/null +++ b/src/GitHub/Organizations/Item/Settings/Billing/BillingRequestBuilder.cs @@ -0,0 +1,41 @@ +// +#pragma warning disable CS0618 +using GitHub.Organizations.Item.Settings.Billing.Usage; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace GitHub.Organizations.Item.Settings.Billing +{ + /// + /// Builds and executes requests for operations under \organizations\{org}\settings\billing + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class BillingRequestBuilder : BaseRequestBuilder + { + /// The usage property + public global::GitHub.Organizations.Item.Settings.Billing.Usage.UsageRequestBuilder Usage + { + get => new global::GitHub.Organizations.Item.Settings.Billing.Usage.UsageRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public BillingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{org}/settings/billing", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public BillingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{org}/settings/billing", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Organizations/Item/Settings/Billing/Usage/UsageRequestBuilder.cs b/src/GitHub/Organizations/Item/Settings/Billing/Usage/UsageRequestBuilder.cs new file mode 100644 index 000000000..4c3d51db2 --- /dev/null +++ b/src/GitHub/Organizations/Item/Settings/Billing/Usage/UsageRequestBuilder.cs @@ -0,0 +1,115 @@ +// +#pragma warning disable CS0618 +using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace GitHub.Organizations.Item.Settings.Billing.Usage +{ + /// + /// Builds and executes requests for operations under \organizations\{org}\settings\billing\usage + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class UsageRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UsageRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{org}/settings/billing/usage{?day*,hour*,month*,year*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{org}/settings/billing/usage{?day*,hour*,month*,year*}", rawUrl) + { + } + /// + /// Gets a report of the total usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account.**Note:** This endpoint is only available to organizations with access to the enhanced billing platform. For more information, see "[About the enhanced billing platform](https://docs.github.com/billing/using-the-new-billing-platform)." + /// API method documentation + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 400 status code + /// When receiving a 403 status code + /// When receiving a 500 status code + /// When receiving a 503 status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "500", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.BillingUsageReport503Error.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.BillingUsageReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Gets a report of the total usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account.**Note:** This endpoint is only available to organizations with access to the enhanced billing platform. For more information, see "[About the enhanced billing platform](https://docs.github.com/billing/using-the-new-billing-platform)." + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::GitHub.Organizations.Item.Settings.Billing.Usage.UsageRequestBuilder WithUrl(string rawUrl) + { + return new global::GitHub.Organizations.Item.Settings.Billing.Usage.UsageRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Gets a report of the total usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account.**Note:** This endpoint is only available to organizations with access to the enhanced billing platform. For more information, see "[About the enhanced billing platform](https://docs.github.com/billing/using-the-new-billing-platform)." + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class UsageRequestBuilderGetQueryParameters + { + /// If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. + [QueryParameter("day")] + public int? Day { get; set; } + /// If specified, only return results for a single hour. The value of `hour` is an integer between `0` and `23`. + [QueryParameter("hour")] + public int? Hour { get; set; } + /// If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. + [QueryParameter("month")] + public int? Month { get; set; } + /// If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2024`. Default value is the current year. + [QueryParameter("year")] + public int? Year { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Organizations/Item/Settings/SettingsRequestBuilder.cs b/src/GitHub/Organizations/Item/Settings/SettingsRequestBuilder.cs new file mode 100644 index 000000000..0b14ecee0 --- /dev/null +++ b/src/GitHub/Organizations/Item/Settings/SettingsRequestBuilder.cs @@ -0,0 +1,41 @@ +// +#pragma warning disable CS0618 +using GitHub.Organizations.Item.Settings.Billing; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace GitHub.Organizations.Item.Settings +{ + /// + /// Builds and executes requests for operations under \organizations\{org}\settings + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class SettingsRequestBuilder : BaseRequestBuilder + { + /// The billing property + public global::GitHub.Organizations.Item.Settings.Billing.BillingRequestBuilder Billing + { + get => new global::GitHub.Organizations.Item.Settings.Billing.BillingRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{org}/settings", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{org}/settings", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Organizations/Item/WithOrgItemRequestBuilder.cs b/src/GitHub/Organizations/Item/WithOrgItemRequestBuilder.cs new file mode 100644 index 000000000..49baee091 --- /dev/null +++ b/src/GitHub/Organizations/Item/WithOrgItemRequestBuilder.cs @@ -0,0 +1,41 @@ +// +#pragma warning disable CS0618 +using GitHub.Organizations.Item.Settings; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace GitHub.Organizations.Item +{ + /// + /// Builds and executes requests for operations under \organizations\{org} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class WithOrgItemRequestBuilder : BaseRequestBuilder + { + /// The settings property + public global::GitHub.Organizations.Item.Settings.SettingsRequestBuilder Settings + { + get => new global::GitHub.Organizations.Item.Settings.SettingsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WithOrgItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{org}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WithOrgItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organizations/{org}", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Organizations/OrganizationsRequestBuilder.cs b/src/GitHub/Organizations/OrganizationsRequestBuilder.cs index 27ce821c9..b97da987b 100644 --- a/src/GitHub/Organizations/OrganizationsRequestBuilder.cs +++ b/src/GitHub/Organizations/OrganizationsRequestBuilder.cs @@ -1,6 +1,7 @@ // #pragma warning disable CS0618 using GitHub.Models; +using GitHub.Organizations.Item; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; @@ -17,6 +18,18 @@ namespace GitHub.Organizations [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class OrganizationsRequestBuilder : BaseRequestBuilder { + /// Gets an item from the GitHub.organizations.item collection + /// The organization name. The name is not case sensitive. + /// A + public global::GitHub.Organizations.Item.WithOrgItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("org", position); + return new global::GitHub.Organizations.Item.WithOrgItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 5b6954dff..6e093f0c8 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "0AB8C0BEBB4CF2CCBAA118062E332EAAB5120B55A149F9ADCA6C6FCA3F01668CDA3C0B67CC026F7F5171A453F27F4A184F747AA1CED8E8AB979AE5C080815180", + "descriptionHash": "1726ECC93DFC3434B7C4AADBCC50E99BA698E8F7EF9A01AEFF155B3686861D56E1882C516831318147B4FE5E00EE71F611D0EDAC2432C1A565188558FC0B9884", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From f6441a1af47fbdf56dc4cd64ad167c899397c37c Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Wed, 27 Nov 2024 00:33:15 +0000 Subject: [PATCH 08/14] New updates to generated code --- .../Models/FileCommit_commit_verification.cs | 10 ++ src/GitHub/Models/GitCommit_verification.cs | 10 ++ src/GitHub/Models/SecretScanningScan.cs | 84 ++++++++++++++++ .../Models/SecretScanningScanHistory.cs | 95 +++++++++++++++++++ .../SecretScanningScanHistory503Error.cs | 88 +++++++++++++++++ .../TimelineCommittedEvent_verification.cs | 10 ++ src/GitHub/Models/Verification.cs | 10 ++ .../Item/Actions/Runs/RunsRequestBuilder.cs | 6 +- .../Workflows/Item/Runs/RunsRequestBuilder.cs | 6 +- .../ScanHistory/ScanHistoryRequestBuilder.cs | 90 ++++++++++++++++++ .../SecretScanningRequestBuilder.cs | 6 ++ src/GitHub/kiota-lock.json | 2 +- 12 files changed, 410 insertions(+), 7 deletions(-) create mode 100644 src/GitHub/Models/SecretScanningScan.cs create mode 100644 src/GitHub/Models/SecretScanningScanHistory.cs create mode 100644 src/GitHub/Models/SecretScanningScanHistory503Error.cs create mode 100644 src/GitHub/Repos/Item/Item/SecretScanning/ScanHistory/ScanHistoryRequestBuilder.cs diff --git a/src/GitHub/Models/FileCommit_commit_verification.cs b/src/GitHub/Models/FileCommit_commit_verification.cs index 4a0f58b92..7e0c563bf 100644 --- a/src/GitHub/Models/FileCommit_commit_verification.cs +++ b/src/GitHub/Models/FileCommit_commit_verification.cs @@ -40,6 +40,14 @@ public partial class FileCommit_commit_verification : IAdditionalDataHolder, IPa #endif /// The verified property public bool? Verified { get; set; } + /// The verified_at property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VerifiedAt { get; set; } +#nullable restore +#else + public string VerifiedAt { get; set; } +#endif /// /// Instantiates a new and sets the default values. /// @@ -69,6 +77,7 @@ public virtual IDictionary> GetFieldDeserializers() { "reason", n => { Reason = n.GetStringValue(); } }, { "signature", n => { Signature = n.GetStringValue(); } }, { "verified", n => { Verified = n.GetBoolValue(); } }, + { "verified_at", n => { VerifiedAt = n.GetStringValue(); } }, }; } /// @@ -82,6 +91,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("reason", Reason); writer.WriteStringValue("signature", Signature); writer.WriteBoolValue("verified", Verified); + writer.WriteStringValue("verified_at", VerifiedAt); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/GitCommit_verification.cs b/src/GitHub/Models/GitCommit_verification.cs index 380b7f92e..56403bac0 100644 --- a/src/GitHub/Models/GitCommit_verification.cs +++ b/src/GitHub/Models/GitCommit_verification.cs @@ -40,6 +40,14 @@ public partial class GitCommit_verification : IAdditionalDataHolder, IParsable #endif /// The verified property public bool? Verified { get; set; } + /// The verified_at property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VerifiedAt { get; set; } +#nullable restore +#else + public string VerifiedAt { get; set; } +#endif /// /// Instantiates a new and sets the default values. /// @@ -69,6 +77,7 @@ public virtual IDictionary> GetFieldDeserializers() { "reason", n => { Reason = n.GetStringValue(); } }, { "signature", n => { Signature = n.GetStringValue(); } }, { "verified", n => { Verified = n.GetBoolValue(); } }, + { "verified_at", n => { VerifiedAt = n.GetStringValue(); } }, }; } /// @@ -82,6 +91,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("reason", Reason); writer.WriteStringValue("signature", Signature); writer.WriteBoolValue("verified", Verified); + writer.WriteStringValue("verified_at", VerifiedAt); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/SecretScanningScan.cs b/src/GitHub/Models/SecretScanningScan.cs new file mode 100644 index 000000000..cf887b07d --- /dev/null +++ b/src/GitHub/Models/SecretScanningScan.cs @@ -0,0 +1,84 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + /// + /// Information on a single scan performed by secret scanning on the repository + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class SecretScanningScan : IAdditionalDataHolder, IParsable + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The time that the scan was completed. Empty if the scan is active + public DateTimeOffset? CompletedAt { get; set; } + /// The time that the scan was started + public DateTimeOffset? StartedAt { get; set; } + /// The state of the scan. Either "completed" or "running" +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Status { get; set; } +#nullable restore +#else + public string Status { get; set; } +#endif + /// The type of scan +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public SecretScanningScan() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.SecretScanningScan CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.SecretScanningScan(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "completed_at", n => { CompletedAt = n.GetDateTimeOffsetValue(); } }, + { "started_at", n => { StartedAt = n.GetDateTimeOffsetValue(); } }, + { "status", n => { Status = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteDateTimeOffsetValue("completed_at", CompletedAt); + writer.WriteDateTimeOffsetValue("started_at", StartedAt); + writer.WriteStringValue("status", Status); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Models/SecretScanningScanHistory.cs b/src/GitHub/Models/SecretScanningScanHistory.cs new file mode 100644 index 000000000..f604c6bca --- /dev/null +++ b/src/GitHub/Models/SecretScanningScanHistory.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class SecretScanningScanHistory : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The backfill_scans property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? BackfillScans { get; set; } +#nullable restore +#else + public List BackfillScans { get; set; } +#endif + /// The custom_pattern_backfill_scans property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? CustomPatternBackfillScans { get; set; } +#nullable restore +#else + public List CustomPatternBackfillScans { get; set; } +#endif + /// The incremental_scans property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? IncrementalScans { get; set; } +#nullable restore +#else + public List IncrementalScans { get; set; } +#endif + /// The pattern_update_scans property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? PatternUpdateScans { get; set; } +#nullable restore +#else + public List PatternUpdateScans { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public SecretScanningScanHistory() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.SecretScanningScanHistory CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.SecretScanningScanHistory(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "backfill_scans", n => { BackfillScans = n.GetCollectionOfObjectValues(global::GitHub.Models.SecretScanningScan.CreateFromDiscriminatorValue)?.AsList(); } }, + { "custom_pattern_backfill_scans", n => { CustomPatternBackfillScans = n.GetCollectionOfObjectValues(global::GitHub.Models.SecretScanningScan.CreateFromDiscriminatorValue)?.AsList(); } }, + { "incremental_scans", n => { IncrementalScans = n.GetCollectionOfObjectValues(global::GitHub.Models.SecretScanningScan.CreateFromDiscriminatorValue)?.AsList(); } }, + { "pattern_update_scans", n => { PatternUpdateScans = n.GetCollectionOfObjectValues(global::GitHub.Models.SecretScanningScan.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("backfill_scans", BackfillScans); + writer.WriteCollectionOfObjectValues("custom_pattern_backfill_scans", CustomPatternBackfillScans); + writer.WriteCollectionOfObjectValues("incremental_scans", IncrementalScans); + writer.WriteCollectionOfObjectValues("pattern_update_scans", PatternUpdateScans); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Models/SecretScanningScanHistory503Error.cs b/src/GitHub/Models/SecretScanningScanHistory503Error.cs new file mode 100644 index 000000000..7762caaa2 --- /dev/null +++ b/src/GitHub/Models/SecretScanningScanHistory503Error.cs @@ -0,0 +1,88 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class SecretScanningScanHistory503Error : ApiException, IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The code property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Code { get; set; } +#nullable restore +#else + public string Code { get; set; } +#endif + /// The documentation_url property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DocumentationUrl { get; set; } +#nullable restore +#else + public string DocumentationUrl { get; set; } +#endif + /// The primary error message. + public override string Message { get => MessageEscaped ?? string.Empty; } + /// The message property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MessageEscaped { get; set; } +#nullable restore +#else + public string MessageEscaped { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public SecretScanningScanHistory503Error() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.SecretScanningScanHistory503Error CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.SecretScanningScanHistory503Error(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "code", n => { Code = n.GetStringValue(); } }, + { "documentation_url", n => { DocumentationUrl = n.GetStringValue(); } }, + { "message", n => { MessageEscaped = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("code", Code); + writer.WriteStringValue("documentation_url", DocumentationUrl); + writer.WriteStringValue("message", MessageEscaped); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Models/TimelineCommittedEvent_verification.cs b/src/GitHub/Models/TimelineCommittedEvent_verification.cs index 7a8aaf304..9bb0267de 100644 --- a/src/GitHub/Models/TimelineCommittedEvent_verification.cs +++ b/src/GitHub/Models/TimelineCommittedEvent_verification.cs @@ -40,6 +40,14 @@ public partial class TimelineCommittedEvent_verification : IAdditionalDataHolder #endif /// The verified property public bool? Verified { get; set; } + /// The verified_at property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VerifiedAt { get; set; } +#nullable restore +#else + public string VerifiedAt { get; set; } +#endif /// /// Instantiates a new and sets the default values. /// @@ -69,6 +77,7 @@ public virtual IDictionary> GetFieldDeserializers() { "reason", n => { Reason = n.GetStringValue(); } }, { "signature", n => { Signature = n.GetStringValue(); } }, { "verified", n => { Verified = n.GetBoolValue(); } }, + { "verified_at", n => { VerifiedAt = n.GetStringValue(); } }, }; } /// @@ -82,6 +91,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("reason", Reason); writer.WriteStringValue("signature", Signature); writer.WriteBoolValue("verified", Verified); + writer.WriteStringValue("verified_at", VerifiedAt); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Verification.cs b/src/GitHub/Models/Verification.cs index b46e6724d..2cca38d74 100644 --- a/src/GitHub/Models/Verification.cs +++ b/src/GitHub/Models/Verification.cs @@ -40,6 +40,14 @@ public partial class Verification : IAdditionalDataHolder, IParsable #endif /// The verified property public bool? Verified { get; set; } + /// The verified_at property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VerifiedAt { get; set; } +#nullable restore +#else + public string VerifiedAt { get; set; } +#endif /// /// Instantiates a new and sets the default values. /// @@ -69,6 +77,7 @@ public virtual IDictionary> GetFieldDeserializers() { "reason", n => { Reason = n.GetStringValue(); } }, { "signature", n => { Signature = n.GetStringValue(); } }, { "verified", n => { Verified = n.GetBoolValue(); } }, + { "verified_at", n => { VerifiedAt = n.GetStringValue(); } }, }; } /// @@ -82,6 +91,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("reason", Reason); writer.WriteStringValue("signature", Signature); writer.WriteBoolValue("verified", Verified); + writer.WriteStringValue("verified_at", VerifiedAt); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Repos/Item/Item/Actions/Runs/RunsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Runs/RunsRequestBuilder.cs index f14ce41ec..a10fa9e56 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Runs/RunsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Runs/RunsRequestBuilder.cs @@ -46,7 +46,7 @@ public RunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( { } /// - /// Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This API will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. + /// Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This endpoint will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. /// API method documentation /// /// A @@ -65,7 +65,7 @@ public RunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Runs.RunsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This API will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. + /// Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This endpoint will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -93,7 +93,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This API will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. + /// Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpoint.OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This endpoint will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class RunsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsRequestBuilder.cs index 287663926..9fbac4259 100644 --- a/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Actions/Workflows/Item/Runs/RunsRequestBuilder.cs @@ -33,7 +33,7 @@ public RunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( { } /// - /// List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpointOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. + /// List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpointOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This endpoint will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. /// API method documentation /// /// A @@ -52,7 +52,7 @@ public RunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Repos.Item.Item.Actions.Workflows.Item.Runs.RunsGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpointOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. + /// List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpointOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This endpoint will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -80,7 +80,7 @@ public RequestInformation ToGetRequestInformation(Action - /// List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpointOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository. + /// List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/guides/getting-started-with-the-rest-api#parameters).Anyone with read access to the repository can use this endpointOAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.This endpoint will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class RunsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Repos/Item/Item/SecretScanning/ScanHistory/ScanHistoryRequestBuilder.cs b/src/GitHub/Repos/Item/Item/SecretScanning/ScanHistory/ScanHistoryRequestBuilder.cs new file mode 100644 index 000000000..702f3428f --- /dev/null +++ b/src/GitHub/Repos/Item/Item/SecretScanning/ScanHistory/ScanHistoryRequestBuilder.cs @@ -0,0 +1,90 @@ +// +#pragma warning disable CS0618 +using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace GitHub.Repos.Item.Item.SecretScanning.ScanHistory +{ + /// + /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\secret-scanning\scan-history + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class ScanHistoryRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ScanHistoryRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/secret-scanning/scan-history", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ScanHistoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/secret-scanning/scan-history", rawUrl) + { + } + /// + /// Lists the latest incremental and backfill scans by type for a repository.OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. + /// API method documentation + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 503 status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "503", global::GitHub.Models.SecretScanningScanHistory503Error.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.SecretScanningScanHistory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Lists the latest incremental and backfill scans by type for a repository.OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::GitHub.Repos.Item.Item.SecretScanning.ScanHistory.ScanHistoryRequestBuilder WithUrl(string rawUrl) + { + return new global::GitHub.Repos.Item.Item.SecretScanning.ScanHistory.ScanHistoryRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Repos/Item/Item/SecretScanning/SecretScanningRequestBuilder.cs b/src/GitHub/Repos/Item/Item/SecretScanning/SecretScanningRequestBuilder.cs index b1a5e6ce3..f2f05b529 100644 --- a/src/GitHub/Repos/Item/Item/SecretScanning/SecretScanningRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/SecretScanning/SecretScanningRequestBuilder.cs @@ -2,6 +2,7 @@ #pragma warning disable CS0618 using GitHub.Repos.Item.Item.SecretScanning.Alerts; using GitHub.Repos.Item.Item.SecretScanning.PushProtectionBypasses; +using GitHub.Repos.Item.Item.SecretScanning.ScanHistory; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -26,6 +27,11 @@ public partial class SecretScanningRequestBuilder : BaseRequestBuilder { get => new global::GitHub.Repos.Item.Item.SecretScanning.PushProtectionBypasses.PushProtectionBypassesRequestBuilder(PathParameters, RequestAdapter); } + /// The scanHistory property + public global::GitHub.Repos.Item.Item.SecretScanning.ScanHistory.ScanHistoryRequestBuilder ScanHistory + { + get => new global::GitHub.Repos.Item.Item.SecretScanning.ScanHistory.ScanHistoryRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 6e093f0c8..dee73ba68 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "1726ECC93DFC3434B7C4AADBCC50E99BA698E8F7EF9A01AEFF155B3686861D56E1882C516831318147B4FE5E00EE71F611D0EDAC2432C1A565188558FC0B9884", + "descriptionHash": "AF2382320C5DD5BEAD56DB025BDBBE6C47DC2337A6C71EC1016BE7A6310FCBFF91800C2EBB4164C2CA3A67AE2F72177A58064CC60C08F6E578B2733DE301ABB4", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From 705fbddc2a655c1c2202274265a428788fbaf9a1 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Thu, 28 Nov 2024 00:33:02 +0000 Subject: [PATCH 09/14] New updates to generated code --- .../Rulesets/RuleSuites/RuleSuitesRequestBuilder.cs | 11 +++++++++-- src/GitHub/kiota-lock.json | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/GitHub/Orgs/Item/Rulesets/RuleSuites/RuleSuitesRequestBuilder.cs b/src/GitHub/Orgs/Item/Rulesets/RuleSuites/RuleSuitesRequestBuilder.cs index 3d907c5f4..55f9bd2d7 100644 --- a/src/GitHub/Orgs/Item/Rulesets/RuleSuites/RuleSuitesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Rulesets/RuleSuites/RuleSuitesRequestBuilder.cs @@ -133,9 +133,16 @@ public partial class RuleSuitesRequestBuilderGetQueryParameters [QueryParameter("ref")] public string Ref { get; set; } #endif - /// The name of the repository to filter on. When specified, only rule evaluations from this repository will be returned. + /// The name of the repository to filter on. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("repository_name")] + public string? RepositoryName { get; set; } +#nullable restore +#else [QueryParameter("repository_name")] - public int? RepositoryName { get; set; } + public string RepositoryName { get; set; } +#endif /// The rule results to filter on. When specified, only suites with this result will be returned. [QueryParameter("rule_suite_result")] public global::GitHub.Orgs.Item.Rulesets.RuleSuites.GetRule_suite_resultQueryParameterType? RuleSuiteResult { get; set; } diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index dee73ba68..5d874d710 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "AF2382320C5DD5BEAD56DB025BDBBE6C47DC2337A6C71EC1016BE7A6310FCBFF91800C2EBB4164C2CA3A67AE2F72177A58064CC60C08F6E578B2733DE301ABB4", + "descriptionHash": "894F6D51E4EDEF79DB434C0D6720E5CEA3D3762F1C907C113D32F4EEF0D7A3E6CF78E082A91D68CF2742DE54EDA63C36DF8910CDA4246429A0F6840FE788F4DB", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From ae2cf75ee33f252fd8096372dccfc9ad2472c50a Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Fri, 29 Nov 2024 00:33:10 +0000 Subject: [PATCH 10/14] New updates to generated code --- src/GitHub/Models/Issue.cs | 10 ++ src/GitHub/Models/IssueSearchResultItem.cs | 10 ++ ...ssueSearchResultItem_sub_issues_summary.cs | 67 +++++++ src/GitHub/Models/NullableIssue.cs | 10 ++ src/GitHub/Models/SubIssuesSummary.cs | 67 +++++++ .../Sub_issue/Sub_issueDeleteRequestBody.cs | 59 +++++++ .../Item/Sub_issue/Sub_issueRequestBuilder.cs | 97 ++++++++++ .../Priority/PriorityPatchRequestBody.cs | 67 +++++++ .../Priority/PriorityRequestBuilder.cs | 101 +++++++++++ .../Sub_issues/Sub_issuesPostRequestBody.cs | 63 +++++++ .../Sub_issues/Sub_issuesRequestBuilder.cs | 166 ++++++++++++++++++ .../WithIssue_numberItemRequestBuilder.cs | 12 ++ src/GitHub/kiota-lock.json | 2 +- 13 files changed, 730 insertions(+), 1 deletion(-) create mode 100644 src/GitHub/Models/IssueSearchResultItem_sub_issues_summary.cs create mode 100644 src/GitHub/Models/SubIssuesSummary.cs create mode 100644 src/GitHub/Repos/Item/Item/Issues/Item/Sub_issue/Sub_issueDeleteRequestBody.cs create mode 100644 src/GitHub/Repos/Item/Item/Issues/Item/Sub_issue/Sub_issueRequestBuilder.cs create mode 100644 src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Priority/PriorityPatchRequestBody.cs create mode 100644 src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Priority/PriorityRequestBuilder.cs create mode 100644 src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Sub_issuesPostRequestBody.cs create mode 100644 src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Sub_issuesRequestBuilder.cs diff --git a/src/GitHub/Models/Issue.cs b/src/GitHub/Models/Issue.cs index 94f1f9b1c..113c6ac8a 100644 --- a/src/GitHub/Models/Issue.cs +++ b/src/GitHub/Models/Issue.cs @@ -193,6 +193,14 @@ public partial class Issue : IAdditionalDataHolder, IParsable #endif /// The reason for the current state public global::GitHub.Models.Issue_state_reason? StateReason { get; set; } + /// The sub_issues_summary property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.SubIssuesSummary? SubIssuesSummary { get; set; } +#nullable restore +#else + public global::GitHub.Models.SubIssuesSummary SubIssuesSummary { get; set; } +#endif /// The timeline_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -281,6 +289,7 @@ public virtual IDictionary> GetFieldDeserializers() { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, { "state", n => { State = n.GetStringValue(); } }, { "state_reason", n => { StateReason = n.GetEnumValue(); } }, + { "sub_issues_summary", n => { SubIssuesSummary = n.GetObjectValue(global::GitHub.Models.SubIssuesSummary.CreateFromDiscriminatorValue); } }, { "timeline_url", n => { TimelineUrl = n.GetStringValue(); } }, { "title", n => { Title = n.GetStringValue(); } }, { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, @@ -324,6 +333,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("repository_url", RepositoryUrl); writer.WriteStringValue("state", State); writer.WriteEnumValue("state_reason", StateReason); + writer.WriteObjectValue("sub_issues_summary", SubIssuesSummary); writer.WriteStringValue("timeline_url", TimelineUrl); writer.WriteStringValue("title", Title); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); diff --git a/src/GitHub/Models/IssueSearchResultItem.cs b/src/GitHub/Models/IssueSearchResultItem.cs index 8f2c0ec48..192a23dfa 100644 --- a/src/GitHub/Models/IssueSearchResultItem.cs +++ b/src/GitHub/Models/IssueSearchResultItem.cs @@ -192,6 +192,14 @@ public partial class IssueSearchResultItem : IAdditionalDataHolder, IParsable #nullable restore #else public string StateReason { get; set; } +#endif + /// The sub_issues_summary property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.IssueSearchResultItem_sub_issues_summary? SubIssuesSummary { get; set; } +#nullable restore +#else + public global::GitHub.Models.IssueSearchResultItem_sub_issues_summary SubIssuesSummary { get; set; } #endif /// The text_matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -289,6 +297,7 @@ public virtual IDictionary> GetFieldDeserializers() { "score", n => { Score = n.GetDoubleValue(); } }, { "state", n => { State = n.GetStringValue(); } }, { "state_reason", n => { StateReason = n.GetStringValue(); } }, + { "sub_issues_summary", n => { SubIssuesSummary = n.GetObjectValue(global::GitHub.Models.IssueSearchResultItem_sub_issues_summary.CreateFromDiscriminatorValue); } }, { "text_matches", n => { TextMatches = n.GetCollectionOfObjectValues(global::GitHub.Models.Issues.CreateFromDiscriminatorValue)?.AsList(); } }, { "timeline_url", n => { TimelineUrl = n.GetStringValue(); } }, { "title", n => { Title = n.GetStringValue(); } }, @@ -333,6 +342,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteDoubleValue("score", Score); writer.WriteStringValue("state", State); writer.WriteStringValue("state_reason", StateReason); + writer.WriteObjectValue("sub_issues_summary", SubIssuesSummary); writer.WriteCollectionOfObjectValues("text_matches", TextMatches); writer.WriteStringValue("timeline_url", TimelineUrl); writer.WriteStringValue("title", Title); diff --git a/src/GitHub/Models/IssueSearchResultItem_sub_issues_summary.cs b/src/GitHub/Models/IssueSearchResultItem_sub_issues_summary.cs new file mode 100644 index 000000000..cd830acbe --- /dev/null +++ b/src/GitHub/Models/IssueSearchResultItem_sub_issues_summary.cs @@ -0,0 +1,67 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class IssueSearchResultItem_sub_issues_summary : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The completed property + public int? Completed { get; set; } + /// The percent_completed property + public int? PercentCompleted { get; set; } + /// The total property + public int? Total { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public IssueSearchResultItem_sub_issues_summary() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.IssueSearchResultItem_sub_issues_summary CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.IssueSearchResultItem_sub_issues_summary(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "completed", n => { Completed = n.GetIntValue(); } }, + { "percent_completed", n => { PercentCompleted = n.GetIntValue(); } }, + { "total", n => { Total = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("completed", Completed); + writer.WriteIntValue("percent_completed", PercentCompleted); + writer.WriteIntValue("total", Total); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Models/NullableIssue.cs b/src/GitHub/Models/NullableIssue.cs index 813d805d2..f8a5a59ba 100644 --- a/src/GitHub/Models/NullableIssue.cs +++ b/src/GitHub/Models/NullableIssue.cs @@ -193,6 +193,14 @@ public partial class NullableIssue : IAdditionalDataHolder, IParsable #endif /// The reason for the current state public global::GitHub.Models.NullableIssue_state_reason? StateReason { get; set; } + /// The sub_issues_summary property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.SubIssuesSummary? SubIssuesSummary { get; set; } +#nullable restore +#else + public global::GitHub.Models.SubIssuesSummary SubIssuesSummary { get; set; } +#endif /// The timeline_url property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -281,6 +289,7 @@ public virtual IDictionary> GetFieldDeserializers() { "repository_url", n => { RepositoryUrl = n.GetStringValue(); } }, { "state", n => { State = n.GetStringValue(); } }, { "state_reason", n => { StateReason = n.GetEnumValue(); } }, + { "sub_issues_summary", n => { SubIssuesSummary = n.GetObjectValue(global::GitHub.Models.SubIssuesSummary.CreateFromDiscriminatorValue); } }, { "timeline_url", n => { TimelineUrl = n.GetStringValue(); } }, { "title", n => { Title = n.GetStringValue(); } }, { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, @@ -324,6 +333,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("repository_url", RepositoryUrl); writer.WriteStringValue("state", State); writer.WriteEnumValue("state_reason", StateReason); + writer.WriteObjectValue("sub_issues_summary", SubIssuesSummary); writer.WriteStringValue("timeline_url", TimelineUrl); writer.WriteStringValue("title", Title); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); diff --git a/src/GitHub/Models/SubIssuesSummary.cs b/src/GitHub/Models/SubIssuesSummary.cs new file mode 100644 index 000000000..b6678ceb6 --- /dev/null +++ b/src/GitHub/Models/SubIssuesSummary.cs @@ -0,0 +1,67 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class SubIssuesSummary : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The completed property + public int? Completed { get; set; } + /// The percent_completed property + public int? PercentCompleted { get; set; } + /// The total property + public int? Total { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public SubIssuesSummary() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.SubIssuesSummary CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.SubIssuesSummary(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "completed", n => { Completed = n.GetIntValue(); } }, + { "percent_completed", n => { PercentCompleted = n.GetIntValue(); } }, + { "total", n => { Total = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("completed", Completed); + writer.WriteIntValue("percent_completed", PercentCompleted); + writer.WriteIntValue("total", Total); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issue/Sub_issueDeleteRequestBody.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issue/Sub_issueDeleteRequestBody.cs new file mode 100644 index 000000000..11f5d2ede --- /dev/null +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issue/Sub_issueDeleteRequestBody.cs @@ -0,0 +1,59 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Repos.Item.Item.Issues.Item.Sub_issue +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class Sub_issueDeleteRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The sub-issue to remove + public int? SubIssueId { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Sub_issueDeleteRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Repos.Item.Item.Issues.Item.Sub_issue.Sub_issueDeleteRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Repos.Item.Item.Issues.Item.Sub_issue.Sub_issueDeleteRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "sub_issue_id", n => { SubIssueId = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("sub_issue_id", SubIssueId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issue/Sub_issueRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issue/Sub_issueRequestBuilder.cs new file mode 100644 index 000000000..4731cd606 --- /dev/null +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issue/Sub_issueRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace GitHub.Repos.Item.Item.Issues.Item.Sub_issue +{ + /// + /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\sub_issue + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class Sub_issueRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public Sub_issueRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/sub_issue", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public Sub_issueRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/sub_issue", rawUrl) + { + } + /// + /// You can use the REST API to remove a sub-issue from an issue.Removing content too quickly using this endpoint may result in secondary rate limiting.For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass a specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + /// API method documentation + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 400 status code + /// When receiving a 404 status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issue.Sub_issueDeleteRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issue.Sub_issueDeleteRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "400", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// You can use the REST API to remove a sub-issue from an issue.Removing content too quickly using this endpoint may result in secondary rate limiting.For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass a specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issue.Sub_issueDeleteRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issue.Sub_issueDeleteRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::GitHub.Repos.Item.Item.Issues.Item.Sub_issue.Sub_issueRequestBuilder WithUrl(string rawUrl) + { + return new global::GitHub.Repos.Item.Item.Issues.Item.Sub_issue.Sub_issueRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Priority/PriorityPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Priority/PriorityPatchRequestBody.cs new file mode 100644 index 000000000..498c053b6 --- /dev/null +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Priority/PriorityPatchRequestBody.cs @@ -0,0 +1,67 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class PriorityPatchRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The id of the sub-issue to be prioritized after (either positional argument after OR before should be specified). + public int? AfterId { get; set; } + /// The id of the sub-issue to be prioritized before (either positional argument after OR before should be specified). + public int? BeforeId { get; set; } + /// The id of the sub-issue to reprioritize + public int? SubIssueId { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public PriorityPatchRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority.PriorityPatchRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority.PriorityPatchRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "after_id", n => { AfterId = n.GetIntValue(); } }, + { "before_id", n => { BeforeId = n.GetIntValue(); } }, + { "sub_issue_id", n => { SubIssueId = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("after_id", AfterId); + writer.WriteIntValue("before_id", BeforeId); + writer.WriteIntValue("sub_issue_id", SubIssueId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Priority/PriorityRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Priority/PriorityRequestBuilder.cs new file mode 100644 index 000000000..d2b501829 --- /dev/null +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Priority/PriorityRequestBuilder.cs @@ -0,0 +1,101 @@ +// +#pragma warning disable CS0618 +using GitHub.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority +{ + /// + /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\sub_issues\priority + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class PriorityRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/sub_issues/priority", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/sub_issues/priority", rawUrl) + { + } + /// + /// You can use the REST API to reprioritize a sub-issue to a different position in the parent list. + /// API method documentation + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 422 status code + /// When receiving a 503 status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority.PriorityPatchRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority.PriorityPatchRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationErrorSimple.CreateFromDiscriminatorValue }, + { "503", global::GitHub.Models.Issue503Error.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// You can use the REST API to reprioritize a sub-issue to a different position in the parent list. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority.PriorityPatchRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority.PriorityPatchRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority.PriorityRequestBuilder WithUrl(string rawUrl) + { + return new global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority.PriorityRequestBuilder(rawUrl, RequestAdapter); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Sub_issuesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Sub_issuesPostRequestBody.cs new file mode 100644 index 000000000..9bbb19d06 --- /dev/null +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Sub_issuesPostRequestBody.cs @@ -0,0 +1,63 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Repos.Item.Item.Issues.Item.Sub_issues +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class Sub_issuesPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Option that, when true, instructs the operation to replace the sub-issues current parent issue + public bool? ReplaceParent { get; set; } + /// The sub-issue to add + public int? SubIssueId { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Sub_issuesPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Sub_issuesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Sub_issuesPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "replace_parent", n => { ReplaceParent = n.GetBoolValue(); } }, + { "sub_issue_id", n => { SubIssueId = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("replace_parent", ReplaceParent); + writer.WriteIntValue("sub_issue_id", SubIssueId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Sub_issuesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Sub_issuesRequestBuilder.cs new file mode 100644 index 000000000..b64213b2b --- /dev/null +++ b/src/GitHub/Repos/Item/Item/Issues/Item/Sub_issues/Sub_issuesRequestBuilder.cs @@ -0,0 +1,166 @@ +// +#pragma warning disable CS0618 +using GitHub.Models; +using GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace GitHub.Repos.Item.Item.Issues.Item.Sub_issues +{ + /// + /// Builds and executes requests for operations under \repos\{owner-id}\{repo-id}\issues\{issue_number}\sub_issues + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class Sub_issuesRequestBuilder : BaseRequestBuilder + { + /// The priority property + public global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority.PriorityRequestBuilder Priority + { + get => new global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Priority.PriorityRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public Sub_issuesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/sub_issues{?page*,per_page*}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public Sub_issuesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/issues/{issue_number}/sub_issues{?page*,per_page*}", rawUrl) + { + } + /// + /// You can use the REST API to list the sub-issues on an issue.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + /// API method documentation + /// + /// A List<global::GitHub.Models.Issue> + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 404 status code + /// When receiving a 410 status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + }; + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::GitHub.Models.Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); + } + /// + /// You can use the REST API to add sub-issues to issues.Creating content too quickly using this endpoint may result in secondary rate limiting.For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + /// API method documentation + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 403 status code + /// When receiving a 404 status code + /// When receiving a 410 status code + /// When receiving a 422 status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Sub_issuesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Sub_issuesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "403", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "404", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "410", global::GitHub.Models.BasicError.CreateFromDiscriminatorValue }, + { "422", global::GitHub.Models.ValidationError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Issue.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// You can use the REST API to list the sub-issues on an issue.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// You can use the REST API to add sub-issues to issues.Creating content too quickly using this endpoint may result in secondary rate limiting.For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Sub_issuesPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Sub_issuesPostRequestBody body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Sub_issuesRequestBuilder WithUrl(string rawUrl) + { + return new global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Sub_issuesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// You can use the REST API to list the sub-issues on an issue.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class Sub_issuesRequestBuilderGetQueryParameters + { + /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + [QueryParameter("page")] + public int? Page { get; set; } + /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + [QueryParameter("per_page")] + public int? PerPage { get; set; } + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/WithIssue_numberItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Issues/Item/WithIssue_numberItemRequestBuilder.cs index 02304f18f..42d574b71 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Item/WithIssue_numberItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Item/WithIssue_numberItemRequestBuilder.cs @@ -7,6 +7,8 @@ using GitHub.Repos.Item.Item.Issues.Item.Labels; using GitHub.Repos.Item.Item.Issues.Item.Lock; using GitHub.Repos.Item.Item.Issues.Item.Reactions; +using GitHub.Repos.Item.Item.Issues.Item.Sub_issue; +using GitHub.Repos.Item.Item.Issues.Item.Sub_issues; using GitHub.Repos.Item.Item.Issues.Item.Timeline; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; @@ -54,6 +56,16 @@ public partial class WithIssue_numberItemRequestBuilder : BaseRequestBuilder { get => new global::GitHub.Repos.Item.Item.Issues.Item.Reactions.ReactionsRequestBuilder(PathParameters, RequestAdapter); } + /// The sub_issue property + public global::GitHub.Repos.Item.Item.Issues.Item.Sub_issue.Sub_issueRequestBuilder Sub_issue + { + get => new global::GitHub.Repos.Item.Item.Issues.Item.Sub_issue.Sub_issueRequestBuilder(PathParameters, RequestAdapter); + } + /// The sub_issues property + public global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Sub_issuesRequestBuilder Sub_issues + { + get => new global::GitHub.Repos.Item.Item.Issues.Item.Sub_issues.Sub_issuesRequestBuilder(PathParameters, RequestAdapter); + } /// The timeline property public global::GitHub.Repos.Item.Item.Issues.Item.Timeline.TimelineRequestBuilder Timeline { diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 5d874d710..456aa4f04 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "894F6D51E4EDEF79DB434C0D6720E5CEA3D3762F1C907C113D32F4EEF0D7A3E6CF78E082A91D68CF2742DE54EDA63C36DF8910CDA4246429A0F6840FE788F4DB", + "descriptionHash": "C966AA1F69D8C99B1BFB2C98E13B04FEB083AECF171723D11080BEA576A1890D098CCDDFBFA347E6623377889E6414EBA6BCE196AA71D829CC01B9D7F49C3D58", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From 8263983f0bd9216a82ef48bb189f9865c107cfec Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Tue, 3 Dec 2024 00:34:41 +0000 Subject: [PATCH 11/14] New updates to generated code --- src/GitHub/Orgs/Item/Hooks/HooksRequestBuilder.cs | 6 +++--- .../Orgs/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs | 4 ++-- .../Item/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs | 5 ++++- src/GitHub/kiota-lock.json | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/GitHub/Orgs/Item/Hooks/HooksRequestBuilder.cs b/src/GitHub/Orgs/Item/Hooks/HooksRequestBuilder.cs index a283e0da9..20b695034 100644 --- a/src/GitHub/Orgs/Item/Hooks/HooksRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Hooks/HooksRequestBuilder.cs @@ -47,7 +47,7 @@ public HooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// You must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or editwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. + /// List webhooks for an organization.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or editwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// API method documentation /// /// A List<global::GitHub.Models.OrgHook> @@ -100,7 +100,7 @@ public HooksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrgHook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// You must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or editwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. + /// List webhooks for an organization.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or editwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RequestInformation ToPostRequestInformation(global::GitHub.Orgs.Item.Hook return new global::GitHub.Orgs.Item.Hooks.HooksRequestBuilder(rawUrl, RequestAdapter); } /// - /// You must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or editwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. + /// List webhooks for an organization.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or editwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class HooksRequestBuilderGetQueryParameters diff --git a/src/GitHub/Orgs/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs index 659dfcb3b..68d36ac6c 100644 --- a/src/GitHub/Orgs/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs @@ -52,7 +52,7 @@ public WithHook_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// You must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or editwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. + /// Delete a webhook for an organization.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or editwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -127,7 +127,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.OrgHook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// You must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or editwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. + /// Delete a webhook for an organization.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need `admin:org_hook` scope. OAuth apps cannot list, view, or editwebhooks that they did not create and users cannot list, view, or edit webhooks that were created by OAuth apps. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs index 8dc1b1cf0..42b4c00bf 100644 --- a/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Hooks/Item/WithHook_ItemRequestBuilder.cs @@ -58,7 +58,7 @@ public WithHook_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// Delete a repository webhook + /// Delete a webhook for an organization.The authenticated user must be a repository owner, or have admin access in the repository, to delete the webhook. /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -132,6 +132,9 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.Hook.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } + /// + /// Delete a webhook for an organization.The authenticated user must be a repository owner, or have admin access in the repository, to delete the webhook. + /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 456aa4f04..320ee4419 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "C966AA1F69D8C99B1BFB2C98E13B04FEB083AECF171723D11080BEA576A1890D098CCDDFBFA347E6623377889E6414EBA6BCE196AA71D829CC01B9D7F49C3D58", + "descriptionHash": "BBF7C7349BB3868C068B4E567070DB695192AE635A18EBE7A46181BC90535CA703D543D6BC3F3B7FCEDAD257CA811839C5854873707A75CD4FFAAC0F5F738977", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From 7d0af36b00979937108ec95e22f577461316e087 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Wed, 4 Dec 2024 00:33:52 +0000 Subject: [PATCH 12/14] New updates to generated code --- src/GitHub/Repos/Item/Item/Commits/CommitsRequestBuilder.cs | 6 +++--- .../Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs | 6 +++--- .../Item/Compare/Item/WithBaseheadItemRequestBuilder.cs | 6 +++--- .../Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs | 4 ++-- .../Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs | 4 ++-- .../Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs | 4 ++-- src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs | 4 ++-- src/GitHub/kiota-lock.json | 2 +- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/GitHub/Repos/Item/Item/Commits/CommitsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/CommitsRequestBuilder.cs index a39e90692..46a1b3e9e 100644 --- a/src/GitHub/Repos/Item/Item/Commits/CommitsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Commits/CommitsRequestBuilder.cs @@ -47,7 +47,7 @@ public CommitsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba { } /// - /// **Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// **Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// API method documentation /// /// A List<global::GitHub.Models.Commit> @@ -78,7 +78,7 @@ public CommitsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return collectionResult?.AsList(); } /// - /// **Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// **Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -106,7 +106,7 @@ public RequestInformation ToGetRequestInformation(Action - /// **Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// **Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class CommitsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs index d492a0b7c..812ae9ea7 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/Commit_shaItemRequestBuilder.cs @@ -76,7 +76,7 @@ public Commit_shaItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte { } /// - /// Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.> [!NOTE]> If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.> [!NOTE]> If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// API method documentation /// /// A @@ -108,7 +108,7 @@ public Commit_shaItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Commit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.> [!NOTE]> If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.> [!NOTE]> If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -136,7 +136,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.> [!NOTE]> If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.> [!NOTE]> If there are more than 300 files in the commit diff and the default JSON media type is requested, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." Pagination query parameters are not supported for these media types.- **`application/vnd.github.diff`**: Returns the diff of the commit. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property. Larger diffs may time out and return a 5xx status code.- **`application/vnd.github.sha`**: Returns the commit's SHA-1 hash. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class Commit_shaItemRequestBuilderGetQueryParameters diff --git a/src/GitHub/Repos/Item/Item/Compare/Item/WithBaseheadItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Compare/Item/WithBaseheadItemRequestBuilder.cs index f4bac646a..95417eea1 100644 --- a/src/GitHub/Repos/Item/Item/Compare/Item/WithBaseheadItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Compare/Item/WithBaseheadItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WithBaseheadItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap { } /// - /// Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)."This endpoint is equivalent to running the `git log BASE..HEAD` command, but it returns commits in a different order. The `git log BASE..HEAD` command returns commits in reverse chronological order, whereas the API returns commits in chronological order.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.diff`**: Returns the diff of the commit.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property.The API response includes details about the files that were changed between the two commits. This includes the status of the change (if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.When calling this endpoint without any paging parameter (`per_page` or `page`), the returned list is limited to 250 commits, and the last commit in the list is the most recent of the entire comparison.**Working with large comparisons**To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:- The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.- The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The `verification` object includes the following fields:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)."This endpoint is equivalent to running the `git log BASE..HEAD` command, but it returns commits in a different order. The `git log BASE..HEAD` command returns commits in reverse chronological order, whereas the API returns commits in chronological order.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.diff`**: Returns the diff of the commit.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property.The API response includes details about the files that were changed between the two commits. This includes the status of the change (if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.When calling this endpoint without any paging parameter (`per_page` or `page`), the returned list is limited to 250 commits, and the last commit in the list is the most recent of the entire comparison.**Working with large comparisons**To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:- The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.- The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The `verification` object includes the following fields:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// API method documentation /// /// A @@ -62,7 +62,7 @@ public WithBaseheadItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.CommitComparison.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)."This endpoint is equivalent to running the `git log BASE..HEAD` command, but it returns commits in a different order. The `git log BASE..HEAD` command returns commits in reverse chronological order, whereas the API returns commits in chronological order.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.diff`**: Returns the diff of the commit.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property.The API response includes details about the files that were changed between the two commits. This includes the status of the change (if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.When calling this endpoint without any paging parameter (`per_page` or `page`), the returned list is limited to 250 commits, and the last commit in the list is the most recent of the entire comparison.**Working with large comparisons**To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:- The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.- The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The `verification` object includes the following fields:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)."This endpoint is equivalent to running the `git log BASE..HEAD` command, but it returns commits in a different order. The `git log BASE..HEAD` command returns commits in reverse chronological order, whereas the API returns commits in chronological order.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.diff`**: Returns the diff of the commit.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property.The API response includes details about the files that were changed between the two commits. This includes the status of the change (if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.When calling this endpoint without any paging parameter (`per_page` or `page`), the returned list is limited to 250 commits, and the last commit in the list is the most recent of the entire comparison.**Working with large comparisons**To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:- The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.- The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The `verification` object includes the following fields:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,7 +90,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)."This endpoint is equivalent to running the `git log BASE..HEAD` command, but it returns commits in a different order. The `git log BASE..HEAD` command returns commits in reverse chronological order, whereas the API returns commits in chronological order.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.diff`**: Returns the diff of the commit.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property.The API response includes details about the files that were changed between the two commits. This includes the status of the change (if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.When calling this endpoint without any paging parameter (`per_page` or `page`), the returned list is limited to 250 commits, and the last commit in the list is the most recent of the entire comparison.**Working with large comparisons**To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:- The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.- The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The `verification` object includes the following fields:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Compares two commits against one another. You can compare refs (branches or tags) and commit SHAs in the same repository, or you can compare refs and commit SHAs that exist in different repositories within the same repository network, including fork branches. For more information about how to view a repository's network, see "[Understanding connections between repositories](https://docs.github.com/repositories/viewing-activity-and-data-for-your-repository/understanding-connections-between-repositories)."This endpoint is equivalent to running the `git log BASE..HEAD` command, but it returns commits in a different order. The `git log BASE..HEAD` command returns commits in reverse chronological order, whereas the API returns commits in chronological order.This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github.diff`**: Returns the diff of the commit.- **`application/vnd.github.patch`**: Returns the patch of the commit. Diffs with binary data will have no `patch` property.The API response includes details about the files that were changed between the two commits. This includes the status of the change (if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.When calling this endpoint without any paging parameter (`per_page` or `page`), the returned list is limited to 250 commits, and the last commit in the list is the most recent of the entire comparison.**Working with large comparisons**To process a response with a large number of commits, use a query parameter (`per_page` or `page`) to paginate the results. When using pagination:- The list of changed files is only shown on the first page of results, and it includes up to 300 changed files for the entire comparison.- The results are returned in chronological order, but the last commit in the returned list may not be the most recent one in the entire set if there are more pages of results.For more information on working with pagination, see "[Using pagination in the REST API](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The `verification` object includes the following fields:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class WithBaseheadItemRequestBuilderGetQueryParameters diff --git a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs index 8b10b0704..720430345 100644 --- a/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Commits/CommitsRequestBuilder.cs @@ -47,7 +47,7 @@ public CommitsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba { } /// - /// Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// API method documentation /// /// A @@ -77,7 +77,7 @@ public CommitsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Creates a new Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// /// A /// The request body diff --git a/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs index f24d5f8fb..8db5ef9cd 100644 --- a/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Commits/Item/WithCommit_shaItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WithCommit_shaItemRequestBuilder(string rawUrl, IRequestAdapter requestAd { } /// - /// Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// API method documentation /// /// A @@ -60,7 +60,7 @@ public WithCommit_shaItemRequestBuilder(string rawUrl, IRequestAdapter requestAd return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitCommit.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Gets a Git [commit object](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects).To get the contents of a commit, see "[Get a commit](/rest/commits/commits#get-a-commit)."**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in the table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs index aedae5c94..7c05024e0 100644 --- a/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Tags/Item/WithTag_shaItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WithTag_shaItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt { } /// - /// **Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// **Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// API method documentation /// /// A @@ -60,7 +60,7 @@ public WithTag_shaItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// **Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// **Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs index 07ce8844e..d086c66ac 100644 --- a/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Git/Tags/TagsRequestBuilder.cs @@ -47,7 +47,7 @@ public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( { } /// - /// Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/rest/git/refs#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://docs.github.com/rest/git/refs#create-a-reference) the tag reference - this call would be unnecessary.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/rest/git/refs#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://docs.github.com/rest/git/refs#create-a-reference) the tag reference - this call would be unnecessary.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// API method documentation /// /// A @@ -75,7 +75,7 @@ public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GitTag.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/rest/git/refs#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://docs.github.com/rest/git/refs#create-a-reference) the tag reference - this call would be unnecessary.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | + /// Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/rest/git/refs#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://docs.github.com/rest/git/refs#create-a-reference) the tag reference - this call would be unnecessary.**Signature verification object**The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:| Name | Type | Description || ---- | ---- | ----------- || `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. || `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. || `signature` | `string` | The signature that was extracted from the commit. || `payload` | `string` | The value that was signed. || `verified_at` | `string` | The date the signature was verified by GitHub. |These are the possible values for `reason` in the `verification` object:| Value | Description || ----- | ----------- || `expired_key` | The key that made the signature is expired. || `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. || `gpgverify_error` | There was an error communicating with the signature verification service. || `gpgverify_unavailable` | The signature verification service is currently unavailable. || `unsigned` | The object does not include a signature. || `unknown_signature_type` | A non-PGP signature was found in the commit. || `no_user` | No user was associated with the `committer` email address in the commit. || `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on their account. || `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. || `unknown_key` | The key that made the signature has not been registered with any user's account. || `malformed_signature` | There was an error parsing the signature. || `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. || `valid` | None of the above errors applied, so the signature is considered to be verified. | /// /// A /// The request body diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 320ee4419..6aad2db1b 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "BBF7C7349BB3868C068B4E567070DB695192AE635A18EBE7A46181BC90535CA703D543D6BC3F3B7FCEDAD257CA811839C5854873707A75CD4FFAAC0F5F738977", + "descriptionHash": "247F166DCC16C9D6A8A5EBC7483603178FCE1344AA4751A77249627F790966ABB58CD29302790763E21952A7FBC459BAC58A66041A5A36DDEE80974707F6476D", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From 81eaf49be17a52275eb1e8b3dd78ebd6bc636014 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Fri, 6 Dec 2024 00:33:35 +0000 Subject: [PATCH 13/14] New updates to generated code --- .../Copilot/Metrics/MetricsRequestBuilder.cs | 6 +- .../Item/Copilot/Usage/UsageRequestBuilder.cs | 6 +- .../Models/CodeScanningDefaultSetupOptions.cs | 70 +++++++++++++++++++ ...ScanningDefaultSetupOptions_runner_type.cs | 23 ++++++ .../Models/CodeScanningDefaultSetupUpdate.cs | 14 ++++ ...eScanningDefaultSetupUpdate_runner_type.cs | 19 +++++ .../Models/CodeSecurityConfiguration.cs | 10 +++ ...ion_code_scanning_default_setup_options.cs | 70 +++++++++++++++++++ ...nning_default_setup_options_runner_type.cs | 23 ++++++ src/GitHub/Models/SecretScanningScan.cs | 6 +- .../ConfigurationsPostRequestBody.cs | 11 +++ .../WithConfiguration_PatchRequestBody.cs | 11 +++ .../Selected_teamsRequestBuilder.cs | 8 +-- .../Selected_usersRequestBuilder.cs | 8 +-- .../Item/Item/WithActor_ItemRequestBuilder.cs | 14 +++- .../SubjectStatsRequestBuilder.cs | 14 +++- .../Item/WithUser_ItemRequestBuilder.cs | 14 +++- src/GitHub/kiota-lock.json | 2 +- 18 files changed, 305 insertions(+), 24 deletions(-) create mode 100644 src/GitHub/Models/CodeScanningDefaultSetupOptions.cs create mode 100644 src/GitHub/Models/CodeScanningDefaultSetupOptions_runner_type.cs create mode 100644 src/GitHub/Models/CodeScanningDefaultSetupUpdate_runner_type.cs create mode 100644 src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup_options.cs create mode 100644 src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup_options_runner_type.cs diff --git a/src/GitHub/Enterprises/Item/Team/Item/Copilot/Metrics/MetricsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Team/Item/Copilot/Metrics/MetricsRequestBuilder.cs index ab76185a1..d6632f791 100644 --- a/src/GitHub/Enterprises/Item/Team/Item/Copilot/Metrics/MetricsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Team/Item/Copilot/Metrics/MetricsRequestBuilder.cs @@ -34,7 +34,7 @@ public MetricsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba { } /// - /// Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.To access this endpoint, the Copilot Metrics API access policy must be enabled or set to "no policy" for the enterprise within GitHub settings.Only owners and billing managers for the enterprise that contains the enterprise team can view Copilot metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)."Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.To access this endpoint, the Copilot Metrics API access policy must be enabled or set to "no policy" for the enterprise within GitHub settings.Only owners and billing managers for the enterprise that contains the enterprise team can view Copilot metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// API method documentation /// /// A List<global::GitHub.Models.CopilotUsageMetricsDay> @@ -65,7 +65,7 @@ public MetricsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return collectionResult?.AsList(); } /// - /// Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.To access this endpoint, the Copilot Metrics API access policy must be enabled or set to "no policy" for the enterprise within GitHub settings.Only owners and billing managers for the enterprise that contains the enterprise team can view Copilot metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)."Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.To access this endpoint, the Copilot Metrics API access policy must be enabled or set to "no policy" for the enterprise within GitHub settings.Only owners and billing managers for the enterprise that contains the enterprise team can view Copilot metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -93,7 +93,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.To access this endpoint, the Copilot Metrics API access policy must be enabled or set to "no policy" for the enterprise within GitHub settings.Only owners and billing managers for the enterprise that contains the enterprise team can view Copilot metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)."Use this endpoint to see a breakdown of aggregated metrics for various GitHub Copilot features. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had **five or more members with active Copilot licenses** on that day, as evaluated at the end of that day.To access this endpoint, the Copilot Metrics API access policy must be enabled or set to "no policy" for the enterprise within GitHub settings.Only owners and billing managers for the enterprise that contains the enterprise team can view Copilot metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class MetricsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Enterprises/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs b/src/GitHub/Enterprises/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs index e4db24883..9f24f1973 100644 --- a/src/GitHub/Enterprises/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs @@ -34,7 +34,7 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change. This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)."You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// API method documentation /// /// A List<global::GitHub.Models.CopilotUsageMetrics> @@ -65,7 +65,7 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return collectionResult?.AsList(); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change. This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)."You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -93,7 +93,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!NOTE]> This endpoint is in public preview and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change. This endpoint is only applicable to dedicated enterprise accounts for Copilot Business. See "[About enterprise accounts for Copilot Business](https://docs.github.com/admin/copilot-business-only/about-enterprise-accounts-for-copilot-business)."You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class UsageRequestBuilderGetQueryParameters diff --git a/src/GitHub/Models/CodeScanningDefaultSetupOptions.cs b/src/GitHub/Models/CodeScanningDefaultSetupOptions.cs new file mode 100644 index 000000000..4c228962f --- /dev/null +++ b/src/GitHub/Models/CodeScanningDefaultSetupOptions.cs @@ -0,0 +1,70 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + /// + /// Feature options for code scanning default setup + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class CodeScanningDefaultSetupOptions : IAdditionalDataHolder, IParsable + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The label of the runner to use for code scanning default setup when runner_type is 'labeled'. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RunnerLabel { get; set; } +#nullable restore +#else + public string RunnerLabel { get; set; } +#endif + /// Whether to use labeled runners or standard GitHub runners. + public global::GitHub.Models.CodeScanningDefaultSetupOptions_runner_type? RunnerType { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public CodeScanningDefaultSetupOptions() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.CodeScanningDefaultSetupOptions CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.CodeScanningDefaultSetupOptions(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "runner_label", n => { RunnerLabel = n.GetStringValue(); } }, + { "runner_type", n => { RunnerType = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("runner_label", RunnerLabel); + writer.WriteEnumValue("runner_type", RunnerType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Models/CodeScanningDefaultSetupOptions_runner_type.cs b/src/GitHub/Models/CodeScanningDefaultSetupOptions_runner_type.cs new file mode 100644 index 000000000..b9e0aa195 --- /dev/null +++ b/src/GitHub/Models/CodeScanningDefaultSetupOptions_runner_type.cs @@ -0,0 +1,23 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// Whether to use labeled runners or standard GitHub runners. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum CodeScanningDefaultSetupOptions_runner_type + { + [EnumMember(Value = "standard")] + #pragma warning disable CS1591 + Standard, + #pragma warning restore CS1591 + [EnumMember(Value = "labeled")] + #pragma warning disable CS1591 + Labeled, + #pragma warning restore CS1591 + [EnumMember(Value = "not_set")] + #pragma warning disable CS1591 + Not_set, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Models/CodeScanningDefaultSetupUpdate.cs b/src/GitHub/Models/CodeScanningDefaultSetupUpdate.cs index 5c5005fda..ad390fa5b 100644 --- a/src/GitHub/Models/CodeScanningDefaultSetupUpdate.cs +++ b/src/GitHub/Models/CodeScanningDefaultSetupUpdate.cs @@ -23,6 +23,16 @@ public partial class CodeScanningDefaultSetupUpdate : IParsable #endif /// CodeQL query suite to be used. public global::GitHub.Models.CodeScanningDefaultSetupUpdate_query_suite? QuerySuite { get; set; } + /// Runner label to be used if the runner type is labeled. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RunnerLabel { get; set; } +#nullable restore +#else + public string RunnerLabel { get; set; } +#endif + /// Runner type to be used. + public global::GitHub.Models.CodeScanningDefaultSetupUpdate_runner_type? RunnerType { get; set; } /// The desired state of code scanning default setup. public global::GitHub.Models.CodeScanningDefaultSetupUpdate_state? State { get; set; } /// @@ -45,6 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { { "languages", n => { Languages = n.GetCollectionOfEnumValues()?.AsList(); } }, { "query_suite", n => { QuerySuite = n.GetEnumValue(); } }, + { "runner_label", n => { RunnerLabel = n.GetStringValue(); } }, + { "runner_type", n => { RunnerType = n.GetEnumValue(); } }, { "state", n => { State = n.GetEnumValue(); } }, }; } @@ -57,6 +69,8 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfEnumValues("languages", Languages); writer.WriteEnumValue("query_suite", QuerySuite); + writer.WriteStringValue("runner_label", RunnerLabel); + writer.WriteEnumValue("runner_type", RunnerType); writer.WriteEnumValue("state", State); } } diff --git a/src/GitHub/Models/CodeScanningDefaultSetupUpdate_runner_type.cs b/src/GitHub/Models/CodeScanningDefaultSetupUpdate_runner_type.cs new file mode 100644 index 000000000..33aa63924 --- /dev/null +++ b/src/GitHub/Models/CodeScanningDefaultSetupUpdate_runner_type.cs @@ -0,0 +1,19 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// Runner type to be used. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum CodeScanningDefaultSetupUpdate_runner_type + { + [EnumMember(Value = "standard")] + #pragma warning disable CS1591 + Standard, + #pragma warning restore CS1591 + [EnumMember(Value = "labeled")] + #pragma warning disable CS1591 + Labeled, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Models/CodeSecurityConfiguration.cs b/src/GitHub/Models/CodeSecurityConfiguration.cs index 177642d61..a034c82cd 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration.cs @@ -19,6 +19,14 @@ public partial class CodeSecurityConfiguration : IAdditionalDataHolder, IParsabl public global::GitHub.Models.CodeSecurityConfiguration_advanced_security? AdvancedSecurity { get; set; } /// The enablement status of code scanning default setup public global::GitHub.Models.CodeSecurityConfiguration_code_scanning_default_setup? CodeScanningDefaultSetup { get; set; } + /// Feature options for code scanning default setup +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.CodeSecurityConfiguration_code_scanning_default_setup_options? CodeScanningDefaultSetupOptions { get; set; } +#nullable restore +#else + public global::GitHub.Models.CodeSecurityConfiguration_code_scanning_default_setup_options CodeScanningDefaultSetupOptions { get; set; } +#endif /// The created_at property public DateTimeOffset? CreatedAt { get; set; } /// The enablement status of Dependabot alerts @@ -124,6 +132,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "advanced_security", n => { AdvancedSecurity = n.GetEnumValue(); } }, { "code_scanning_default_setup", n => { CodeScanningDefaultSetup = n.GetEnumValue(); } }, + { "code_scanning_default_setup_options", n => { CodeScanningDefaultSetupOptions = n.GetObjectValue(global::GitHub.Models.CodeSecurityConfiguration_code_scanning_default_setup_options.CreateFromDiscriminatorValue); } }, { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, { "dependabot_alerts", n => { DependabotAlerts = n.GetEnumValue(); } }, { "dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetEnumValue(); } }, @@ -156,6 +165,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("advanced_security", AdvancedSecurity); writer.WriteEnumValue("code_scanning_default_setup", CodeScanningDefaultSetup); + writer.WriteObjectValue("code_scanning_default_setup_options", CodeScanningDefaultSetupOptions); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteEnumValue("dependabot_alerts", DependabotAlerts); writer.WriteEnumValue("dependabot_security_updates", DependabotSecurityUpdates); diff --git a/src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup_options.cs b/src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup_options.cs new file mode 100644 index 000000000..78e965be0 --- /dev/null +++ b/src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup_options.cs @@ -0,0 +1,70 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace GitHub.Models +{ + /// + /// Feature options for code scanning default setup + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class CodeSecurityConfiguration_code_scanning_default_setup_options : IAdditionalDataHolder, IParsable + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The label of the runner to use for code scanning when runner_type is 'labeled'. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RunnerLabel { get; set; } +#nullable restore +#else + public string RunnerLabel { get; set; } +#endif + /// Whether to use labeled runners or standard GitHub runners. + public global::GitHub.Models.CodeSecurityConfiguration_code_scanning_default_setup_options_runner_type? RunnerType { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public CodeSecurityConfiguration_code_scanning_default_setup_options() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::GitHub.Models.CodeSecurityConfiguration_code_scanning_default_setup_options CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.CodeSecurityConfiguration_code_scanning_default_setup_options(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "runner_label", n => { RunnerLabel = n.GetStringValue(); } }, + { "runner_type", n => { RunnerType = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("runner_label", RunnerLabel); + writer.WriteEnumValue("runner_type", RunnerType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup_options_runner_type.cs b/src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup_options_runner_type.cs new file mode 100644 index 000000000..1807b5ef6 --- /dev/null +++ b/src/GitHub/Models/CodeSecurityConfiguration_code_scanning_default_setup_options_runner_type.cs @@ -0,0 +1,23 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// Whether to use labeled runners or standard GitHub runners. + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum CodeSecurityConfiguration_code_scanning_default_setup_options_runner_type + { + [EnumMember(Value = "standard")] + #pragma warning disable CS1591 + Standard, + #pragma warning restore CS1591 + [EnumMember(Value = "labeled")] + #pragma warning disable CS1591 + Labeled, + #pragma warning restore CS1591 + [EnumMember(Value = "not_set")] + #pragma warning disable CS1591 + Not_set, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Models/SecretScanningScan.cs b/src/GitHub/Models/SecretScanningScan.cs index cf887b07d..2e2487ee6 100644 --- a/src/GitHub/Models/SecretScanningScan.cs +++ b/src/GitHub/Models/SecretScanningScan.cs @@ -15,11 +15,11 @@ public partial class SecretScanningScan : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// The time that the scan was completed. Empty if the scan is active + /// The time that the scan was completed. Empty if the scan is running public DateTimeOffset? CompletedAt { get; set; } - /// The time that the scan was started + /// The time that the scan was started. Empty if the scan is pending public DateTimeOffset? StartedAt { get; set; } - /// The state of the scan. Either "completed" or "running" + /// The state of the scan. Either "completed", "running", or "pending" #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Status { get; set; } diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs index db6ce48ca..693fab220 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs @@ -1,5 +1,6 @@ // #pragma warning disable CS0618 +using GitHub.Models; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; @@ -16,6 +17,14 @@ public partial class ConfigurationsPostRequestBody : IParsable public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_advanced_security? AdvancedSecurity { get; set; } /// The enablement status of code scanning default setup public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_code_scanning_default_setup? CodeScanningDefaultSetup { get; set; } + /// Feature options for code scanning default setup +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.CodeScanningDefaultSetupOptions? CodeScanningDefaultSetupOptions { get; set; } +#nullable restore +#else + public global::GitHub.Models.CodeScanningDefaultSetupOptions CodeScanningDefaultSetupOptions { get; set; } +#endif /// The enablement status of Dependabot alerts public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_dependabot_alerts? DependabotAlerts { get; set; } /// The enablement status of Dependabot security updates @@ -109,6 +118,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "advanced_security", n => { AdvancedSecurity = n.GetEnumValue(); } }, { "code_scanning_default_setup", n => { CodeScanningDefaultSetup = n.GetEnumValue(); } }, + { "code_scanning_default_setup_options", n => { CodeScanningDefaultSetupOptions = n.GetObjectValue(global::GitHub.Models.CodeScanningDefaultSetupOptions.CreateFromDiscriminatorValue); } }, { "dependabot_alerts", n => { DependabotAlerts = n.GetEnumValue(); } }, { "dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetEnumValue(); } }, { "dependency_graph", n => { DependencyGraph = n.GetEnumValue(); } }, @@ -135,6 +145,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("advanced_security", AdvancedSecurity); writer.WriteEnumValue("code_scanning_default_setup", CodeScanningDefaultSetup); + writer.WriteObjectValue("code_scanning_default_setup_options", CodeScanningDefaultSetupOptions); writer.WriteEnumValue("dependabot_alerts", DependabotAlerts); writer.WriteEnumValue("dependabot_security_updates", DependabotSecurityUpdates); writer.WriteEnumValue("dependency_graph", DependencyGraph); diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs index 66811bcf0..e845ddb02 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs @@ -1,5 +1,6 @@ // #pragma warning disable CS0618 +using GitHub.Models; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; @@ -16,6 +17,14 @@ public partial class WithConfiguration_PatchRequestBody : IParsable public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_advanced_security? AdvancedSecurity { get; set; } /// The enablement status of code scanning default setup public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_code_scanning_default_setup? CodeScanningDefaultSetup { get; set; } + /// Feature options for code scanning default setup +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.CodeScanningDefaultSetupOptions? CodeScanningDefaultSetupOptions { get; set; } +#nullable restore +#else + public global::GitHub.Models.CodeScanningDefaultSetupOptions CodeScanningDefaultSetupOptions { get; set; } +#endif /// The enablement status of Dependabot alerts public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_dependabot_alerts? DependabotAlerts { get; set; } /// The enablement status of Dependabot security updates @@ -90,6 +99,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "advanced_security", n => { AdvancedSecurity = n.GetEnumValue(); } }, { "code_scanning_default_setup", n => { CodeScanningDefaultSetup = n.GetEnumValue(); } }, + { "code_scanning_default_setup_options", n => { CodeScanningDefaultSetupOptions = n.GetObjectValue(global::GitHub.Models.CodeScanningDefaultSetupOptions.CreateFromDiscriminatorValue); } }, { "dependabot_alerts", n => { DependabotAlerts = n.GetEnumValue(); } }, { "dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetEnumValue(); } }, { "dependency_graph", n => { DependencyGraph = n.GetEnumValue(); } }, @@ -116,6 +126,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteEnumValue("advanced_security", AdvancedSecurity); writer.WriteEnumValue("code_scanning_default_setup", CodeScanningDefaultSetup); + writer.WriteObjectValue("code_scanning_default_setup_options", CodeScanningDefaultSetupOptions); writer.WriteEnumValue("dependabot_alerts", DependabotAlerts); writer.WriteEnumValue("dependabot_security_updates", DependabotSecurityUpdates); writer.WriteEnumValue("dependency_graph", DependencyGraph); diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs index 7f35ee27b..039a538c6 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs @@ -34,7 +34,7 @@ public Selected_teamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte { } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all members of each team specified to "pending cancellation".This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team.For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response will contain the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all members of each team specified to "pending cancellation".This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team.For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response contains the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -66,7 +66,7 @@ public Selected_teamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for all users within each specified team.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for all users within each specified team.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response contains the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -98,7 +98,7 @@ public Selected_teamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_teams.Selected_teamsPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all members of each team specified to "pending cancellation".This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team.For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response will contain the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all members of each team specified to "pending cancellation".This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through another team.For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response contains the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// A /// The request body @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Co return requestInfo; } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for all users within each specified team.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for all users within each specified team.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response contains the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs index c7aa0837d..8272cfaee 100644 --- a/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_users/Selected_usersRequestBuilder.cs @@ -34,7 +34,7 @@ public Selected_usersRequestBuilder(string rawUrl, IRequestAdapter requestAdapte { } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all users specified to "pending cancellation".This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership.For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response will contain the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all users specified to "pending cancellation".This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership.For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response contains the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -66,7 +66,7 @@ public Selected_usersRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersDeleteResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for each user specified.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for each user specified.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response contains the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -98,7 +98,7 @@ public Selected_usersRequestBuilder(string rawUrl, IRequestAdapter requestAdapte return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Orgs.Item.Copilot.Billing.Selected_users.Selected_usersPostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all users specified to "pending cancellation".This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership.For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response will contain the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Sets seats for all users specified to "pending cancellation".This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle unless they retain access through team membership.For more information about disabling access to Copilot, see "[Revoking access to Copilot for members of your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-access-to-github-copilot-in-your-organization/revoking-access-to-copilot-for-members-of-your-organization)."Only organization owners can cancel Copilot seats for their organization members.The response contains the total number of seats set to "pending cancellation".OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// A /// The request body @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Co return requestInfo; } /// - /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for each user specified.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!NOTE]> This endpoint is in public preview and is subject to change.Purchases a GitHub Copilot seat for each user specified.The organization will be billed for each seat based on the organization's Copilot plan. For more information about Copilot pricing, see "[About billing for GitHub Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/about-billing-for-github-copilot-in-your-organization)."Only organization owners can purchase Copilot seats for their organization members. The organization must have a Copilot Business or Copilot Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Subscribing to Copilot for your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-the-copilot-subscription-for-your-organization/subscribing-to-copilot-for-your-organization)."For more information about setting a suggestion matching policy, see "[Managing policies for Copilot in your organization](https://docs.github.com/copilot/managing-copilot/managing-github-copilot-in-your-organization/setting-policies-for-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#policies-for-suggestion-matching)."The response contains the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Orgs/Item/Insights/Api/RouteStats/Item/Item/WithActor_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/RouteStats/Item/Item/WithActor_ItemRequestBuilder.cs index a0f96e84e..094be74ac 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/RouteStats/Item/Item/WithActor_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/RouteStats/Item/Item/WithActor_ItemRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class WithActor_ItemRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithActor_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", pathParameters) + public WithActor_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}?min_timestamp={min_timestamp}{&api_route_substring*,direction*,max_timestamp*,page*,per_page*,sort*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public WithActor_ItemRequestBuilder(Dictionary pathParameters, I /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithActor_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", rawUrl) + public WithActor_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}?min_timestamp={min_timestamp}{&api_route_substring*,direction*,max_timestamp*,page*,per_page*,sort*}", rawUrl) { } /// @@ -87,6 +87,16 @@ public RequestInformation ToGetRequestInformation(ActionProviding a substring will filter results where the API route contains the substring. This is a case-insensitive search. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("api_route_substring")] + public string? ApiRouteSubstring { get; set; } +#nullable restore +#else + [QueryParameter("api_route_substring")] + public string ApiRouteSubstring { get; set; } +#endif /// The direction to sort the results by. [QueryParameter("direction")] public global::GitHub.Orgs.Item.Insights.Api.RouteStats.Item.Item.GetDirectionQueryParameterType? Direction { get; set; } diff --git a/src/GitHub/Orgs/Item/Insights/Api/SubjectStats/SubjectStatsRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/SubjectStats/SubjectStatsRequestBuilder.cs index fe4ef40d7..144e4bfc6 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/SubjectStats/SubjectStatsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/SubjectStats/SubjectStatsRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class SubjectStatsRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SubjectStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/subject-stats?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", pathParameters) + public SubjectStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/subject-stats?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*,subject_name_substring*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public SubjectStatsRequestBuilder(Dictionary pathParameters, IRe /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SubjectStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/subject-stats?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", rawUrl) + public SubjectStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/subject-stats?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*,subject_name_substring*}", rawUrl) { } /// @@ -125,6 +125,16 @@ public partial class SubjectStatsRequestBuilderGetQueryParameters #else [QueryParameter("sort")] public global::GitHub.Orgs.Item.Insights.Api.SubjectStats.GetSortQueryParameterType[] Sort { get; set; } +#endif + /// Providing a substring will filter results where the subject name contains the substring. This is a case-insensitive search. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("subject_name_substring")] + public string? SubjectNameSubstring { get; set; } +#nullable restore +#else + [QueryParameter("subject_name_substring")] + public string SubjectNameSubstring { get; set; } #endif } } diff --git a/src/GitHub/Orgs/Item/Insights/Api/UserStats/Item/WithUser_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Insights/Api/UserStats/Item/WithUser_ItemRequestBuilder.cs index 2f8e49948..9a5817a5f 100644 --- a/src/GitHub/Orgs/Item/Insights/Api/UserStats/Item/WithUser_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Insights/Api/UserStats/Item/WithUser_ItemRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class WithUser_ItemRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithUser_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/user-stats/{user_id}?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", pathParameters) + public WithUser_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/user-stats/{user_id}?min_timestamp={min_timestamp}{&actor_name_substring*,direction*,max_timestamp*,page*,per_page*,sort*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public WithUser_ItemRequestBuilder(Dictionary pathParameters, IR /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithUser_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/user-stats/{user_id}?min_timestamp={min_timestamp}{&direction*,max_timestamp*,page*,per_page*,sort*}", rawUrl) + public WithUser_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/insights/api/user-stats/{user_id}?min_timestamp={min_timestamp}{&actor_name_substring*,direction*,max_timestamp*,page*,per_page*,sort*}", rawUrl) { } /// @@ -87,6 +87,16 @@ public RequestInformation ToGetRequestInformation(ActionProviding a substring will filter results where the actor name contains the substring. This is a case-insensitive search. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("actor_name_substring")] + public string? ActorNameSubstring { get; set; } +#nullable restore +#else + [QueryParameter("actor_name_substring")] + public string ActorNameSubstring { get; set; } +#endif /// The direction to sort the results by. [QueryParameter("direction")] public global::GitHub.Orgs.Item.Insights.Api.UserStats.Item.GetDirectionQueryParameterType? Direction { get; set; } diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 6aad2db1b..c72f72365 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "247F166DCC16C9D6A8A5EBC7483603178FCE1344AA4751A77249627F790966ABB58CD29302790763E21952A7FBC459BAC58A66041A5A36DDEE80974707F6476D", + "descriptionHash": "A15CBDE583A29CD0CF5D52E1824B631949336666270FA4CD8183CF78DFD97CD38B54A99A8D168D5F1924C7846A68FFE32B81A9D6C1A90A48309F1E7CF81CF9BB", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From da9c6891ede4182f06b667fbfbff1b038a31f3b2 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Sat, 7 Dec 2024 00:33:12 +0000 Subject: [PATCH 14/14] New updates to generated code --- src/GitHub/Models/CopilotSeatDetails.cs | 3 ++- src/GitHub/kiota-lock.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GitHub/Models/CopilotSeatDetails.cs b/src/GitHub/Models/CopilotSeatDetails.cs index 9a0a211d7..e66fabbdf 100644 --- a/src/GitHub/Models/CopilotSeatDetails.cs +++ b/src/GitHub/Models/CopilotSeatDetails.cs @@ -54,7 +54,8 @@ public partial class CopilotSeatDetails : IParsable public Date? PendingCancellationDate { get; set; } /// The Copilot plan of the organization, or the parent enterprise, when applicable. public global::GitHub.Models.CopilotSeatDetails_plan_type? PlanType { get; set; } - /// Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format. + /// **Closing down notice:** This field is no longer relevant and is closing down. Use the `created_at` field to determine when the assignee was last granted access to GitHub Copilot. Timestamp of when the assignee's GitHub Copilot access was last updated, in ISO 8601 format. + [Obsolete("")] public DateTimeOffset? UpdatedAt { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index c72f72365..5b03cf873 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "A15CBDE583A29CD0CF5D52E1824B631949336666270FA4CD8183CF78DFD97CD38B54A99A8D168D5F1924C7846A68FFE32B81A9D6C1A90A48309F1E7CF81CF9BB", + "descriptionHash": "6198535C8618DF52C604457271227C60CB25FBE843929DDB9970F53DB37EB9E31AEEA0A70CC974BC8F670CAEC656E55058A944AF09F1519B83FA55EA8A0076DA", "descriptionLocation": "../../../../../schemas/api.github.com.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0",