Skip to content

Commit

Permalink
Releasing version 69.0.0
Browse files Browse the repository at this point in the history
Releasing version 69.0.0
  • Loading branch information
oci-dex-release-bot authored Aug 8, 2023
2 parents b53ffcb + 5f5f8c5 commit bfea9df
Show file tree
Hide file tree
Showing 554 changed files with 39,817 additions and 1,677 deletions.
56 changes: 56 additions & 0 deletions Ailanguage/AIServiceLanguageClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1454,6 +1454,62 @@ public async Task<GetModelResponse> GetModel(GetModelRequest request, RetryConfi
}
}

/// <summary>
/// Gets model capabilities
/// </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/ailanguage/GetModelType.cs.html">here</a> to see an example of how to use GetModelType API.</example>
public async Task<GetModelTypeResponse> GetModelType(GetModelTypeRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
{
logger.Trace("Called getModelType");
Uri uri = new Uri(this.restClient.GetEndpoint(), System.IO.Path.Combine(basePathWithoutHost, "/modelTypes/{modelType}".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 = "AIServiceLanguage",
OperationName = "GetModelType",
RequestEndpoint = $"{method.Method} {requestMessage.RequestUri}",
ApiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/language/20221001/ModelTypeInfo/GetModelType",
UserAgent = this.GetUserAgent()
};
this.restClient.CheckHttpResponseMessage(requestMessage, responseMessage, apiDetails);
logger.Debug($"Total Latency for this API call is: {stopWatch.ElapsedMilliseconds} ms");
return Converter.FromHttpResponseMessage<GetModelTypeResponse>(responseMessage);
}
catch (OciException e)
{
logger.Error(e);
throw;
}
catch (Exception e)
{
logger.Error($"GetModelType failed with error: {e.Message}");
throw;
}
}

/// <summary>
/// Gets a Project by identifier
/// </summary>
Expand Down
48 changes: 24 additions & 24 deletions Ailanguage/models/BatchLanguageTranslationDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,30 @@ public class BatchLanguageTranslationDetails

/// <value>
/// Language code supported
/// Automatically detect language - auto
/// Arabic - ar
/// Brazilian Portuguese - pt-BR
/// Czech - cs
/// Danish - da
/// Dutch - nl
/// English - en
/// Finnish - fi
/// French - fr
/// Canadian French - fr-CA
/// German - de
/// Italian - it
/// Japanese - ja
/// Korean - ko
/// Norwegian - no
/// Polish - pl
/// Romanian - ro
/// Simplified Chinese - zh-CN
/// Spanish - es
/// Swedish - sv
/// Traditional Chinese - zh-TW
/// Turkish - tr
/// Greek - el
/// Hebrew - he
/// - auto : Automatically detect language
/// - ar : Arabic
/// - pt-BR : Brazilian Portuguese
/// - cs : Czech
/// - da : Danish
/// - nl : Dutch
/// - en : English
/// - fi : Finnish
/// - fr : French
/// - fr-CA : Canadian French
/// - de : German
/// - it : Italian
/// - ja : Japanese
/// - ko : Korean
/// - no : Norwegian
/// - pl : Polish
/// - ro : Romanian
/// - zh-CN : Simplified Chinese
/// - es : Spanish
/// - sv : Swedish
/// - zh-TW : Traditional Chinese
/// - tr : Turkish
/// - el : Greek
/// - he : Hebrew
///
/// </value>
[JsonProperty(PropertyName = "targetLanguageCode")]
Expand Down
31 changes: 31 additions & 0 deletions Ailanguage/models/Capabilities.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* 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.AilanguageService.Models
{
/// <summary>
/// Capabilities supported
/// </summary>
public class Capabilities
{

/// <value>
/// Model information capabilities related to version
/// </value>
[JsonProperty(PropertyName = "capability")]
public System.Collections.Generic.Dictionary<string, Capability> Capability { get; set; }

}
}
31 changes: 31 additions & 0 deletions Ailanguage/models/Capability.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* 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.AilanguageService.Models
{
/// <summary>
/// Capability supported
/// </summary>
public class Capability
{

/// <value>
/// values
/// </value>
[JsonProperty(PropertyName = "details")]
public System.Collections.Generic.List<string> Details { get; set; }

}
}
6 changes: 6 additions & 0 deletions Ailanguage/models/ClassMetrics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,11 @@ public class ClassMetrics
[JsonProperty(PropertyName = "recall")]
public System.Nullable<float> Recall { get; set; }

/// <value>
/// number of samples in the test set
/// </value>
[JsonProperty(PropertyName = "support")]
public System.Nullable<float> Support { get; set; }

}
}
6 changes: 6 additions & 0 deletions Ailanguage/models/ClassificationMultiClassModeDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ namespace Oci.AilanguageService.Models
public class ClassificationMultiClassModeDetails : ClassificationType
{

/// <value>
/// Optional if nothing specified latest base model will be used for training. Supported versions can be found at /modelTypes/{modelType}
/// </value>
[JsonProperty(PropertyName = "version")]
public string Version { get; set; }

[JsonProperty(PropertyName = "classificationMode")]
private readonly string classificationMode = "MULTI_CLASS";
}
Expand Down
6 changes: 6 additions & 0 deletions Ailanguage/models/ClassificationMultiLabelModeDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ namespace Oci.AilanguageService.Models
public class ClassificationMultiLabelModeDetails : ClassificationType
{

/// <value>
/// Optional if nothing specified latest base model will be used for training. Supported versions can be found at /modelTypes/{modelType}
/// </value>
[JsonProperty(PropertyName = "version")]
public string Version { get; set; }

[JsonProperty(PropertyName = "classificationMode")]
private readonly string classificationMode = "MULTI_LABEL";
}
Expand Down
4 changes: 0 additions & 4 deletions Ailanguage/models/CreateModelDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ public class CreateModelDetails
[JsonProperty(PropertyName = "modelDetails")]
public ModelDetails ModelDetails { get; set; }

/// <remarks>
/// Required
/// </remarks>
[Required(ErrorMessage = "TrainingDataset is required.")]
[JsonProperty(PropertyName = "trainingDataset")]
public DatasetDetails TrainingDataset { get; set; }

Expand Down
48 changes: 24 additions & 24 deletions Ailanguage/models/EntityDocumentResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,30 @@ public class EntityDocumentResult

/// <value>
/// Language code supported
/// Automatically detect language - auto
/// Arabic - ar
/// Brazilian Portuguese - pt-BR
/// Czech - cs
/// Danish - da
/// Dutch - nl
/// English - en
/// Finnish - fi
/// French - fr
/// Canadian French - fr-CA
/// German - de
/// Italian - it
/// Japanese - ja
/// Korean - ko
/// Norwegian - no
/// Polish - pl
/// Romanian - ro
/// Simplified Chinese - zh-CN
/// Spanish - es
/// Swedish - sv
/// Traditional Chinese - zh-TW
/// Turkish - tr
/// Greek - el
/// Hebrew - he
/// - auto : Automatically detect language
/// - ar : Arabic
/// - pt-BR : Brazilian Portuguese
/// - cs : Czech
/// - da : Danish
/// - nl : Dutch
/// - en : English
/// - fi : Finnish
/// - fr : French
/// - fr-CA : Canadian French
/// - de : German
/// - it : Italian
/// - ja : Japanese
/// - ko : Korean
/// - no : Norwegian
/// - pl : Polish
/// - ro : Romanian
/// - zh-CN : Simplified Chinese
/// - es : Spanish
/// - sv : Swedish
/// - zh-TW : Traditional Chinese
/// - tr : Turkish
/// - el : Greek
/// - he : Hebrew
///
/// </value>
/// <remarks>
Expand Down
48 changes: 24 additions & 24 deletions Ailanguage/models/KeyPhraseDocumentResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,30 @@ public class KeyPhraseDocumentResult

/// <value>
/// Language code supported
/// Automatically detect language - auto
/// Arabic - ar
/// Brazilian Portuguese - pt-BR
/// Czech - cs
/// Danish - da
/// Dutch - nl
/// English - en
/// Finnish - fi
/// French - fr
/// Canadian French - fr-CA
/// German - de
/// Italian - it
/// Japanese - ja
/// Korean - ko
/// Norwegian - no
/// Polish - pl
/// Romanian - ro
/// Simplified Chinese - zh-CN
/// Spanish - es
/// Swedish - sv
/// Traditional Chinese - zh-TW
/// Turkish - tr
/// Greek - el
/// Hebrew - he
/// - auto : Automatically detect language
/// - ar : Arabic
/// - pt-BR : Brazilian Portuguese
/// - cs : Czech
/// - da : Danish
/// - nl : Dutch
/// - en : English
/// - fi : Finnish
/// - fr : French
/// - fr-CA : Canadian French
/// - de : German
/// - it : Italian
/// - ja : Japanese
/// - ko : Korean
/// - no : Norwegian
/// - pl : Polish
/// - ro : Romanian
/// - zh-CN : Simplified Chinese
/// - es : Spanish
/// - sv : Swedish
/// - zh-TW : Traditional Chinese
/// - tr : Turkish
/// - el : Greek
/// - he : Hebrew
///
/// </value>
/// <remarks>
Expand Down
3 changes: 2 additions & 1 deletion Ailanguage/models/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ public enum LifecycleStateEnum {
public TestStrategy TestStrategy { get; set; }

/// <value>
/// Identifying the model by model id is difficult. This param provides ease of use for end customer.
/// For pre trained models this will identify model type version used for model creation
/// For custom identifying the model by model id is difficult. This param provides ease of use for end customer.
/// <<service>>::<<service-name>>_<<model-type-version>>::<<custom model on which this training has to be done>>
/// ex: ai-lang::NER_V1::CUSTOM-V0
///
Expand Down
Loading

0 comments on commit bfea9df

Please sign in to comment.