Skip to content

Commit

Permalink
Releasing version 101.3.0
Browse files Browse the repository at this point in the history
Releasing version 101.3.0
  • Loading branch information
oci-dex-release-bot authored Jan 21, 2025
2 parents 66c364c + fbb1e53 commit 2c12aea
Show file tree
Hide file tree
Showing 94 changed files with 6,046 additions and 36 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ 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

## 101.3.0 - 2025-01-21
### Added
- Support for Bring Your Own ASN (BYOASN) in the Networking service
- Support for Data Guard transaction processing in the Database service
- Support for permanently disconnecting peer autonomous databases from its primary database in the Database service
- Support for databases with external Hardware Security Module (HSM) in the Database service
- Support for active and standby purist modes in the Network Load Balancer service
- Support for configurable TCP reset in the Network Load Balancer service

## 101.2.0 - 2025-01-14
### Added
- Support for attaching route tables to VNICs and private IPs in the Networking 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 = "101";
public static string MINOR = "2";
public static string MINOR = "3";
public static string PATCH = "0";
public static string TAG = "";

Expand Down
520 changes: 520 additions & 0 deletions Core/VirtualNetworkClient.cs

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions Core/VirtualNetworkPaginators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,55 @@ public IEnumerable<DrgAttachmentInfo> GetAllDrgAttachmentsRecordEnumerator(GetAl
);
}

/// <summary>
/// Creates a new enumerable which will iterate over the responses received from the ListByoasns 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<ListByoasnsResponse> ListByoasnsResponseEnumerator(ListByoasnsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
{
return new Common.Utils.ResponseEnumerable<ListByoasnsRequest, ListByoasnsResponse>(
response => response.OpcNextPage,
input =>
{
if (!string.IsNullOrEmpty(input))
{
request.Page = input;
}
return request;
},
request => client.ListByoasns(request, retryConfiguration, cancellationToken)
);
}

/// <summary>
/// Creates a new enumerable which will iterate over the ByoasnSummary objects
/// contained in responses from the ListByoasns 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<ByoasnSummary> ListByoasnsRecordEnumerator(ListByoasnsRequest request, Common.Retry.RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default)
{
return new Common.Utils.ResponseRecordEnumerable<ListByoasnsRequest, ListByoasnsResponse, ByoasnSummary>(
response => response.OpcNextPage,
input =>
{
if (!string.IsNullOrEmpty(input))
{
request.Page = input;
}
return request;
},
request => client.ListByoasns(request, retryConfiguration, cancellationToken),
response => response.ByoasnCollection.Items
);
}

/// <summary>
/// Creates a new enumerable which will iterate over the responses received from the ListByoipAllocatedRanges operation. This enumerable
/// will fetch more data from the server as needed.
Expand Down
100 changes: 100 additions & 0 deletions Core/VirtualNetworkWaiters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,34 @@ public Waiter<DeleteVtapRequest, DeleteVtapResponse> ForDeleteVtap(DeleteVtapReq
});
}

/// <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<GetByoasnRequest, GetByoasnResponse> ForByoasn(GetByoasnRequest request, params Byoasn.LifecycleStateEnum[] targetStates)
{
return this.ForByoasn(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<GetByoasnRequest, GetByoasnResponse> ForByoasn(GetByoasnRequest request, WaiterConfiguration config, params Byoasn.LifecycleStateEnum[] targetStates)
{
var agent = new WaiterAgent<GetByoasnRequest, GetByoasnResponse>(
request,
request => client.GetByoasn(request),
response => targetStates.Contains(response.Byoasn.LifecycleState.Value),
targetStates.Contains(Byoasn.LifecycleStateEnum.Deleted)
);
return new Waiter<GetByoasnRequest, GetByoasnResponse>(config, agent);
}
/// <summary>
/// Creates a waiter using default wait configuration.
/// </summary>
Expand Down Expand Up @@ -1507,6 +1535,42 @@ public Waiter<RemoveVcnCidrRequest, RemoveVcnCidrResponse> ForRemoveVcnCidr(Remo
});
}

/// <summary>
/// Creates a waiter using default wait configuration.
/// </summary>
/// <param name="request">Request to send.</param>
/// <param name="statuses">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<SetOriginAsnRequest, SetOriginAsnResponse> ForSetOriginAsn(SetOriginAsnRequest request, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates)
{
return this.ForSetOriginAsn(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<SetOriginAsnRequest, SetOriginAsnResponse> ForSetOriginAsn(SetOriginAsnRequest request, WaiterConfiguration config, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates)
{
return new Waiter<SetOriginAsnRequest, SetOriginAsnResponse>(() =>
{
var response = client.SetOriginAsn(request).Result;
if (response.OpcWorkRequestId == null)
{
return response;
}
var getWorkRequestRequest = new Oci.WorkrequestsService.Requests.GetWorkRequestRequest
{
WorkRequestId = response.OpcWorkRequestId
};
workRequestClient.Waiters.ForWorkRequest(getWorkRequestRequest, config, targetStates).Execute();
return response;
});
}

/// <summary>
/// Creates a waiter using default wait configuration.
/// </summary>
Expand Down Expand Up @@ -1579,6 +1643,42 @@ public Waiter<UpgradeDrgRequest, UpgradeDrgResponse> ForUpgradeDrg(UpgradeDrgReq
});
}

/// <summary>
/// Creates a waiter using default wait configuration.
/// </summary>
/// <param name="request">Request to send.</param>
/// <param name="statuses">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<ValidateByoasnRequest, ValidateByoasnResponse> ForValidateByoasn(ValidateByoasnRequest request, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates)
{
return this.ForValidateByoasn(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<ValidateByoasnRequest, ValidateByoasnResponse> ForValidateByoasn(ValidateByoasnRequest request, WaiterConfiguration config, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates)
{
return new Waiter<ValidateByoasnRequest, ValidateByoasnResponse>(() =>
{
var response = client.ValidateByoasn(request).Result;
if (response.OpcWorkRequestId == null)
{
return response;
}
var getWorkRequestRequest = new Oci.WorkrequestsService.Requests.GetWorkRequestRequest
{
WorkRequestId = response.OpcWorkRequestId
};
workRequestClient.Waiters.ForWorkRequest(getWorkRequestRequest, config, targetStates).Execute();
return response;
});
}

/// <summary>
/// Creates a waiter using default wait configuration.
/// </summary>
Expand Down
157 changes: 157 additions & 0 deletions Core/models/Byoasn.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
/*
* Copyright (c) 2020, 2025, 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>
/// Oracle offers the ability to Bring Your Own Autonomous System Number (BYOASN), importing AS Numbers you currently own to Oracle Cloud Infrastructure. A `Byoasn` resource is a record of the imported AS Number and also some associated metadata. The process used to [Bring Your Own ASN](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/BYOASN.htm) is explained in the documentation.
/// </summary>
public class Byoasn
{
///
/// <value>
/// The `Byoasn` resource's current state.
/// </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 = "UPDATING")]
Updating,
[EnumMember(Value = "ACTIVE")]
Active,
[EnumMember(Value = "DELETED")]
Deleted,
[EnumMember(Value = "FAILED")]
Failed,
[EnumMember(Value = "CREATING")]
Creating
};

/// <value>
/// The `Byoasn` resource's current state.
/// </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>
/// 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>
/// 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>
/// 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 the `Byoasn` resource.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }

/// <value>
/// The Autonomous System Number (ASN) you are importing to the Oracle cloud.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "Asn is required.")]
[JsonProperty(PropertyName = "asn")]
public System.Nullable<long> Asn { get; set; }

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

/// <value>
/// The date and time the `Byoasn` resource was validated, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
/// <br/>
/// Example: 2016-08-25T21:10:29.600Z
/// </value>
[JsonProperty(PropertyName = "timeValidated")]
public System.Nullable<System.DateTime> TimeValidated { get; set; }

/// <value>
/// The validation token is an internally-generated ASCII string used in the validation process. See [Importing a Byoasn](https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/BYOASN.htm) for details.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "ValidationToken is required.")]
[JsonProperty(PropertyName = "validationToken")]
public string ValidationToken { get; set; }

/// <value>
/// The date and time the `Byoasn` resource was created, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
/// <br/>
/// 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; }

/// <value>
/// The date and time the `Byoasn` resource was last updated, in the format defined by [RFC3339](https://tools.ietf.org/html/rfc3339).
/// <br/>
/// Example: 2016-08-25T21:10:29.600Z
/// </value>
[JsonProperty(PropertyName = "timeUpdated")]
public System.Nullable<System.DateTime> TimeUpdated { get; set; }

/// <value>
/// The BYOIP Ranges that has the `Byoasn` as origin.
/// </value>
[JsonProperty(PropertyName = "byoipRanges")]
public System.Collections.Generic.List<ByoasnByoipRange> ByoipRanges { get; set; }

}
}
Loading

0 comments on commit 2c12aea

Please sign in to comment.