ListImportJobsOption
This type configures a request to list bulk import jobs for a コレクション via the RESTful API. Construct it with NewListImportJobsOption(), which defaults to CurrentPage: 1, PageSize: 10. Chain With* builder methods to change pagination, add API keys, or override defaults.
type ListImportJobsOption struct {
URL string
CollectionName string
ClusterID string
APIKey string
PageSize int
CurrentPage int
}
FIELDS:
-
URL (string) -
The base URL of the Milvus or Zilliz Cloud クラスター. Do not include the path; the function appends/v2/vectordb/jobs/import/listautomatically. -
CollectionName (string) -
The name of the コレクション whose import jobs should be listed. Required. -
ClusterID (string) -
The Zilliz Cloud クラスター ID. Optional; used only for cloud imports. -
APIKey (string) -
Bearerヘッダーとして送信される認可トークンです。省略可能ですが、サーバーがトークンベース認証を強制する場合は必須です。 -
PageSize (int) -
1 ページあたりに返されるジョブ数です。デフォルトは10です。上書きするにはWithPageSize()を使用します。 -
CurrentPage (int) -
1から始まるページインデックスです。デフォルトは1です。上書きするにはWithCurrentPage()を使用します。
BUILDER METHODS:
-
WithAPIKey(key string)
これは、Bearerヘッダーとして送信される認可トークンを設定します。 -
WithPageSize(pageSize int)
これは、1 ページあたりに返されるジョブ数を設定します。 -
WithCurrentPage(currentPage int)
これは、1から始まるページインデックスを設定します。
CONSTRUCTORS:
-
NewListImportJobsOption(uri string, collectionName string)これは、妥当なデフォルト値(
CurrentPage: 1, PageSize: 10)で ListImportJobsOption を作成します。