From 69be705c223e434a139d29884dfd7eb5bf75a2a7 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Sat, 19 Oct 2024 00:30:40 +0000 Subject: [PATCH 1/3] New updates to generated code --- src/GitHub/Models/SecurityAndAnalysis.cs | 10 +++ ...ndAnalysis_secret_scanning_ai_detection.cs | 59 +++++++++++++++++ ...sis_secret_scanning_ai_detection_status.cs | 20 ++++++ .../Alerts/AlertsRequestBuilder.cs | 24 ++++++- ...oPatchRequestBody_security_and_analysis.cs | 10 +++ ...d_analysis_secret_scanning_ai_detection.cs | 66 +++++++++++++++++++ src/GitHub/kiota-lock.json | 2 +- 7 files changed, 188 insertions(+), 3 deletions(-) create mode 100644 src/GitHub/Models/SecurityAndAnalysis_secret_scanning_ai_detection.cs create mode 100644 src/GitHub/Models/SecurityAndAnalysis_secret_scanning_ai_detection_status.cs create mode 100644 src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis_secret_scanning_ai_detection.cs diff --git a/src/GitHub/Models/SecurityAndAnalysis.cs b/src/GitHub/Models/SecurityAndAnalysis.cs index df4cb21d..d165fb97 100644 --- a/src/GitHub/Models/SecurityAndAnalysis.cs +++ b/src/GitHub/Models/SecurityAndAnalysis.cs @@ -37,6 +37,14 @@ public partial class SecurityAndAnalysis : IAdditionalDataHolder, IParsable #nullable restore #else public global::GitHub.Models.SecurityAndAnalysis_secret_scanning SecretScanning { get; set; } +#endif + /// The secret_scanning_ai_detection property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection? SecretScanningAiDetection { get; set; } +#nullable restore +#else + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection SecretScanningAiDetection { get; set; } #endif /// The secret_scanning_non_provider_patterns property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -90,6 +98,7 @@ public virtual IDictionary> GetFieldDeserializers() { "advanced_security", n => { AdvancedSecurity = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_advanced_security.CreateFromDiscriminatorValue); } }, { "dependabot_security_updates", n => { DependabotSecurityUpdates = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_dependabot_security_updates.CreateFromDiscriminatorValue); } }, { "secret_scanning", n => { SecretScanning = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_secret_scanning.CreateFromDiscriminatorValue); } }, + { "secret_scanning_ai_detection", n => { SecretScanningAiDetection = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection.CreateFromDiscriminatorValue); } }, { "secret_scanning_non_provider_patterns", n => { SecretScanningNonProviderPatterns = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_secret_scanning_non_provider_patterns.CreateFromDiscriminatorValue); } }, { "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_secret_scanning_push_protection.CreateFromDiscriminatorValue); } }, { "secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetObjectValue(global::GitHub.Models.SecurityAndAnalysis_secret_scanning_validity_checks.CreateFromDiscriminatorValue); } }, @@ -105,6 +114,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteObjectValue("advanced_security", AdvancedSecurity); writer.WriteObjectValue("dependabot_security_updates", DependabotSecurityUpdates); writer.WriteObjectValue("secret_scanning", SecretScanning); + writer.WriteObjectValue("secret_scanning_ai_detection", SecretScanningAiDetection); writer.WriteObjectValue("secret_scanning_non_provider_patterns", SecretScanningNonProviderPatterns); writer.WriteObjectValue("secret_scanning_push_protection", SecretScanningPushProtection); writer.WriteObjectValue("secret_scanning_validity_checks", SecretScanningValidityChecks); diff --git a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_ai_detection.cs b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_ai_detection.cs new file mode 100644 index 00000000..08a76a92 --- /dev/null +++ b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_ai_detection.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.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class SecurityAndAnalysis_secret_scanning_ai_detection : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The status property + public global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection_status? Status { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public SecurityAndAnalysis_secret_scanning_ai_detection() + { + 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.SecurityAndAnalysis_secret_scanning_ai_detection CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.SecurityAndAnalysis_secret_scanning_ai_detection(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "status", n => { Status = 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.WriteEnumValue("status", Status); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_ai_detection_status.cs b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_ai_detection_status.cs new file mode 100644 index 00000000..2ddcc32f --- /dev/null +++ b/src/GitHub/Models/SecurityAndAnalysis_secret_scanning_ai_detection_status.cs @@ -0,0 +1,20 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public enum SecurityAndAnalysis_secret_scanning_ai_detection_status + #pragma warning restore CS1591 + { + [EnumMember(Value = "enabled")] + #pragma warning disable CS1591 + Enabled, + #pragma warning restore CS1591 + [EnumMember(Value = "disabled")] + #pragma warning disable CS1591 + Disabled, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs index a9a4167c..b60302d1 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Alerts/AlertsRequestBuilder.cs @@ -35,7 +35,7 @@ public partial class AlertsRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/alerts{?direction*,page*,per_page*,pr*,ref*,severity*,sort*,state*,tool_guid*,tool_name*}", pathParameters) + public AlertsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/alerts{?after*,before*,direction*,page*,per_page*,pr*,ref*,severity*,sort*,state*,tool_guid*,tool_name*}", pathParameters) { } /// @@ -43,7 +43,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/alerts{?direction*,page*,per_page*,pr*,ref*,severity*,sort*,state*,tool_guid*,tool_name*}", rawUrl) + public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/code-scanning/alerts{?after*,before*,direction*,page*,per_page*,pr*,ref*,severity*,sort*,state*,tool_guid*,tool_name*}", rawUrl) { } /// @@ -109,6 +109,26 @@ public RequestInformation ToGetRequestInformation(ActionA cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("after")] + public string? After { get; set; } +#nullable restore +#else + [QueryParameter("after")] + public string After { get; set; } +#endif + /// A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("before")] + public string? Before { get; set; } +#nullable restore +#else + [QueryParameter("before")] + public string Before { get; set; } +#endif /// The direction to sort the results by. [QueryParameter("direction")] public global::GitHub.Repos.Item.Item.CodeScanning.Alerts.GetDirectionQueryParameterType? Direction { get; set; } diff --git a/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis.cs b/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis.cs index 31e51553..ca4b467c 100644 --- a/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis.cs +++ b/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis.cs @@ -30,6 +30,14 @@ public partial class RepoPatchRequestBody_security_and_analysis : IAdditionalDat #nullable restore #else public global::GitHub.Repos.Item.Item.RepoPatchRequestBody_security_and_analysis_secret_scanning SecretScanning { get; set; } +#endif + /// Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Repos.Item.Item.RepoPatchRequestBody_security_and_analysis_secret_scanning_ai_detection? SecretScanningAiDetection { get; set; } +#nullable restore +#else + public global::GitHub.Repos.Item.Item.RepoPatchRequestBody_security_and_analysis_secret_scanning_ai_detection SecretScanningAiDetection { get; set; } #endif /// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,6 +90,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "advanced_security", n => { AdvancedSecurity = n.GetObjectValue(global::GitHub.Repos.Item.Item.RepoPatchRequestBody_security_and_analysis_advanced_security.CreateFromDiscriminatorValue); } }, { "secret_scanning", n => { SecretScanning = n.GetObjectValue(global::GitHub.Repos.Item.Item.RepoPatchRequestBody_security_and_analysis_secret_scanning.CreateFromDiscriminatorValue); } }, + { "secret_scanning_ai_detection", n => { SecretScanningAiDetection = n.GetObjectValue(global::GitHub.Repos.Item.Item.RepoPatchRequestBody_security_and_analysis_secret_scanning_ai_detection.CreateFromDiscriminatorValue); } }, { "secret_scanning_non_provider_patterns", n => { SecretScanningNonProviderPatterns = n.GetObjectValue(global::GitHub.Repos.Item.Item.RepoPatchRequestBody_security_and_analysis_secret_scanning_non_provider_patterns.CreateFromDiscriminatorValue); } }, { "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetObjectValue(global::GitHub.Repos.Item.Item.RepoPatchRequestBody_security_and_analysis_secret_scanning_push_protection.CreateFromDiscriminatorValue); } }, { "secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetObjectValue(global::GitHub.Repos.Item.Item.RepoPatchRequestBody_security_and_analysis_secret_scanning_validity_checks.CreateFromDiscriminatorValue); } }, @@ -96,6 +105,7 @@ public virtual void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("advanced_security", AdvancedSecurity); writer.WriteObjectValue("secret_scanning", SecretScanning); + writer.WriteObjectValue("secret_scanning_ai_detection", SecretScanningAiDetection); writer.WriteObjectValue("secret_scanning_non_provider_patterns", SecretScanningNonProviderPatterns); writer.WriteObjectValue("secret_scanning_push_protection", SecretScanningPushProtection); writer.WriteObjectValue("secret_scanning_validity_checks", SecretScanningValidityChecks); diff --git a/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis_secret_scanning_ai_detection.cs b/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis_secret_scanning_ai_detection.cs new file mode 100644 index 00000000..395b9af4 --- /dev/null +++ b/src/GitHub/Repos/Item/Item/RepoPatchRequestBody_security_and_analysis_secret_scanning_ai_detection.cs @@ -0,0 +1,66 @@ +// +#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 +{ + /// + /// Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class RepoPatchRequestBody_security_and_analysis_secret_scanning_ai_detection : IAdditionalDataHolder, IParsable + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Can be `enabled` or `disabled`. +#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 + /// + /// Instantiates a new and sets the default values. + /// + public RepoPatchRequestBody_security_and_analysis_secret_scanning_ai_detection() + { + 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.RepoPatchRequestBody_security_and_analysis_secret_scanning_ai_detection CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Repos.Item.Item.RepoPatchRequestBody_security_and_analysis_secret_scanning_ai_detection(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "status", n => { Status = 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("status", Status); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 2b620f26..780b49a8 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "567AA037AA6B2D60BC67F7C46971EE22943D5837F6871E22096D9537BD31048C7703006F6D979F2827CB5241DAD76AC628E34B8FB65D4C3E70CFD12013A0E2DE", + "descriptionHash": "F464558D40D0DCD04F080D1025FD7E4A6D959B46A5F79BF65A85560B66870329D1D0F4B84FCA7F5B7E2DC6D9207D2DA6A014AB95F5C440978AE631D859A57DEE", "descriptionLocation": "../../../../../schemas/ghec.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From 945640b84463fd9f5d5b77593e4d81bbcb2ba776 Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Tue, 22 Oct 2024 00:31:36 +0000 Subject: [PATCH 2/3] New updates to generated code --- ...ode_security_and_analysisRequestBuilder.cs | 8 +- .../Billing/Seats/SeatsRequestBuilder.cs | 6 +- .../Item/Copilot/Usage/UsageRequestBuilder.cs | 6 +- .../Item/WithEnablementItemRequestBuilder.cs | 4 +- .../Item/Copilot/Usage/UsageRequestBuilder.cs | 6 +- src/GitHub/Models/AppPermissions.cs | 4 +- ...ns_organization_copilot_seat_management.cs | 2 +- .../AppPermissions_organization_projects.cs | 2 +- .../BranchRestrictionPolicy_apps_owner.cs | 10 +++ .../Models/BranchRestrictionPolicy_users.cs | 10 +++ .../CodeSecurityConfiguration_target_type.cs | 4 + src/GitHub/Models/Collaborator.cs | 10 +++ src/GitHub/Models/Contributor.cs | 10 +++ src/GitHub/Models/DeploymentStatus.cs | 2 +- src/GitHub/Models/NullableCollaborator.cs | 10 +++ src/GitHub/Models/NullableRepository.cs | 2 +- src/GitHub/Models/NullableSimpleUser.cs | 10 +++ src/GitHub/Models/OrganizationFull.cs | 14 ++-- src/GitHub/Models/PrivateUser.cs | 14 +++- src/GitHub/Models/PublicUser.cs | 14 +++- src/GitHub/Models/PullRequestReviewComment.cs | 4 +- src/GitHub/Models/PullRequestWebhook.cs | 2 +- .../Models/PullRequest_base_repo_owner.cs | 10 +++ src/GitHub/Models/PullRequest_base_user.cs | 10 +++ .../Models/PullRequest_head_repo_owner.cs | 10 +++ src/GitHub/Models/PullRequest_head_user.cs | 10 +++ src/GitHub/Models/Repository.cs | 2 +- src/GitHub/Models/SimpleUser.cs | 10 +++ src/GitHub/Models/UserRoleAssignment.cs | 10 +++ src/GitHub/Models/UserSearchResultItem.cs | 10 +++ src/GitHub/Models/Users.cs | 54 +++++++++---- src/GitHub/Models/Users_matches.cs | 75 +++++++++++++++++++ .../Custom_rolesRequestBuilder.cs | 6 +- .../Copilot/Billing/BillingRequestBuilder.cs | 4 +- .../Billing/Seats/SeatsRequestBuilder.cs | 6 +- .../Selected_teamsRequestBuilder.cs | 8 +- .../Selected_usersRequestBuilder.cs | 8 +- .../Item/Copilot/Usage/UsageRequestBuilder.cs | 6 +- .../Custom_rolesRequestBuilder.cs | 6 +- .../Item/WithRole_ItemRequestBuilder.cs | 18 ++--- .../Fine_grained_permissionsRequestBuilder.cs | 6 +- .../Item/WithEnablementItemRequestBuilder.cs | 4 +- .../Item/Copilot/CopilotRequestBuilder.cs | 4 +- .../Orgs/Item/Repos/ReposPostRequestBody.cs | 2 +- .../Item/Copilot/Usage/UsageRequestBuilder.cs | 6 +- .../Item/WithTeam_slugPatchRequestBody.cs | 2 +- ...ithTeam_slugPatchRequestBody_permission.cs | 2 +- .../Orgs/Item/Teams/TeamsPostRequestBody.cs | 2 +- .../Teams/TeamsPostRequestBody_permission.cs | 2 +- .../Orgs/Item/WithOrgItemRequestBuilder.cs | 4 +- .../Orgs/Item/WithOrgPatchRequestBody.cs | 16 ++-- ...embers_allowed_repository_creation_type.cs | 2 +- .../Rate_limit/Rate_limitRequestBuilder.cs | 4 +- ...onPutRequestBody_required_status_checks.cs | 2 +- .../Required_status_checksPatchRequestBody.cs | 2 +- .../Analyses/AnalysesRequestBuilder.cs | 6 +- .../Codespaces/CodespacesPostRequestBody.cs | 2 +- .../CodespacesPostRequestBody_geo.cs | 2 +- .../Item/Comments/CommentsPostRequestBody.cs | 2 +- .../Dependabot/Alerts/AlertsRequestBuilder.cs | 2 +- .../Import/Authors/AuthorsRequestBuilder.cs | 6 +- .../Item/WithAuthor_ItemRequestBuilder.cs | 4 +- .../Item/Item/Import/ImportRequestBuilder.cs | 16 ++-- .../Large_files/Large_filesRequestBuilder.cs | 4 +- .../Item/Item/Import/Lfs/LfsRequestBuilder.cs | 4 +- .../Item/Item/Issues/IssuesPostRequestBody.cs | 2 +- .../Item/WithIssue_numberPatchRequestBody.cs | 2 +- .../Codespaces/CodespacesPostRequestBody.cs | 2 +- .../CodespacesPostRequestBody_geo.cs | 2 +- .../Item/Comments/CommentsPostRequestBody.cs | 2 +- .../Item/Comments/CommentsRequestBuilder.cs | 4 +- .../Repos/Item/Item/RepoPatchRequestBody.cs | 2 +- .../WithTag_protection_ItemRequestBuilder.cs | 6 +- .../Protection/ProtectionRequestBuilder.cs | 12 +-- .../Item/Groups/GroupsRequestBuilder.cs | 10 +-- .../Item/WithScim_group_ItemRequestBuilder.cs | 18 ++--- .../Item/WithScim_user_ItemRequestBuilder.cs | 16 ++-- .../Item/Users/UsersRequestBuilder.cs | 10 +-- src/GitHub/Search/Code/CodeRequestBuilder.cs | 4 +- .../Discussions/DiscussionsRequestBuilder.cs | 10 +-- .../Item/Comments/CommentsRequestBuilder.cs | 10 +-- .../Item/Reactions/ReactionsRequestBuilder.cs | 10 +-- .../WithComment_numberItemRequestBuilder.cs | 12 +-- .../Item/Reactions/ReactionsRequestBuilder.cs | 10 +-- ...WithDiscussion_numberItemRequestBuilder.cs | 12 +-- .../Invitations/InvitationsRequestBuilder.cs | 6 +- .../Item/WithUsernameItemRequestBuilder.cs | 12 +-- .../Item/Members/MembersRequestBuilder.cs | 6 +- .../Item/WithUsernameItemRequestBuilder.cs | 12 +-- .../Item/WithProject_ItemRequestBuilder.cs | 12 +-- .../Item/Projects/ProjectsRequestBuilder.cs | 6 +- .../Item/Item/WithRepoItemRequestBuilder.cs | 12 +-- .../Teams/Item/Repos/ReposRequestBuilder.cs | 6 +- .../GroupMappingsRequestBuilder.cs | 8 +- .../Teams/Item/Teams/TeamsRequestBuilder.cs | 6 +- .../Teams/Item/WithTeam_ItemRequestBuilder.cs | 12 +-- .../Teams/Item/WithTeam_PatchRequestBody.cs | 2 +- .../WithTeam_PatchRequestBody_permission.cs | 2 +- .../CodespacesPostRequestBodyMember1.cs | 2 +- .../CodespacesPostRequestBodyMember1_geo.cs | 2 +- .../CodespacesPostRequestBodyMember2.cs | 2 +- .../CodespacesPostRequestBodyMember2_geo.cs | 2 +- .../Item/WithAccount_ItemRequestBuilder.cs | 6 +- src/GitHub/User/UserRequestBuilder.cs | 6 +- .../Item/WithUsernameItemRequestBuilder.cs | 6 +- src/GitHub/kiota-lock.json | 2 +- 106 files changed, 529 insertions(+), 282 deletions(-) create mode 100644 src/GitHub/Models/Users_matches.cs diff --git a/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisRequestBuilder.cs b/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisRequestBuilder.cs index d9006a06..d545283c 100644 --- a/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Code_security_and_analysis/Code_security_and_analysisRequestBuilder.cs @@ -34,7 +34,7 @@ public Code_security_and_analysisRequestBuilder(string rawUrl, IRequestAdapter r { } /// - /// > [!WARNING]> **Deprecation notice:** The ability to fetch code security and analysis settings for an enterprise is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Gets code security and analysis settings for the specified enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** The ability to fetch code security and analysis settings for an enterprise is closing down. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Gets code security and analysis settings for the specified enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint. /// API method documentation /// /// A @@ -59,7 +59,7 @@ public Code_security_and_analysisRequestBuilder(string rawUrl, IRequestAdapter r return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.EnterpriseSecurityAnalysisSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** The ability to update code security and analysis settings for an enterprise is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Updates the settings for advanced security, Dependabot alerts, secret scanning, and push protection for new repositories in an enterprise.The authenticated user must be an administrator of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** The ability to update code security and analysis settings for an enterprise is closing down. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Updates the settings for advanced security, Dependabot alerts, secret scanning, and push protection for new repositories in an enterprise.The authenticated user must be an administrator of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. /// API method documentation /// /// The request body @@ -85,7 +85,7 @@ public async Task PatchAsync(global::GitHub.Enterprises.Item.Code_security_and_a await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** The ability to fetch code security and analysis settings for an enterprise is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Gets code security and analysis settings for the specified enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** The ability to fetch code security and analysis settings for an enterprise is closing down. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Gets code security and analysis settings for the specified enterprise.The authenticated user must be an administrator of the enterprise in order to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `read:enterprise` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** The ability to update code security and analysis settings for an enterprise is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Updates the settings for advanced security, Dependabot alerts, secret scanning, and push protection for new repositories in an enterprise.The authenticated user must be an administrator of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** The ability to update code security and analysis settings for an enterprise is closing down. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Updates the settings for advanced security, Dependabot alerts, secret scanning, and push protection for new repositories in an enterprise.The authenticated user must be an administrator of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs b/src/GitHub/Enterprises/Item/Copilot/Billing/Seats/SeatsRequestBuilder.cs index ae4d56f8..1133d082 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 beta and is subject to change.Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!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. /// 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 beta and is subject to change.Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!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. /// /// 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 beta and is subject to change.Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription.Users with access through multiple organizations or enterprise teams will only be counted toward `total_seats` once.For each organization or enterprise team which grants Copilot access to a user, a seat detail object will appear in the `seats` array.Only enterprise owners and billing managers can view assigned Copilot seats across their child organizations or enterprise teams.Personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!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. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class SeatsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Enterprises/Item/Copilot/Usage/UsageRequestBuilder.cs b/src/GitHub/Enterprises/Item/Copilot/Usage/UsageRequestBuilder.cs index 63b5ce23..a21ab20c 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 beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances,and number of active users by editor and language for each day. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!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. /// 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 beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances,and number of active users by editor and language for each day. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!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. /// /// 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 beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances,and number of active users by editor and language for each day. See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Only owners and billing managers can view Copilot usage metrics for the enterprise.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!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. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class UsageRequestBuilderGetQueryParameters diff --git a/src/GitHub/Enterprises/Item/Item/Item/WithEnablementItemRequestBuilder.cs b/src/GitHub/Enterprises/Item/Item/Item/WithEnablementItemRequestBuilder.cs index 01bfd264..6020ea63 100644 --- a/src/GitHub/Enterprises/Item/Item/Item/WithEnablementItemRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/Item/Item/WithEnablementItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WithEnablementItemRequestBuilder(string rawUrl, IRequestAdapter requestAd { } /// - /// > [!WARNING]> **Deprecation notice:** The ability to enable or disable a security feature for an enterprise is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Enables or disables the specified security feature for all repositories in an enterprise.The authenticated user must be an administrator of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** The ability to enable or disable a security feature for an enterprise is closing down. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Enables or disables the specified security feature for all repositories in an enterprise.The authenticated user must be an administrator of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -58,7 +58,7 @@ public async Task PostAsync(Action> await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** The ability to enable or disable a security feature for an enterprise is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Enables or disables the specified security feature for all repositories in an enterprise.The authenticated user must be an administrator of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** The ability to enable or disable a security feature for an enterprise is closing down. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-09-27-upcoming-replacement-of-enterprise-code-security-enablement-ui-and-apis).Enables or disables the specified security feature for all repositories in an enterprise.The authenticated user must be an administrator of the enterprise to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. 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 08dd2911..53040917 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 beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!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. /// 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 beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!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. /// /// 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 beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day.Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. + /// > [!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. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class UsageRequestBuilderGetQueryParameters diff --git a/src/GitHub/Models/AppPermissions.cs b/src/GitHub/Models/AppPermissions.cs index 44ee02fc..f7e2bdde 100644 --- a/src/GitHub/Models/AppPermissions.cs +++ b/src/GitHub/Models/AppPermissions.cs @@ -51,7 +51,7 @@ public partial class AppPermissions : IAdditionalDataHolder, IParsable public global::GitHub.Models.AppPermissions_organization_administration? OrganizationAdministration { get; set; } /// The level of permission to grant the access token to view and manage announcement banners for an organization. public global::GitHub.Models.AppPermissions_organization_announcement_banners? OrganizationAnnouncementBanners { get; set; } - /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change. + /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. public global::GitHub.Models.AppPermissions_organization_copilot_seat_management? OrganizationCopilotSeatManagement { get; set; } /// The level of permission to grant the access token for custom organization roles management. public global::GitHub.Models.AppPermissions_organization_custom_org_roles? OrganizationCustomOrgRoles { get; set; } @@ -71,7 +71,7 @@ public partial class AppPermissions : IAdditionalDataHolder, IParsable public global::GitHub.Models.AppPermissions_organization_personal_access_tokens? OrganizationPersonalAccessTokens { get; set; } /// The level of permission to grant the access token for viewing an organization's plan. public global::GitHub.Models.AppPermissions_organization_plan? OrganizationPlan { get; set; } - /// The level of permission to grant the access token to manage organization projects and projects beta (where available). + /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). public global::GitHub.Models.AppPermissions_organization_projects? OrganizationProjects { get; set; } /// The level of permission to grant the access token to manage organization secrets. public global::GitHub.Models.AppPermissions_organization_secrets? OrganizationSecrets { get; set; } diff --git a/src/GitHub/Models/AppPermissions_organization_copilot_seat_management.cs b/src/GitHub/Models/AppPermissions_organization_copilot_seat_management.cs index a6ad4b08..4c973210 100644 --- a/src/GitHub/Models/AppPermissions_organization_copilot_seat_management.cs +++ b/src/GitHub/Models/AppPermissions_organization_copilot_seat_management.cs @@ -3,7 +3,7 @@ using System; namespace GitHub.Models { - /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change. + /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public enum AppPermissions_organization_copilot_seat_management { diff --git a/src/GitHub/Models/AppPermissions_organization_projects.cs b/src/GitHub/Models/AppPermissions_organization_projects.cs index 9fb8960d..62028eee 100644 --- a/src/GitHub/Models/AppPermissions_organization_projects.cs +++ b/src/GitHub/Models/AppPermissions_organization_projects.cs @@ -3,7 +3,7 @@ using System; namespace GitHub.Models { - /// The level of permission to grant the access token to manage organization projects and projects beta (where available). + /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public enum AppPermissions_organization_projects { diff --git a/src/GitHub/Models/BranchRestrictionPolicy_apps_owner.cs b/src/GitHub/Models/BranchRestrictionPolicy_apps_owner.cs index 6ecde726..6dff2abb 100644 --- a/src/GitHub/Models/BranchRestrictionPolicy_apps_owner.cs +++ b/src/GitHub/Models/BranchRestrictionPolicy_apps_owner.cs @@ -185,6 +185,14 @@ public partial class BranchRestrictionPolicy_apps_owner : IAdditionalDataHolder, #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -234,6 +242,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -266,6 +275,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/BranchRestrictionPolicy_users.cs b/src/GitHub/Models/BranchRestrictionPolicy_users.cs index f6fd2fa7..8ec3264f 100644 --- a/src/GitHub/Models/BranchRestrictionPolicy_users.cs +++ b/src/GitHub/Models/BranchRestrictionPolicy_users.cs @@ -145,6 +145,14 @@ public partial class BranchRestrictionPolicy_users : IAdditionalDataHolder, IPar #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -189,6 +197,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -216,6 +225,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/CodeSecurityConfiguration_target_type.cs b/src/GitHub/Models/CodeSecurityConfiguration_target_type.cs index 20d75e17..e3ca6479 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration_target_type.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration_target_type.cs @@ -15,5 +15,9 @@ public enum CodeSecurityConfiguration_target_type #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/Collaborator.cs b/src/GitHub/Models/Collaborator.cs index f60f1f83..7df035be 100644 --- a/src/GitHub/Models/Collaborator.cs +++ b/src/GitHub/Models/Collaborator.cs @@ -178,6 +178,14 @@ public partial class Collaborator : IAdditionalDataHolder, IParsable #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -226,6 +234,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -257,6 +266,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Contributor.cs b/src/GitHub/Models/Contributor.cs index bdd113e2..0e536dad 100644 --- a/src/GitHub/Models/Contributor.cs +++ b/src/GitHub/Models/Contributor.cs @@ -164,6 +164,14 @@ public partial class Contributor : IAdditionalDataHolder, IParsable #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -211,6 +219,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -241,6 +250,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/DeploymentStatus.cs b/src/GitHub/Models/DeploymentStatus.cs index 4af59f1a..f960b91c 100644 --- a/src/GitHub/Models/DeploymentStatus.cs +++ b/src/GitHub/Models/DeploymentStatus.cs @@ -93,7 +93,7 @@ public partial class DeploymentStatus : IAdditionalDataHolder, IParsable #endif /// The state of the status. public global::GitHub.Models.DeploymentStatus_state? State { get; set; } - /// Deprecated: the URL to associate with this status. + /// Closing down notice: the URL to associate with this status. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TargetUrl { get; set; } diff --git a/src/GitHub/Models/NullableCollaborator.cs b/src/GitHub/Models/NullableCollaborator.cs index 7f5804be..f1a8da92 100644 --- a/src/GitHub/Models/NullableCollaborator.cs +++ b/src/GitHub/Models/NullableCollaborator.cs @@ -178,6 +178,14 @@ public partial class NullableCollaborator : IAdditionalDataHolder, IParsable #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -226,6 +234,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -257,6 +266,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/NullableRepository.cs b/src/GitHub/Models/NullableRepository.cs index b47061ea..b359fe8a 100644 --- a/src/GitHub/Models/NullableRepository.cs +++ b/src/GitHub/Models/NullableRepository.cs @@ -538,7 +538,7 @@ public partial class NullableRepository : IAdditionalDataHolder, IParsable #else public string Url { get; set; } #endif - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. [Obsolete("")] public bool? UseSquashPrTitleAsDefault { get; set; } /// The repository visibility: public, private, or internal. diff --git a/src/GitHub/Models/NullableSimpleUser.cs b/src/GitHub/Models/NullableSimpleUser.cs index d9804131..29b86ef7 100644 --- a/src/GitHub/Models/NullableSimpleUser.cs +++ b/src/GitHub/Models/NullableSimpleUser.cs @@ -170,6 +170,14 @@ public partial class NullableSimpleUser : IAdditionalDataHolder, IParsable #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -217,6 +225,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -247,6 +256,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/OrganizationFull.cs b/src/GitHub/Models/OrganizationFull.cs index 01c06907..3a3efc07 100644 --- a/src/GitHub/Models/OrganizationFull.cs +++ b/src/GitHub/Models/OrganizationFull.cs @@ -15,7 +15,7 @@ public partial class OrganizationFull : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether GitHub Advanced Security is 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. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether GitHub Advanced Security is 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? AdvancedSecurityEnabledForNewRepositories { get; set; } /// The archived_at property @@ -62,13 +62,13 @@ public partial class OrganizationFull : IAdditionalDataHolder, IParsable #else public string DefaultRepositoryPermission { get; set; } #endif - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.This field is only visible to organization owners or members of a team with the security manager role. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.This field is only visible to organization owners or members of a team with the security manager role. [Obsolete("")] public bool? DependabotAlertsEnabledForNewRepositories { get; set; } - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether Dependabot security updates are 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. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether Dependabot security updates are 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? DependabotSecurityUpdatesEnabledForNewRepositories { get; set; } - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//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. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//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; } /// The description property @@ -229,7 +229,7 @@ public partial class OrganizationFull : IAdditionalDataHolder, IParsable #else public string ReposUrl { get; set; } #endif - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning 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. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning 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? SecretScanningEnabledForNewRepositories { get; set; } /// An optional URL string to display to contributors who are blocked from pushing a secret. @@ -242,10 +242,10 @@ public partial class OrganizationFull : IAdditionalDataHolder, IParsable #endif /// Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection. public bool? SecretScanningPushProtectionCustomLinkEnabled { get; set; } - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning push protection 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. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning push protection 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? SecretScanningPushProtectionEnabledForNewRepositories { get; set; } - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization. [Obsolete("")] public bool? SecretScanningValidityChecksEnabled { get; set; } /// The total_private_repos property diff --git a/src/GitHub/Models/PrivateUser.cs b/src/GitHub/Models/PrivateUser.cs index 9175f9ca..03826a8d 100644 --- a/src/GitHub/Models/PrivateUser.cs +++ b/src/GitHub/Models/PrivateUser.cs @@ -225,8 +225,6 @@ public partial class PrivateUser : IAdditionalDataHolder, IParsable #else public string SubscriptionsUrl { get; set; } #endif - /// The suspended_at property - public DateTimeOffset? SuspendedAt { get; set; } /// The total_private_repos property public int? TotalPrivateRepos { get; set; } /// The twitter_username property @@ -256,6 +254,14 @@ public partial class PrivateUser : IAdditionalDataHolder, IParsable #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -318,13 +324,13 @@ public virtual IDictionary> GetFieldDeserializers() { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - { "suspended_at", n => { SuspendedAt = n.GetDateTimeOffsetValue(); } }, { "total_private_repos", n => { TotalPrivateRepos = n.GetIntValue(); } }, { "twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, { "two_factor_authentication", n => { TwoFactorAuthentication = n.GetBoolValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -370,13 +376,13 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("site_admin", SiteAdmin); writer.WriteStringValue("starred_url", StarredUrl); writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); - writer.WriteDateTimeOffsetValue("suspended_at", SuspendedAt); writer.WriteIntValue("total_private_repos", TotalPrivateRepos); writer.WriteStringValue("twitter_username", TwitterUsername); writer.WriteBoolValue("two_factor_authentication", TwoFactorAuthentication); writer.WriteStringValue("type", Type); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PublicUser.cs b/src/GitHub/Models/PublicUser.cs index 49fcc91e..513c9043 100644 --- a/src/GitHub/Models/PublicUser.cs +++ b/src/GitHub/Models/PublicUser.cs @@ -213,8 +213,6 @@ public partial class PublicUser : IParsable #else public string SubscriptionsUrl { get; set; } #endif - /// The suspended_at property - public DateTimeOffset? SuspendedAt { get; set; } /// The total_private_repos property public int? TotalPrivateRepos { get; set; } /// The twitter_username property @@ -242,6 +240,14 @@ public partial class PublicUser : IParsable #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -295,12 +301,12 @@ public virtual IDictionary> GetFieldDeserializers() { "site_admin", n => { SiteAdmin = n.GetBoolValue(); } }, { "starred_url", n => { StarredUrl = n.GetStringValue(); } }, { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, - { "suspended_at", n => { SuspendedAt = n.GetDateTimeOffsetValue(); } }, { "total_private_repos", n => { TotalPrivateRepos = n.GetIntValue(); } }, { "twitter_username", n => { TwitterUsername = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -344,12 +350,12 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("site_admin", SiteAdmin); writer.WriteStringValue("starred_url", StarredUrl); writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); - writer.WriteDateTimeOffsetValue("suspended_at", SuspendedAt); writer.WriteIntValue("total_private_repos", TotalPrivateRepos); writer.WriteStringValue("twitter_username", TwitterUsername); writer.WriteStringValue("type", Type); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); } } } diff --git a/src/GitHub/Models/PullRequestReviewComment.cs b/src/GitHub/Models/PullRequestReviewComment.cs index f63529c7..85a1379d 100644 --- a/src/GitHub/Models/PullRequestReviewComment.cs +++ b/src/GitHub/Models/PullRequestReviewComment.cs @@ -99,7 +99,7 @@ public partial class PullRequestReviewComment : IAdditionalDataHolder, IParsable #endif /// The line of the blob to which the comment applies. The last line of the range for a multi-line comment public int? OriginalLine { get; set; } - /// The index of the original line in the diff to which the comment applies. This field is deprecated; use `original_line` instead. + /// The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead. public int? OriginalPosition { get; set; } /// The first line of the range for a multi-line comment. public int? OriginalStartLine { get; set; } @@ -111,7 +111,7 @@ public partial class PullRequestReviewComment : IAdditionalDataHolder, IParsable #else public string Path { get; set; } #endif - /// The line index in the diff to which the comment applies. This field is deprecated; use `line` instead. + /// The line index in the diff to which the comment applies. This field is closing down; use `line` instead. public int? Position { get; set; } /// The ID of the pull request review to which the comment belongs. public long? PullRequestReviewId { get; set; } diff --git a/src/GitHub/Models/PullRequestWebhook.cs b/src/GitHub/Models/PullRequestWebhook.cs index b42cd8a7..85b9bc2a 100644 --- a/src/GitHub/Models/PullRequestWebhook.cs +++ b/src/GitHub/Models/PullRequestWebhook.cs @@ -26,7 +26,7 @@ public partial class PullRequestWebhook : global::GitHub.Models.PullRequest, IPa public global::GitHub.Models.PullRequestWebhook_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } /// The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). public global::GitHub.Models.PullRequestWebhook_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead.** + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead.** public bool? UseSquashPrTitleAsDefault { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value diff --git a/src/GitHub/Models/PullRequest_base_repo_owner.cs b/src/GitHub/Models/PullRequest_base_repo_owner.cs index bdd6f04b..bf8ded70 100644 --- a/src/GitHub/Models/PullRequest_base_repo_owner.cs +++ b/src/GitHub/Models/PullRequest_base_repo_owner.cs @@ -145,6 +145,14 @@ public partial class PullRequest_base_repo_owner : IAdditionalDataHolder, IParsa #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -189,6 +197,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -216,6 +225,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequest_base_user.cs b/src/GitHub/Models/PullRequest_base_user.cs index f9c98c5d..47cf3cbc 100644 --- a/src/GitHub/Models/PullRequest_base_user.cs +++ b/src/GitHub/Models/PullRequest_base_user.cs @@ -145,6 +145,14 @@ public partial class PullRequest_base_user : IAdditionalDataHolder, IParsable #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -189,6 +197,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -216,6 +225,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequest_head_repo_owner.cs b/src/GitHub/Models/PullRequest_head_repo_owner.cs index 964216a1..2c17ef58 100644 --- a/src/GitHub/Models/PullRequest_head_repo_owner.cs +++ b/src/GitHub/Models/PullRequest_head_repo_owner.cs @@ -145,6 +145,14 @@ public partial class PullRequest_head_repo_owner : IAdditionalDataHolder, IParsa #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -189,6 +197,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -216,6 +225,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/PullRequest_head_user.cs b/src/GitHub/Models/PullRequest_head_user.cs index 120238b9..f347e750 100644 --- a/src/GitHub/Models/PullRequest_head_user.cs +++ b/src/GitHub/Models/PullRequest_head_user.cs @@ -145,6 +145,14 @@ public partial class PullRequest_head_user : IAdditionalDataHolder, IParsable #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -189,6 +197,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -216,6 +225,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Repository.cs b/src/GitHub/Models/Repository.cs index c54c0267..58142d26 100644 --- a/src/GitHub/Models/Repository.cs +++ b/src/GitHub/Models/Repository.cs @@ -538,7 +538,7 @@ public partial class Repository : IAdditionalDataHolder, IParsable #else public string Url { get; set; } #endif - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. [Obsolete("")] public bool? UseSquashPrTitleAsDefault { get; set; } /// The repository visibility: public, private, or internal. diff --git a/src/GitHub/Models/SimpleUser.cs b/src/GitHub/Models/SimpleUser.cs index d64790b5..794945ad 100644 --- a/src/GitHub/Models/SimpleUser.cs +++ b/src/GitHub/Models/SimpleUser.cs @@ -170,6 +170,14 @@ public partial class SimpleUser : IAdditionalDataHolder, IParsable #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -217,6 +225,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -247,6 +256,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/UserRoleAssignment.cs b/src/GitHub/Models/UserRoleAssignment.cs index d438e54d..64e17d93 100644 --- a/src/GitHub/Models/UserRoleAssignment.cs +++ b/src/GitHub/Models/UserRoleAssignment.cs @@ -170,6 +170,14 @@ public partial class UserRoleAssignment : IAdditionalDataHolder, IParsable #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -217,6 +225,7 @@ public virtual IDictionary> GetFieldDeserializers() { "subscriptions_url", n => { SubscriptionsUrl = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -247,6 +256,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("subscriptions_url", SubscriptionsUrl); writer.WriteStringValue("type", Type); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/UserSearchResultItem.cs b/src/GitHub/Models/UserSearchResultItem.cs index 7b057632..f8f8459c 100644 --- a/src/GitHub/Models/UserSearchResultItem.cs +++ b/src/GitHub/Models/UserSearchResultItem.cs @@ -220,6 +220,14 @@ public partial class UserSearchResultItem : IAdditionalDataHolder, IParsable #nullable restore #else public string Url { get; set; } +#endif + /// The user_view_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserViewType { get; set; } +#nullable restore +#else + public string UserViewType { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -280,6 +288,7 @@ public virtual IDictionary> GetFieldDeserializers() { "type", n => { Type = n.GetStringValue(); } }, { "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } }, { "url", n => { Url = n.GetStringValue(); } }, + { "user_view_type", n => { UserViewType = n.GetStringValue(); } }, }; } /// @@ -323,6 +332,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("type", Type); writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt); writer.WriteStringValue("url", Url); + writer.WriteStringValue("user_view_type", UserViewType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Users.cs b/src/GitHub/Models/Users.cs index 1353411f..ee1970b9 100644 --- a/src/GitHub/Models/Users.cs +++ b/src/GitHub/Models/Users.cs @@ -14,23 +14,45 @@ public partial class Users : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Whether this email address is the primary address. - public bool? Primary { get; set; } - /// The type of email address. + /// The fragment property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Type { get; set; } + public string? Fragment { get; set; } #nullable restore #else - public string Type { get; set; } + public string Fragment { get; set; } #endif - /// The email address. + /// The matches property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public string? Value { get; set; } + public List? Matches { get; set; } #nullable restore #else - public string Value { get; set; } + public List Matches { get; set; } +#endif + /// The object_type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ObjectType { get; set; } +#nullable restore +#else + public string ObjectType { get; set; } +#endif + /// The object_url property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ObjectUrl { get; set; } +#nullable restore +#else + public string ObjectUrl { get; set; } +#endif + /// The property property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Property { get; set; } +#nullable restore +#else + public string Property { get; set; } #endif /// /// Instantiates a new and sets the default values. @@ -57,9 +79,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "primary", n => { Primary = n.GetBoolValue(); } }, - { "type", n => { Type = n.GetStringValue(); } }, - { "value", n => { Value = n.GetStringValue(); } }, + { "fragment", n => { Fragment = n.GetStringValue(); } }, + { "matches", n => { Matches = n.GetCollectionOfObjectValues(global::GitHub.Models.Users_matches.CreateFromDiscriminatorValue)?.AsList(); } }, + { "object_type", n => { ObjectType = n.GetStringValue(); } }, + { "object_url", n => { ObjectUrl = n.GetStringValue(); } }, + { "property", n => { Property = n.GetStringValue(); } }, }; } /// @@ -69,9 +93,11 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("primary", Primary); - writer.WriteStringValue("type", Type); - writer.WriteStringValue("value", Value); + writer.WriteStringValue("fragment", Fragment); + writer.WriteCollectionOfObjectValues("matches", Matches); + writer.WriteStringValue("object_type", ObjectType); + writer.WriteStringValue("object_url", ObjectUrl); + writer.WriteStringValue("property", Property); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/GitHub/Models/Users_matches.cs b/src/GitHub/Models/Users_matches.cs new file mode 100644 index 00000000..02c4f2f4 --- /dev/null +++ b/src/GitHub/Models/Users_matches.cs @@ -0,0 +1,75 @@ +// +#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 Users_matches : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The indices property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Indices { get; set; } +#nullable restore +#else + public List Indices { get; set; } +#endif + /// The text property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Text { get; set; } +#nullable restore +#else + public string Text { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Users_matches() + { + 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.Users_matches CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.Users_matches(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "indices", n => { Indices = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "text", n => { Text = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfPrimitiveValues("indices", Indices); + writer.WriteStringValue("text", Text); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesRequestBuilder.cs b/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesRequestBuilder.cs index 76ef77cc..8c2351f4 100644 --- a/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesRequestBuilder.cs +++ b/src/GitHub/Organizations/Item/Custom_roles/Custom_rolesRequestBuilder.cs @@ -33,8 +33,8 @@ public Custom_rolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed in the future. Use the "[List custom repository roles](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization)" endpoint instead.List the custom repository roles available in this organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. - /// API method documentation + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed in the future. Use the "[List custom repository roles](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization)" endpoint instead.List the custom repository roles available in this organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. + /// API method documentation /// /// A /// Cancellation token to use when cancelling requests @@ -53,7 +53,7 @@ public Custom_rolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Organizations.Item.Custom_roles.Custom_rolesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed in the future. Use the "[List custom repository roles](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization)" endpoint instead.List the custom repository roles available in this organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed in the future. Use the "[List custom repository roles](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-custom-repository-roles-in-an-organization)" endpoint instead.List the custom repository roles available in this organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Orgs/Item/Copilot/Billing/BillingRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/BillingRequestBuilder.cs index 099d99e9..95d84827 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 beta and is subject to change.Gets information about an organization's Copilot subscription, including seat breakdownand feature policies. To configure these settings, go to your organization's settings on GitHub.com.For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)".Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!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/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)".Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -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 beta and is subject to change.Gets information about an organization's Copilot subscription, including seat breakdownand feature policies. To configure these settings, go to your organization's settings on GitHub.com.For more information, see "[Managing policies for Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)".Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!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/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-copilot-business-in-your-organization)".Only organization owners can view details about the organization's Copilot Business or Copilot Enterprise subscription.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. /// /// 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 426844b2..81d03e33 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 beta and is subject to change.Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription.Only organization owners can view assigned seats.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!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. /// 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 beta and is subject to change.Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription.Only organization owners can view assigned seats.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!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. /// /// 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 beta and is subject to change.Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription.Only organization owners can view assigned seats.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!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. /// [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_teamsRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Billing/Selected_teams/Selected_teamsRequestBuilder.cs index c48995da..72b56266 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 beta and is subject to change.Cancels the Copilot seat assignment for all members of each team specified.This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!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/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -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 beta and is subject to change.Purchases a GitHub Copilot seat for all users within each specified team.The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!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/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -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 beta and is subject to change.Cancels the Copilot seat assignment for all members of each team specified.This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!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/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// A /// The request body @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Co return requestInfo; } /// - /// > [!NOTE]> This endpoint is in beta and is subject to change.Purchases a GitHub Copilot seat for all users within each specified team.The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!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/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// 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 2556aa67..4761f7ea 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 beta and is subject to change.Cancels the Copilot seat assignment for each user specified.This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!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/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -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 beta and is subject to change.Purchases a GitHub Copilot seat for each user specified.The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!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/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// API method documentation /// /// A @@ -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 beta and is subject to change.Cancels the Copilot seat assignment for each user specified.This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users.For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!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/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".For more information about disabling access to Copilot Business or Enterprise, see "[Revoking access to GitHub Copilot for specific users in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-access-for-copilot-in-your-organization#revoking-access-to-github-copilot-for-specific-users-in-your-organization)".Only organization owners can cancel Copilot seats for their organization members.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// A /// The request body @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(global::GitHub.Orgs.Item.Co return requestInfo; } /// - /// > [!NOTE]> This endpoint is in beta and is subject to change.Purchases a GitHub Copilot seat for each user specified.The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. + /// > [!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/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)".Only organization owners can add Copilot seats for their organization members.In order for an admin to use this endpoint, the organization must have a Copilot Business or Enterprise subscription and a configured suggestion matching policy.For more information about setting up a Copilot subscription, see "[Setting up a Copilot subscription for your organization](https://docs.github.com/enterprise-cloud@latest//billing/managing-billing-for-github-copilot/managing-your-github-copilot-subscription-for-your-organization-or-enterprise)".For more information about setting a suggestion matching policy, see "[Configuring suggestion matching policies for GitHub Copilot in your organization](https://docs.github.com/enterprise-cloud@latest//copilot/managing-copilot/managing-policies-for-github-copilot-in-your-organization#configuring-suggestion-matching-policies-for-github-copilot-in-your-organization)".The response will contain the total number of new seats that were created and existing seats that were refreshed.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `admin:org` scopes to use this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Orgs/Item/Copilot/Usage/UsageRequestBuilder.cs b/src/GitHub/Orgs/Item/Copilot/Usage/UsageRequestBuilder.cs index 3ab08b3b..3fe755f2 100644 --- a/src/GitHub/Orgs/Item/Copilot/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Copilot/Usage/UsageRequestBuilder.cs @@ -34,7 +34,7 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// > [!NOTE]> This endpoint is in beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEacross an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. + /// > [!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 IDEacross an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. /// API method documentation /// /// A List<global::GitHub.Models.CopilotUsageMetrics> @@ -65,7 +65,7 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return collectionResult?.AsList(); } /// - /// > [!NOTE]> This endpoint is in beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEacross an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. + /// > [!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 IDEacross an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. /// /// 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 beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEacross an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. + /// > [!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 IDEacross an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class UsageRequestBuilderGetQueryParameters diff --git a/src/GitHub/Orgs/Item/Custom_roles/Custom_rolesRequestBuilder.cs b/src/GitHub/Orgs/Item/Custom_roles/Custom_rolesRequestBuilder.cs index c6932c16..b64a0fb6 100644 --- a/src/GitHub/Orgs/Item/Custom_roles/Custom_rolesRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Custom_roles/Custom_rolesRequestBuilder.cs @@ -48,8 +48,8 @@ public Custom_rolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Create a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#create-a-custom-repository-role)" endpoint instead.Creates a custom repository role that can be used by all repositories owned by the organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. - /// API method documentation + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after September 6, 2023. Use the "[Create a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#create-a-custom-repository-role)" endpoint instead.Creates a custom repository role that can be used by all repositories owned by the organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// API method documentation /// /// A /// The request body @@ -77,7 +77,7 @@ public Custom_rolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Create a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#create-a-custom-repository-role)" endpoint instead.Creates a custom repository role that can be used by all repositories owned by the organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after September 6, 2023. Use the "[Create a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#create-a-custom-repository-role)" endpoint instead.Creates a custom repository role that can be used by all repositories owned by the organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Orgs/Item/Custom_roles/Item/WithRole_ItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Custom_roles/Item/WithRole_ItemRequestBuilder.cs index e611e609..10ac3a36 100644 --- a/src/GitHub/Orgs/Item/Custom_roles/Item/WithRole_ItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Custom_roles/Item/WithRole_ItemRequestBuilder.cs @@ -34,8 +34,8 @@ public WithRole_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Delete a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#delete-a-custom-repository-role)" endpoint instead.Deletes a custom role from an organization. Once the custom role has been deleted, anyuser, team, or invitation with the deleted custom role will be reassigned the inherited role. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. - /// API method documentation + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after September 6, 2023. Use the "[Delete a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#delete-a-custom-repository-role)" endpoint instead.Deletes a custom role from an organization. Once the custom role has been deleted, anyuser, team, or invitation with the deleted custom role will be reassigned the inherited role. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// API method documentation /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -53,8 +53,8 @@ public async Task DeleteAsync(Action - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Get a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#get-a-custom-repository-role)" endpoint instead.Gets a custom repository role that is available to all repositories owned by the organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. - /// API method documentation + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after September 6, 2023. Use the "[Get a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#get-a-custom-repository-role)" endpoint instead.Gets a custom repository role that is available to all repositories owned by the organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. + /// API method documentation /// /// A /// Cancellation token to use when cancelling requests @@ -78,8 +78,8 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Update a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#update-a-custom-repository-role)" endpoint instead.Updates a custom repository role that can be used by all repositories owned by the organization. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. - /// API method documentation + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after September 6, 2023. Use the "[Update a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#update-a-custom-repository-role)" endpoint instead.Updates a custom repository role that can be used by all repositories owned by the organization. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// API method documentation /// /// A /// The request body @@ -107,7 +107,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.OrganizationCustomRepositoryRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Delete a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#delete-a-custom-repository-role)" endpoint instead.Deletes a custom role from an organization. Once the custom role has been deleted, anyuser, team, or invitation with the deleted custom role will be reassigned the inherited role. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after September 6, 2023. Use the "[Delete a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#delete-a-custom-repository-role)" endpoint instead.Deletes a custom role from an organization. Once the custom role has been deleted, anyuser, team, or invitation with the deleted custom role will be reassigned the inherited role. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Get a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#get-a-custom-repository-role)" endpoint instead.Gets a custom repository role that is available to all repositories owned by the organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after September 6, 2023. Use the "[Get a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#get-a-custom-repository-role)" endpoint instead.Gets a custom repository role that is available to all repositories owned by the organization. For more information on custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator of the organization or of a repository of the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -146,7 +146,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[Update a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#update-a-custom-repository-role)" endpoint instead.Updates a custom repository role that can be used by all repositories owned by the organization. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after September 6, 2023. Use the "[Update a custom repository role](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#update-a-custom-repository-role)" endpoint instead.Updates a custom repository role that can be used by all repositories owned by the organization. For more information about custom repository roles, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."The authenticated user must be an administrator for the organization to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Orgs/Item/Fine_grained_permissions/Fine_grained_permissionsRequestBuilder.cs b/src/GitHub/Orgs/Item/Fine_grained_permissions/Fine_grained_permissionsRequestBuilder.cs index 62c8f57d..3bf583c7 100644 --- a/src/GitHub/Orgs/Item/Fine_grained_permissions/Fine_grained_permissionsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Fine_grained_permissions/Fine_grained_permissionsRequestBuilder.cs @@ -34,8 +34,8 @@ public Fine_grained_permissionsRequestBuilder(string rawUrl, IRequestAdapter req { } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[List fine-grained repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-repository-fine-grained-permissions-for-an-organization)" endpoint instead.Lists the fine-grained permissions that can be used in custom repository roles for an organization. For more information, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."To use this endpoint the authenticated user must be an administrator of the organization or of a repository of the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. - /// API method documentation + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after September 6, 2023. Use the "[List fine-grained repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-repository-fine-grained-permissions-for-an-organization)" endpoint instead.Lists the fine-grained permissions that can be used in custom repository roles for an organization. For more information, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."To use this endpoint the authenticated user must be an administrator of the organization or of a repository of the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. + /// API method documentation /// /// A List<global::GitHub.Models.RepositoryFineGrainedPermission> /// Cancellation token to use when cancelling requests @@ -55,7 +55,7 @@ public Fine_grained_permissionsRequestBuilder(string rawUrl, IRequestAdapter req return collectionResult?.AsList(); } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after September 6, 2023. Use the "[List fine-grained repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-repository-fine-grained-permissions-for-an-organization)" endpoint instead.Lists the fine-grained permissions that can be used in custom repository roles for an organization. For more information, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."To use this endpoint the authenticated user must be an administrator of the organization or of a repository of the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after September 6, 2023. Use the "[List fine-grained repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/orgs/custom-roles#list-repository-fine-grained-permissions-for-an-organization)" endpoint instead.Lists the fine-grained permissions that can be used in custom repository roles for an organization. For more information, see "[About custom repository roles](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-repository-roles)."To use this endpoint the authenticated user must be an administrator of the organization or of a repository of the organization.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Orgs/Item/Item/Item/WithEnablementItemRequestBuilder.cs b/src/GitHub/Orgs/Item/Item/Item/WithEnablementItemRequestBuilder.cs index ce95b39c..2e80baf9 100644 --- a/src/GitHub/Orgs/Item/Item/Item/WithEnablementItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Item/Item/WithEnablementItemRequestBuilder.cs @@ -33,7 +33,7 @@ public WithEnablementItemRequestBuilder(string rawUrl, IRequestAdapter requestAd { } /// - /// > [!WARNING]> **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org`, `write:org`, or `repo` scopes to use this endpoint. + /// > [!WARNING]> **Closing down notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is closing down. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org`, `write:org`, or `repo` scopes to use this endpoint. /// API method documentation /// /// The request body @@ -54,7 +54,7 @@ public async Task PostAsync(global::GitHub.Orgs.Item.Item.Item.WithEnablementPos await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org`, `write:org`, or `repo` scopes to use this endpoint. + /// > [!WARNING]> **Closing down notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is closing down. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/).Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."The authenticated user must be an organization owner or be member of a team with the security manager role to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org`, `write:org`, or `repo` 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 7f342e7b..1ffde2ab 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 beta and is subject to change.Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot.Only organization owners can view Copilot seat assignment details for members of their organization.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!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. /// 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 beta and is subject to change.Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot.Only organization owners can view Copilot seat assignment details for members of their organization.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:org` scopes to use this endpoint. + /// > [!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. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody.cs b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody.cs index 4a9eda07..d41b0625 100644 --- a/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Repos/ReposPostRequestBody.cs @@ -96,7 +96,7 @@ public partial class ReposPostRequestBody : IAdditionalDataHolder, IParsable public global::GitHub.Orgs.Item.Repos.ReposPostRequestBody_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } /// The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. public int? TeamId { get; set; } - /// Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. [Obsolete("")] public bool? UseSquashPrTitleAsDefault { get; set; } /// The visibility of the repository. diff --git a/src/GitHub/Orgs/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs b/src/GitHub/Orgs/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs index 83b53ab8..c826e0bc 100644 --- a/src/GitHub/Orgs/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/Team/Item/Copilot/Usage/UsageRequestBuilder.cs @@ -34,7 +34,7 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// > [!NOTE]> This endpoint is in beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the team had five or more members with active Copilot licenses, as evaluated at the end of that day.Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. + /// > [!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 a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the team had five or more members with active Copilot licenses, as evaluated at the end of that day.Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. /// API method documentation /// /// A List<global::GitHub.Models.CopilotUsageMetrics> @@ -65,7 +65,7 @@ public UsageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return collectionResult?.AsList(); } /// - /// > [!NOTE]> This endpoint is in beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the team had five or more members with active Copilot licenses, as evaluated at the end of that day.Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. + /// > [!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 a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the team had five or more members with active Copilot licenses, as evaluated at the end of that day.Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. /// /// 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 beta and is subject to change.You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDEfor users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the team had five or more members with active Copilot licenses, as evaluated at the end of that day.Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. + /// > [!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 a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day.See the response schema tab for detailed metrics definitions.The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day,and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics,they must have telemetry enabled in their IDE.> [!NOTE]> This endpoint will only return results for a given day if the team had five or more members with active Copilot licenses, as evaluated at the end of that day.Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team.OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class UsageRequestBuilderGetQueryParameters diff --git a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody.cs b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody.cs index 3a0404de..8d69daf4 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody.cs @@ -34,7 +34,7 @@ public partial class WithTeam_slugPatchRequestBody : IAdditionalDataHolder, IPar public global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody_notification_setting? NotificationSetting { get; set; } /// The ID of a team to set as the parent team. public int? ParentTeamId { get; set; } - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. public global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody_permission? Permission { get; set; } /// The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: **For a non-nested team:** * `secret` - only visible to organization owners and members of this team. * `closed` - visible to all members of this organization. **For a parent or child team:** * `closed` - visible to all members of this organization. public global::GitHub.Orgs.Item.Teams.Item.WithTeam_slugPatchRequestBody_privacy? Privacy { get; set; } diff --git a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_permission.cs b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_permission.cs index c9e2b860..12da2d97 100644 --- a/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_permission.cs +++ b/src/GitHub/Orgs/Item/Teams/Item/WithTeam_slugPatchRequestBody_permission.cs @@ -3,7 +3,7 @@ using System; namespace GitHub.Orgs.Item.Teams.Item { - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public enum WithTeam_slugPatchRequestBody_permission { diff --git a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody.cs b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody.cs index 2f77f435..278c087f 100644 --- a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody.cs @@ -42,7 +42,7 @@ public partial class TeamsPostRequestBody : IAdditionalDataHolder, IParsable public global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody_notification_setting? NotificationSetting { get; set; } /// The ID of a team to set as the parent team. public int? ParentTeamId { get; set; } - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. public global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody_permission? Permission { get; set; } /// The level of privacy this team should have. The options are: **For a non-nested team:** * `secret` - only visible to organization owners and members of this team. * `closed` - visible to all members of this organization. Default: `secret` **For a parent or child team:** * `closed` - visible to all members of this organization. Default for child team: `closed` public global::GitHub.Orgs.Item.Teams.TeamsPostRequestBody_privacy? Privacy { get; set; } diff --git a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_permission.cs b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_permission.cs index fd8607df..8a44ac12 100644 --- a/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_permission.cs +++ b/src/GitHub/Orgs/Item/Teams/TeamsPostRequestBody_permission.cs @@ -3,7 +3,7 @@ using System; namespace GitHub.Orgs.Item.Teams { - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public enum TeamsPostRequestBody_permission { diff --git a/src/GitHub/Orgs/Item/WithOrgItemRequestBuilder.cs b/src/GitHub/Orgs/Item/WithOrgItemRequestBuilder.cs index ea50d948..5056440c 100644 --- a/src/GitHub/Orgs/Item/WithOrgItemRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/WithOrgItemRequestBuilder.cs @@ -379,7 +379,7 @@ public WithOrgItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.OrganizationFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Parameter deprecation notice:** GitHub Enterprise Cloud will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes).> [!WARNING]> **Parameter deprecation notice:** Code security product enablement for new repositories through the organization API is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/).Updates the organization's profile and member privileges.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** GitHub Enterprise Cloud will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes).> [!WARNING]> **Closing down notice:** Code security product enablement for new repositories through the organization API is closing down. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/).Updates the organization's profile and member privileges.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. /// API method documentation /// /// A @@ -443,7 +443,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Parameter deprecation notice:** GitHub Enterprise Cloud will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes).> [!WARNING]> **Parameter deprecation notice:** Code security product enablement for new repositories through the organization API is deprecated. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/).Updates the organization's profile and member privileges.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. + /// > [!WARNING]> **Closing down notice:** GitHub Enterprise Cloud will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes).> [!WARNING]> **Closing down notice:** Code security product enablement for new repositories through the organization API is closing down. Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/).Updates the organization's profile and member privileges.The authenticated user must be an organization owner to use this endpoint.OAuth app tokens and personal access tokens (classic) need the `admin:org` or `repo` scope to use this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs index 9c5a91ea..f4e0b01d 100644 --- a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody.cs @@ -14,7 +14,7 @@ public partial class WithOrgPatchRequestBody : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether GitHub Advanced Security 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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether GitHub Advanced Security 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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. [Obsolete("")] public bool? AdvancedSecurityEnabledForNewRepositories { get; set; } /// Billing email address. This address is not publicized. @@ -43,13 +43,13 @@ public partial class WithOrgPatchRequestBody : IAdditionalDataHolder, IParsable #endif /// Default permission level members have for organization repositories. public global::GitHub.Orgs.Item.WithOrgPatchRequestBody_default_repository_permission? DefaultRepositoryPermission { get; set; } - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. [Obsolete("")] public bool? DependabotAlertsEnabledForNewRepositories { get; set; } - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization.To use this parameter, you must have admin permissions for the repository or be an owner or security manager for the organization that owns the repository. For more information, see "[Managing security managers in your organization](https://docs.github.com/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. [Obsolete("")] public bool? DependabotSecurityUpdatesEnabledForNewRepositories { get; set; } - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. [Obsolete("")] public bool? DependencyGraphEnabledForNewRepositories { get; set; } /// The description of the company. The maximum size is 160 characters. @@ -80,7 +80,7 @@ public partial class WithOrgPatchRequestBody : IAdditionalDataHolder, IParsable #else public string Location { get; set; } #endif - /// Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. **Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. + /// Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. **Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. public global::GitHub.Orgs.Item.WithOrgPatchRequestBody_members_allowed_repository_creation_type? MembersAllowedRepositoryCreationType { get; set; } /// Whether organization members can create internal repositories, which are visible to all enterprise members. You can only allow members to create internal repositories if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see "[Restricting repository creation in your organization](https://docs.github.com/enterprise-cloud@latest//github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)" in the GitHub Help documentation. public bool? MembersCanCreateInternalRepositories { get; set; } @@ -106,7 +106,7 @@ public partial class WithOrgPatchRequestBody : IAdditionalDataHolder, IParsable #else public string Name { get; set; } #endif - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning 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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning 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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. [Obsolete("")] public bool? SecretScanningEnabledForNewRepositories { get; set; } /// If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret. @@ -119,10 +119,10 @@ public partial class WithOrgPatchRequestBody : IAdditionalDataHolder, IParsable #endif /// Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection. public bool? SecretScanningPushProtectionCustomLinkEnabled { get; set; } - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning push protection 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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning push protection 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/enterprise-cloud@latest//organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)."You can check which security and analysis features are currently enabled by using a `GET /orgs/{org}` request. [Obsolete("")] public bool? SecretScanningPushProtectionEnabledForNewRepositories { get; set; } - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations) instead.Whether secret scanning automatic validity checks on supported partner tokens is enabled for all repositories under this organization. [Obsolete("")] public bool? SecretScanningValidityChecksEnabled { get; set; } /// The Twitter username of the company. diff --git a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_members_allowed_repository_creation_type.cs b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_members_allowed_repository_creation_type.cs index 24446b6a..4c9b1506 100644 --- a/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_members_allowed_repository_creation_type.cs +++ b/src/GitHub/Orgs/Item/WithOrgPatchRequestBody_members_allowed_repository_creation_type.cs @@ -3,7 +3,7 @@ using System; namespace GitHub.Orgs.Item { - /// Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. **Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. + /// Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. **Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public enum WithOrgPatchRequestBody_members_allowed_repository_creation_type { diff --git a/src/GitHub/Rate_limit/Rate_limitRequestBuilder.cs b/src/GitHub/Rate_limit/Rate_limitRequestBuilder.cs index e70e969b..26b0e183 100644 --- a/src/GitHub/Rate_limit/Rate_limitRequestBuilder.cs +++ b/src/GitHub/Rate_limit/Rate_limitRequestBuilder.cs @@ -34,7 +34,7 @@ public Rate_limitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// > [!NOTE]> Accessing this endpoint does not count against your REST API rate limit.Some categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under `resources`, you'll see objects relating to different categories:* The `core` object provides your rate limit status for all non-search-related resources in the REST API.* The `search` object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see "[Search](https://docs.github.com/enterprise-cloud@latest//rest/search/search)."* The `code_search` object provides your rate limit status for the REST API for searching code. For more information, see "[Search code](https://docs.github.com/enterprise-cloud@latest//rest/search/search#search-code)."* The `graphql` object provides your rate limit status for the GraphQL API. For more information, see "[Resource limitations](https://docs.github.com/enterprise-cloud@latest//graphql/overview/resource-limitations#rate-limit)."* The `integration_manifest` object provides your rate limit status for the `POST /app-manifests/{code}/conversions` operation. For more information, see "[Creating a GitHub App from a manifest](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app-from-a-manifest#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration)."* The `dependency_snapshots` object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph)."* The `code_scanning_upload` object provides your rate limit status for uploading SARIF results to code scanning. For more information, see "[Uploading a SARIF file to GitHub](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)."* The `actions_runner_registration` object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see "[Self-hosted runners](https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners)."* The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/enterprise-cloud@latest//rest/about-the-rest-api/api-versions)."> [!NOTE]> The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. + /// > [!NOTE]> Accessing this endpoint does not count against your REST API rate limit.Some categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under `resources`, you'll see objects relating to different categories:* The `core` object provides your rate limit status for all non-search-related resources in the REST API.* The `search` object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see "[Search](https://docs.github.com/enterprise-cloud@latest//rest/search/search)."* The `code_search` object provides your rate limit status for the REST API for searching code. For more information, see "[Search code](https://docs.github.com/enterprise-cloud@latest//rest/search/search#search-code)."* The `graphql` object provides your rate limit status for the GraphQL API. For more information, see "[Resource limitations](https://docs.github.com/enterprise-cloud@latest//graphql/overview/resource-limitations#rate-limit)."* The `integration_manifest` object provides your rate limit status for the `POST /app-manifests/{code}/conversions` operation. For more information, see "[Creating a GitHub App from a manifest](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app-from-a-manifest#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration)."* The `dependency_snapshots` object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph)."* The `code_scanning_upload` object provides your rate limit status for uploading SARIF results to code scanning. For more information, see "[Uploading a SARIF file to GitHub](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)."* The `actions_runner_registration` object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see "[Self-hosted runners](https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners)."* The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/enterprise-cloud@latest//rest/about-the-rest-api/api-versions)."> [!NOTE]> The `rate` object is closing down. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. /// API method documentation /// /// A @@ -58,7 +58,7 @@ public Rate_limitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.RateLimitOverview.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> Accessing this endpoint does not count against your REST API rate limit.Some categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under `resources`, you'll see objects relating to different categories:* The `core` object provides your rate limit status for all non-search-related resources in the REST API.* The `search` object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see "[Search](https://docs.github.com/enterprise-cloud@latest//rest/search/search)."* The `code_search` object provides your rate limit status for the REST API for searching code. For more information, see "[Search code](https://docs.github.com/enterprise-cloud@latest//rest/search/search#search-code)."* The `graphql` object provides your rate limit status for the GraphQL API. For more information, see "[Resource limitations](https://docs.github.com/enterprise-cloud@latest//graphql/overview/resource-limitations#rate-limit)."* The `integration_manifest` object provides your rate limit status for the `POST /app-manifests/{code}/conversions` operation. For more information, see "[Creating a GitHub App from a manifest](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app-from-a-manifest#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration)."* The `dependency_snapshots` object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph)."* The `code_scanning_upload` object provides your rate limit status for uploading SARIF results to code scanning. For more information, see "[Uploading a SARIF file to GitHub](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)."* The `actions_runner_registration` object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see "[Self-hosted runners](https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners)."* The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/enterprise-cloud@latest//rest/about-the-rest-api/api-versions)."> [!NOTE]> The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. + /// > [!NOTE]> Accessing this endpoint does not count against your REST API rate limit.Some categories of endpoints have custom rate limits that are separate from the rate limit governing the other REST API endpoints. For this reason, the API response categorizes your rate limit. Under `resources`, you'll see objects relating to different categories:* The `core` object provides your rate limit status for all non-search-related resources in the REST API.* The `search` object provides your rate limit status for the REST API for searching (excluding code searches). For more information, see "[Search](https://docs.github.com/enterprise-cloud@latest//rest/search/search)."* The `code_search` object provides your rate limit status for the REST API for searching code. For more information, see "[Search code](https://docs.github.com/enterprise-cloud@latest//rest/search/search#search-code)."* The `graphql` object provides your rate limit status for the GraphQL API. For more information, see "[Resource limitations](https://docs.github.com/enterprise-cloud@latest//graphql/overview/resource-limitations#rate-limit)."* The `integration_manifest` object provides your rate limit status for the `POST /app-manifests/{code}/conversions` operation. For more information, see "[Creating a GitHub App from a manifest](https://docs.github.com/enterprise-cloud@latest//apps/creating-github-apps/setting-up-a-github-app/creating-a-github-app-from-a-manifest#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration)."* The `dependency_snapshots` object provides your rate limit status for submitting snapshots to the dependency graph. For more information, see "[Dependency graph](https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph)."* The `code_scanning_upload` object provides your rate limit status for uploading SARIF results to code scanning. For more information, see "[Uploading a SARIF file to GitHub](https://docs.github.com/enterprise-cloud@latest//code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github)."* The `actions_runner_registration` object provides your rate limit status for registering self-hosted runners in GitHub Actions. For more information, see "[Self-hosted runners](https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners)."* The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/enterprise-cloud@latest//rest/about-the-rest-api/api-versions)."> [!NOTE]> The `rate` object is closing down. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks.cs index 53abb3ea..084dde5d 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/ProtectionPutRequestBody_required_status_checks.cs @@ -23,7 +23,7 @@ public partial class ProtectionPutRequestBody_required_status_checks : IAddition #else public List Checks { get; set; } #endif - /// **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. + /// **Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody.cs index 587637c8..eb9519df 100644 --- a/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Branches/Item/Protection/Required_status_checks/Required_status_checksPatchRequestBody.cs @@ -22,7 +22,7 @@ public partial class Required_status_checksPatchRequestBody : IAdditionalDataHol #else public List Checks { get; set; } #endif - /// **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. + /// **Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/AnalysesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/AnalysesRequestBuilder.cs index 3bc5f0c8..5339c386 100644 --- a/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/AnalysesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/CodeScanning/Analyses/AnalysesRequestBuilder.cs @@ -47,7 +47,7 @@ public AnalysesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b { } /// - /// Lists the details of all code scanning analyses for a repository,starting with the most recent.The response is paginated and you can use the `page` and `per_page` parametersto list the analyses you're interested in.By default 30 analyses are listed per page.The `rules_count` field in the response give the number of rulesthat were run in the analysis.For very old analyses this data is not available,and `0` is returned in this field.> [!WARNING]> **Deprecation notice:** The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. + /// Lists the details of all code scanning analyses for a repository,starting with the most recent.The response is paginated and you can use the `page` and `per_page` parametersto list the analyses you're interested in.By default 30 analyses are listed per page.The `rules_count` field in the response give the number of rulesthat were run in the analysis.For very old analyses this data is not available,and `0` is returned in this field.> [!WARNING]> **Closing down notice:** The `tool_name` field is closing down and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// API method documentation /// /// A List<global::GitHub.Models.CodeScanningAnalysis> @@ -76,7 +76,7 @@ public AnalysesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return collectionResult?.AsList(); } /// - /// Lists the details of all code scanning analyses for a repository,starting with the most recent.The response is paginated and you can use the `page` and `per_page` parametersto list the analyses you're interested in.By default 30 analyses are listed per page.The `rules_count` field in the response give the number of rulesthat were run in the analysis.For very old analyses this data is not available,and `0` is returned in this field.> [!WARNING]> **Deprecation notice:** The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. + /// Lists the details of all code scanning analyses for a repository,starting with the most recent.The response is paginated and you can use the `page` and `per_page` parametersto list the analyses you're interested in.By default 30 analyses are listed per page.The `rules_count` field in the response give the number of rulesthat were run in the analysis.For very old analyses this data is not available,and `0` is returned in this field.> [!WARNING]> **Closing down notice:** The `tool_name` field is closing down and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -104,7 +104,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Lists the details of all code scanning analyses for a repository,starting with the most recent.The response is paginated and you can use the `page` and `per_page` parametersto list the analyses you're interested in.By default 30 analyses are listed per page.The `rules_count` field in the response give the number of rulesthat were run in the analysis.For very old analyses this data is not available,and `0` is returned in this field.> [!WARNING]> **Deprecation notice:** The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. + /// Lists the details of all code scanning analyses for a repository,starting with the most recent.The response is paginated and you can use the `page` and `per_page` parametersto list the analyses you're interested in.By default 30 analyses are listed per page.The `rules_count` field in the response give the number of rulesthat were run in the analysis.For very old analyses this data is not available,and `0` is returned in this field.> [!WARNING]> **Closing down notice:** The `tool_name` field is closing down and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field.OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class AnalysesRequestBuilderGetQueryParameters diff --git a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody.cs index ddde576f..2dcfc9ce 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody.cs @@ -38,7 +38,7 @@ public partial class CodespacesPostRequestBody : IAdditionalDataHolder, IParsabl #else public string DisplayName { get; set; } #endif - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. public global::GitHub.Repos.Item.Item.Codespaces.CodespacesPostRequestBody_geo? Geo { get; set; } /// Time in minutes before codespace stops from inactivity public int? IdleTimeoutMinutes { get; set; } diff --git a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody_geo.cs b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody_geo.cs index 5ed379fd..0685cdf7 100644 --- a/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody_geo.cs +++ b/src/GitHub/Repos/Item/Item/Codespaces/CodespacesPostRequestBody_geo.cs @@ -3,7 +3,7 @@ using System; namespace GitHub.Repos.Item.Item.Codespaces { - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public enum CodespacesPostRequestBody_geo { diff --git a/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsPostRequestBody.cs index 9eab04c5..9211809e 100644 --- a/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Commits/Item/Comments/CommentsPostRequestBody.cs @@ -22,7 +22,7 @@ public partial class CommentsPostRequestBody : IAdditionalDataHolder, IParsable #else public string Body { get; set; } #endif - /// **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. + /// **Closing down notice**. Use **position** parameter instead. Line number in the file to comment on. public int? Line { get; set; } /// Relative path of the file to comment on. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/AlertsRequestBuilder.cs index b57ee657..d0e9f431 100644 --- a/src/GitHub/Repos/Item/Item/Dependabot/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Dependabot/Alerts/AlertsRequestBuilder.cs @@ -170,7 +170,7 @@ public partial class AlertsRequestBuilderGetQueryParameters [QueryParameter("package")] public string Package { get; set; } #endif - /// **Deprecated**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead. + /// **Closing down notice**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead. [Obsolete("")] [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Repos/Item/Item/Import/Authors/AuthorsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Import/Authors/AuthorsRequestBuilder.cs index adcc1ef2..03eaf8bd 100644 --- a/src/GitHub/Repos/Item/Item/Import/Authors/AuthorsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Import/Authors/AuthorsRequestBuilder.cs @@ -48,7 +48,7 @@ public AuthorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba { } /// - /// Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Enterprise Cloud Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot <hubot@12341234-abab-fefe-8787-fedcba987654>`.This endpoint and the [Map a commit author](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Enterprise Cloud Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot <hubot@12341234-abab-fefe-8787-fedcba987654>`.This endpoint and the [Map a commit author](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// /// A List<global::GitHub.Models.PorterAuthor> @@ -76,7 +76,7 @@ public AuthorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return collectionResult?.AsList(); } /// - /// Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Enterprise Cloud Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot <hubot@12341234-abab-fefe-8787-fedcba987654>`.This endpoint and the [Map a commit author](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Enterprise Cloud Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot <hubot@12341234-abab-fefe-8787-fedcba987654>`.This endpoint and the [Map a commit author](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -106,7 +106,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Enterprise Cloud Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot <hubot@12341234-abab-fefe-8787-fedcba987654>`.This endpoint and the [Map a commit author](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Enterprise Cloud Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot <hubot@12341234-abab-fefe-8787-fedcba987654>`.This endpoint and the [Map a commit author](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class AuthorsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_ItemRequestBuilder.cs index 3f33220b..9e470f8b 100644 --- a/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Import/Authors/Item/WithAuthor_ItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WithAuthor_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt { } /// - /// Update an author's identity for the import. Your application can continue updating authors any time before you pushnew commits to the repository.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// Update an author's identity for the import. Your application can continue updating authors any time before you pushnew commits to the repository.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// /// A @@ -65,7 +65,7 @@ public WithAuthor_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.PorterAuthor.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update an author's identity for the import. Your application can continue updating authors any time before you pushnew commits to the repository.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// Update an author's identity for the import. Your application can continue updating authors any time before you pushnew commits to the repository.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// A /// The request body diff --git a/src/GitHub/Repos/Item/Item/Import/ImportRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Import/ImportRequestBuilder.cs index 9ab13d46..e8af1989 100644 --- a/src/GitHub/Repos/Item/Item/Import/ImportRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Import/ImportRequestBuilder.cs @@ -55,7 +55,7 @@ public ImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas { } /// - /// Stop an import for a repository.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// Stop an import for a repository.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -79,7 +79,7 @@ public async Task DeleteAsync(Action - /// View the progress of an import.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).**Import status**This section includes details about the possible values of the `status` field of the Import Progress response.An import that does not have errors will progress through these steps:* `detecting` - the "detection" step of the import is in progress because the request did not include a `vcs` parameter. The import is identifying the type of source control present at the URL.* `importing` - the "raw" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include `commit_count` (the total number of raw commits that will be imported) and `percent` (0 - 100, the current progress through the import).* `mapping` - the "rewrite" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information.* `pushing` - the "push" step of the import is in progress. This is where the importer updates the repository on GitHub Enterprise Cloud. The import progress response will include `push_percent`, which is the percent value reported by `git push` when it is "Writing objects".* `complete` - the import is complete, and the repository is ready on GitHub Enterprise Cloud.If there are problems, you will see one of these in the `status` field:* `auth_failed` - the import requires authentication in order to connect to the original repository. To update authentication for the import, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.* `error` - the import encountered an error. The import progress response will include the `failed_step` and an error message. Contact [GitHub Enterprise Cloud Support](https://support.github.com/contact?tags=dotcom-rest-api) for more information.* `detection_needs_auth` - the importer requires authentication for the originating repository to continue detection. To update authentication for the import, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.* `detection_found_nothing` - the importer didn't recognize any source control at the URL. To resolve, [Cancel the import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#cancel-an-import) and [retry](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#start-an-import) with the correct URL.* `detection_found_multiple` - the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a `project_choices` field with the possible project choices as values. To update project choice, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.**The project_choices field**When multiple projects are found at the provided URL, the response hash will include a `project_choices` field, the value of which is an array of hashes each representing a project choice. The exact key/value pairs of the project hashes will differ depending on the version control type.**Git LFS related fields**This section includes details about Git LFS related fields that may be present in the Import Progress response.* `use_lfs` - describes whether the import has been opted in or out of using Git LFS. The value can be `opt_in`, `opt_out`, or `undecided` if no action has been taken.* `has_large_files` - the boolean value describing whether files larger than 100MB were found during the `importing` step.* `large_files_size` - the total size in gigabytes of files larger than 100MB found in the originating repository.* `large_files_count` - the total number of files larger than 100MB found in the originating repository. To see a list of these files, make a "Get Large Files" request. + /// View the progress of an import.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).**Import status**This section includes details about the possible values of the `status` field of the Import Progress response.An import that does not have errors will progress through these steps:* `detecting` - the "detection" step of the import is in progress because the request did not include a `vcs` parameter. The import is identifying the type of source control present at the URL.* `importing` - the "raw" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include `commit_count` (the total number of raw commits that will be imported) and `percent` (0 - 100, the current progress through the import).* `mapping` - the "rewrite" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information.* `pushing` - the "push" step of the import is in progress. This is where the importer updates the repository on GitHub Enterprise Cloud. The import progress response will include `push_percent`, which is the percent value reported by `git push` when it is "Writing objects".* `complete` - the import is complete, and the repository is ready on GitHub Enterprise Cloud.If there are problems, you will see one of these in the `status` field:* `auth_failed` - the import requires authentication in order to connect to the original repository. To update authentication for the import, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.* `error` - the import encountered an error. The import progress response will include the `failed_step` and an error message. Contact [GitHub Enterprise Cloud Support](https://support.github.com/contact?tags=dotcom-rest-api) for more information.* `detection_needs_auth` - the importer requires authentication for the originating repository to continue detection. To update authentication for the import, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.* `detection_found_nothing` - the importer didn't recognize any source control at the URL. To resolve, [Cancel the import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#cancel-an-import) and [retry](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#start-an-import) with the correct URL.* `detection_found_multiple` - the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a `project_choices` field with the possible project choices as values. To update project choice, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.**The project_choices field**When multiple projects are found at the provided URL, the response hash will include a `project_choices` field, the value of which is an array of hashes each representing a project choice. The exact key/value pairs of the project hashes will differ depending on the version control type.**Git LFS related fields**This section includes details about Git LFS related fields that may be present in the Import Progress response.* `use_lfs` - describes whether the import has been opted in or out of using Git LFS. The value can be `opt_in`, `opt_out`, or `undecided` if no action has been taken.* `has_large_files` - the boolean value describing whether files larger than 100MB were found during the `importing` step.* `large_files_size` - the total size in gigabytes of files larger than 100MB found in the originating repository.* `large_files_count` - the total number of files larger than 100MB found in the originating repository. To see a list of these files, make a "Get Large Files" request. /// API method documentation /// /// A @@ -106,7 +106,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// An import can be updated with credentials or a project choice by passing in the appropriate parameters in this APIrequest. If no parameters are provided, the import will be restarted.Some servers (e.g. TFS servers) can have several projects at a single URL. In those cases the import progress willhave the status `detection_found_multiple` and the Import Progress response will include a `project_choices` array.You can select the project to import by providing one of the objects in the `project_choices` array in the update request.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// An import can be updated with credentials or a project choice by passing in the appropriate parameters in this APIrequest. If no parameters are provided, the import will be restarted.Some servers (e.g. TFS servers) can have several projects at a single URL. In those cases the import progress willhave the status `detection_found_multiple` and the Import Progress response will include a `project_choices` array.You can select the project to import by providing one of the objects in the `project_choices` array in the update request.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// /// A @@ -133,7 +133,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Start a source import to a GitHub Enterprise Cloud repository using GitHub Enterprise Cloud Importer.Importing into a GitHub Enterprise Cloud repository with GitHub Actions enabled is not supported and willreturn a status `422 Unprocessable Entity` response.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// Start a source import to a GitHub Enterprise Cloud repository using GitHub Enterprise Cloud Importer.Importing into a GitHub Enterprise Cloud repository with GitHub Actions enabled is not supported and willreturn a status `422 Unprocessable Entity` response.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// /// A @@ -164,7 +164,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Stop an import for a repository.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// Stop an import for a repository.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -184,7 +184,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// View the progress of an import.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).**Import status**This section includes details about the possible values of the `status` field of the Import Progress response.An import that does not have errors will progress through these steps:* `detecting` - the "detection" step of the import is in progress because the request did not include a `vcs` parameter. The import is identifying the type of source control present at the URL.* `importing` - the "raw" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include `commit_count` (the total number of raw commits that will be imported) and `percent` (0 - 100, the current progress through the import).* `mapping` - the "rewrite" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information.* `pushing` - the "push" step of the import is in progress. This is where the importer updates the repository on GitHub Enterprise Cloud. The import progress response will include `push_percent`, which is the percent value reported by `git push` when it is "Writing objects".* `complete` - the import is complete, and the repository is ready on GitHub Enterprise Cloud.If there are problems, you will see one of these in the `status` field:* `auth_failed` - the import requires authentication in order to connect to the original repository. To update authentication for the import, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.* `error` - the import encountered an error. The import progress response will include the `failed_step` and an error message. Contact [GitHub Enterprise Cloud Support](https://support.github.com/contact?tags=dotcom-rest-api) for more information.* `detection_needs_auth` - the importer requires authentication for the originating repository to continue detection. To update authentication for the import, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.* `detection_found_nothing` - the importer didn't recognize any source control at the URL. To resolve, [Cancel the import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#cancel-an-import) and [retry](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#start-an-import) with the correct URL.* `detection_found_multiple` - the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a `project_choices` field with the possible project choices as values. To update project choice, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.**The project_choices field**When multiple projects are found at the provided URL, the response hash will include a `project_choices` field, the value of which is an array of hashes each representing a project choice. The exact key/value pairs of the project hashes will differ depending on the version control type.**Git LFS related fields**This section includes details about Git LFS related fields that may be present in the Import Progress response.* `use_lfs` - describes whether the import has been opted in or out of using Git LFS. The value can be `opt_in`, `opt_out`, or `undecided` if no action has been taken.* `has_large_files` - the boolean value describing whether files larger than 100MB were found during the `importing` step.* `large_files_size` - the total size in gigabytes of files larger than 100MB found in the originating repository.* `large_files_count` - the total number of files larger than 100MB found in the originating repository. To see a list of these files, make a "Get Large Files" request. + /// View the progress of an import.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation).**Import status**This section includes details about the possible values of the `status` field of the Import Progress response.An import that does not have errors will progress through these steps:* `detecting` - the "detection" step of the import is in progress because the request did not include a `vcs` parameter. The import is identifying the type of source control present at the URL.* `importing` - the "raw" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include `commit_count` (the total number of raw commits that will be imported) and `percent` (0 - 100, the current progress through the import).* `mapping` - the "rewrite" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information.* `pushing` - the "push" step of the import is in progress. This is where the importer updates the repository on GitHub Enterprise Cloud. The import progress response will include `push_percent`, which is the percent value reported by `git push` when it is "Writing objects".* `complete` - the import is complete, and the repository is ready on GitHub Enterprise Cloud.If there are problems, you will see one of these in the `status` field:* `auth_failed` - the import requires authentication in order to connect to the original repository. To update authentication for the import, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.* `error` - the import encountered an error. The import progress response will include the `failed_step` and an error message. Contact [GitHub Enterprise Cloud Support](https://support.github.com/contact?tags=dotcom-rest-api) for more information.* `detection_needs_auth` - the importer requires authentication for the originating repository to continue detection. To update authentication for the import, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.* `detection_found_nothing` - the importer didn't recognize any source control at the URL. To resolve, [Cancel the import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#cancel-an-import) and [retry](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#start-an-import) with the correct URL.* `detection_found_multiple` - the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a `project_choices` field with the possible project choices as values. To update project choice, please see the [Update an import](https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import) section.**The project_choices field**When multiple projects are found at the provided URL, the response hash will include a `project_choices` field, the value of which is an array of hashes each representing a project choice. The exact key/value pairs of the project hashes will differ depending on the version control type.**Git LFS related fields**This section includes details about Git LFS related fields that may be present in the Import Progress response.* `use_lfs` - describes whether the import has been opted in or out of using Git LFS. The value can be `opt_in`, `opt_out`, or `undecided` if no action has been taken.* `has_large_files` - the boolean value describing whether files larger than 100MB were found during the `importing` step.* `large_files_size` - the total size in gigabytes of files larger than 100MB found in the originating repository.* `large_files_count` - the total number of files larger than 100MB found in the originating repository. To see a list of these files, make a "Get Large Files" request. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -204,7 +204,7 @@ public RequestInformation ToGetRequestInformation(Action - /// An import can be updated with credentials or a project choice by passing in the appropriate parameters in this APIrequest. If no parameters are provided, the import will be restarted.Some servers (e.g. TFS servers) can have several projects at a single URL. In those cases the import progress willhave the status `detection_found_multiple` and the Import Progress response will include a `project_choices` array.You can select the project to import by providing one of the objects in the `project_choices` array in the update request.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// An import can be updated with credentials or a project choice by passing in the appropriate parameters in this APIrequest. If no parameters are provided, the import will be restarted.Some servers (e.g. TFS servers) can have several projects at a single URL. In those cases the import progress willhave the status `detection_found_multiple` and the Import Progress response will include a `project_choices` array.You can select the project to import by providing one of the objects in the `project_choices` array in the update request.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// A /// The request body @@ -227,7 +227,7 @@ public RequestInformation ToPatchRequestInformation(global::GitHub.Repos.Item.It return requestInfo; } /// - /// Start a source import to a GitHub Enterprise Cloud repository using GitHub Enterprise Cloud Importer.Importing into a GitHub Enterprise Cloud repository with GitHub Actions enabled is not supported and willreturn a status `422 Unprocessable Entity` response.> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// Start a source import to a GitHub Enterprise Cloud repository using GitHub Enterprise Cloud Importer.Importing into a GitHub Enterprise Cloud repository with GitHub Actions enabled is not supported and willreturn a status `422 Unprocessable Entity` response.> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// A /// The request body diff --git a/src/GitHub/Repos/Item/Item/Import/Large_files/Large_filesRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Import/Large_files/Large_filesRequestBuilder.cs index d4620d2c..99b6c8e6 100644 --- a/src/GitHub/Repos/Item/Item/Import/Large_files/Large_filesRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Import/Large_files/Large_filesRequestBuilder.cs @@ -34,7 +34,7 @@ public Large_filesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// List files larger than 100MB found during the import> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// List files larger than 100MB found during the import> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// /// A List<global::GitHub.Models.PorterLargeFile> @@ -60,7 +60,7 @@ public Large_filesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return collectionResult?.AsList(); } /// - /// List files larger than 100MB found during the import> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// List files larger than 100MB found during the import> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Repos/Item/Item/Import/Lfs/LfsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Import/Lfs/LfsRequestBuilder.cs index f5d43f2d..a553275f 100644 --- a/src/GitHub/Repos/Item/Item/Import/Lfs/LfsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Import/Lfs/LfsRequestBuilder.cs @@ -34,7 +34,7 @@ public LfsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r { } /// - /// You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This abilityis powered by [Git LFS](https://git-lfs.com).You can learn more about our LFS feature and working with large files [on our helpsite](https://docs.github.com/enterprise-cloud@latest//repositories/working-with-files/managing-large-files).> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This abilityis powered by [Git LFS](https://git-lfs.com).You can learn more about our LFS feature and working with large files [on our helpsite](https://docs.github.com/enterprise-cloud@latest//repositories/working-with-files/managing-large-files).> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// API method documentation /// /// A @@ -63,7 +63,7 @@ public LfsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(r return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Import.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This abilityis powered by [Git LFS](https://git-lfs.com).You can learn more about our LFS feature and working with large files [on our helpsite](https://docs.github.com/enterprise-cloud@latest//repositories/working-with-files/managing-large-files).> [!WARNING]> **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This abilityis powered by [Git LFS](https://git-lfs.com).You can learn more about our LFS feature and working with large files [on our helpsite](https://docs.github.com/enterprise-cloud@latest//repositories/working-with-files/managing-large-files).> [!WARNING]> **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// A /// The request body diff --git a/src/GitHub/Repos/Item/Item/Issues/IssuesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Issues/IssuesPostRequestBody.cs index 955fa866..11cbc4b6 100644 --- a/src/GitHub/Repos/Item/Item/Issues/IssuesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Issues/IssuesPostRequestBody.cs @@ -14,7 +14,7 @@ public partial class IssuesPostRequestBody : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_ + /// Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_ #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Assignee { get; set; } diff --git a/src/GitHub/Repos/Item/Item/Issues/Item/WithIssue_numberPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/Issues/Item/WithIssue_numberPatchRequestBody.cs index 541ceb17..d362fa0d 100644 --- a/src/GitHub/Repos/Item/Item/Issues/Item/WithIssue_numberPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Issues/Item/WithIssue_numberPatchRequestBody.cs @@ -14,7 +14,7 @@ public partial class WithIssue_numberPatchRequestBody : IAdditionalDataHolder, I { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// Username to assign to this issue. **This field is deprecated.** + /// Username to assign to this issue. **This field is closing down.** #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Assignee { get; set; } diff --git a/src/GitHub/Repos/Item/Item/Pulls/Item/Codespaces/CodespacesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Pulls/Item/Codespaces/CodespacesPostRequestBody.cs index 2623f3f4..1cbb5acc 100644 --- a/src/GitHub/Repos/Item/Item/Pulls/Item/Codespaces/CodespacesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Pulls/Item/Codespaces/CodespacesPostRequestBody.cs @@ -38,7 +38,7 @@ public partial class CodespacesPostRequestBody : IAdditionalDataHolder, IParsabl #else public string DisplayName { get; set; } #endif - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. public global::GitHub.Repos.Item.Item.Pulls.Item.Codespaces.CodespacesPostRequestBody_geo? Geo { get; set; } /// Time in minutes before codespace stops from inactivity public int? IdleTimeoutMinutes { get; set; } diff --git a/src/GitHub/Repos/Item/Item/Pulls/Item/Codespaces/CodespacesPostRequestBody_geo.cs b/src/GitHub/Repos/Item/Item/Pulls/Item/Codespaces/CodespacesPostRequestBody_geo.cs index 92064be2..765656c5 100644 --- a/src/GitHub/Repos/Item/Item/Pulls/Item/Codespaces/CodespacesPostRequestBody_geo.cs +++ b/src/GitHub/Repos/Item/Item/Pulls/Item/Codespaces/CodespacesPostRequestBody_geo.cs @@ -3,7 +3,7 @@ using System; namespace GitHub.Repos.Item.Item.Pulls.Item.Codespaces { - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public enum CodespacesPostRequestBody_geo { diff --git a/src/GitHub/Repos/Item/Item/Pulls/Item/Comments/CommentsPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Pulls/Item/Comments/CommentsPostRequestBody.cs index 98ca9acf..dc220256 100644 --- a/src/GitHub/Repos/Item/Item/Pulls/Item/Comments/CommentsPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Pulls/Item/Comments/CommentsPostRequestBody.cs @@ -42,7 +42,7 @@ public partial class CommentsPostRequestBody : IAdditionalDataHolder, IParsable #else public string Path { get; set; } #endif - /// **This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. + /// **This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. [Obsolete("")] public int? Position { get; set; } /// In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/enterprise-cloud@latest//articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. diff --git a/src/GitHub/Repos/Item/Item/Pulls/Item/Comments/CommentsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Pulls/Item/Comments/CommentsRequestBuilder.cs index d9e78de2..ed70bf5a 100644 --- a/src/GitHub/Repos/Item/Item/Pulls/Item/Comments/CommentsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Pulls/Item/Comments/CommentsRequestBuilder.cs @@ -67,7 +67,7 @@ public CommentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return collectionResult?.AsList(); } /// - /// Creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#create-an-issue-comment)."If your comment applies to more than one line in the pull request diff, you should use the parameters `line`, `side`, and optionally `start_line` and `start_side` in your request.The `position` parameter is deprecated. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + /// Creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#create-an-issue-comment)."If your comment applies to more than one line in the pull request diff, you should use the parameters `line`, `side`, and optionally `start_line` and `start_side` in your request.The `position` parameter is closing down. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// API method documentation /// /// A @@ -114,7 +114,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#create-an-issue-comment)."If your comment applies to more than one line in the pull request diff, you should use the parameters `line`, `side`, and optionally `start_line` and `start_side` in your request.The `position` parameter is deprecated. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + /// Creates a review comment on the diff of a specified pull request. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#create-an-issue-comment)."If your comment applies to more than one line in the pull request diff, you should use the parameters `line`, `side`, and optionally `start_line` and `start_side` in your request.The `position` parameter is closing down. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)"and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."- **`application/vnd.github-commitcomment.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type.- **`application/vnd.github-commitcomment.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`.- **`application/vnd.github-commitcomment.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`.- **`application/vnd.github-commitcomment.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. /// /// A /// The request body diff --git a/src/GitHub/Repos/Item/Item/RepoPatchRequestBody.cs b/src/GitHub/Repos/Item/Item/RepoPatchRequestBody.cs index 7049ff2e..67f69a2c 100644 --- a/src/GitHub/Repos/Item/Item/RepoPatchRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/RepoPatchRequestBody.cs @@ -88,7 +88,7 @@ public partial class RepoPatchRequestBody : IAdditionalDataHolder, IParsable public global::GitHub.Repos.Item.Item.RepoPatchRequestBody_squash_merge_commit_message? SquashMergeCommitMessage { get; set; } /// Required when using `squash_merge_commit_message`.The default value for a squash merge commit title:- `PR_TITLE` - default to the pull request's title.- `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). public global::GitHub.Repos.Item.Item.RepoPatchRequestBody_squash_merge_commit_title? SquashMergeCommitTitle { get; set; } - /// Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. [Obsolete("")] public bool? UseSquashPrTitleAsDefault { get; set; } /// The visibility of the repository. diff --git a/src/GitHub/Repos/Item/Item/Tags/Protection/Item/WithTag_protection_ItemRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Tags/Protection/Item/WithTag_protection_ItemRequestBuilder.cs index ae5d9df8..705e12d3 100644 --- a/src/GitHub/Repos/Item/Item/Tags/Protection/Item/WithTag_protection_ItemRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Tags/Protection/Item/WithTag_protection_ItemRequestBuilder.cs @@ -34,8 +34,8 @@ public WithTag_protection_ItemRequestBuilder(string rawUrl, IRequestAdapter requ { } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#delete-a-repository-ruleset)" endpoint instead.This deletes a tag protection state for a repository.This endpoint is only available to repository administrators. - /// API method documentation + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#delete-a-repository-ruleset)" endpoint instead.This deletes a tag protection state for a repository.This endpoint is only available to repository administrators. + /// API method documentation /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -60,7 +60,7 @@ public async Task DeleteAsync(Action - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#delete-a-repository-ruleset)" endpoint instead.This deletes a tag protection state for a repository.This endpoint is only available to repository administrators. + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#delete-a-repository-ruleset)" endpoint instead.This deletes a tag protection state for a repository.This endpoint is only available to repository administrators. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Repos/Item/Item/Tags/Protection/ProtectionRequestBuilder.cs b/src/GitHub/Repos/Item/Item/Tags/Protection/ProtectionRequestBuilder.cs index 4682ad95..ce378b5f 100644 --- a/src/GitHub/Repos/Item/Item/Tags/Protection/ProtectionRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/Tags/Protection/ProtectionRequestBuilder.cs @@ -48,8 +48,8 @@ public ProtectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#get-all-repository-rulesets)" endpoint instead.This returns the tag protection states of a repository.This information is only available to repository administrators. - /// API method documentation + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#get-all-repository-rulesets)" endpoint instead.This returns the tag protection states of a repository.This information is only available to repository administrators. + /// API method documentation /// /// A List<global::GitHub.Models.TagProtection> /// Cancellation token to use when cancelling requests @@ -76,8 +76,8 @@ public ProtectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return collectionResult?.AsList(); } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#create-a-repository-ruleset)" endpoint instead.This creates a tag protection state for a repository.This endpoint is only available to repository administrators. - /// API method documentation + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#create-a-repository-ruleset)" endpoint instead.This creates a tag protection state for a repository.This endpoint is only available to repository administrators. + /// API method documentation /// /// A /// The request body @@ -105,7 +105,7 @@ public ProtectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TagProtection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#get-all-repository-rulesets)" endpoint instead.This returns the tag protection states of a repository.This information is only available to repository administrators. + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#get-all-repository-rulesets)" endpoint instead.This returns the tag protection states of a repository.This information is only available to repository administrators. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -125,7 +125,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#create-a-repository-ruleset)" endpoint instead.This creates a tag protection state for a repository.This endpoint is only available to repository administrators. + /// > [!WARNING]> **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#create-a-repository-ruleset)" endpoint instead.This creates a tag protection state for a repository.This endpoint is only available to repository administrators. /// /// A /// The request body diff --git a/src/GitHub/Scim/V2/Enterprises/Item/Groups/GroupsRequestBuilder.cs b/src/GitHub/Scim/V2/Enterprises/Item/Groups/GroupsRequestBuilder.cs index af3b98f1..0c908523 100644 --- a/src/GitHub/Scim/V2/Enterprises/Item/Groups/GroupsRequestBuilder.cs +++ b/src/GitHub/Scim/V2/Enterprises/Item/Groups/GroupsRequestBuilder.cs @@ -47,7 +47,7 @@ public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas { } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Lists provisioned SCIM groups in an enterprise.You can improve query search time by using the `excludedAttributes` query parameter with a value of `members` to exclude members from the response. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Lists provisioned SCIM groups in an enterprise.You can improve query search time by using the `excludedAttributes` query parameter with a value of `members` to exclude members from the response. /// API method documentation /// /// A @@ -75,7 +75,7 @@ public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ScimEnterpriseGroupList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Creates a SCIM group for an enterprise.When members are part of the group provisioning payload, they're designated as external group members. Providers are responsible for maintaining a mapping between the `externalId` and `id` for each user. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Creates a SCIM group for an enterprise.When members are part of the group provisioning payload, they're designated as external group members. Providers are responsible for maintaining a mapping between the `externalId` and `id` for each user. /// API method documentation /// /// A @@ -105,7 +105,7 @@ public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ScimEnterpriseGroupResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Lists provisioned SCIM groups in an enterprise.You can improve query search time by using the `excludedAttributes` query parameter with a value of `members` to exclude members from the response. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Lists provisioned SCIM groups in an enterprise.You can improve query search time by using the `excludedAttributes` query parameter with a value of `members` to exclude members from the response. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -124,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Creates a SCIM group for an enterprise.When members are part of the group provisioning payload, they're designated as external group members. Providers are responsible for maintaining a mapping between the `externalId` and `id` for each user. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Creates a SCIM group for an enterprise.When members are part of the group provisioning payload, they're designated as external group members. Providers are responsible for maintaining a mapping between the `externalId` and `id` for each user. /// /// A /// The request body @@ -155,7 +155,7 @@ public RequestInformation ToPostRequestInformation(global::GitHub.Models.Group b return new global::GitHub.Scim.V2.Enterprises.Item.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Lists provisioned SCIM groups in an enterprise.You can improve query search time by using the `excludedAttributes` query parameter with a value of `members` to exclude members from the response. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Lists provisioned SCIM groups in an enterprise.You can improve query search time by using the `excludedAttributes` query parameter with a value of `members` to exclude members from the response. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class GroupsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Scim/V2/Enterprises/Item/Groups/Item/WithScim_group_ItemRequestBuilder.cs b/src/GitHub/Scim/V2/Enterprises/Item/Groups/Item/WithScim_group_ItemRequestBuilder.cs index 17a559dc..ce119c3e 100644 --- a/src/GitHub/Scim/V2/Enterprises/Item/Groups/Item/WithScim_group_ItemRequestBuilder.cs +++ b/src/GitHub/Scim/V2/Enterprises/Item/Groups/Item/WithScim_group_ItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WithScim_group_ItemRequestBuilder(string rawUrl, IRequestAdapter requestA { } /// - /// > [!NOTE]> SCIM provisioning using the REST API is in public beta and subject to change.Deletes a SCIM group from an enterprise. + /// > [!NOTE]> SCIM provisioning using the REST API is in public preview and subject to change.Deletes a SCIM group from an enterprise. /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Gets information about a SCIM group. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Gets information about a SCIM group. /// API method documentation /// /// A @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.ScimEnterpriseGroupResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Update a provisioned group’s individual attributes.To modify a group's values, you'll need to use a specific Operations JSON format which must include at least one of the following operations: add, remove, or replace. For examples and more information on this SCIM format, consult the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2). The update function can also be used to add group memberships.You can submit group memberships individually or in batches for improved efficiency.> [!NOTE]> Memberships are referenced via a local user id. Ensure users are created before referencing them here. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Update a provisioned group’s individual attributes.To modify a group's values, you'll need to use a specific Operations JSON format which must include at least one of the following operations: add, remove, or replace. For examples and more information on this SCIM format, consult the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2). The update function can also be used to add group memberships.You can submit group memberships individually or in batches for improved efficiency.> [!NOTE]> Memberships are referenced via a local user id. Ensure users are created before referencing them here. /// API method documentation /// /// A @@ -125,7 +125,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.ScimEnterpriseGroupResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Replaces an existing provisioned group’s information.You must provide all the information required for the group as if you were provisioning it for the first time. Any existing group information that you don't provide will be removed, including group membership. If you want to only update a specific attribute, use the [Update an attribute for a SCIM enterprise group](#update-an-attribute-for-a-scim-enterprise-group) endpoint instead. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Replaces an existing provisioned group’s information.You must provide all the information required for the group as if you were provisioning it for the first time. Any existing group information that you don't provide will be removed, including group membership. If you want to only update a specific attribute, use the [Update an attribute for a SCIM enterprise group](#update-an-attribute-for-a-scim-enterprise-group) endpoint instead. /// API method documentation /// /// A @@ -157,7 +157,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.ScimEnterpriseGroupResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> SCIM provisioning using the REST API is in public beta and subject to change.Deletes a SCIM group from an enterprise. + /// > [!NOTE]> SCIM provisioning using the REST API is in public preview and subject to change.Deletes a SCIM group from an enterprise. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -176,7 +176,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Gets information about a SCIM group. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Gets information about a SCIM group. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -195,7 +195,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Update a provisioned group’s individual attributes.To modify a group's values, you'll need to use a specific Operations JSON format which must include at least one of the following operations: add, remove, or replace. For examples and more information on this SCIM format, consult the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2). The update function can also be used to add group memberships.You can submit group memberships individually or in batches for improved efficiency.> [!NOTE]> Memberships are referenced via a local user id. Ensure users are created before referencing them here. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Update a provisioned group’s individual attributes.To modify a group's values, you'll need to use a specific Operations JSON format which must include at least one of the following operations: add, remove, or replace. For examples and more information on this SCIM format, consult the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2). The update function can also be used to add group memberships.You can submit group memberships individually or in batches for improved efficiency.> [!NOTE]> Memberships are referenced via a local user id. Ensure users are created before referencing them here. /// /// A /// The request body @@ -217,7 +217,7 @@ public RequestInformation ToPatchRequestInformation(global::GitHub.Models.PatchS return requestInfo; } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Replaces an existing provisioned group’s information.You must provide all the information required for the group as if you were provisioning it for the first time. Any existing group information that you don't provide will be removed, including group membership. If you want to only update a specific attribute, use the [Update an attribute for a SCIM enterprise group](#update-an-attribute-for-a-scim-enterprise-group) endpoint instead. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Replaces an existing provisioned group’s information.You must provide all the information required for the group as if you were provisioning it for the first time. Any existing group information that you don't provide will be removed, including group membership. If you want to only update a specific attribute, use the [Update an attribute for a SCIM enterprise group](#update-an-attribute-for-a-scim-enterprise-group) endpoint instead. /// /// A /// The request body @@ -248,7 +248,7 @@ public RequestInformation ToPutRequestInformation(global::GitHub.Models.Group bo return new global::GitHub.Scim.V2.Enterprises.Item.Groups.Item.WithScim_group_ItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Gets information about a SCIM group. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Gets information about a SCIM group. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class WithScim_group_ItemRequestBuilderGetQueryParameters diff --git a/src/GitHub/Scim/V2/Enterprises/Item/Users/Item/WithScim_user_ItemRequestBuilder.cs b/src/GitHub/Scim/V2/Enterprises/Item/Users/Item/WithScim_user_ItemRequestBuilder.cs index 177d0514..e7cec7ca 100644 --- a/src/GitHub/Scim/V2/Enterprises/Item/Users/Item/WithScim_user_ItemRequestBuilder.cs +++ b/src/GitHub/Scim/V2/Enterprises/Item/Users/Item/WithScim_user_ItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WithScim_user_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAd { } /// - /// > [!NOTE]> SCIM provisioning using the REST API is in public beta and subject to change.Suspends a SCIM user permanently from an enterprise. This action will: remove all the user's data, anonymize their login, email, and display name, erase all external identity SCIM attributes, delete the user's emails, avatar, PATs, SSH keys, OAuth authorizations, GPG keys, and SAML mappings. This action is irreversible. + /// > [!NOTE]> SCIM provisioning using the REST API is in public preview and subject to change.Suspends a SCIM user permanently from an enterprise. This action will: remove all the user's data, anonymize their login, email, and display name, erase all external identity SCIM attributes, delete the user's emails, avatar, PATs, SSH keys, OAuth authorizations, GPG keys, and SAML mappings. This action is irreversible. /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Gets information about a SCIM user. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Gets information about a SCIM user. /// API method documentation /// /// A @@ -93,7 +93,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.ScimEnterpriseUserResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Update a provisioned user's individual attributes.To modify a user's attributes, you'll need to provide a `Operations` JSON formatted request that includes at least one of the following actions: add, remove, or replace. For specific examples and more information on the SCIM operations format, please refer to the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2).> [!NOTE]> Complex SCIM `path` selectors that include filters are not supported. For example, a `path` selector defined as `"path": "emails[type eq \"work\"]"` will be ineffective.> [!WARNING]> Setting `active: false` will suspend a user, and their handle and email will be obfuscated.> ```> {> "Operations":[{> "op":"replace",> "value":{> "active":false> }> }]> }> ``` + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Update a provisioned user's individual attributes.To modify a user's attributes, you'll need to provide a `Operations` JSON formatted request that includes at least one of the following actions: add, remove, or replace. For specific examples and more information on the SCIM operations format, please refer to the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2).> [!NOTE]> Complex SCIM `path` selectors that include filters are not supported. For example, a `path` selector defined as `"path": "emails[type eq \"work\"]"` will be ineffective.> [!WARNING]> Setting `active: false` will suspend a user, and their handle and email will be obfuscated.> ```> {> "Operations":[{> "op":"replace",> "value":{> "active":false> }> }]> }> ``` /// API method documentation /// /// A @@ -125,7 +125,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.ScimEnterpriseUserResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Replaces an existing provisioned user's information.You must supply complete user information, just as you would when provisioning them initially. Any previously existing data not provided will be deleted. To update only a specific attribute, refer to the [Update an attribute for a SCIM user](#update-an-attribute-for-a-scim-enterprise-user) endpoint.> [!WARNING]> Setting `active: false` will suspend a user, and their handle and email will be obfuscated. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Replaces an existing provisioned user's information.You must supply complete user information, just as you would when provisioning them initially. Any previously existing data not provided will be deleted. To update only a specific attribute, refer to the [Update an attribute for a SCIM user](#update-an-attribute-for-a-scim-enterprise-user) endpoint.> [!WARNING]> Setting `active: false` will suspend a user, and their handle and email will be obfuscated. /// API method documentation /// /// A @@ -157,7 +157,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.ScimEnterpriseUserResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> SCIM provisioning using the REST API is in public beta and subject to change.Suspends a SCIM user permanently from an enterprise. This action will: remove all the user's data, anonymize their login, email, and display name, erase all external identity SCIM attributes, delete the user's emails, avatar, PATs, SSH keys, OAuth authorizations, GPG keys, and SAML mappings. This action is irreversible. + /// > [!NOTE]> SCIM provisioning using the REST API is in public preview and subject to change.Suspends a SCIM user permanently from an enterprise. This action will: remove all the user's data, anonymize their login, email, and display name, erase all external identity SCIM attributes, delete the user's emails, avatar, PATs, SSH keys, OAuth authorizations, GPG keys, and SAML mappings. This action is irreversible. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -176,7 +176,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Gets information about a SCIM user. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Gets information about a SCIM user. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -195,7 +195,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Update a provisioned user's individual attributes.To modify a user's attributes, you'll need to provide a `Operations` JSON formatted request that includes at least one of the following actions: add, remove, or replace. For specific examples and more information on the SCIM operations format, please refer to the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2).> [!NOTE]> Complex SCIM `path` selectors that include filters are not supported. For example, a `path` selector defined as `"path": "emails[type eq \"work\"]"` will be ineffective.> [!WARNING]> Setting `active: false` will suspend a user, and their handle and email will be obfuscated.> ```> {> "Operations":[{> "op":"replace",> "value":{> "active":false> }> }]> }> ``` + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Update a provisioned user's individual attributes.To modify a user's attributes, you'll need to provide a `Operations` JSON formatted request that includes at least one of the following actions: add, remove, or replace. For specific examples and more information on the SCIM operations format, please refer to the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2).> [!NOTE]> Complex SCIM `path` selectors that include filters are not supported. For example, a `path` selector defined as `"path": "emails[type eq \"work\"]"` will be ineffective.> [!WARNING]> Setting `active: false` will suspend a user, and their handle and email will be obfuscated.> ```> {> "Operations":[{> "op":"replace",> "value":{> "active":false> }> }]> }> ``` /// /// A /// The request body @@ -217,7 +217,7 @@ public RequestInformation ToPatchRequestInformation(global::GitHub.Models.PatchS return requestInfo; } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Replaces an existing provisioned user's information.You must supply complete user information, just as you would when provisioning them initially. Any previously existing data not provided will be deleted. To update only a specific attribute, refer to the [Update an attribute for a SCIM user](#update-an-attribute-for-a-scim-enterprise-user) endpoint.> [!WARNING]> Setting `active: false` will suspend a user, and their handle and email will be obfuscated. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Replaces an existing provisioned user's information.You must supply complete user information, just as you would when provisioning them initially. Any previously existing data not provided will be deleted. To update only a specific attribute, refer to the [Update an attribute for a SCIM user](#update-an-attribute-for-a-scim-enterprise-user) endpoint.> [!WARNING]> Setting `active: false` will suspend a user, and their handle and email will be obfuscated. /// /// A /// The request body diff --git a/src/GitHub/Scim/V2/Enterprises/Item/Users/UsersRequestBuilder.cs b/src/GitHub/Scim/V2/Enterprises/Item/Users/UsersRequestBuilder.cs index e0b34dd7..f2041c68 100644 --- a/src/GitHub/Scim/V2/Enterprises/Item/Users/UsersRequestBuilder.cs +++ b/src/GitHub/Scim/V2/Enterprises/Item/Users/UsersRequestBuilder.cs @@ -47,7 +47,7 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Lists provisioned SCIM enterprise members.When you remove a user with a SCIM-provisioned external identity from an enterprise using a `patch` with `active` flag to `false`, the user's metadata remains intact. This means they can potentially re-join the enterprise later. Although, while suspended, the user can't sign in. If you want to ensure the user can't re-join in the future, use the delete request. Only users who weren't permanently deleted will appear in the result list. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Lists provisioned SCIM enterprise members.When you remove a user with a SCIM-provisioned external identity from an enterprise using a `patch` with `active` flag to `false`, the user's metadata remains intact. This means they can potentially re-join the enterprise later. Although, while suspended, the user can't sign in. If you want to ensure the user can't re-join in the future, use the delete request. Only users who weren't permanently deleted will appear in the result list. /// API method documentation /// /// A @@ -75,7 +75,7 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ScimEnterpriseUserList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Creates an external identity for a new SCIM enterprise user.SCIM is responsible for user provisioning, not authentication. The actual user authentication is handled by SAML. However, with SCIM enabled, users must first be provisioned via SCIM before they can sign in through SAML. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Creates an external identity for a new SCIM enterprise user.SCIM is responsible for user provisioning, not authentication. The actual user authentication is handled by SAML. However, with SCIM enabled, users must first be provisioned via SCIM before they can sign in through SAML. /// API method documentation /// /// A @@ -105,7 +105,7 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.ScimEnterpriseUserResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Lists provisioned SCIM enterprise members.When you remove a user with a SCIM-provisioned external identity from an enterprise using a `patch` with `active` flag to `false`, the user's metadata remains intact. This means they can potentially re-join the enterprise later. Although, while suspended, the user can't sign in. If you want to ensure the user can't re-join in the future, use the delete request. Only users who weren't permanently deleted will appear in the result list. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Lists provisioned SCIM enterprise members.When you remove a user with a SCIM-provisioned external identity from an enterprise using a `patch` with `active` flag to `false`, the user's metadata remains intact. This means they can potentially re-join the enterprise later. Although, while suspended, the user can't sign in. If you want to ensure the user can't re-join in the future, use the delete request. Only users who weren't permanently deleted will appear in the result list. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -124,7 +124,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Creates an external identity for a new SCIM enterprise user.SCIM is responsible for user provisioning, not authentication. The actual user authentication is handled by SAML. However, with SCIM enabled, users must first be provisioned via SCIM before they can sign in through SAML. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Creates an external identity for a new SCIM enterprise user.SCIM is responsible for user provisioning, not authentication. The actual user authentication is handled by SAML. However, with SCIM enabled, users must first be provisioned via SCIM before they can sign in through SAML. /// /// A /// The request body @@ -155,7 +155,7 @@ public RequestInformation ToPostRequestInformation(global::GitHub.Models.User bo return new global::GitHub.Scim.V2.Enterprises.Item.Users.UsersRequestBuilder(rawUrl, RequestAdapter); } /// - /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public beta and subject to change.Lists provisioned SCIM enterprise members.When you remove a user with a SCIM-provisioned external identity from an enterprise using a `patch` with `active` flag to `false`, the user's metadata remains intact. This means they can potentially re-join the enterprise later. Although, while suspended, the user can't sign in. If you want to ensure the user can't re-join in the future, use the delete request. Only users who weren't permanently deleted will appear in the result list. + /// > [!NOTE]> SCIM provisioning for users and groups using the REST API is in public preview and subject to change.Lists provisioned SCIM enterprise members.When you remove a user with a SCIM-provisioned external identity from an enterprise using a `patch` with `active` flag to `false`, the user's metadata remains intact. This means they can potentially re-join the enterprise later. Although, while suspended, the user can't sign in. If you want to ensure the user can't re-join in the future, use the delete request. Only users who weren't permanently deleted will appear in the result list. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class UsersRequestBuilderGetQueryParameters diff --git a/src/GitHub/Search/Code/CodeRequestBuilder.cs b/src/GitHub/Search/Code/CodeRequestBuilder.cs index 7845c2bd..983c6c45 100644 --- a/src/GitHub/Search/Code/CodeRequestBuilder.cs +++ b/src/GitHub/Search/Code/CodeRequestBuilder.cs @@ -95,7 +95,7 @@ public RequestInformation ToGetRequestInformation(Action**This field is deprecated.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + /// **This field is closing down.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. [Obsolete("")] [QueryParameter("order")] public global::GitHub.Search.Code.GetOrderQueryParameterType? Order { get; set; } @@ -115,7 +115,7 @@ public partial class CodeRequestBuilderGetQueryParameters [QueryParameter("q")] public string Q { get; set; } #endif - /// **This field is deprecated.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Cloud search infrastructure. Default: [best match](https://docs.github.com/enterprise-cloud@latest//rest/search/search#ranking-search-results) + /// **This field is closing down.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub Enterprise Cloud search infrastructure. Default: [best match](https://docs.github.com/enterprise-cloud@latest//rest/search/search#ranking-search-results) [Obsolete("")] [QueryParameter("sort")] public global::GitHub.Search.Code.GetSortQueryParameterType? Sort { get; set; } diff --git a/src/GitHub/Teams/Item/Discussions/DiscussionsRequestBuilder.cs b/src/GitHub/Teams/Item/Discussions/DiscussionsRequestBuilder.cs index 800d3074..f9d9da13 100644 --- a/src/GitHub/Teams/Item/Discussions/DiscussionsRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Discussions/DiscussionsRequestBuilder.cs @@ -48,7 +48,7 @@ public DiscussionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint.List all discussions on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint.List all discussions on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// API method documentation /// /// A List<global::GitHub.Models.TeamDiscussion> @@ -69,7 +69,7 @@ public DiscussionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return collectionResult?.AsList(); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint.Creates a new discussion post on a team's page.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint.Creates a new discussion post on a team's page.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// /// A @@ -91,7 +91,7 @@ public DiscussionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamDiscussion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint.List all discussions on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint.List all discussions on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint.Creates a new discussion post on a team's page.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint.Creates a new discussion post on a team's page.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// /// A /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToPostRequestInformation(global::GitHub.Teams.Item.Dis return new global::GitHub.Teams.Item.Discussions.DiscussionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint.List all discussions on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint.List all discussions on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class DiscussionsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Teams/Item/Discussions/Item/Comments/CommentsRequestBuilder.cs b/src/GitHub/Teams/Item/Discussions/Item/Comments/CommentsRequestBuilder.cs index 7912b1ef..71978663 100644 --- a/src/GitHub/Teams/Item/Discussions/Item/Comments/CommentsRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Discussions/Item/Comments/CommentsRequestBuilder.cs @@ -48,7 +48,7 @@ public CommentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#list-discussion-comments) endpoint.List all comments on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#list-discussion-comments) endpoint.List all comments on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// API method documentation /// /// A List<global::GitHub.Models.TeamDiscussionComment> @@ -69,7 +69,7 @@ public CommentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return collectionResult?.AsList(); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#create-a-discussion-comment) endpoint.Creates a new comment on a team discussion.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#create-a-discussion-comment) endpoint.Creates a new comment on a team discussion.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// /// A @@ -91,7 +91,7 @@ public CommentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.TeamDiscussionComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#list-discussion-comments) endpoint.List all comments on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#list-discussion-comments) endpoint.List all comments on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#create-a-discussion-comment) endpoint.Creates a new comment on a team discussion.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#create-a-discussion-comment) endpoint.Creates a new comment on a team discussion.This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)."OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// /// A /// The request body @@ -144,7 +144,7 @@ public RequestInformation ToPostRequestInformation(global::GitHub.Teams.Item.Dis return new global::GitHub.Teams.Item.Discussions.Item.Comments.CommentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#list-discussion-comments) endpoint.List all comments on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#list-discussion-comments) endpoint.List all comments on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class CommentsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs b/src/GitHub/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs index 3bf4aeb2..efeb9565 100644 --- a/src/GitHub/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Discussions/Item/Comments/Item/Reactions/ReactionsRequestBuilder.cs @@ -34,7 +34,7 @@ public ReactionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.List the reactions to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.List the reactions to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// API method documentation /// /// A List<global::GitHub.Models.Reaction> @@ -55,7 +55,7 @@ public ReactionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return collectionResult?.AsList(); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint.Create a reaction to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint.Create a reaction to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// /// A @@ -77,7 +77,7 @@ public ReactionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Reaction.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.List the reactions to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.List the reactions to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint.Create a reaction to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint.Create a reaction to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).A response with an HTTP `200` status means that you already added the reaction type to this team discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// /// A /// The request body @@ -130,7 +130,7 @@ public RequestInformation ToPostRequestInformation(global::GitHub.Teams.Item.Dis return new global::GitHub.Teams.Item.Discussions.Item.Comments.Item.Reactions.ReactionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.List the reactions to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint.List the reactions to a [team discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class ReactionsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberItemRequestBuilder.cs b/src/GitHub/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberItemRequestBuilder.cs index bc370a66..8a359d9b 100644 --- a/src/GitHub/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberItemRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Discussions/Item/Comments/Item/WithComment_numberItemRequestBuilder.cs @@ -41,7 +41,7 @@ public WithComment_numberItemRequestBuilder(string rawUrl, IRequestAdapter reque { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#delete-a-discussion-comment) endpoint.Deletes a comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#delete-a-discussion-comment) endpoint.Deletes a comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -60,7 +60,7 @@ public async Task DeleteAsync(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment) endpoint.Get a specific comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment) endpoint.Get a specific comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// API method documentation /// /// A @@ -80,7 +80,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.TeamDiscussionComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#update-a-discussion-comment) endpoint.Edits the body text of a discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#update-a-discussion-comment) endpoint.Edits the body text of a discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// /// A @@ -102,7 +102,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.TeamDiscussionComment.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#delete-a-discussion-comment) endpoint.Deletes a comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#delete-a-discussion-comment) endpoint.Deletes a comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -121,7 +121,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment) endpoint.Get a specific comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#get-a-discussion-comment) endpoint.Get a specific comment on a team discussion.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,7 +141,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#update-a-discussion-comment) endpoint.Edits the body text of a discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussion-comments#update-a-discussion-comment) endpoint.Edits the body text of a discussion comment.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Teams/Item/Discussions/Item/Reactions/ReactionsRequestBuilder.cs b/src/GitHub/Teams/Item/Discussions/Item/Reactions/ReactionsRequestBuilder.cs index 432409dc..625ee1bb 100644 --- a/src/GitHub/Teams/Item/Discussions/Item/Reactions/ReactionsRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Discussions/Item/Reactions/ReactionsRequestBuilder.cs @@ -34,7 +34,7 @@ public ReactionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.List the reactions to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.List the reactions to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// API method documentation /// /// A List<global::GitHub.Models.Reaction> @@ -55,7 +55,7 @@ public ReactionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return collectionResult?.AsList(); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint.Create a reaction to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).A response with an HTTP `200` status means that you already added the reaction type to this team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint.Create a reaction to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).A response with an HTTP `200` status means that you already added the reaction type to this team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// /// A @@ -77,7 +77,7 @@ public ReactionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.Reaction.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.List the reactions to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.List the reactions to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -97,7 +97,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint.Create a reaction to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).A response with an HTTP `200` status means that you already added the reaction type to this team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint.Create a reaction to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).A response with an HTTP `200` status means that you already added the reaction type to this team discussion.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// /// A /// The request body @@ -130,7 +130,7 @@ public RequestInformation ToPostRequestInformation(global::GitHub.Teams.Item.Dis return new global::GitHub.Teams.Item.Discussions.Item.Reactions.ReactionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.List the reactions to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint.List the reactions to a [team discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion).OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class ReactionsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Teams/Item/Discussions/Item/WithDiscussion_numberItemRequestBuilder.cs b/src/GitHub/Teams/Item/Discussions/Item/WithDiscussion_numberItemRequestBuilder.cs index b84961cb..6e6d723e 100644 --- a/src/GitHub/Teams/Item/Discussions/Item/WithDiscussion_numberItemRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Discussions/Item/WithDiscussion_numberItemRequestBuilder.cs @@ -48,7 +48,7 @@ public WithDiscussion_numberItemRequestBuilder(string rawUrl, IRequestAdapter re { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint.Delete a discussion from a team's page.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint.Delete a discussion from a team's page.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task DeleteAsync(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint.Get a specific discussion on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint.Get a specific discussion on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// API method documentation /// /// A @@ -87,7 +87,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.TeamDiscussion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint.Edits the title and body text of a discussion post. Only the parameters you provide are updated.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint.Edits the title and body text of a discussion post. Only the parameters you provide are updated.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// API method documentation /// /// A @@ -109,7 +109,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.TeamDiscussion.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint.Delete a discussion from a team's page.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint.Delete a discussion from a team's page.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -128,7 +128,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint.Get a specific discussion on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint.Get a specific discussion on a team's page.OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -148,7 +148,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint.Edits the title and body text of a discussion post. Only the parameters you provide are updated.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint.Edits the title and body text of a discussion post. Only the parameters you provide are updated.OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. /// /// A /// The request body diff --git a/src/GitHub/Teams/Item/Invitations/InvitationsRequestBuilder.cs b/src/GitHub/Teams/Item/Invitations/InvitationsRequestBuilder.cs index e7dbcdcc..cbcbb43f 100644 --- a/src/GitHub/Teams/Item/Invitations/InvitationsRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Invitations/InvitationsRequestBuilder.cs @@ -34,7 +34,7 @@ public InvitationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations) endpoint.The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub Enterprise Cloud member, the `login` field in the return hash will be `null`. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations) endpoint.The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub Enterprise Cloud member, the `login` field in the return hash will be `null`. /// API method documentation /// /// A List<global::GitHub.Models.OrganizationInvitation> @@ -55,7 +55,7 @@ public InvitationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return collectionResult?.AsList(); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations) endpoint.The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub Enterprise Cloud member, the `login` field in the return hash will be `null`. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations) endpoint.The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub Enterprise Cloud member, the `login` field in the return hash will be `null`. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -85,7 +85,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations) endpoint.The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub Enterprise Cloud member, the `login` field in the return hash will be `null`. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations) endpoint.The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub Enterprise Cloud member, the `login` field in the return hash will be `null`. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class InvitationsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Teams/Item/Members/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Teams/Item/Members/Item/WithUsernameItemRequestBuilder.cs index e476ffb7..da5204cc 100644 --- a/src/GitHub/Teams/Item/Members/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Members/Item/WithUsernameItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WithUsernameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap { } /// - /// The "Remove team member" endpoint (described below) is deprecated.We recommend using the [Remove team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)." + /// The "Remove team member" endpoint (described below) is closing down.We recommend using the [Remove team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)." /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// The "Get team member" endpoint (described below) is deprecated.We recommend using the [Get team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships.To list members in a team, the team must be visible to the authenticated user. + /// The "Get team member" endpoint (described below) is closing down.We recommend using the [Get team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships.To list members in a team, the team must be visible to the authenticated user. /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -72,7 +72,7 @@ public async Task GetAsync(Action> await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } /// - /// The "Add team member" endpoint (described below) is deprecated.We recommend using the [Add or update team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)."Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)." + /// The "Add team member" endpoint (described below) is closing down.We recommend using the [Add or update team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)."Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)." /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -96,7 +96,7 @@ public async Task PutAsync(Action> await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// The "Remove team member" endpoint (described below) is deprecated.We recommend using the [Remove team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)." + /// The "Remove team member" endpoint (described below) is closing down.We recommend using the [Remove team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)." /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -115,7 +115,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// The "Get team member" endpoint (described below) is deprecated.We recommend using the [Get team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships.To list members in a team, the team must be visible to the authenticated user. + /// The "Get team member" endpoint (described below) is closing down.We recommend using the [Get team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships.To list members in a team, the team must be visible to the authenticated user. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -134,7 +134,7 @@ public RequestInformation ToGetRequestInformation(Action - /// The "Add team member" endpoint (described below) is deprecated.We recommend using the [Add or update team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)."Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)." + /// The "Add team member" endpoint (described below) is closing down.We recommend using the [Add or update team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)."Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)." /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/GitHub/Teams/Item/Members/MembersRequestBuilder.cs b/src/GitHub/Teams/Item/Members/MembersRequestBuilder.cs index 0a18d6a0..098ca24b 100644 --- a/src/GitHub/Teams/Item/Members/MembersRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Members/MembersRequestBuilder.cs @@ -48,7 +48,7 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-team-members) endpoint.Team members will include the members of child teams. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-team-members) endpoint.Team members will include the members of child teams. /// API method documentation /// /// A List<global::GitHub.Models.SimpleUser> @@ -74,7 +74,7 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return collectionResult?.AsList(); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-team-members) endpoint.Team members will include the members of child teams. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-team-members) endpoint.Team members will include the members of child teams. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -104,7 +104,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-team-members) endpoint.Team members will include the members of child teams. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-team-members) endpoint.Team members will include the members of child teams. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class MembersRequestBuilderGetQueryParameters diff --git a/src/GitHub/Teams/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Teams/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs index d669d86e..72b8e018 100644 --- a/src/GitHub/Teams/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Memberships/Item/WithUsernameItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WithUsernameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)." + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)." /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user) endpoint.Team members will include the members of child teams.To get a user's membership with a team, the team must be visible to the authenticated user.**Note:**The response contains the `state` of the membership and the member's `role`.The `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#create-a-team). + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user) endpoint.Team members will include the members of child teams.To get a user's membership with a team, the team must be visible to the authenticated user.**Note:**The response contains the `state` of the membership and the member's `role`.The `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#create-a-team). /// API method documentation /// /// A @@ -78,7 +78,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.TeamMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)."If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)."If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. /// API method documentation /// /// A @@ -105,7 +105,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.TeamMembership.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)." + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)." /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -124,7 +124,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user) endpoint.Team members will include the members of child teams.To get a user's membership with a team, the team must be visible to the authenticated user.**Note:**The response contains the `state` of the membership and the member's `role`.The `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#create-a-team). + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user) endpoint.Team members will include the members of child teams.To get a user's membership with a team, the team must be visible to the authenticated user.**Note:**The response contains the `state` of the membership and the member's `role`.The `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#create-a-team). /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,7 +144,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)."If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer.> [!NOTE]> When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub Enterprise Cloud team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/)."If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. /// /// A /// The request body diff --git a/src/GitHub/Teams/Item/Projects/Item/WithProject_ItemRequestBuilder.cs b/src/GitHub/Teams/Item/Projects/Item/WithProject_ItemRequestBuilder.cs index 670991fa..a066faae 100644 --- a/src/GitHub/Teams/Item/Projects/Item/WithProject_ItemRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Projects/Item/WithProject_ItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WithProject_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#remove-a-project-from-a-team) endpoint.Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#remove-a-project-from-a-team) endpoint.Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -60,7 +60,7 @@ public async Task DeleteAsync(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#check-team-permissions-for-a-project) endpoint.Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#check-team-permissions-for-a-project) endpoint.Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. /// API method documentation /// /// A @@ -80,7 +80,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.TeamProject.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#add-or-update-team-project-permissions) endpoint.Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#add-or-update-team-project-permissions) endpoint.Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. /// API method documentation /// /// The request body @@ -110,7 +110,7 @@ public async Task PutAsync(global::GitHub.Teams.Item.Projects.Item.WithProject_P await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#remove-a-project-from-a-team) endpoint.Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#remove-a-project-from-a-team) endpoint.Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#check-team-permissions-for-a-project) endpoint.Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#check-team-permissions-for-a-project) endpoint.Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -150,7 +150,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#add-or-update-team-project-permissions) endpoint.Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#add-or-update-team-project-permissions) endpoint.Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. /// /// A /// The request body diff --git a/src/GitHub/Teams/Item/Projects/ProjectsRequestBuilder.cs b/src/GitHub/Teams/Item/Projects/ProjectsRequestBuilder.cs index 01b29842..c7108845 100644 --- a/src/GitHub/Teams/Item/Projects/ProjectsRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Projects/ProjectsRequestBuilder.cs @@ -48,7 +48,7 @@ public ProjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-projects) endpoint.Lists the organization projects for a team. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-projects) endpoint.Lists the organization projects for a team. /// API method documentation /// /// A List<global::GitHub.Models.TeamProject> @@ -74,7 +74,7 @@ public ProjectsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return collectionResult?.AsList(); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-projects) endpoint.Lists the organization projects for a team. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-projects) endpoint.Lists the organization projects for a team. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -104,7 +104,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-projects) endpoint.Lists the organization projects for a team. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-projects) endpoint.Lists the organization projects for a team. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class ProjectsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Teams/Item/Repos/Item/Item/WithRepoItemRequestBuilder.cs b/src/GitHub/Teams/Item/Repos/Item/Item/WithRepoItemRequestBuilder.cs index 33f7b0de..ffbb3ba2 100644 --- a/src/GitHub/Teams/Item/Repos/Item/Item/WithRepoItemRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Repos/Item/Item/WithRepoItemRequestBuilder.cs @@ -34,7 +34,7 @@ public WithRepoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#remove-a-repository-from-a-team) endpoint.If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#remove-a-repository-from-a-team) endpoint.If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -53,7 +53,7 @@ public async Task DeleteAsync(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#check-team-permissions-for-a-repository) endpoint.> [!NOTE]> Repositories inherited through a parent team will also be checked.You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types/) via the `Accept` header: + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#check-team-permissions-for-a-repository) endpoint.> [!NOTE]> Repositories inherited through a parent team will also be checked.You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types/) via the `Accept` header: /// API method documentation /// /// A @@ -73,7 +73,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.TeamRepository.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#add-or-update-team-repository-permissions)" endpoint.To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)." + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#add-or-update-team-repository-permissions)" endpoint.To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)." /// API method documentation /// /// The request body @@ -101,7 +101,7 @@ public async Task PutAsync(global::GitHub.Teams.Item.Repos.Item.Item.WithRepoPut await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#remove-a-repository-from-a-team) endpoint.If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#remove-a-repository-from-a-team) endpoint.If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#check-team-permissions-for-a-repository) endpoint.> [!NOTE]> Repositories inherited through a parent team will also be checked.You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types/) via the `Accept` header: + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#check-team-permissions-for-a-repository) endpoint.> [!NOTE]> Repositories inherited through a parent team will also be checked.You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types/) via the `Accept` header: /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -140,7 +140,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#add-or-update-team-repository-permissions)" endpoint.To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)." + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#add-or-update-team-repository-permissions)" endpoint.To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP method](https://docs.github.com/enterprise-cloud@latest//rest/guides/getting-started-with-the-rest-api#http-method)." /// /// A /// The request body diff --git a/src/GitHub/Teams/Item/Repos/ReposRequestBuilder.cs b/src/GitHub/Teams/Item/Repos/ReposRequestBuilder.cs index 97527738..3e0b6cbb 100644 --- a/src/GitHub/Teams/Item/Repos/ReposRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Repos/ReposRequestBuilder.cs @@ -47,7 +47,7 @@ public ReposRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-repositories) endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-repositories) endpoint. /// API method documentation /// /// A List<global::GitHub.Models.MinimalRepository> @@ -73,7 +73,7 @@ public ReposRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return collectionResult?.AsList(); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-repositories) endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-repositories) endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -103,7 +103,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-repositories) endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-repositories) endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class ReposRequestBuilderGetQueryParameters diff --git a/src/GitHub/Teams/Item/TeamSync/GroupMappings/GroupMappingsRequestBuilder.cs b/src/GitHub/Teams/Item/TeamSync/GroupMappings/GroupMappingsRequestBuilder.cs index c9a9d272..6682fbab 100644 --- a/src/GitHub/Teams/Item/TeamSync/GroupMappings/GroupMappingsRequestBuilder.cs +++ b/src/GitHub/Teams/Item/TeamSync/GroupMappings/GroupMappingsRequestBuilder.cs @@ -34,7 +34,7 @@ public GroupMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List IdP groups for a team`](https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#list-idp-groups-for-a-team) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.List IdP groups connected to a team on GitHub Enterprise Cloud. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List IdP groups for a team`](https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#list-idp-groups-for-a-team) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.List IdP groups connected to a team on GitHub Enterprise Cloud. /// API method documentation /// /// A @@ -61,7 +61,7 @@ public GroupMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GroupMapping.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create or update IdP group connections`](https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#create-or-update-idp-group-connections) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Creates, updates, or removes a connection between a team and an IdP group. When adding groups to a team, you must include all new and existing groups to avoid replacing existing groups with the new ones. Specifying an empty `groups` array will remove all connections for a team. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create or update IdP group connections`](https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#create-or-update-idp-group-connections) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Creates, updates, or removes a connection between a team and an IdP group. When adding groups to a team, you must include all new and existing groups to avoid replacing existing groups with the new ones. Specifying an empty `groups` array will remove all connections for a team. /// API method documentation /// /// A @@ -90,7 +90,7 @@ public GroupMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, global::GitHub.Models.GroupMapping.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List IdP groups for a team`](https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#list-idp-groups-for-a-team) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.List IdP groups connected to a team on GitHub Enterprise Cloud. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List IdP groups for a team`](https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#list-idp-groups-for-a-team) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.List IdP groups connected to a team on GitHub Enterprise Cloud. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,7 +110,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create or update IdP group connections`](https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#create-or-update-idp-group-connections) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Creates, updates, or removes a connection between a team and an IdP group. When adding groups to a team, you must include all new and existing groups to avoid replacing existing groups with the new ones. Specifying an empty `groups` array will remove all connections for a team. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create or update IdP group connections`](https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#create-or-update-idp-group-connections) endpoint.Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.Creates, updates, or removes a connection between a team and an IdP group. When adding groups to a team, you must include all new and existing groups to avoid replacing existing groups with the new ones. Specifying an empty `groups` array will remove all connections for a team. /// /// A /// The request body diff --git a/src/GitHub/Teams/Item/Teams/TeamsRequestBuilder.cs b/src/GitHub/Teams/Item/Teams/TeamsRequestBuilder.cs index 98759c34..d23e964c 100644 --- a/src/GitHub/Teams/Item/Teams/TeamsRequestBuilder.cs +++ b/src/GitHub/Teams/Item/Teams/TeamsRequestBuilder.cs @@ -34,7 +34,7 @@ public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-child-teams) endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-child-teams) endpoint. /// API method documentation /// /// A List<global::GitHub.Models.Team> @@ -64,7 +64,7 @@ public TeamsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return collectionResult?.AsList(); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-child-teams) endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-child-teams) endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -94,7 +94,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-child-teams) endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-child-teams) endpoint. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class TeamsRequestBuilderGetQueryParameters diff --git a/src/GitHub/Teams/Item/WithTeam_ItemRequestBuilder.cs b/src/GitHub/Teams/Item/WithTeam_ItemRequestBuilder.cs index 7af27ab3..defb93e9 100644 --- a/src/GitHub/Teams/Item/WithTeam_ItemRequestBuilder.cs +++ b/src/GitHub/Teams/Item/WithTeam_ItemRequestBuilder.cs @@ -90,7 +90,7 @@ public WithTeam_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#delete-a-team) endpoint.To delete a team, the authenticated user must be an organization owner or team maintainer.If you are an organization owner, deleting a parent team will delete all of its child teams as well. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#delete-a-team) endpoint.To delete a team, the authenticated user must be an organization owner or team maintainer.If you are an organization owner, deleting a parent team will delete all of its child teams as well. /// API method documentation /// /// Cancellation token to use when cancelling requests @@ -116,7 +116,7 @@ public async Task DeleteAsync(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#get-a-team-by-name) endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#get-a-team-by-name) endpoint. /// API method documentation /// /// A @@ -141,7 +141,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.TeamFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#update-a-team) endpoint.To edit a team, the authenticated user must either be an organization owner or a team maintainer.> [!NOTE]> With nested teams, the `privacy` for parent teams cannot be `secret`. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#update-a-team) endpoint.To edit a team, the authenticated user must either be an organization owner or a team maintainer.> [!NOTE]> With nested teams, the `privacy` for parent teams cannot be `secret`. /// API method documentation /// /// A @@ -172,7 +172,7 @@ public async Task DeleteAsync(Action(requestInfo, global::GitHub.Models.TeamFull.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#delete-a-team) endpoint.To delete a team, the authenticated user must be an organization owner or team maintainer.If you are an organization owner, deleting a parent team will delete all of its child teams as well. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#delete-a-team) endpoint.To delete a team, the authenticated user must be an organization owner or team maintainer.If you are an organization owner, deleting a parent team will delete all of its child teams as well. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -192,7 +192,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#get-a-team-by-name) endpoint. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#get-a-team-by-name) endpoint. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -212,7 +212,7 @@ public RequestInformation ToGetRequestInformation(Action - /// > [!WARNING]> **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#update-a-team) endpoint.To edit a team, the authenticated user must either be an organization owner or a team maintainer.> [!NOTE]> With nested teams, the `privacy` for parent teams cannot be `secret`. + /// > [!WARNING]> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#update-a-team) endpoint.To edit a team, the authenticated user must either be an organization owner or a team maintainer.> [!NOTE]> With nested teams, the `privacy` for parent teams cannot be `secret`. /// /// A /// The request body diff --git a/src/GitHub/Teams/Item/WithTeam_PatchRequestBody.cs b/src/GitHub/Teams/Item/WithTeam_PatchRequestBody.cs index fbbc4eac..8321ff21 100644 --- a/src/GitHub/Teams/Item/WithTeam_PatchRequestBody.cs +++ b/src/GitHub/Teams/Item/WithTeam_PatchRequestBody.cs @@ -34,7 +34,7 @@ public partial class WithTeam_PatchRequestBody : IAdditionalDataHolder, IParsabl public global::GitHub.Teams.Item.WithTeam_PatchRequestBody_notification_setting? NotificationSetting { get; set; } /// The ID of a team to set as the parent team. public int? ParentTeamId { get; set; } - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. public global::GitHub.Teams.Item.WithTeam_PatchRequestBody_permission? Permission { get; set; } /// The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: **For a non-nested team:** * `secret` - only visible to organization owners and members of this team. * `closed` - visible to all members of this organization. **For a parent or child team:** * `closed` - visible to all members of this organization. public global::GitHub.Teams.Item.WithTeam_PatchRequestBody_privacy? Privacy { get; set; } diff --git a/src/GitHub/Teams/Item/WithTeam_PatchRequestBody_permission.cs b/src/GitHub/Teams/Item/WithTeam_PatchRequestBody_permission.cs index a87783a5..801539e2 100644 --- a/src/GitHub/Teams/Item/WithTeam_PatchRequestBody_permission.cs +++ b/src/GitHub/Teams/Item/WithTeam_PatchRequestBody_permission.cs @@ -3,7 +3,7 @@ using System; namespace GitHub.Teams.Item { - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public enum WithTeam_PatchRequestBody_permission { diff --git a/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember1.cs b/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember1.cs index 3b457547..070b36b5 100644 --- a/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember1.cs +++ b/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember1.cs @@ -38,7 +38,7 @@ public partial class CodespacesPostRequestBodyMember1 : IAdditionalDataHolder, I #else public string DisplayName { get; set; } #endif - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. public global::GitHub.User.Codespaces.CodespacesPostRequestBodyMember1_geo? Geo { get; set; } /// Time in minutes before codespace stops from inactivity public int? IdleTimeoutMinutes { get; set; } diff --git a/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember1_geo.cs b/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember1_geo.cs index 3aee8a60..a0fb75f9 100644 --- a/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember1_geo.cs +++ b/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember1_geo.cs @@ -3,7 +3,7 @@ using System; namespace GitHub.User.Codespaces { - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public enum CodespacesPostRequestBodyMember1_geo { diff --git a/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember2.cs b/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember2.cs index 62b55a2b..2022faa9 100644 --- a/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember2.cs +++ b/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember2.cs @@ -22,7 +22,7 @@ public partial class CodespacesPostRequestBodyMember2 : IAdditionalDataHolder, I #else public string DevcontainerPath { get; set; } #endif - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. public global::GitHub.User.Codespaces.CodespacesPostRequestBodyMember2_geo? Geo { get; set; } /// Time in minutes before codespace stops from inactivity public int? IdleTimeoutMinutes { get; set; } diff --git a/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember2_geo.cs b/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember2_geo.cs index 1309e78f..68838839 100644 --- a/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember2_geo.cs +++ b/src/GitHub/User/Codespaces/CodespacesPostRequestBodyMember2_geo.cs @@ -3,7 +3,7 @@ using System; namespace GitHub.User.Codespaces { - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public enum CodespacesPostRequestBodyMember2_geo { diff --git a/src/GitHub/User/Item/WithAccount_ItemRequestBuilder.cs b/src/GitHub/User/Item/WithAccount_ItemRequestBuilder.cs index 8ab9c42c..d12016ad 100644 --- a/src/GitHub/User/Item/WithAccount_ItemRequestBuilder.cs +++ b/src/GitHub/User/Item/WithAccount_ItemRequestBuilder.cs @@ -115,13 +115,13 @@ public partial class WithAccount_GetResponse : IComposedTypeWrapper, IParsable public static global::GitHub.User.Item.WithAccount_ItemRequestBuilder.WithAccount_GetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); + var mappingValue = parseNode.GetChildNode("user_view_type")?.GetStringValue(); var result = new global::GitHub.User.Item.WithAccount_ItemRequestBuilder.WithAccount_GetResponse(); - if("private-user".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + if("private".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { result.PrivateUser = new global::GitHub.Models.PrivateUser(); } - else if("public-user".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + else if("public".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { result.PublicUser = new global::GitHub.Models.PublicUser(); } diff --git a/src/GitHub/User/UserRequestBuilder.cs b/src/GitHub/User/UserRequestBuilder.cs index 850d9cae..8646bf0a 100644 --- a/src/GitHub/User/UserRequestBuilder.cs +++ b/src/GitHub/User/UserRequestBuilder.cs @@ -340,13 +340,13 @@ public partial class UserGetResponse : IComposedTypeWrapper, IParsable public static global::GitHub.User.UserRequestBuilder.UserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); + var mappingValue = parseNode.GetChildNode("user_view_type")?.GetStringValue(); var result = new global::GitHub.User.UserRequestBuilder.UserGetResponse(); - if("private-user".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + if("private".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { result.PrivateUser = new global::GitHub.Models.PrivateUser(); } - else if("public-user".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + else if("public".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { result.PublicUser = new global::GitHub.Models.PublicUser(); } diff --git a/src/GitHub/Users/Item/WithUsernameItemRequestBuilder.cs b/src/GitHub/Users/Item/WithUsernameItemRequestBuilder.cs index 093b6667..e11aa12a 100644 --- a/src/GitHub/Users/Item/WithUsernameItemRequestBuilder.cs +++ b/src/GitHub/Users/Item/WithUsernameItemRequestBuilder.cs @@ -235,13 +235,13 @@ public partial class WithUsernameGetResponse : IComposedTypeWrapper, IParsable public static global::GitHub.Users.Item.WithUsernameItemRequestBuilder.WithUsernameGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - var mappingValue = parseNode.GetChildNode("")?.GetStringValue(); + var mappingValue = parseNode.GetChildNode("user_view_type")?.GetStringValue(); var result = new global::GitHub.Users.Item.WithUsernameItemRequestBuilder.WithUsernameGetResponse(); - if("private-user".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + if("private".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { result.PrivateUser = new global::GitHub.Models.PrivateUser(); } - else if("public-user".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) + else if("public".Equals(mappingValue, StringComparison.OrdinalIgnoreCase)) { result.PublicUser = new global::GitHub.Models.PublicUser(); } diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index 780b49a8..d6e96300 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "F464558D40D0DCD04F080D1025FD7E4A6D959B46A5F79BF65A85560B66870329D1D0F4B84FCA7F5B7E2DC6D9207D2DA6A014AB95F5C440978AE631D859A57DEE", + "descriptionHash": "1D4E89D2F43CDCE39984BE8F819BDB770C949A1A91FAC0C618342F93E2FA9215740C2DF72380E2A508CCFE8E1600821CD146D583F0EAACF7F72A604532E37DD4", "descriptionLocation": "../../../../../schemas/ghec.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0", From c64f79fbaa921767c3774e564ebd3c91b05e119a Mon Sep 17 00:00:00 2001 From: Octokit Bot Date: Wed, 23 Oct 2024 00:30:56 +0000 Subject: [PATCH 3/3] New updates to generated code --- .../Alerts/AlertsRequestBuilder.cs | 10 ++- .../Models/CodeSecurityConfiguration.cs | 14 ++++ ...ration_secret_scanning_delegated_bypass.cs | 23 +++++++ ...ecret_scanning_delegated_bypass_options.cs | 66 +++++++++++++++++++ ...ning_delegated_bypass_options_reviewers.cs | 63 ++++++++++++++++++ ..._bypass_options_reviewers_reviewer_type.cs | 19 ++++++ src/GitHub/Models/OrganizationFull.cs | 4 ++ .../Models/OrganizationSecretScanningAlert.cs | 8 +++ src/GitHub/Models/SecretScanningAlert.cs | 8 +++ .../ConfigurationsPostRequestBody.cs | 15 +++++ ...stBody_secret_scanning_delegated_bypass.cs | 23 +++++++ ...ecret_scanning_delegated_bypass_options.cs | 66 +++++++++++++++++++ ...ning_delegated_bypass_options_reviewers.cs | 63 ++++++++++++++++++ ..._bypass_options_reviewers_reviewer_type.cs | 19 ++++++ .../WithConfiguration_PatchRequestBody.cs | 14 ++++ ...stBody_secret_scanning_delegated_bypass.cs | 23 +++++++ ...ecret_scanning_delegated_bypass_options.cs | 66 +++++++++++++++++++ ...ning_delegated_bypass_options_reviewers.cs | 63 ++++++++++++++++++ ..._bypass_options_reviewers_reviewer_type.cs | 19 ++++++ .../Alerts/AlertsRequestBuilder.cs | 10 ++- .../Dispatches/DispatchesPostRequestBody.cs | 2 +- ...ispatchesPostRequestBody_client_payload.cs | 2 +- .../Alerts/AlertsRequestBuilder.cs | 10 ++- src/GitHub/kiota-lock.json | 2 +- 24 files changed, 603 insertions(+), 9 deletions(-) create mode 100644 src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass.cs create mode 100644 src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options.cs create mode 100644 src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers.cs create mode 100644 src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs create mode 100644 src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass.cs create mode 100644 src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options.cs create mode 100644 src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers.cs create mode 100644 src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs create mode 100644 src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass.cs create mode 100644 src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options.cs create mode 100644 src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers.cs create mode 100644 src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs diff --git a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs index d029ec24..72342b44 100644 --- a/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Enterprises/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class AlertsRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/secret-scanning/alerts{?after*,before*,direction*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", pathParameters) + public AlertsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/secret-scanning/alerts{?after*,before*,direction*,is_multi_repo*,is_publicly_leaked*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/secret-scanning/alerts{?after*,before*,direction*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", rawUrl) + public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/enterprises/{enterprise}/secret-scanning/alerts{?after*,before*,direction*,is_multi_repo*,is_publicly_leaked*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", rawUrl) { } /// @@ -117,6 +117,12 @@ public partial class AlertsRequestBuilderGetQueryParameters /// The direction to sort the results by. [QueryParameter("direction")] public global::GitHub.Enterprises.Item.SecretScanning.Alerts.GetDirectionQueryParameterType? Direction { get; set; } + /// A boolean value representing whether or not to filter alerts by the multi-repo tag being present. + [QueryParameter("is_multi_repo")] + public bool? IsMultiRepo { get; set; } + /// A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. + [QueryParameter("is_publicly_leaked")] + public bool? IsPubliclyLeaked { get; set; } /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("per_page")] public int? PerPage { get; set; } diff --git a/src/GitHub/Models/CodeSecurityConfiguration.cs b/src/GitHub/Models/CodeSecurityConfiguration.cs index 98080dcf..177642d6 100644 --- a/src/GitHub/Models/CodeSecurityConfiguration.cs +++ b/src/GitHub/Models/CodeSecurityConfiguration.cs @@ -69,6 +69,16 @@ public partial class CodeSecurityConfiguration : IAdditionalDataHolder, IParsabl public global::GitHub.Models.CodeSecurityConfiguration_private_vulnerability_reporting? PrivateVulnerabilityReporting { get; set; } /// The enablement status of secret scanning public global::GitHub.Models.CodeSecurityConfiguration_secret_scanning? SecretScanning { get; set; } + /// The enablement status of secret scanning delegated bypass + public global::GitHub.Models.CodeSecurityConfiguration_secret_scanning_delegated_bypass? SecretScanningDelegatedBypass { get; set; } + /// Feature options for secret scanning delegated bypass +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Models.CodeSecurityConfiguration_secret_scanning_delegated_bypass_options? SecretScanningDelegatedBypassOptions { get; set; } +#nullable restore +#else + public global::GitHub.Models.CodeSecurityConfiguration_secret_scanning_delegated_bypass_options SecretScanningDelegatedBypassOptions { get; set; } +#endif /// The enablement status of secret scanning non-provider patterns public global::GitHub.Models.CodeSecurityConfiguration_secret_scanning_non_provider_patterns? SecretScanningNonProviderPatterns { get; set; } /// The enablement status of secret scanning push protection @@ -127,6 +137,8 @@ public virtual IDictionary> GetFieldDeserializers() { "name", n => { Name = n.GetStringValue(); } }, { "private_vulnerability_reporting", n => { PrivateVulnerabilityReporting = n.GetEnumValue(); } }, { "secret_scanning", n => { SecretScanning = n.GetEnumValue(); } }, + { "secret_scanning_delegated_bypass", n => { SecretScanningDelegatedBypass = n.GetEnumValue(); } }, + { "secret_scanning_delegated_bypass_options", n => { SecretScanningDelegatedBypassOptions = n.GetObjectValue(global::GitHub.Models.CodeSecurityConfiguration_secret_scanning_delegated_bypass_options.CreateFromDiscriminatorValue); } }, { "secret_scanning_non_provider_patterns", n => { SecretScanningNonProviderPatterns = n.GetEnumValue(); } }, { "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetEnumValue(); } }, { "secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetEnumValue(); } }, @@ -157,6 +169,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteEnumValue("private_vulnerability_reporting", PrivateVulnerabilityReporting); writer.WriteEnumValue("secret_scanning", SecretScanning); + writer.WriteEnumValue("secret_scanning_delegated_bypass", SecretScanningDelegatedBypass); + writer.WriteObjectValue("secret_scanning_delegated_bypass_options", SecretScanningDelegatedBypassOptions); writer.WriteEnumValue("secret_scanning_non_provider_patterns", SecretScanningNonProviderPatterns); writer.WriteEnumValue("secret_scanning_push_protection", SecretScanningPushProtection); writer.WriteEnumValue("secret_scanning_validity_checks", SecretScanningValidityChecks); diff --git a/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass.cs b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass.cs new file mode 100644 index 00000000..b77ab50b --- /dev/null +++ b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass.cs @@ -0,0 +1,23 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// The enablement status of secret scanning delegated bypass + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum CodeSecurityConfiguration_secret_scanning_delegated_bypass + { + [EnumMember(Value = "enabled")] + #pragma warning disable CS1591 + Enabled, + #pragma warning restore CS1591 + [EnumMember(Value = "disabled")] + #pragma warning disable CS1591 + Disabled, + #pragma warning restore CS1591 + [EnumMember(Value = "not_set")] + #pragma warning disable CS1591 + Not_set, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options.cs b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options.cs new file mode 100644 index 00000000..520d8292 --- /dev/null +++ b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options.cs @@ -0,0 +1,66 @@ +// +#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 secret scanning delegated bypass + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class CodeSecurityConfiguration_secret_scanning_delegated_bypass_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 bypass reviewers for secret scanning delegated bypass +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Reviewers { get; set; } +#nullable restore +#else + public List Reviewers { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CodeSecurityConfiguration_secret_scanning_delegated_bypass_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_secret_scanning_delegated_bypass_options CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.CodeSecurityConfiguration_secret_scanning_delegated_bypass_options(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "reviewers", n => { Reviewers = n.GetCollectionOfObjectValues(global::GitHub.Models.CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers.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("reviewers", Reviewers); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers.cs b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers.cs new file mode 100644 index 00000000..faaa0af9 --- /dev/null +++ b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers.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.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The ID of the team or role selected as a bypass reviewer + public int? ReviewerId { get; set; } + /// The type of the bypass reviewer + public global::GitHub.Models.CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers_reviewer_type? ReviewerType { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers() + { + 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_secret_scanning_delegated_bypass_options_reviewers CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Models.CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "reviewer_id", n => { ReviewerId = n.GetIntValue(); } }, + { "reviewer_type", n => { ReviewerType = 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.WriteIntValue("reviewer_id", ReviewerId); + writer.WriteEnumValue("reviewer_type", ReviewerType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs new file mode 100644 index 00000000..f90fb688 --- /dev/null +++ b/src/GitHub/Models/CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs @@ -0,0 +1,19 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Models +{ + /// The type of the bypass reviewer + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum CodeSecurityConfiguration_secret_scanning_delegated_bypass_options_reviewers_reviewer_type + { + [EnumMember(Value = "TEAM")] + #pragma warning disable CS1591 + TEAM, + #pragma warning restore CS1591 + [EnumMember(Value = "ROLE")] + #pragma warning disable CS1591 + ROLE, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Models/OrganizationFull.cs b/src/GitHub/Models/OrganizationFull.cs index 3a3efc07..c28aa935 100644 --- a/src/GitHub/Models/OrganizationFull.cs +++ b/src/GitHub/Models/OrganizationFull.cs @@ -44,6 +44,8 @@ public partial class OrganizationFull : IAdditionalDataHolder, IParsable #else public string Blog { get; set; } #endif + /// The number of collaborators on private repositories.This field may be null if the number of private repositories is over 50,000. + public int? Collaborators { get; set; } /// The company property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -310,6 +312,7 @@ public virtual IDictionary> GetFieldDeserializers() { "avatar_url", n => { AvatarUrl = n.GetStringValue(); } }, { "billing_email", n => { BillingEmail = n.GetStringValue(); } }, { "blog", n => { Blog = n.GetStringValue(); } }, + { "collaborators", n => { Collaborators = n.GetIntValue(); } }, { "company", n => { Company = n.GetStringValue(); } }, { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, { "default_repository_permission", n => { DefaultRepositoryPermission = n.GetStringValue(); } }, @@ -376,6 +379,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("avatar_url", AvatarUrl); writer.WriteStringValue("billing_email", BillingEmail); writer.WriteStringValue("blog", Blog); + writer.WriteIntValue("collaborators", Collaborators); writer.WriteStringValue("company", Company); writer.WriteDateTimeOffsetValue("created_at", CreatedAt); writer.WriteStringValue("default_repository_permission", DefaultRepositoryPermission); diff --git a/src/GitHub/Models/OrganizationSecretScanningAlert.cs b/src/GitHub/Models/OrganizationSecretScanningAlert.cs index d17e0083..35392752 100644 --- a/src/GitHub/Models/OrganizationSecretScanningAlert.cs +++ b/src/GitHub/Models/OrganizationSecretScanningAlert.cs @@ -32,8 +32,12 @@ public partial class OrganizationSecretScanningAlert : IAdditionalDataHolder, IP #else public string LocationsUrl { get; set; } #endif + /// Whether the detected secret was found in multiple repositories in the same organization or enterprise. + public bool? MultiRepo { get; set; } /// The security alert number. public int? Number { get; private set; } + /// Whether the secret was publicly leaked. + public bool? PubliclyLeaked { get; set; } /// Whether push protection was bypassed for the detected secret. public bool? PushProtectionBypassed { get; set; } /// The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. @@ -140,7 +144,9 @@ public virtual IDictionary> GetFieldDeserializers() { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, { "locations_url", n => { LocationsUrl = n.GetStringValue(); } }, + { "multi_repo", n => { MultiRepo = n.GetBoolValue(); } }, { "number", n => { Number = n.GetIntValue(); } }, + { "publicly_leaked", n => { PubliclyLeaked = n.GetBoolValue(); } }, { "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); } }, @@ -166,6 +172,8 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("locations_url", LocationsUrl); + writer.WriteBoolValue("multi_repo", MultiRepo); + writer.WriteBoolValue("publicly_leaked", PubliclyLeaked); writer.WriteBoolValue("push_protection_bypassed", PushProtectionBypassed); writer.WriteDateTimeOffsetValue("push_protection_bypassed_at", PushProtectionBypassedAt); writer.WriteObjectValue("push_protection_bypassed_by", PushProtectionBypassedBy); diff --git a/src/GitHub/Models/SecretScanningAlert.cs b/src/GitHub/Models/SecretScanningAlert.cs index d83dd83f..8e6106e2 100644 --- a/src/GitHub/Models/SecretScanningAlert.cs +++ b/src/GitHub/Models/SecretScanningAlert.cs @@ -32,8 +32,12 @@ public partial class SecretScanningAlert : IAdditionalDataHolder, IParsable #else public string LocationsUrl { get; set; } #endif + /// Whether the detected secret was found in multiple repositories under the same organization or enterprise. + public bool? MultiRepo { get; set; } /// The security alert number. public int? Number { get; private set; } + /// Whether the detected secret was publicly leaked. + public bool? PubliclyLeaked { get; set; } /// Whether push protection was bypassed for the detected secret. public bool? PushProtectionBypassed { get; set; } /// The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. @@ -132,7 +136,9 @@ public virtual IDictionary> GetFieldDeserializers() { "created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } }, { "html_url", n => { HtmlUrl = n.GetStringValue(); } }, { "locations_url", n => { LocationsUrl = n.GetStringValue(); } }, + { "multi_repo", n => { MultiRepo = n.GetBoolValue(); } }, { "number", n => { Number = n.GetIntValue(); } }, + { "publicly_leaked", n => { PubliclyLeaked = n.GetBoolValue(); } }, { "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); } }, @@ -157,6 +163,8 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("locations_url", LocationsUrl); + writer.WriteBoolValue("multi_repo", MultiRepo); + writer.WriteBoolValue("publicly_leaked", PubliclyLeaked); writer.WriteBoolValue("push_protection_bypassed", PushProtectionBypassed); writer.WriteDateTimeOffsetValue("push_protection_bypassed_at", PushProtectionBypassedAt); writer.WriteObjectValue("push_protection_bypassed_by", PushProtectionBypassedBy); diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs index b924ff14..db6ce48c 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody.cs @@ -54,6 +54,16 @@ public partial class ConfigurationsPostRequestBody : IParsable public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_private_vulnerability_reporting? PrivateVulnerabilityReporting { get; set; } /// The enablement status of secret scanning public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning? SecretScanning { get; set; } + /// The enablement status of secret scanning delegated bypass + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_delegated_bypass? SecretScanningDelegatedBypass { get; set; } + /// Feature options for secret scanning delegated bypass +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options? SecretScanningDelegatedBypassOptions { get; set; } +#nullable restore +#else + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options SecretScanningDelegatedBypassOptions { get; set; } +#endif /// The enablement status of secret scanning non provider patterns public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_non_provider_patterns? SecretScanningNonProviderPatterns { get; set; } /// The enablement status of secret scanning push protection @@ -74,6 +84,7 @@ public ConfigurationsPostRequestBody() Enforcement = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_enforcement.Enforced; PrivateVulnerabilityReporting = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_private_vulnerability_reporting.Disabled; SecretScanning = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning.Disabled; + SecretScanningDelegatedBypass = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_delegated_bypass.Disabled; SecretScanningNonProviderPatterns = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_non_provider_patterns.Disabled; SecretScanningPushProtection = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_push_protection.Disabled; SecretScanningValidityChecks = global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_validity_checks.Disabled; @@ -108,6 +119,8 @@ public virtual IDictionary> GetFieldDeserializers() { "name", n => { Name = n.GetStringValue(); } }, { "private_vulnerability_reporting", n => { PrivateVulnerabilityReporting = n.GetEnumValue(); } }, { "secret_scanning", n => { SecretScanning = n.GetEnumValue(); } }, + { "secret_scanning_delegated_bypass", n => { SecretScanningDelegatedBypass = n.GetEnumValue(); } }, + { "secret_scanning_delegated_bypass_options", n => { SecretScanningDelegatedBypassOptions = n.GetObjectValue(global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options.CreateFromDiscriminatorValue); } }, { "secret_scanning_non_provider_patterns", n => { SecretScanningNonProviderPatterns = n.GetEnumValue(); } }, { "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetEnumValue(); } }, { "secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetEnumValue(); } }, @@ -132,6 +145,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteEnumValue("private_vulnerability_reporting", PrivateVulnerabilityReporting); writer.WriteEnumValue("secret_scanning", SecretScanning); + writer.WriteEnumValue("secret_scanning_delegated_bypass", SecretScanningDelegatedBypass); + writer.WriteObjectValue("secret_scanning_delegated_bypass_options", SecretScanningDelegatedBypassOptions); writer.WriteEnumValue("secret_scanning_non_provider_patterns", SecretScanningNonProviderPatterns); writer.WriteEnumValue("secret_scanning_push_protection", SecretScanningPushProtection); writer.WriteEnumValue("secret_scanning_validity_checks", SecretScanningValidityChecks); diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass.cs new file mode 100644 index 00000000..4e928021 --- /dev/null +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass.cs @@ -0,0 +1,23 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ + /// The enablement status of secret scanning delegated bypass + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum ConfigurationsPostRequestBody_secret_scanning_delegated_bypass + { + [EnumMember(Value = "enabled")] + #pragma warning disable CS1591 + Enabled, + #pragma warning restore CS1591 + [EnumMember(Value = "disabled")] + #pragma warning disable CS1591 + Disabled, + #pragma warning restore CS1591 + [EnumMember(Value = "not_set")] + #pragma warning disable CS1591 + Not_set, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options.cs new file mode 100644 index 00000000..1b833493 --- /dev/null +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options.cs @@ -0,0 +1,66 @@ +// +#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.Orgs.Item.CodeSecurity.Configurations +{ + /// + /// Feature options for secret scanning delegated bypass + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_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 bypass reviewers for secret scanning delegated bypass +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Reviewers { get; set; } +#nullable restore +#else + public List Reviewers { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_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.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "reviewers", n => { Reviewers = n.GetCollectionOfObjectValues(global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers.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("reviewers", Reviewers); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers.cs new file mode 100644 index 00000000..f095eec1 --- /dev/null +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers.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.Orgs.Item.CodeSecurity.Configurations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The ID of the team or role selected as a bypass reviewer + public int? ReviewerId { get; set; } + /// The type of the bypass reviewer + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type? ReviewerType { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers() + { + 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.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "reviewer_id", n => { ReviewerId = n.GetIntValue(); } }, + { "reviewer_type", n => { ReviewerType = 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.WriteIntValue("reviewer_id", ReviewerId); + writer.WriteEnumValue("reviewer_type", ReviewerType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs new file mode 100644 index 00000000..cbd1909f --- /dev/null +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs @@ -0,0 +1,19 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Orgs.Item.CodeSecurity.Configurations +{ + /// The type of the bypass reviewer + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum ConfigurationsPostRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type + { + [EnumMember(Value = "TEAM")] + #pragma warning disable CS1591 + TEAM, + #pragma warning restore CS1591 + [EnumMember(Value = "ROLE")] + #pragma warning disable CS1591 + ROLE, + #pragma warning restore CS1591 + } +} 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 5f283286..66811bcf 100644 --- a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody.cs @@ -54,6 +54,16 @@ public partial class WithConfiguration_PatchRequestBody : IParsable public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_private_vulnerability_reporting? PrivateVulnerabilityReporting { get; set; } /// The enablement status of secret scanning public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning? SecretScanning { get; set; } + /// The enablement status of secret scanning delegated bypass + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass? SecretScanningDelegatedBypass { get; set; } + /// Feature options for secret scanning delegated bypass +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options? SecretScanningDelegatedBypassOptions { get; set; } +#nullable restore +#else + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options SecretScanningDelegatedBypassOptions { get; set; } +#endif /// The enablement status of secret scanning non-provider patterns public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_non_provider_patterns? SecretScanningNonProviderPatterns { get; set; } /// The enablement status of secret scanning push protection @@ -90,6 +100,8 @@ public virtual IDictionary> GetFieldDeserializers() { "name", n => { Name = n.GetStringValue(); } }, { "private_vulnerability_reporting", n => { PrivateVulnerabilityReporting = n.GetEnumValue(); } }, { "secret_scanning", n => { SecretScanning = n.GetEnumValue(); } }, + { "secret_scanning_delegated_bypass", n => { SecretScanningDelegatedBypass = n.GetEnumValue(); } }, + { "secret_scanning_delegated_bypass_options", n => { SecretScanningDelegatedBypassOptions = n.GetObjectValue(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options.CreateFromDiscriminatorValue); } }, { "secret_scanning_non_provider_patterns", n => { SecretScanningNonProviderPatterns = n.GetEnumValue(); } }, { "secret_scanning_push_protection", n => { SecretScanningPushProtection = n.GetEnumValue(); } }, { "secret_scanning_validity_checks", n => { SecretScanningValidityChecks = n.GetEnumValue(); } }, @@ -114,6 +126,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("name", Name); writer.WriteEnumValue("private_vulnerability_reporting", PrivateVulnerabilityReporting); writer.WriteEnumValue("secret_scanning", SecretScanning); + writer.WriteEnumValue("secret_scanning_delegated_bypass", SecretScanningDelegatedBypass); + writer.WriteObjectValue("secret_scanning_delegated_bypass_options", SecretScanningDelegatedBypassOptions); writer.WriteEnumValue("secret_scanning_non_provider_patterns", SecretScanningNonProviderPatterns); writer.WriteEnumValue("secret_scanning_push_protection", SecretScanningPushProtection); writer.WriteEnumValue("secret_scanning_validity_checks", SecretScanningValidityChecks); diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass.cs new file mode 100644 index 00000000..b14edcac --- /dev/null +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass.cs @@ -0,0 +1,23 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ + /// The enablement status of secret scanning delegated bypass + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass + { + [EnumMember(Value = "enabled")] + #pragma warning disable CS1591 + Enabled, + #pragma warning restore CS1591 + [EnumMember(Value = "disabled")] + #pragma warning disable CS1591 + Disabled, + #pragma warning restore CS1591 + [EnumMember(Value = "not_set")] + #pragma warning disable CS1591 + Not_set, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options.cs new file mode 100644 index 00000000..436741ae --- /dev/null +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options.cs @@ -0,0 +1,66 @@ +// +#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.Orgs.Item.CodeSecurity.Configurations.Item +{ + /// + /// Feature options for secret scanning delegated bypass + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public partial class WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_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 bypass reviewers for secret scanning delegated bypass +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Reviewers { get; set; } +#nullable restore +#else + public List Reviewers { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_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.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "reviewers", n => { Reviewers = n.GetCollectionOfObjectValues(global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers.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("reviewers", Reviewers); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers.cs new file mode 100644 index 00000000..5f232505 --- /dev/null +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers.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.Orgs.Item.CodeSecurity.Configurations.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + #pragma warning disable CS1591 + public partial class WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The ID of the team or role selected as a bypass reviewer + public int? ReviewerId { get; set; } + /// The type of the bypass reviewer + public global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type? ReviewerType { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers() + { + 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.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::GitHub.Orgs.Item.CodeSecurity.Configurations.Item.WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "reviewer_id", n => { ReviewerId = n.GetIntValue(); } }, + { "reviewer_type", n => { ReviewerType = 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.WriteIntValue("reviewer_id", ReviewerId); + writer.WriteEnumValue("reviewer_type", ReviewerType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs new file mode 100644 index 00000000..c6b5b87d --- /dev/null +++ b/src/GitHub/Orgs/Item/CodeSecurity/Configurations/Item/WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type.cs @@ -0,0 +1,19 @@ +// +using System.Runtime.Serialization; +using System; +namespace GitHub.Orgs.Item.CodeSecurity.Configurations.Item +{ + /// The type of the bypass reviewer + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] + public enum WithConfiguration_PatchRequestBody_secret_scanning_delegated_bypass_options_reviewers_reviewer_type + { + [EnumMember(Value = "TEAM")] + #pragma warning disable CS1591 + TEAM, + #pragma warning restore CS1591 + [EnumMember(Value = "ROLE")] + #pragma warning disable CS1591 + ROLE, + #pragma warning restore CS1591 + } +} diff --git a/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs index ef75a555..d3556714 100644 --- a/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Orgs/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs @@ -22,7 +22,7 @@ public partial class AlertsRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/secret-scanning/alerts{?after*,before*,direction*,page*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", pathParameters) + public AlertsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/secret-scanning/alerts{?after*,before*,direction*,is_multi_repo*,is_publicly_leaked*,page*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", pathParameters) { } /// @@ -30,7 +30,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/secret-scanning/alerts{?after*,before*,direction*,page*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", rawUrl) + public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/orgs/{org}/secret-scanning/alerts{?after*,before*,direction*,is_multi_repo*,is_publicly_leaked*,page*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", rawUrl) { } /// @@ -117,6 +117,12 @@ public partial class AlertsRequestBuilderGetQueryParameters /// The direction to sort the results by. [QueryParameter("direction")] public global::GitHub.Orgs.Item.SecretScanning.Alerts.GetDirectionQueryParameterType? Direction { get; set; } + /// A boolean value representing whether or not to filter alerts by the multi-repo tag being present. + [QueryParameter("is_multi_repo")] + public bool? IsMultiRepo { get; set; } + /// A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. + [QueryParameter("is_publicly_leaked")] + public bool? IsPubliclyLeaked { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody.cs b/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody.cs index 24d678de..28109d07 100644 --- a/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody.cs +++ b/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody.cs @@ -14,7 +14,7 @@ public partial class DispatchesPostRequestBody : IAdditionalDataHolder, IParsabl { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. + /// JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::GitHub.Repos.Item.Item.Dispatches.DispatchesPostRequestBody_client_payload? ClientPayload { get; set; } diff --git a/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody_client_payload.cs b/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody_client_payload.cs index 6f002389..cfdb1569 100644 --- a/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody_client_payload.cs +++ b/src/GitHub/Repos/Item/Item/Dispatches/DispatchesPostRequestBody_client_payload.cs @@ -8,7 +8,7 @@ namespace GitHub.Repos.Item.Item.Dispatches { /// - /// JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. + /// JSON payload with extra information about the webhook event that your action or workflow may use. The maximum number of top-level properties is 10. The total size of the JSON payload must be less than 64KB. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")] public partial class DispatchesPostRequestBody_client_payload : IAdditionalDataHolder, IParsable diff --git a/src/GitHub/Repos/Item/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs b/src/GitHub/Repos/Item/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs index 63a8a865..cbc8fc64 100644 --- a/src/GitHub/Repos/Item/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs +++ b/src/GitHub/Repos/Item/Item/SecretScanning/Alerts/AlertsRequestBuilder.cs @@ -35,7 +35,7 @@ public partial class AlertsRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/secret-scanning/alerts{?after*,before*,direction*,page*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", pathParameters) + public AlertsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/secret-scanning/alerts{?after*,before*,direction*,is_multi_repo*,is_publicly_leaked*,page*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", pathParameters) { } /// @@ -43,7 +43,7 @@ public AlertsRequestBuilder(Dictionary pathParameters, IRequestA /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/secret-scanning/alerts{?after*,before*,direction*,page*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", rawUrl) + public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/repos/{owner%2Did}/{repo%2Did}/secret-scanning/alerts{?after*,before*,direction*,is_multi_repo*,is_publicly_leaked*,page*,per_page*,resolution*,secret_type*,sort*,state*,validity*}", rawUrl) { } /// @@ -128,6 +128,12 @@ public partial class AlertsRequestBuilderGetQueryParameters /// The direction to sort the results by. [QueryParameter("direction")] public global::GitHub.Repos.Item.Item.SecretScanning.Alerts.GetDirectionQueryParameterType? Direction { get; set; } + /// A boolean value representing whether or not to filter alerts by the multi-repo tag being present. + [QueryParameter("is_multi_repo")] + public bool? IsMultiRepo { get; set; } + /// A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. + [QueryParameter("is_publicly_leaked")] + public bool? IsPubliclyLeaked { get; set; } /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." [QueryParameter("page")] public int? Page { get; set; } diff --git a/src/GitHub/kiota-lock.json b/src/GitHub/kiota-lock.json index d6e96300..08ebd789 100644 --- a/src/GitHub/kiota-lock.json +++ b/src/GitHub/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "1D4E89D2F43CDCE39984BE8F819BDB770C949A1A91FAC0C618342F93E2FA9215740C2DF72380E2A508CCFE8E1600821CD146D583F0EAACF7F72A604532E37DD4", + "descriptionHash": "1BE36A1771EA03136F2F851BFC7063AFA249BB1CB9E594A8C15D605552653509B8A83C3252130722571B43E27E9EB337E320713A87DA1359343BBF29BBA0E385", "descriptionLocation": "../../../../../schemas/ghec.json", "lockFileVersion": "1.0.0", "kiotaVersion": "1.19.0",