From b95064cd549113880db10c8629be822628e0c7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Rodr=C3=ADguez?= Date: Fri, 19 Apr 2024 15:40:02 -0400 Subject: [PATCH] Prepare release 7.0.6 (#709) --- .openapi-generator/FILES | 2 ++ API_README.md | 2 +- CHANGELOG.md | 16 ++++++++++++++++ openapi3/config.json | 6 +++--- src/Okta.Sdk/Client/Configuration.cs | 4 ++-- src/Okta.Sdk/Model/IdentityProviderPolicy.cs | 2 +- src/Okta.Sdk/Obsolete/IdentityProviderPolicy.cs | 14 +++++++++++++- src/Okta.Sdk/Obsolete/PolicyApi.cs | 1 + src/Okta.Sdk/Okta.Sdk.csproj | 2 +- 9 files changed, 40 insertions(+), 9 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index a9941b6a0..550fa498f 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1778,4 +1778,6 @@ src/Okta.Sdk/Model/WellKnownOrgMetadataSettings.cs src/Okta.Sdk/Model/WsFederationApplication.cs src/Okta.Sdk/Model/WsFederationApplicationSettings.cs src/Okta.Sdk/Model/WsFederationApplicationSettingsApplication.cs +src/Okta.Sdk/Obsolete/IdentityProviderPolicy.cs +src/Okta.Sdk/Obsolete/PolicyApi.cs src/Okta.Sdk/Okta.Sdk.csproj diff --git a/API_README.md b/API_README.md index 839b41e20..ade79208c 100644 --- a/API_README.md +++ b/API_README.md @@ -5,7 +5,7 @@ Allows customers to easily access the Okta Management APIs This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 5.1.0 -- SDK version: 7.0.5 +- SDK version: 7.0.6 - Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen For more information, please visit [https://developer.okta.com/](https://developer.okta.com/) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32e437c70..c4c1acbb9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,22 @@ # Changelog Running changelog of releases since `3.1.1` +## 7.0.6 + +- Update OAS3 with the latest IdP Discovery policy changes. +- `IdentityProviderPolicy` will no longer inherit from Policy in the major release. The inheritance has been marked as obsolete. +- The following `PolicyApi` methods have been marked as obsolete, and will be removed in the next major version: + - `System.Threading.Tasks.Task CreatePolicyAsync(Policy policy, bool? activate = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));` + - `System.Threading.Tasks.Task> CreatePolicyWithHttpInfoAsync(Policy policy, bool? activate = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));` + - `System.Threading.Tasks.Task ReplacePolicyAsync(string policyId, Policy policy, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));` + - `System.Threading.Tasks.Task> ReplacePolicyWithHttpInfoAsync(string policyId, Policy policy, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));` +They will be replaced by the following ones: + - `System.Threading.Tasks.Task CreatePolicyAsync( PolicyCanBeCreatedOrReplaced policy , bool? activate = default(bool?) , System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));` + - `System.Threading.Tasks.Task> CreatePolicyWithHttpInfoAsync( PolicyCanBeCreatedOrReplaced policy , bool? activate = default(bool?) , System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));` + - `System.Threading.Tasks.Task ReplacePolicyAsync(string policyId, Policy policy, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));` + - `System.Threading.Tasks.Task> ReplacePolicyWithHttpInfoAsync(string policyId, Policy policy, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));` +- Fix "API Gap - IdP Discovery Policy Rule does not exist" issue (#687) + ## 7.0.5 - Downgrade `System.IdentityModel.Tokens*` dependencies from 7.2.0 to 6.35.0 to avoid breaking changes (#692) diff --git a/openapi3/config.json b/openapi3/config.json index 133fe4f96..60b1b1f29 100644 --- a/openapi3/config.json +++ b/openapi3/config.json @@ -6,7 +6,7 @@ "packageName" : "Okta.Sdk", "outputDir" : "../", "inputSpec" : "./management.yaml", - "packageVersion" : "7.0.5", + "packageVersion" : "7.0.6", "packageDescription" : "Official .NET SDK for the Okta API", "packageTitle" : "Official .NET SDK for the Okta API", "packageCompany" : "Okta, Inc.", @@ -102,12 +102,12 @@ "templateType": "SupportingFiles", "folder": "/src/Okta.Sdk/Model" }, - "PolicyApi.mustache":{ + "ObsoletePolicyApi.mustache":{ "destinationFilename": "PolicyApi.cs", "templateType": "SupportingFiles", "folder": "/src/Okta.Sdk/Obsolete" }, - "IdentityProviderPolicy.mustache":{ + "ObsoleteIdentityProviderPolicy.mustache":{ "destinationFilename": "IdentityProviderPolicy.cs", "templateType": "SupportingFiles", "folder": "/src/Okta.Sdk/Obsolete" diff --git a/src/Okta.Sdk/Client/Configuration.cs b/src/Okta.Sdk/Client/Configuration.cs index 0e8fa2803..25b8b461d 100644 --- a/src/Okta.Sdk/Client/Configuration.cs +++ b/src/Okta.Sdk/Client/Configuration.cs @@ -39,7 +39,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "7.0.5"; + public const string Version = "7.0.6"; /// /// Identifier for ISO 8601 DateTime Format @@ -758,7 +758,7 @@ public static string ToDebugReport() report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " Version of the API: 5.1.0\n"; - report += " SDK Package Version: 7.0.5\n"; + report += " SDK Package Version: 7.0.6\n"; return report; } diff --git a/src/Okta.Sdk/Model/IdentityProviderPolicy.cs b/src/Okta.Sdk/Model/IdentityProviderPolicy.cs index 71979f5db..c08dd0dc6 100644 --- a/src/Okta.Sdk/Model/IdentityProviderPolicy.cs +++ b/src/Okta.Sdk/Model/IdentityProviderPolicy.cs @@ -106,7 +106,7 @@ public override bool Equals(object input) /// /// Instance of IdentityProviderPolicy to be compared /// Boolean - public virtual bool Equals(IdentityProviderPolicy input) + public bool Equals(IdentityProviderPolicy input) { if (input == null) { diff --git a/src/Okta.Sdk/Obsolete/IdentityProviderPolicy.cs b/src/Okta.Sdk/Obsolete/IdentityProviderPolicy.cs index 00f532960..d16ce53cc 100644 --- a/src/Okta.Sdk/Obsolete/IdentityProviderPolicy.cs +++ b/src/Okta.Sdk/Obsolete/IdentityProviderPolicy.cs @@ -1,4 +1,16 @@ -using JsonSubTypes; + +/* + * Okta Admin Management + * + * Allows customers to easily access the Okta Management APIs + * + * The version of the OpenAPI document: 5.1.0 + * Contact: devex-public@okta.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using JsonSubTypes; using System.Runtime.Serialization; using Newtonsoft.Json; using System; diff --git a/src/Okta.Sdk/Obsolete/PolicyApi.cs b/src/Okta.Sdk/Obsolete/PolicyApi.cs index 8f92963b1..32b50a272 100644 --- a/src/Okta.Sdk/Obsolete/PolicyApi.cs +++ b/src/Okta.Sdk/Obsolete/PolicyApi.cs @@ -1,3 +1,4 @@ + /* * Okta Admin Management * diff --git a/src/Okta.Sdk/Okta.Sdk.csproj b/src/Okta.Sdk/Okta.Sdk.csproj index 27ba4da3e..c33351a56 100644 --- a/src/Okta.Sdk/Okta.Sdk.csproj +++ b/src/Okta.Sdk/Okta.Sdk.csproj @@ -12,7 +12,7 @@ Official .NET SDK for the Okta API Okta, Inc. Okta.Sdk - 7.0.5 + 7.0.6 bin\$(Configuration)\$(TargetFramework)\Okta.Sdk.xml LICENSE True