Skip to content

Commit

Permalink
Releasing version 69.1.0
Browse files Browse the repository at this point in the history
Releasing version 69.1.0
  • Loading branch information
oci-dex-release-bot committed Aug 15, 2023
2 parents bfea9df + d122612 commit 1bc9725
Show file tree
Hide file tree
Showing 47 changed files with 494 additions and 74 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on Keep a [Changelog](http://keepachangelog.com/).

## 69.1.0 - 2023-08-15
### Added
- Support for credential stores, including Single Sign-On support, for deployments in the GoldenGate service
- Support for container security contexts in the Container Instances service
- Support for placement constraints and cluster configurations on cluster networks in the Compute service

## 69.0.0 - 2023-08-08
### Added
- Support for backup retention on autonomous database create operations in the Database service
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 = "69";
public static string MINOR = "0";
public static string MINOR = "1";
public static string PATCH = "0";
public static string TAG = "";

Expand Down
3 changes: 3 additions & 0 deletions Containerinstances/models/Container.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,5 +258,8 @@ public enum LifecycleStateEnum {
[JsonProperty(PropertyName = "containerRestartAttemptCount")]
public System.Nullable<int> ContainerRestartAttemptCount { get; set; }

[JsonProperty(PropertyName = "securityContext")]
public SecurityContext SecurityContext { get; set; }

}
}
2 changes: 1 addition & 1 deletion Containerinstances/models/ContainerConfigFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
namespace Oci.ContainerinstancesService.Models
{
/// <summary>
/// The file that is mounted on a container instance through a volume mount.
/// The file that is mounted on a container instance through a volume mount.
///
/// </summary>
public class ContainerConfigFile
Expand Down
2 changes: 1 addition & 1 deletion Containerinstances/models/ContainerEmptyDirVolume.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
namespace Oci.ContainerinstancesService.Models
{
/// <summary>
/// The empty directory of container.
/// The empty directory volume of a container instance. You can create up to 64 EmptyDir per container instance.
/// </summary>
public class ContainerEmptyDirVolume : ContainerVolume
{
Expand Down
3 changes: 3 additions & 0 deletions Containerinstances/models/ContainerSummary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,8 @@ public class ContainerSummary
[JsonProperty(PropertyName = "isResourcePrincipalDisabled")]
public System.Nullable<bool> IsResourcePrincipalDisabled { get; set; }

[JsonProperty(PropertyName = "securityContext")]
public SecurityContext SecurityContext { get; set; }

}
}
4 changes: 3 additions & 1 deletion Containerinstances/models/CreateContainerDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public class CreateContainerDetails

/// <value>
/// A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
/// <br/>
/// If you don't provide a name, a name is generated automatically.
///
/// </value>
Expand Down Expand Up @@ -121,6 +120,9 @@ public class CreateContainerDetails
[JsonProperty(PropertyName = "healthChecks")]
public System.Collections.Generic.List<CreateContainerHealthCheckDetails> HealthChecks { get; set; }

[JsonProperty(PropertyName = "securityContext")]
public CreateSecurityContextDetails SecurityContext { get; set; }

/// <value>
/// Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
/// Example: {&quot;bar-key&quot;: &quot;value&quot;}
Expand Down
53 changes: 53 additions & 0 deletions Containerinstances/models/CreateLinuxSecurityContextDetails.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/

// NOTE: Code generated by OracleSDKGenerator.
// DO NOT EDIT this file manually.


using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;


namespace Oci.ContainerinstancesService.Models
{
/// <summary>
/// Security context for Linux container.
/// </summary>
public class CreateLinuxSecurityContextDetails : CreateSecurityContextDetails
{

/// <value>
/// The user ID (UID) to run the entrypoint process of the container. Defaults to user specified UID in container image metadata if not provided. This must be provided if runAsGroup is provided.
///
/// </value>
[JsonProperty(PropertyName = "runAsUser")]
public System.Nullable<int> RunAsUser { get; set; }

/// <value>
/// The group ID (GID) to run the entrypoint process of the container. Uses runtime default if not provided.
/// </value>
[JsonProperty(PropertyName = "runAsGroup")]
public System.Nullable<int> RunAsGroup { get; set; }

/// <value>
/// Indicates if the container must run as a non-root user. If true, the service validates the container image at runtime to ensure that it is not going to run with UID 0 (root) and fails the container instance creation if the validation fails.
///
/// </value>
[JsonProperty(PropertyName = "isNonRootUserCheckEnabled")]
public System.Nullable<bool> IsNonRootUserCheckEnabled { get; set; }

/// <value>
/// Determines if the container will have a read-only root file system. Default value is false.
/// </value>
[JsonProperty(PropertyName = "isRootFileSystemReadonly")]
public System.Nullable<bool> IsRootFileSystemReadonly { get; set; }

[JsonProperty(PropertyName = "securityContextType")]
private readonly string securityContextType = "LINUX";
}
}
56 changes: 56 additions & 0 deletions Containerinstances/models/CreateSecurityContextDetails.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/*
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/

// NOTE: Code generated by OracleSDKGenerator.
// DO NOT EDIT this file manually.


using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;

namespace Oci.ContainerinstancesService.Models
{
/// <summary>
/// Security context for container.
/// </summary>
[JsonConverter(typeof(CreateSecurityContextDetailsModelConverter))]
public class CreateSecurityContextDetails
{


}

public class CreateSecurityContextDetailsModelConverter : JsonConverter
{
public override bool CanWrite => false;
public override bool CanRead => true;
public override bool CanConvert(System.Type type)
{
return type == typeof(CreateSecurityContextDetails);
}
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
throw new System.InvalidOperationException("Use default serialization.");
}

public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer)
{
var jsonObject = JObject.Load(reader);
var obj = default(CreateSecurityContextDetails);
var discriminator = jsonObject["securityContextType"].Value<string>();
switch (discriminator)
{
case "LINUX":
obj = new CreateLinuxSecurityContextDetails();
break;
}
serializer.Populate(jsonObject.CreateReader(), obj);
return obj;
}
}
}
53 changes: 53 additions & 0 deletions Containerinstances/models/LinuxSecurityContext.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/

// NOTE: Code generated by OracleSDKGenerator.
// DO NOT EDIT this file manually.


using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;


namespace Oci.ContainerinstancesService.Models
{
/// <summary>
/// Security context for Linux container.
/// </summary>
public class LinuxSecurityContext : SecurityContext
{

/// <value>
/// The user ID (UID) to run the entrypoint process of the container. Defaults to user specified UID in container image metadata if not provided. This must be provided if runAsGroup is provided.
///
/// </value>
[JsonProperty(PropertyName = "runAsUser")]
public System.Nullable<int> RunAsUser { get; set; }

/// <value>
/// The group ID (GID) to run the entrypoint process of the container. Uses runtime default if not provided.
/// </value>
[JsonProperty(PropertyName = "runAsGroup")]
public System.Nullable<int> RunAsGroup { get; set; }

/// <value>
/// Indicates if the container must run as a non-root user. If true, the service validates the container image at runtime to ensure that it is not going to run with UID 0 (root) and fails the container instance creation if the validation fails.
///
/// </value>
[JsonProperty(PropertyName = "isNonRootUserCheckEnabled")]
public System.Nullable<bool> IsNonRootUserCheckEnabled { get; set; }

/// <value>
/// Determines if the container will have a read-only root file system. Default value is false.
/// </value>
[JsonProperty(PropertyName = "isRootFileSystemReadonly")]
public System.Nullable<bool> IsRootFileSystemReadonly { get; set; }

[JsonProperty(PropertyName = "securityContextType")]
private readonly string securityContextType = "LINUX";
}
}
73 changes: 73 additions & 0 deletions Containerinstances/models/SecurityContext.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/

// NOTE: Code generated by OracleSDKGenerator.
// DO NOT EDIT this file manually.


using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;

namespace Oci.ContainerinstancesService.Models
{
/// <summary>
/// Security context for container.
/// </summary>
[JsonConverter(typeof(SecurityContextModelConverter))]
public class SecurityContext
{
///
/// <value>
/// The type of security context
/// </value>
///
public enum SecurityContextTypeEnum {
[EnumMember(Value = "LINUX")]
Linux
};


}

public class SecurityContextModelConverter : 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)
{
return type == typeof(SecurityContext);
}
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
throw new System.InvalidOperationException("Use default serialization.");
}

public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer)
{
var jsonObject = JObject.Load(reader);
var obj = default(SecurityContext);
var discriminator = jsonObject["securityContextType"].Value<string>();
switch (discriminator)
{
case "LINUX":
obj = new LinuxSecurityContext();
break;
}
if (obj != null)
{
serializer.Populate(jsonObject.CreateReader(), obj);
}
else
{
logger.Warn($"The type {discriminator} is not present under SecurityContext! Returning null value.");
}
return obj;
}
}
}
10 changes: 5 additions & 5 deletions Core/VirtualNetworkClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public async Task<AddDrgRouteRulesResponse> AddDrgRouteRules(AddDrgRouteRulesReq
}

/// <summary>
/// Add an IPv6 CIDR to a subnet.
/// Add an IPv6 prefix to a subnet.
///
/// </summary>
/// <param name="request">The request object containing the details to send. Required.</param>
Expand Down Expand Up @@ -244,8 +244,8 @@ public async Task<AddIpv6SubnetCidrResponse> AddIpv6SubnetCidr(AddIpv6SubnetCidr
}

/// <summary>
/// Add an IPv6 CIDR to a VCN. The VCN size is always /56 and assigned by Oracle.
/// Once added the IPv6 CIDR block cannot be removed or modified.
/// Add an IPv6 prefix to a VCN. The VCN size is always /56 and assigned by Oracle.
/// Once added the IPv6 prefix cannot be removed or modified.
///
/// </summary>
/// <param name="request">The request object containing the details to send. Required.</param>
Expand Down Expand Up @@ -12032,7 +12032,7 @@ public async Task<RemoveImportDrgRouteDistributionResponse> RemoveImportDrgRoute
}

/// <summary>
/// Remove an IPv6 CIDR from a subnet. At least one IPv6 CIDR should remain.
/// Remove an IPv6 prefix from a subnet. At least one IPv6 CIDR should remain.
///
/// </summary>
/// <param name="request">The request object containing the details to send. Required.</param>
Expand Down Expand Up @@ -12089,7 +12089,7 @@ public async Task<RemoveIpv6SubnetCidrResponse> RemoveIpv6SubnetCidr(RemoveIpv6S
}

/// <summary>
/// Removing an existing IPv6 CIDR from a VCN.
/// Removing an existing IPv6 prefix from a VCN.
///
/// </summary>
/// <param name="request">The request object containing the details to send. Required.</param>
Expand Down
2 changes: 1 addition & 1 deletion Core/models/AddDrgRouteRuleDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public enum DestinationTypeEnum {
/// traffic. Only CIDR_BLOCK values are allowed.
/// <br/>
/// Potential values:
/// * IP address range in CIDR notation. This can be an IPv4 or IPv6 CIDR. For Example: 192.168.1.0/24 or 2001:0db8:0123:45::/56.
/// * IP address range in CIDR notation. This can be an IPv4 CIDR block or IPv6 prefix. For Example: 192.168.1.0/24 or 2001:0db8:0123:45::/56.
/// </value>
/// <remarks>
/// Required
Expand Down
4 changes: 2 additions & 2 deletions Core/models/AddSubnetIpv6CidrDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
namespace Oci.CoreService.Models
{
/// <summary>
/// Details used when adding an IPv6 CIDR block to a subnet.
/// Details used when adding an IPv6 prefix to a subnet.
/// </summary>
public class AddSubnetIpv6CidrDetails
{

/// <value>
/// This field is not required and should only be specified when adding an IPv6 CIDR
/// This field is not required and should only be specified when adding an IPv6 prefix
/// to a subnet's IPv6 address space.
/// See[IPv6 Addresses](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm).
/// <br/>
Expand Down
2 changes: 1 addition & 1 deletion Core/models/ByoipRange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class ByoipRange
public string Id { get; set; }

/// <value>
/// The IPv6 CIDR block being imported to the Oracle cloud. This CIDR block must be /48 or larger, and can be subdivided into sub-ranges used
/// The IPv6 prefix being imported to the Oracle cloud. This prefix must be /48 or larger, and can be subdivided into sub-ranges used
/// across multiple VCNs. A BYOIPv6 prefix can be also assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify
/// a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size.
///
Expand Down
2 changes: 1 addition & 1 deletion Core/models/ByoipRangeSummary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class ByoipRangeSummary
public string Id { get; set; }

/// <value>
/// The IPv6 CIDR block being imported to the Oracle cloud. This CIDR block must be /48 or larger, and can be subdivided into sub-ranges used
/// The IPv6 prefix being imported to the Oracle cloud. This prefix must be /48 or larger, and can be subdivided into sub-ranges used
/// across multiple VCNs. A BYOIPv6 prefix can be assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify
/// a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size.
///
Expand Down

0 comments on commit 1bc9725

Please sign in to comment.