Skip to content

Commit

Permalink
Releasing version 96.0.0
Browse files Browse the repository at this point in the history
Releasing version 96.0.0
  • Loading branch information
oci-dex-release-bot authored Sep 24, 2024
2 parents 666f07c + 068365b commit e8dbf97
Show file tree
Hide file tree
Showing 324 changed files with 16,913 additions and 76 deletions.
8 changes: 8 additions & 0 deletions Analytics/models/AnalyticsInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ public class AnalyticsInstance
[JsonProperty(PropertyName = "emailNotification")]
public string EmailNotification { get; set; }

/// <value>
/// Analytics instance update channel.
///
/// </value>
[JsonProperty(PropertyName = "updateChannel")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<UpdateChannel> UpdateChannel { get; set; }

/// <remarks>
/// Required
/// </remarks>
Expand Down
8 changes: 8 additions & 0 deletions Analytics/models/CreateAnalyticsInstanceDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ public class CreateAnalyticsInstanceDetails
[JsonProperty(PropertyName = "freeformTags")]
public System.Collections.Generic.Dictionary<string, string> FreeformTags { get; set; }

/// <value>
/// Analytics instance update channel.
///
/// </value>
[JsonProperty(PropertyName = "updateChannel")]
[JsonConverter(typeof(StringEnumConverter))]
public System.Nullable<UpdateChannel> UpdateChannel { get; set; }

/// <value>
/// OCID of the OCI Vault Key encrypting the customer data stored in this Analytics instance. A null value indicates Oracle managed default encryption.
///
Expand Down
8 changes: 8 additions & 0 deletions Analytics/models/UpdateAnalyticsInstanceDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,13 @@ public class UpdateAnalyticsInstanceDetails
[JsonProperty(PropertyName = "freeformTags")]
public System.Collections.Generic.Dictionary<string, string> FreeformTags { get; set; }

/// <value>
/// Analytics instance update channel.
///
/// </value>
[JsonProperty(PropertyName = "updateChannel")]
[JsonConverter(typeof(StringEnumConverter))]
public System.Nullable<UpdateChannel> UpdateChannel { get; set; }

}
}
35 changes: 35 additions & 0 deletions Analytics/models/UpdateChannel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2020, 2024, 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;

namespace Oci.AnalyticsService.Models
{
/// <summary>
/// EARLY - Early update channel recommended for pre-production use.
/// REGULAR - Regular update channel recommended for production use.
/// PHASE_1 - Reserved for future use.
/// PHASE_2 - Reserved for future use.
///
/// </summary>
public enum UpdateChannel {
/// 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 = "REGULAR")]
Regular,
[EnumMember(Value = "EARLY")]
Early,
[EnumMember(Value = "PHASE_2")]
Phase2,
[EnumMember(Value = "PHASE_1")]
Phase1
}
}
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,23 @@ 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.0.0 - 2024-09-24
### Added
- Support for Generative AI Agent service
- Support for undeleting autonomous databases in the Database service
- Support for assigning key versions for the pluggable databases in the Database service
- Support for lifecycle states on list autonomous database operation in the Database service
- Support for data masking parameter on list refresh activity operation in the Fusion Application as a Service
- Support for configuring custom endpoints on an instance in the Integration Cloud service
- Support for updating channel schedules on instance create operation in the Analytics service
- Support for ExaCC via management agents in the Operations Insights service
- Support for appending and deleting allowed SQLs from SQL firewall policies in the Data Safe service
- Support for alarm suppressions with compartment targets and recurring schedules in the Monitoring service

### Breaking Changes
- The enum value `Standby` has been removed from the enum `LifecycleStateEnum` in the models `IntegrationInstance` and `IntegrationInstanceSummary` in the Integration Cloud service
- The enum value `Standby` has been removed from the enum `LifecycleStateEnum` in the request `ListIntegrationInstancesRequest` in the Integration Cloud service

## 95.0.0 - 2024-09-17
### Added
- Support for calling Oracle Cloud Infrastructure services in the eu-crissier-1 region
Expand Down
2 changes: 1 addition & 1 deletion Common/Src/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Oci.Common
{
public class Version
{
public static string MAJOR = "95";
public static string MAJOR = "96";
public static string MINOR = "0";
public static string PATCH = "0";
public static string TAG = "";
Expand Down
112 changes: 112 additions & 0 deletions Database/DatabaseClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19490,6 +19490,118 @@ public async Task<ScanExternalContainerDatabasePluggableDatabasesResponse> ScanE
}
}

/// <summary>
/// Sets a new version of an existing [Vault service](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) key.
/// </summary>
/// <param name="request">The request object containing the details to send. Required.</param>
/// <param name="retryConfiguration">The retry configuration that will be used by to send this request. Optional.</param>
/// <param name="cancellationToken">The cancellation token to cancel this operation. Optional.</param>
/// <param name="completionOption">The completion option for this operation. Optional.</param>
/// <returns>A response object containing details about the completed operation</returns>
/// <example>Click <a href="https://docs.cloud.oracle.com/en-us/iaas/tools/dot-net-examples/latest/database/SetDbKeyVersion.cs.html">here</a> to see an example of how to use SetDbKeyVersion API.</example>
public async Task<SetDbKeyVersionResponse> SetDbKeyVersion(SetDbKeyVersionRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
{
logger.Trace("Called setDbKeyVersion");
Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/databases/{databaseId}/actions/setKeyVersion".Trim('/')));
HttpMethod method = new HttpMethod("POST");
HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request);
requestMessage.Headers.Add("Accept", "application/json");
GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration);
HttpResponseMessage responseMessage;

try
{
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
if (retryingClient != null)
{
responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false);
}
else
{
responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false);
}
stopWatch.Stop();
ApiDetails apiDetails = new ApiDetails
{
ServiceName = "Database",
OperationName = "SetDbKeyVersion",
RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}",
ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/Database/SetDbKeyVersion",
UserAgent = this.GetUserAgent()
};
this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails);
logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms");
return Converter.FromHttpResponseMessage<SetDbKeyVersionResponse>(responseMessage);
}
catch (OciException e)
{
logger.Error(e);
throw;
}
catch (Exception e)
{
logger.Error($"SetDbKeyVersion failed with error: {e.Message}");
throw;
}
}

/// <summary>
/// Sets a new version of an existing [Vault service](https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) key.
/// </summary>
/// <param name="request">The request object containing the details to send. Required.</param>
/// <param name="retryConfiguration">The retry configuration that will be used by to send this request. Optional.</param>
/// <param name="cancellationToken">The cancellation token to cancel this operation. Optional.</param>
/// <param name="completionOption">The completion option for this operation. Optional.</param>
/// <returns>A response object containing details about the completed operation</returns>
/// <example>Click <a href="https://docs.cloud.oracle.com/en-us/iaas/tools/dot-net-examples/latest/database/SetPdbKeyVersion.cs.html">here</a> to see an example of how to use SetPdbKeyVersion API.</example>
public async Task<SetPdbKeyVersionResponse> SetPdbKeyVersion(SetPdbKeyVersionRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
{
logger.Trace("Called setPdbKeyVersion");
Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/pluggableDatabases/{pluggableDatabaseId}/actions/setKeyVersion".Trim('/')));
HttpMethod method = new HttpMethod("POST");
HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request);
requestMessage.Headers.Add("Accept", "application/json");
GenericRetrier retryingClient = Retrier.GetPreferredRetrier(retryConfiguration, this.retryConfiguration);
HttpResponseMessage responseMessage;

try
{
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
if (retryingClient != null)
{
responseMessage = await retryingClient.MakeRetryingCall(this.restClient.HttpSend, requestMessage, completionOption, cancellationToken).ConfigureAwait(false);
}
else
{
responseMessage = await this.restClient.HttpSend(requestMessage, completionOption: completionOption).ConfigureAwait(false);
}
stopWatch.Stop();
ApiDetails apiDetails = new ApiDetails
{
ServiceName = "Database",
OperationName = "SetPdbKeyVersion",
RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}",
ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database/20160918/PluggableDatabase/SetPdbKeyVersion",
UserAgent = this.GetUserAgent()
};
this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails);
logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms");
return Converter.FromHttpResponseMessage<SetPdbKeyVersionResponse>(responseMessage);
}
catch (OciException e)
{
logger.Error(e);
throw;
}
catch (Exception e)
{
logger.Error($"SetPdbKeyVersion failed with error: {e.Message}");
throw;
}
}

/// <summary>
/// This operation shrinks the current allocated storage down to the current actual used data storage (actualUsedDataStorageSizeInTBs). The if the base storage value for the database (dataStorageSizeInTBs) is larger than the actualUsedDataStorageSizeInTBs value, you are billed for the base storage value.
///
Expand Down
72 changes: 72 additions & 0 deletions Database/DatabaseWaiters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7622,6 +7622,78 @@ public Waiter<ScanExternalContainerDatabasePluggableDatabasesRequest, ScanExtern
});
}

/// <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<SetDbKeyVersionRequest, SetDbKeyVersionResponse> ForSetDbKeyVersion(SetDbKeyVersionRequest request, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates)
{
return this.ForSetDbKeyVersion(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<SetDbKeyVersionRequest, SetDbKeyVersionResponse> ForSetDbKeyVersion(SetDbKeyVersionRequest request, WaiterConfiguration config, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates)
{
return new Waiter<SetDbKeyVersionRequest, SetDbKeyVersionResponse>(() =>
{
var response = client.SetDbKeyVersion(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>
/// <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<SetPdbKeyVersionRequest, SetPdbKeyVersionResponse> ForSetPdbKeyVersion(SetPdbKeyVersionRequest request, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates)
{
return this.ForSetPdbKeyVersion(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<SetPdbKeyVersionRequest, SetPdbKeyVersionResponse> ForSetPdbKeyVersion(SetPdbKeyVersionRequest request, WaiterConfiguration config, params WorkrequestsService.Models.WorkRequest.StatusEnum[] targetStates)
{
return new Waiter<SetPdbKeyVersionRequest, SetPdbKeyVersionResponse>(() =>
{
var response = client.SetPdbKeyVersion(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
7 changes: 7 additions & 0 deletions Database/models/AutonomousDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,13 @@ public enum InfrastructureTypeEnum {
[JsonProperty(PropertyName = "autonomousContainerDatabaseId")]
public string AutonomousContainerDatabaseId { get; set; }

/// <value>
/// The date and time the Autonomous Database was most recently undeleted.
///
/// </value>
[JsonProperty(PropertyName = "timeUndeleted")]
public System.Nullable<System.DateTime> TimeUndeleted { get; set; }

/// <value>
/// The date and time the Autonomous Database was created.
/// </value>
Expand Down
7 changes: 7 additions & 0 deletions Database/models/AutonomousDatabaseSummary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,13 @@ public enum InfrastructureTypeEnum {
[JsonProperty(PropertyName = "autonomousContainerDatabaseId")]
public string AutonomousContainerDatabaseId { get; set; }

/// <value>
/// The date and time the Autonomous Database was most recently undeleted.
///
/// </value>
[JsonProperty(PropertyName = "timeUndeleted")]
public System.Nullable<System.DateTime> TimeUndeleted { get; set; }

/// <value>
/// The date and time the Autonomous Database was created.
/// </value>
Expand Down
5 changes: 5 additions & 0 deletions Database/models/CreateAutonomousDatabaseBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ public enum SourceEnum {
BackupFromId,
[EnumMember(Value = "BACKUP_FROM_TIMESTAMP")]
BackupFromTimestamp,
[EnumMember(Value = "UNDELETE_ADB")]
UndeleteAdb,
[EnumMember(Value = "CLONE_TO_REFRESHABLE")]
CloneToRefreshable,
[EnumMember(Value = "CROSS_REGION_DATAGUARD")]
Expand Down Expand Up @@ -574,6 +576,9 @@ public override object ReadJson(JsonReader reader, System.Type objectType, objec
var discriminator = jsonObject["source"].Value<string>();
switch (discriminator)
{
case "UNDELETE_ADB":
obj = new UndeleteAutonomousDatabaseDetails();
break;
case "DATABASE":
obj = new CreateAutonomousDatabaseCloneDetails();
break;
Expand Down
Loading

0 comments on commit e8dbf97

Please sign in to comment.