Skip to content

Commit

Permalink
Releasing version 56.1.0
Browse files Browse the repository at this point in the history
Releasing version 56.1.0
  • Loading branch information
oci-dex-release-bot committed Mar 28, 2023
2 parents 4f4ca1d + a211709 commit e501ccd
Show file tree
Hide file tree
Showing 51 changed files with 2,162 additions and 5 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.

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

## 56.1.0 - 2023-03-28
### Added
- Support for ACD and OKV wallet naming for autonomous databases and dedicated autonomous databases on Exadata Cloud at Customer in the Database service
- Support for validating the credentials of a connection in the DevOps service
- Support for GoldenGate Replicat performance profiles when creating a migration in the Database Migration service
- Support for connection diagnostics on registered databases in the Database Migration service
- Support for launching bare metal instances in an RDMA network in the Compute service

### Fixed
- Fixed an issue which prevented SessionTokenAuthenticationDetailsProvider to work with non-OC1 Regions

## 56.0.0 - 2023-03-21
### Added
- Support for backup automation integration with the Database Recovery service in the Database service
Expand Down
5 changes: 4 additions & 1 deletion Common/Src/Auth/SessionTokenAuthenticationDetailsProvider.cs
Expand Up @@ -39,7 +39,10 @@ public string Refresh()
{
var signer = new DefaultRequestSigner(this);
client = new HttpClient();
var url = $"https://auth.{Region.RegionId}.oraclecloud.com/v1/authentication/refresh";

var url = $"{Region.FormatDefaultRegionEndpoint(new Service { ServiceName = "auth", ServiceEndpointPrefix = "auth" }, this.Region)}/v1/authentication/refresh";
logger.Debug($"Url generated for Session Refresh:{url}");

var httpRequest = new HttpRequestMessage(HttpMethod.Post, new Uri(url));
var requestBody = new SessionTokenRequest(this.sessionToken);
httpRequest.Content = ContentHelper.CreateHttpContent(requestBody);
Expand Down
2 changes: 1 addition & 1 deletion Common/Src/Version.cs
Expand Up @@ -8,7 +8,7 @@ namespace Oci.Common
public class Version
{
public static string MAJOR = "56";
public static string MINOR = "0";
public static string MINOR = "1";
public static string PATCH = "0";
public static string TAG = "";

Expand Down
352 changes: 352 additions & 0 deletions Core/ComputeClient.cs

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions Core/ComputePaginators.cs
Expand Up @@ -392,6 +392,55 @@ public IEnumerable<ComputeCapacityReservationSummary> ListComputeCapacityReserva
);
}

/// <summary>
/// Creates a new enumerable which will iterate over the responses received from the ListComputeClusters operation. This enumerable
/// will fetch more data from the server as needed.
/// </summary>
/// <param name="request">The request object containing the details to send</param>
/// <param name="retryConfiguration">The configuration for retrying, may be null</param>
/// <param name="cancellationToken">The cancellation token object</param>
/// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
public IEnumerable<ListComputeClustersResponse> ListComputeClustersResponseEnumerator(ListComputeClustersRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
{
return new Common.Utils.ResponseEnumerable<ListComputeClustersRequest, ListComputeClustersResponse>(
response => response.OpcNextPage,
input =>
{
if (!string.IsNullOrEmpty(input))
{
request.Page = input;
}
return request;
},
request => client.ListComputeClusters(request, retryConfiguration, cancellationToken)
);
}

/// <summary>
/// Creates a new enumerable which will iterate over the ComputeClusterSummary objects
/// contained in responses from the ListComputeClusters operation. This enumerable will fetch more data from the server as needed.
/// </summary>
/// <param name="request">The request object containing the details to send</param>
/// <param name="retryConfiguration">The configuration for retrying, may be null</param>
/// <param name="cancellationToken">The cancellation token object</param>
/// <returns>The enumerator, which supports a simple iteration over a collection of a specified type</returns>
public IEnumerable<ComputeClusterSummary> ListComputeClustersRecordEnumerator(ListComputeClustersRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
{
return new Common.Utils.ResponseRecordEnumerable<ListComputeClustersRequest, ListComputeClustersResponse, ComputeClusterSummary>(
response => response.OpcNextPage,
input =>
{
if (!string.IsNullOrEmpty(input))
{
request.Page = input;
}
return request;
},
request => client.ListComputeClusters(request, retryConfiguration, cancellationToken),
response => response.ComputeClusterCollection.Items
);
}

/// <summary>
/// Creates a new enumerable which will iterate over the responses received from the ListComputeGlobalImageCapabilitySchemaVersions operation. This enumerable
/// will fetch more data from the server as needed.
Expand Down
28 changes: 28 additions & 0 deletions Core/ComputeWaiters.cs
Expand Up @@ -377,6 +377,34 @@ public ComputeWaiters(ComputeClient client, Oci.WorkrequestsService.WorkRequest
/// <param name="request">Request to send.</param>
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param>
/// <returns>a new Oci.common.Waiter instance</returns>
public Waiter<GetComputeClusterRequest, GetComputeClusterResponse> ForComputeCluster(GetComputeClusterRequest request, params ComputeCluster.LifecycleStateEnum[] targetStates)
{
return this.ForComputeCluster(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates);
}

/// <summary>
/// Creates a waiter using the provided configuration.
/// </summary>
/// <param name="request">Request to send.</param>
/// <param name="config">Wait Configuration</param>
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param>
/// <returns>a new Oci.common.Waiter instance</returns>
public Waiter<GetComputeClusterRequest, GetComputeClusterResponse> ForComputeCluster(GetComputeClusterRequest request, WaiterConfiguration config, params ComputeCluster.LifecycleStateEnum[] targetStates)
{
var agent = new WaiterAgent<GetComputeClusterRequest, GetComputeClusterResponse>(
request,
request => client.GetComputeCluster(request),
response => targetStates.Contains(response.ComputeCluster.LifecycleState.Value),
targetStates.Contains(ComputeCluster.LifecycleStateEnum.Deleted)
);
return new Waiter<GetComputeClusterRequest, GetComputeClusterResponse>(config, agent);
}
/// <summary>
/// Creates a waiter using default wait configuration.
/// </summary>
/// <param name="request">Request to send.</param>
/// <param name="targetStates">Desired resource states. If multiple states are provided then the waiter will return once the resource reaches any of the provided states</param>
/// <returns>a new Oci.common.Waiter instance</returns>
public Waiter<GetConsoleHistoryRequest, GetConsoleHistoryResponse> ForConsoleHistory(GetConsoleHistoryRequest request, params ConsoleHistory.LifecycleStateEnum[] targetStates)
{
return this.ForConsoleHistory(request, WaiterConfiguration.DefaultWaiterConfiguration, targetStates);
Expand Down
36 changes: 36 additions & 0 deletions Core/models/ChangeComputeClusterCompartmentDetails.cs
@@ -0,0 +1,36 @@
/*
* 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.CoreService.Models
{
/// <summary>
/// The configuration details for the compartment to move the compute cluster to. A [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory access (RDMA) network group.
/// </summary>
public class ChangeComputeClusterCompartmentDetails
{

/// <value>
/// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the compute cluster to.
///
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }

}
}
48 changes: 48 additions & 0 deletions Core/models/ClusterConfigDetails.cs
@@ -0,0 +1,48 @@
/*
* 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.CoreService.Models
{
/// <summary>
/// The HPC cluster configuration requested when launching instances in a compute capacity reservation.
/// <br/>
/// If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you
/// specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in
/// the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error
/// is returned.
///
/// </summary>
public class ClusterConfigDetails
{

/// <value>
/// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the HpcIsland.
///
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "HpcIslandId is required.")]
[JsonProperty(PropertyName = "hpcIslandId")]
public string HpcIslandId { get; set; }

/// <value>
/// The list of OCID of the network blocks.
/// </value>
[JsonProperty(PropertyName = "networkBlockIds")]
public System.Collections.Generic.List<string> NetworkBlockIds { get; set; }

}
}
12 changes: 12 additions & 0 deletions Core/models/ClusterNetwork.cs
Expand Up @@ -44,6 +44,18 @@ public class ClusterNetwork
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }

/// <value>
/// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the hpc island used by the cluster network.
/// </value>
[JsonProperty(PropertyName = "hpcIslandId")]
public string HpcIslandId { get; set; }

/// <value>
/// The list of network block OCIDs of the HPC island.
/// </value>
[JsonProperty(PropertyName = "networkBlockIds")]
public System.Collections.Generic.List<string> NetworkBlockIds { get; set; }

/// <value>
/// Defined tags for this resource. Each key is predefined and scoped to a
/// namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
Expand Down
126 changes: 126 additions & 0 deletions Core/models/ComputeCluster.cs
@@ -0,0 +1,126 @@
/*
* 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.CoreService.Models
{
/// <summary>
/// A remote direct memory access (RDMA) network group. Compute clusters are groups
/// of high performance computing (HPC) bare metal instances that are connected with an ultra low latency network.
/// Compute clusters allow you to manage instances in the cluster individually.
/// For more information, see [Compute Clusters](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm).
/// <br/>
/// For details about cluster networks that use intance pools to manage groups of identical instances,
/// see {@link ClusterNetwork}.
///
/// </summary>
public class ComputeCluster
{

/// <value>
/// The availability domain the compute cluster is running in.
/// Example: Uocm:PHX-AD-1
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "AvailabilityDomain is required.")]
[JsonProperty(PropertyName = "availabilityDomain")]
public string AvailabilityDomain { get; set; }

/// <value>
/// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains this compute cluster.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }

/// <value>
/// A user-friendly name. Does not have to be unique, and it's changeable.
/// Avoid entering confidential information.
///
/// </value>
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }

/// <value>
/// Defined tags for this resource. Each key is predefined and scoped to a
/// namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
/// <br/>
/// Example: {&quot;Operations&quot;: {&quot;CostCenter&quot;: &quot;42&quot;}}
/// </value>
[JsonProperty(PropertyName = "definedTags")]
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, System.Object>> DefinedTags { get; set; }

/// <value>
/// Free-form tags for this resource. Each tag is a simple key-value pair with no
/// predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm).
/// <br/>
/// Example: {&quot;Department&quot;: &quot;Finance&quot;}
/// </value>
[JsonProperty(PropertyName = "freeformTags")]
public System.Collections.Generic.Dictionary<string, string> FreeformTags { get; set; }

/// <value>
/// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this compute cluster.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
///
/// <value>
/// The current state of the compute cluster.
/// </value>
///
public enum LifecycleStateEnum {
/// 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 = "ACTIVE")]
Active,
[EnumMember(Value = "DELETED")]
Deleted
};

/// <value>
/// The current state of the compute cluster.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<LifecycleStateEnum> LifecycleState { get; set; }

/// <value>
/// The date and time the compute cluster was created,
/// in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
/// Example: 2016-08-25T21:10:29.600Z
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public System.Nullable<System.DateTime> TimeCreated { get; set; }

}
}
35 changes: 35 additions & 0 deletions Core/models/ComputeClusterCollection.cs
@@ -0,0 +1,35 @@
/*
* 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.CoreService.Models
{
/// <summary>
/// A list of compute clusters that match filter criteria, if any. A [compute cluster](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory access (RDMA) network group.
/// </summary>
public class ComputeClusterCollection
{

/// <value>
/// The list of compute clusters.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "Items is required.")]
[JsonProperty(PropertyName = "items")]
public System.Collections.Generic.List<ComputeClusterSummary> Items { get; set; }

}
}

0 comments on commit e501ccd

Please sign in to comment.