Skip to content

Commit

Permalink
Releasing version 96.1.0
Browse files Browse the repository at this point in the history
Releasing version 96.1.0
  • Loading branch information
oci-dex-release-bot authored Oct 1, 2024
2 parents e8dbf97 + a00d1d9 commit eb51d06
Show file tree
Hide file tree
Showing 253 changed files with 10,779 additions and 107 deletions.
1 change: 0 additions & 1 deletion Adm/models/WorkRequestResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public class WorkRequestResource
/// Additional information that helps to explain the resource.
/// </value>
[JsonProperty(PropertyName = "metadata")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Collections.Generic.Dictionary<string, string> Metadata { get; set; }

}
Expand Down
1 change: 0 additions & 1 deletion Aidocument/models/WorkRequestResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public class WorkRequestResource
/// Additional information that helps to explain the resource.
/// </value>
[JsonProperty(PropertyName = "metadata")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Collections.Generic.Dictionary<string, string> Metadata { get; set; }

}
Expand Down
20 changes: 14 additions & 6 deletions Announcementsservice/models/BaseAnnouncement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public enum TimeOneTypeEnum {
/// Example: START_TIME
/// </value>
[JsonProperty(PropertyName = "timeOneType")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<TimeOneTypeEnum> TimeOneType { get; set; }

/// <value>
Expand Down Expand Up @@ -124,7 +124,7 @@ public enum TimeTwoTypeEnum {
/// Example: END_TIME
/// </value>
[JsonProperty(PropertyName = "timeTwoType")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<TimeTwoTypeEnum> TimeTwoType { get; set; }

/// <value>
Expand Down Expand Up @@ -198,7 +198,7 @@ public enum AnnouncementTypeEnum {
/// </remarks>
[Required(ErrorMessage = "AnnouncementType is required.")]
[JsonProperty(PropertyName = "announcementType")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<AnnouncementTypeEnum> AnnouncementType { get; set; }
///
/// <value>
Expand All @@ -220,7 +220,7 @@ public enum LifecycleStateEnum {
/// </remarks>
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<LifecycleStateEnum> LifecycleState { get; set; }

/// <value>
Expand Down Expand Up @@ -273,7 +273,7 @@ public enum PlatformTypeEnum {
///
/// </value>
[JsonProperty(PropertyName = "platformType")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<PlatformTypeEnum> PlatformType { get; set; }

/// <value>
Expand All @@ -286,6 +286,7 @@ public enum PlatformTypeEnum {

public class BaseAnnouncementModelConverter : JsonConverter
{
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
public override bool CanWrite => false;
public override bool CanRead => true;
public override bool CanConvert(System.Type type)
Expand All @@ -311,7 +312,14 @@ public override object ReadJson(JsonReader reader, System.Type objectType, objec
obj = new Announcement();
break;
}
serializer.Populate(jsonObject.CreateReader(), obj);
if (obj != null)
{
serializer.Populate(jsonObject.CreateReader(), obj);
}
else
{
logger.Warn($"The type {discriminator} is not present under BaseAnnouncement! Returning null value.");
}
return obj;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public enum PreferenceTypeEnum {
/// </remarks>
[Required(ErrorMessage = "PreferenceType is required.")]
[JsonProperty(PropertyName = "preferenceType")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<PreferenceTypeEnum> PreferenceType { get; set; }

/// <value>
Expand All @@ -73,6 +73,7 @@ public enum PreferenceTypeEnum {

public class BaseCreateAnnouncementsPreferencesDetailsModelConverter : JsonConverter
{
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
public override bool CanWrite => false;
public override bool CanRead => true;
public override bool CanConvert(System.Type type)
Expand All @@ -98,7 +99,14 @@ public override object ReadJson(JsonReader reader, System.Type objectType, objec
obj = new UpdateAnnouncementsPreferencesDetails();
break;
}
serializer.Populate(jsonObject.CreateReader(), obj);
if (obj != null)
{
serializer.Populate(jsonObject.CreateReader(), obj);
}
else
{
logger.Warn($"The type {discriminator} is not present under BaseCreateAnnouncementsPreferencesDetails! Returning null value.");
}
return obj;
}
}
Expand Down
16 changes: 12 additions & 4 deletions Announcementsservice/models/BaseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class BaseService
/// </remarks>
[Required(ErrorMessage = "PlatformType is required.")]
[JsonProperty(PropertyName = "platformType")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<PlatformType> PlatformType { get; set; }

/// <value>
Expand All @@ -82,7 +82,7 @@ public class BaseService
/// </remarks>
[Required(ErrorMessage = "CommsManagerName is required.")]
[JsonProperty(PropertyName = "commsManagerName")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<CommsManagerName> CommsManagerName { get; set; }

/// <value>
Expand Down Expand Up @@ -132,13 +132,14 @@ public enum LifecycleStateEnum {
/// Current state of the service object.
/// </value>
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<LifecycleStateEnum> LifecycleState { get; set; }

}

public class BaseServiceModelConverter : JsonConverter
{
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
public override bool CanWrite => false;
public override bool CanRead => true;
public override bool CanConvert(System.Type type)
Expand Down Expand Up @@ -167,7 +168,14 @@ public override object ReadJson(JsonReader reader, System.Type objectType, objec
obj = new NotificationsSummary();
break;
}
serializer.Populate(jsonObject.CreateReader(), obj);
if (obj != null)
{
serializer.Populate(jsonObject.CreateReader(), obj);
}
else
{
logger.Warn($"The type {discriminator} is not present under BaseService! Returning null value.");
}
return obj;
}
}
Expand Down
5 changes: 4 additions & 1 deletion Apigateway/models/BodyValidationRequestPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public class BodyValidationRequestPolicy
/// </value>
///
public enum ValidationModeEnum {
/// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
[EnumMember(Value = null)]
UnknownEnumValue,
[EnumMember(Value = "ENFORCING")]
Enforcing,
[EnumMember(Value = "PERMISSIVE")]
Expand All @@ -83,7 +86,7 @@ public enum ValidationModeEnum {
///
/// </value>
[JsonProperty(PropertyName = "validationMode")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<ValidationModeEnum> ValidationMode { get; set; }

}
Expand Down
5 changes: 4 additions & 1 deletion Apigateway/models/HeaderValidationRequestPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public class HeaderValidationRequestPolicy
/// </value>
///
public enum ValidationModeEnum {
/// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
[EnumMember(Value = null)]
UnknownEnumValue,
[EnumMember(Value = "ENFORCING")]
Enforcing,
[EnumMember(Value = "PERMISSIVE")]
Expand All @@ -59,7 +62,7 @@ public enum ValidationModeEnum {
///
/// </value>
[JsonProperty(PropertyName = "validationMode")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<ValidationModeEnum> ValidationMode { get; set; }

}
Expand Down
5 changes: 4 additions & 1 deletion Apigateway/models/ValidationRequestPolicy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ public class ValidationRequestPolicy
/// </value>
///
public enum ValidationModeEnum {
/// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
[EnumMember(Value = null)]
UnknownEnumValue,
[EnumMember(Value = "ENFORCING")]
Enforcing,
[EnumMember(Value = "PERMISSIVE")]
Expand All @@ -56,7 +59,7 @@ public enum ValidationModeEnum {
///
/// </value>
[JsonProperty(PropertyName = "validationMode")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<ValidationModeEnum> ValidationMode { get; set; }

}
Expand Down
2 changes: 1 addition & 1 deletion Apmcontrolplane/models/BaseDomainDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class BaseDomainDetails
/// The current lifecycle state of the APM domain.
/// </value>
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<LifecycleStates> LifecycleState { get; set; }

/// <value>
Expand Down
2 changes: 1 addition & 1 deletion Apmcontrolplane/models/BaseKeyDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class BaseKeyDetails
/// </remarks>
[Required(ErrorMessage = "Type is required.")]
[JsonProperty(PropertyName = "type")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<DataKeyTypes> Type { get; set; }

}
Expand Down
5 changes: 4 additions & 1 deletion Blockchain/models/AvailabilityDomain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class AvailabilityDomain
/// </value>
///
public enum AdsEnum {
/// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
[EnumMember(Value = null)]
UnknownEnumValue,
[EnumMember(Value = "AD1")]
Ad1,
[EnumMember(Value = "AD2")]
Expand All @@ -38,7 +41,7 @@ public enum AdsEnum {
/// Availability Domain Identifiers
/// </value>
[JsonProperty(PropertyName = "ads")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<AdsEnum> Ads { get; set; }

}
Expand Down
5 changes: 4 additions & 1 deletion Blockchain/models/PeerRole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class PeerRole
/// </value>
///
public enum RoleEnum {
/// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
[EnumMember(Value = null)]
UnknownEnumValue,
[EnumMember(Value = "MEMBER")]
Member,
[EnumMember(Value = "ADMIN")]
Expand All @@ -36,7 +39,7 @@ public enum RoleEnum {
/// Peer role names
/// </value>
[JsonProperty(PropertyName = "role")]
[JsonConverter(typeof(StringEnumConverter))]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<RoleEnum> Role { get; set; }

}
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ The format is based on Keep a [Changelog](http://keepachangelog.com/).
### Breaking Changes
- The property `Credentials` was made required in the model `CreateDbSystemDetails` in the PostgreSQL service

## 96.1.0 - 2024-10-01
### Added
- Support for calling Oracle Cloud Infrastructure services in the us-somerset-1 region
- Support for calling Oracle Cloud Infrastructure services in the us-thames-1 region
- Support for Security Attribute service
- Support for Zero Trust Packet Routing service
- Support for zero trust packet routing security attributes in the Database service
- Support for zero trust packet routing security attributes in the Networking service
- Support for zero trust packet routing security attributes in the Network Load Balancer service
- Support for disaster recovery failover in the Integration Cloud service

### Fixed
- WorkRequest responses with the `Metadata` field no longer fail while parsing

## 96.0.0 - 2024-09-24
### Added
- Support for Generative AI Agent service
Expand Down
1 change: 0 additions & 1 deletion Cloudbridge/models/WorkRequestResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public class WorkRequestResource
/// Additional information that helps to explain the resource.
/// </value>
[JsonProperty(PropertyName = "metadata")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Collections.Generic.Dictionary<string, string> Metadata { get; set; }

}
Expand Down
1 change: 0 additions & 1 deletion Cloudguard/models/WorkRequestResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public class WorkRequestResource
/// Additional information that helps to explain the resource
/// </value>
[JsonProperty(PropertyName = "metadata")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Collections.Generic.Dictionary<string, string> Metadata { get; set; }

}
Expand Down
1 change: 0 additions & 1 deletion Clusterplacementgroups/models/WorkRequestResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public class WorkRequestResource
/// Additional information that helps to explain the resource.
/// </value>
[JsonProperty(PropertyName = "metadata")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Collections.Generic.Dictionary<string, string> Metadata { get; set; }

}
Expand Down
1 change: 1 addition & 0 deletions Common/Src/RealmDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ public partial class Realm
public static readonly Realm OC26 = new Realm("oc26", "oraclecloud26.com");
public static readonly Realm OC15 = new Realm("oc15", "oraclecloud15.com");
public static readonly Realm OC29 = new Realm("oc29", "oraclecloud29.com");
public static readonly Realm OC23 = new Realm("oc23", "oraclecloud23.com");
}
}
4 changes: 4 additions & 0 deletions Common/Src/RegionDefinitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ public partial class Region
// OC21
public static readonly Region ME_DCC_DOHA_1 = Register("me-dcc-doha-1", Realm.OC21, "doh");

// OC23
public static readonly Region US_SOMERSET_1 = Register("us-somerset-1", Realm.OC23, "ebb");
public static readonly Region US_THAMES_1 = Register("us-thames-1", Realm.OC23, "ebl");

// OC24
public static readonly Region EU_DCC_ZURICH_1 = Register("eu-dcc-zurich-1", Realm.OC24, "avz");
public static readonly Region EU_CRISSIER_1 = Register("eu-crissier-1", Realm.OC24, "avf");
Expand Down
2 changes: 1 addition & 1 deletion Common/Src/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Oci.Common
public class Version
{
public static string MAJOR = "96";
public static string MINOR = "0";
public static string MINOR = "1";
public static string PATCH = "0";
public static string TAG = "";

Expand Down
12 changes: 12 additions & 0 deletions Commontests/Regions.json
Original file line number Diff line number Diff line change
Expand Up @@ -400,5 +400,17 @@
"realmKey": "oc24",
"regionIdentifier": "eu-crissier-1",
"realmDomainComponent": "oraclecloud24.com"
},
{
"regionKey": "ebb",
"realmKey": "oc23",
"regionIdentifier": "us-somerset-1",
"realmDomainComponent": "oraclecloud23.com"
},
{
"regionKey": "ebl",
"realmKey": "oc23",
"regionIdentifier": "us-thames-1",
"realmDomainComponent": "oraclecloud23.com"
}
]
6 changes: 6 additions & 0 deletions Core/ComputeClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3623,6 +3623,12 @@ public async Task<InstanceActionResponse> InstanceAction(InstanceActionRequest r
/// with the signature. To get the image ID for the LaunchInstance operation, call
/// {@link #getAppCatalogListingResourceVersion(GetAppCatalogListingResourceVersionRequest) getAppCatalogListingResourceVersion}.
/// &lt;br/&gt;
/// When launching an instance, you may provide the &#x60;securityAttributes&#x60; parameter in
/// {@link LaunchInstanceDetails} to manage security attributes via the instance,
/// or in the embedded {@link CreateVnicDetails} to manage security attributes
/// via the VNIC directly, but not both. Providing &#x60;securityAttributes&#x60; in both locations will return a
/// 400 Bad Request response.
/// &lt;br/&gt;
/// To determine whether capacity is available for a specific shape before you create an instance,
/// use the {@link #createComputeCapacityReport(CreateComputeCapacityReportRequest) createComputeCapacityReport}
/// operation.
Expand Down
Loading

0 comments on commit eb51d06

Please sign in to comment.