Skip to content

Commit

Permalink
Releasing version 71.0.0
Browse files Browse the repository at this point in the history
Releasing version 71.0.0
  • Loading branch information
oci-dex-release-bot committed Sep 5, 2023
2 parents 9413a2f + 5c9fb99 commit cd46297
Show file tree
Hide file tree
Showing 144 changed files with 2,360 additions and 686 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.

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

## 71.0.0 - 2023-09-05
### Added
- Support for queue channels in the Queue Service
- Support for entity lineage retrieval and asynchronous glossary export in the Data Catalog service
- Support for filtering and sorting while listing work requests in the Container Instances service
- Support for the ability to create support requests for various support ticket types (TECH, LIMIT, ACCOUNT) in the Customer Incident Management Service
- Endpoint changed from https://incidentmanagement.{region}.{domainAndTopLevelDomain} to https://incidentmanagement.{region}.oci.{domainAndTopLevelDomain} (e.g. https://incidentmanagement.us-phoenix-1.oraclecloud.com to https://incidentmanagement.us-phoenix-1.oci.oraclecloud.com) in the Customer Incident Management Service

### Breaking Changes
- The models `AvailabilityDomain`, `Region`, `CreateUserRequest`, and `UserClient` were removed from the Customer Incident Management Service
- The type of property `ProblemType` was changed from `string` to `ProblemType` in the `ValidateUserRequest` model in the Customer Incident Management Service
- The property `Source` was removed from the model `GetStatusRequest` in the Customer Incident Management Service
- The property `ProblemType` was renamed to `Problemtype` in the model `GetIncidentRequest` in the Customer Incident Management Service
- The property `AvailabilityDomain` was removed from the models `Resource` and `CreateResourceDetails` in the Customer Incident Management Service
- The type of property `Region` was changed from `Region` to `string` in the models `Resource` and `CreateResourceDetails` in the Customer Incident Management Service
- The property `Country` was removed from the model `CreateUserDetails` in the Customer Incident Management Service

## 70.0.0 - 2023-08-29
### Added
- Support for creating and updating network monitors in the Application Performance Monitoring Synthetics service
Expand Down
64 changes: 60 additions & 4 deletions Cims/IncidentClient.cs
Expand Up @@ -48,7 +48,7 @@ public IncidentClient(IBasicAuthenticationDetailsProvider authenticationDetailsP
{
ServiceName = "INCIDENT",
ServiceEndpointPrefix = "",
ServiceEndpointTemplate = "https://incidentmanagement.{region}.{secondLevelDomain}"
ServiceEndpointTemplate = "https://incidentmanagement.{region}.oci.{secondLevelDomain}"
};

ClientConfiguration clientConfigurationToUse = clientConfiguration ?? new ClientConfiguration();
Expand All @@ -70,7 +70,7 @@ public IncidentClient(IBasicAuthenticationDetailsProvider authenticationDetailsP
}

/// <summary>
/// Enables the customer to create an support ticket.
/// Operation to create a support ticket.
/// </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>
Expand Down Expand Up @@ -126,7 +126,63 @@ public async Task<CreateIncidentResponse> CreateIncident(CreateIncidentRequest r
}

/// <summary>
/// Gets the details of the support ticket.
/// Fetches csi number of the user.
/// </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/cims/GetCsiNumber.cs.html">here</a> to see an example of how to use GetCsiNumber API.</example>
public async Task<GetCsiNumberResponse> GetCsiNumber(GetCsiNumberRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
{
logger.Trace("Called getCsiNumber");
Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/v2/incidents/getCsiNumber".Trim('/')));
HttpMethod method = new HttpMethod("GET");
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 = "Incident",
OperationName = "GetCsiNumber",
RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}",
ApiReferenceLink = "",
UserAgent = this.GetUserAgent()
};
this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails);
logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms");
return Converter.FromHttpResponseMessage<GetCsiNumberResponse>(responseMessage);
}
catch (OciException e)
{
logger.Error(e);
throw;
}
catch (Exception e)
{
logger.Error($"GetCsiNumber failed with error: {e.Message}");
throw;
}
}

/// <summary>
/// Gets details about the specified support ticket.
/// </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>
Expand Down Expand Up @@ -193,7 +249,7 @@ public async Task<GetIncidentResponse> GetIncident(GetIncidentRequest request, R
public async Task<GetStatusResponse> GetStatus(GetStatusRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
{
logger.Trace("Called getStatus");
Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/v2/incidents/status/{source}".Trim('/')));
Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/v2/incidents/status".Trim('/')));
HttpMethod method = new HttpMethod("GET");
HttpRequestMessage requestMessage = Converter.ToHttpRequestMessage(uri, method, request);
requestMessage.Headers.Add("Accept", "application/json");
Expand Down
126 changes: 0 additions & 126 deletions Cims/UserClient.cs

This file was deleted.

27 changes: 27 additions & 0 deletions Cims/models/AccountItem.cs
@@ -0,0 +1,27 @@
/*
* 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.CimsService.Models
{
/// <summary>
/// Details about the AccountItem object.
/// </summary>
public class AccountItem : Item
{

[JsonProperty(PropertyName = "type")]
private readonly string type = "account";
}
}
70 changes: 63 additions & 7 deletions Cims/models/ActivityItem.cs
Expand Up @@ -24,18 +24,30 @@ public class ActivityItem : Item
/// <value>
/// Comments added with the activity on the support ticket.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "Comments is required.")]
[JsonProperty(PropertyName = "comments")]
public string Comments { get; set; }

/// <value>
/// The time when the activity was created, in milliseconds since epoch time.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public System.Nullable<int> TimeCreated { get; set; }

/// <value>
/// The time when the activity was updated, in milliseconds since epoch time.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public System.Nullable<int> TimeUpdated { get; set; }
///
Expand All @@ -54,19 +66,22 @@ public enum ActivityTypeEnum {
[EnumMember(Value = "UPDATE")]
Update,
[EnumMember(Value = "CLOSE")]
Close
Close,
[EnumMember(Value = "REOPEN")]
Reopen
};

/// <value>
/// The type of activity occuring on the support ticket.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "ActivityType is required.")]
[JsonProperty(PropertyName = "activityType")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<ActivityTypeEnum> ActivityType { get; set; }
///
/// <value>
/// The person who updates the activity on the support ticket.
/// </value>
///
public enum ActivityAuthorEnum {
/// This value is used if a service returns a value for this enum that is not recognized by this version of the SDK.
Expand All @@ -78,12 +93,53 @@ public enum ActivityAuthorEnum {
Oracle
};

/// <value>
/// The person who updates the activity on the support ticket.
/// </value>
/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "ActivityAuthor is required.")]
[JsonProperty(PropertyName = "activityAuthor")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<ActivityAuthorEnum> ActivityAuthor { get; set; }
///
///
public enum ItemTypeEnum {
/// 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 = "ATTACHMENTS")]
Attachments,
[EnumMember(Value = "COMMENTS")]
Comments
};

[JsonProperty(PropertyName = "itemType")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<ItemTypeEnum> ItemType { get; set; }
///
/// <value>
/// Who updates the activity on the support ticket.
/// </value>
///
public enum ItemStatusEnum {
/// 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 = "PROCESSING")]
Processing,
[EnumMember(Value = "ATTACHED")]
Attached,
[EnumMember(Value = "REMOVED")]
Removed,
[EnumMember(Value = "FAILED")]
Failed
};

/// <value>
/// Who updates the activity on the support ticket.
/// </value>
[JsonProperty(PropertyName = "itemStatus")]
[JsonConverter(typeof(Oci.Common.Utils.ResponseEnumConverter))]
public System.Nullable<ItemStatusEnum> ItemStatus { get; set; }

[JsonProperty(PropertyName = "type")]
private readonly string type = "activity";
Expand Down

0 comments on commit cd46297

Please sign in to comment.