diff --git a/src/libs/Instill/Generated/Instill.IObjectClient.GetObjectDownloadURL.g.cs b/src/libs/Instill/Generated/Instill.IObjectClient.GetObjectDownloadURL.g.cs
index 31e2fc5..e9a5c59 100644
--- a/src/libs/Instill/Generated/Instill.IObjectClient.GetObjectDownloadURL.g.cs
+++ b/src/libs/Instill/Generated/Instill.IObjectClient.GetObjectDownloadURL.g.cs
@@ -10,14 +10,14 @@ public partial interface IObjectClient
///
///
///
- ///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task GetObjectDownloadURLAsync(
string namespaceId,
string? objectUid = default,
string? objectName = default,
- int? expirationTime = default,
+ int? urlExpireDays = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Instill/Generated/Instill.IObjectClient.GetObjectUploadURL.g.cs b/src/libs/Instill/Generated/Instill.IObjectClient.GetObjectUploadURL.g.cs
index 7d4d718..51bc615 100644
--- a/src/libs/Instill/Generated/Instill.IObjectClient.GetObjectUploadURL.g.cs
+++ b/src/libs/Instill/Generated/Instill.IObjectClient.GetObjectUploadURL.g.cs
@@ -9,7 +9,7 @@ public partial interface IObjectClient
///
///
///
- ///
+ ///
///
///
/// The token to cancel the operation with
@@ -17,7 +17,7 @@ public partial interface IObjectClient
global::System.Threading.Tasks.Task GetObjectUploadURLAsync(
string namespaceId,
string objectName,
- int? expirationTime = default,
+ int? urlExpireDays = default,
global::System.DateTime? lastModifiedTime = default,
int? objectExpireDays = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/Instill/Generated/Instill.Models.Object.g.cs b/src/libs/Instill/Generated/Instill.Models.Object.g.cs
index f2d5ace..d01f9e7 100644
--- a/src/libs/Instill/Generated/Instill.Models.Object.g.cs
+++ b/src/libs/Instill/Generated/Instill.Models.Object.g.cs
@@ -62,6 +62,12 @@ public sealed partial class Object
[global::System.Text.Json.Serialization.JsonPropertyName("objectExpireDays")]
public int? ObjectExpireDays { get; set; }
+ ///
+ ///
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("lastModifiedTime")]
+ public global::System.DateTime? LastModifiedTime { get; set; }
+
///
///
///
diff --git a/src/libs/Instill/Generated/Instill.ObjectClient.GetObjectDownloadURL.g.cs b/src/libs/Instill/Generated/Instill.ObjectClient.GetObjectDownloadURL.g.cs
index 52d3908..51c2b7d 100644
--- a/src/libs/Instill/Generated/Instill.ObjectClient.GetObjectDownloadURL.g.cs
+++ b/src/libs/Instill/Generated/Instill.ObjectClient.GetObjectDownloadURL.g.cs
@@ -10,14 +10,14 @@ partial void PrepareGetObjectDownloadURLArguments(
ref string namespaceId,
ref string? objectUid,
ref string? objectName,
- ref int? expirationTime);
+ ref int? urlExpireDays);
partial void PrepareGetObjectDownloadURLRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string namespaceId,
string? objectUid,
string? objectName,
- int? expirationTime);
+ int? urlExpireDays);
partial void ProcessGetObjectDownloadURLResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -33,14 +33,14 @@ partial void ProcessGetObjectDownloadURLResponseContent(
///
///
///
- ///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task GetObjectDownloadURLAsync(
string namespaceId,
string? objectUid = default,
string? objectName = default,
- int? expirationTime = default,
+ int? urlExpireDays = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
@@ -50,7 +50,7 @@ partial void ProcessGetObjectDownloadURLResponseContent(
namespaceId: ref namespaceId,
objectUid: ref objectUid,
objectName: ref objectName,
- expirationTime: ref expirationTime);
+ urlExpireDays: ref urlExpireDays);
var __pathBuilder = new PathBuilder(
path: $"/v1alpha/namespaces/{namespaceId}/object-download-url",
@@ -58,7 +58,7 @@ partial void ProcessGetObjectDownloadURLResponseContent(
__pathBuilder
.AddOptionalParameter("objectUid", objectUid)
.AddOptionalParameter("objectName", objectName)
- .AddOptionalParameter("expirationTime", expirationTime?.ToString())
+ .AddOptionalParameter("urlExpireDays", urlExpireDays?.ToString())
;
var __path = __pathBuilder.ToString();
using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
@@ -90,7 +90,7 @@ partial void ProcessGetObjectDownloadURLResponseContent(
namespaceId: namespaceId,
objectUid: objectUid,
objectName: objectName,
- expirationTime: expirationTime);
+ urlExpireDays: urlExpireDays);
using var response = await _httpClient.SendAsync(
request: httpRequest,
diff --git a/src/libs/Instill/Generated/Instill.ObjectClient.GetObjectUploadURL.g.cs b/src/libs/Instill/Generated/Instill.ObjectClient.GetObjectUploadURL.g.cs
index f599e94..7e798d9 100644
--- a/src/libs/Instill/Generated/Instill.ObjectClient.GetObjectUploadURL.g.cs
+++ b/src/libs/Instill/Generated/Instill.ObjectClient.GetObjectUploadURL.g.cs
@@ -9,7 +9,7 @@ partial void PrepareGetObjectUploadURLArguments(
global::System.Net.Http.HttpClient httpClient,
ref string namespaceId,
ref string objectName,
- ref int? expirationTime,
+ ref int? urlExpireDays,
ref global::System.DateTime? lastModifiedTime,
ref int? objectExpireDays);
partial void PrepareGetObjectUploadURLRequest(
@@ -17,7 +17,7 @@ partial void PrepareGetObjectUploadURLRequest(
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string namespaceId,
string objectName,
- int? expirationTime,
+ int? urlExpireDays,
global::System.DateTime? lastModifiedTime,
int? objectExpireDays);
partial void ProcessGetObjectUploadURLResponse(
@@ -34,7 +34,7 @@ partial void ProcessGetObjectUploadURLResponseContent(
///
///
///
- ///
+ ///
///
///
/// The token to cancel the operation with
@@ -42,7 +42,7 @@ partial void ProcessGetObjectUploadURLResponseContent(
public async global::System.Threading.Tasks.Task GetObjectUploadURLAsync(
string namespaceId,
string objectName,
- int? expirationTime = default,
+ int? urlExpireDays = default,
global::System.DateTime? lastModifiedTime = default,
int? objectExpireDays = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -53,7 +53,7 @@ partial void ProcessGetObjectUploadURLResponseContent(
httpClient: _httpClient,
namespaceId: ref namespaceId,
objectName: ref objectName,
- expirationTime: ref expirationTime,
+ urlExpireDays: ref urlExpireDays,
lastModifiedTime: ref lastModifiedTime,
objectExpireDays: ref objectExpireDays);
@@ -62,7 +62,7 @@ partial void ProcessGetObjectUploadURLResponseContent(
baseUri: _httpClient.BaseAddress);
__pathBuilder
.AddRequiredParameter("objectName", objectName)
- .AddOptionalParameter("expirationTime", expirationTime?.ToString())
+ .AddOptionalParameter("urlExpireDays", urlExpireDays?.ToString())
.AddOptionalParameter("lastModifiedTime", lastModifiedTime?.ToString("yyyy-MM-ddTHH:mm:ssZ"))
.AddOptionalParameter("objectExpireDays", objectExpireDays?.ToString())
;
@@ -95,7 +95,7 @@ partial void ProcessGetObjectUploadURLResponseContent(
httpRequestMessage: httpRequest,
namespaceId: namespaceId,
objectName: objectName,
- expirationTime: expirationTime,
+ urlExpireDays: urlExpireDays,
lastModifiedTime: lastModifiedTime,
objectExpireDays: objectExpireDays);
diff --git a/src/libs/Instill/openapi.yaml b/src/libs/Instill/openapi.yaml
index dc0041f..b680c00 100644
--- a/src/libs/Instill/openapi.yaml
+++ b/src/libs/Instill/openapi.yaml
@@ -1719,21 +1719,21 @@ paths:
required: true
schema:
type: string
- - name: expirationTime
+ - name: urlExpireDays
in: query
- description: "expiration time in minutes for the URL with a default value of 1440 minutes (1 day).\nminimum is 60 minutes (1 hour) and maximum is 20160 minutes (14 days)"
+ description: "Expiration time in days for the URL.\nMinimum is 1 day and maximum is 7 days. If not set or set to 0, defaults to 1 day."
schema:
type: integer
format: int32
- name: lastModifiedTime
in: query
- description: last modified time this value is provided by the client when the object url is created
+ description: "last modified time this value is provided by the client when the object url is created\nit must be in RFC3339 formatted date-time string"
schema:
type: string
format: date-time
- name: objectExpireDays
in: query
- description: "object live time in days\nminimum is 1 day. if not set, the object will not be deleted automatically"
+ description: "object live time in days\nminimum is 1 day. if set to 0, the object will not be deleted automatically"
schema:
type: integer
format: int32
@@ -1778,9 +1778,9 @@ paths:
description: "object name\nif provided, object uid is not required"
schema:
type: string
- - name: expirationTime
+ - name: urlExpireDays
in: query
- description: "expiration time in minutes for url with default value to 1440 minutes (1 day).\nminimum is 60 minutes (1 hour) and maximum is 20160 minutes (14 days)"
+ description: "Expiration time in days for the URL.\nMinimum is 1 day and maximum is 7 days. If not set or set to 0, defaults to 1 day."
schema:
type: integer
format: int32
@@ -3411,7 +3411,7 @@ components:
type: string
format: int64
contentType:
- title: "content type\nthis is from content-type header of http request"
+ title: "content type\nthis is mime type from content-type header of http request or from file extension"
type: string
namespaceUid:
title: namespace uid
@@ -3426,9 +3426,13 @@ components:
title: object path(optional)
type: string
objectExpireDays:
- title: "object live time in days\nminimum is 1 day. if not set, the object will not be deleted automatically"
+ title: "object live time in days\nif set to 0, the object will not be deleted automatically"
type: integer
format: int32
+ lastModifiedTime:
+ title: last modified time
+ type: string
+ format: date-time
createdTime:
title: created time
type: string