Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Releasing version 72.0.0
- Loading branch information
Showing
599 changed files
with
39,814 additions
and
735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
Datascience/models/FileStorageMountConfigurationDetails.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* 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.DatascienceService.Models | ||
{ | ||
/// <summary> | ||
/// The File Storage Mount Configuration Details. | ||
/// </summary> | ||
public class FileStorageMountConfigurationDetails : StorageMountConfigurationDetails | ||
{ | ||
|
||
/// <value> | ||
/// OCID of the mount target | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "MountTargetId is required.")] | ||
[JsonProperty(PropertyName = "mountTargetId")] | ||
public string MountTargetId { get; set; } | ||
|
||
/// <value> | ||
/// OCID of the export | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "ExportId is required.")] | ||
[JsonProperty(PropertyName = "exportId")] | ||
public string ExportId { get; set; } | ||
|
||
[JsonProperty(PropertyName = "storageType")] | ||
private readonly string storageType = "FILE_STORAGE"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
Datascience/models/ObjectStorageMountConfigurationDetails.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* 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.DatascienceService.Models | ||
{ | ||
/// <summary> | ||
/// The Object Storage Configuration Details. | ||
/// </summary> | ||
public class ObjectStorageMountConfigurationDetails : StorageMountConfigurationDetails | ||
{ | ||
|
||
/// <value> | ||
/// The object storage namespace | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "Namespace is required.")] | ||
[JsonProperty(PropertyName = "namespace")] | ||
public string Namespace { get; set; } | ||
|
||
/// <value> | ||
/// The object storage bucket | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "Bucket is required.")] | ||
[JsonProperty(PropertyName = "bucket")] | ||
public string Bucket { get; set; } | ||
|
||
/// <value> | ||
/// Prefix in the bucket to mount | ||
/// </value> | ||
[JsonProperty(PropertyName = "prefix")] | ||
public string Prefix { get; set; } | ||
|
||
[JsonProperty(PropertyName = "storageType")] | ||
private readonly string storageType = "OBJECT_STORAGE"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
/* | ||
* 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; | ||
using Newtonsoft.Json.Linq; | ||
|
||
namespace Oci.DatascienceService.Models | ||
{ | ||
/// <summary> | ||
/// The storage mount configuration details | ||
/// | ||
/// </summary> | ||
[JsonConverter(typeof(StorageMountConfigurationDetailsModelConverter))] | ||
public class StorageMountConfigurationDetails | ||
{ | ||
/// | ||
/// <value> | ||
/// The type of storage. | ||
/// </value> | ||
/// | ||
public enum StorageTypeEnum { | ||
[EnumMember(Value = "FILE_STORAGE")] | ||
FileStorage, | ||
[EnumMember(Value = "OBJECT_STORAGE")] | ||
ObjectStorage | ||
}; | ||
|
||
|
||
/// <value> | ||
/// The local directory name to be mounted | ||
/// </value> | ||
/// <remarks> | ||
/// Required | ||
/// </remarks> | ||
[Required(ErrorMessage = "DestinationDirectoryName is required.")] | ||
[JsonProperty(PropertyName = "destinationDirectoryName")] | ||
public string DestinationDirectoryName { get; set; } | ||
|
||
/// <value> | ||
/// The local path of the mounted directory, excluding directory name. | ||
/// </value> | ||
[JsonProperty(PropertyName = "destinationPath")] | ||
public string DestinationPath { get; set; } | ||
|
||
} | ||
|
||
public class StorageMountConfigurationDetailsModelConverter : JsonConverter | ||
{ | ||
private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); | ||
public override bool CanWrite => false; | ||
public override bool CanRead => true; | ||
public override bool CanConvert(System.Type type) | ||
{ | ||
return type == typeof(StorageMountConfigurationDetails); | ||
} | ||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) | ||
{ | ||
throw new System.InvalidOperationException("Use default serialization."); | ||
} | ||
|
||
public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer) | ||
{ | ||
var jsonObject = JObject.Load(reader); | ||
var obj = default(StorageMountConfigurationDetails); | ||
var discriminator = jsonObject["storageType"].Value<string>(); | ||
switch (discriminator) | ||
{ | ||
case "FILE_STORAGE": | ||
obj = new FileStorageMountConfigurationDetails(); | ||
break; | ||
case "OBJECT_STORAGE": | ||
obj = new ObjectStorageMountConfigurationDetails(); | ||
break; | ||
} | ||
if (obj != null) | ||
{ | ||
serializer.Populate(jsonObject.CreateReader(), obj); | ||
} | ||
else | ||
{ | ||
logger.Warn($"The type {discriminator} is not present under StorageMountConfigurationDetails! Returning null value."); | ||
} | ||
return obj; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.