メインコンテンツへスキップ

class ArtifactType

指定したタイプに基づくクエリ条件を満たすartifactオブジェクト。 引数:
  • client: W&B のクエリに使用するクライアントインスタンス。
  • entity: プロジェクトを所有する entity (ユーザーまたはチーム) 。
  • project: artifact type をクエリする対象のプロジェクト名。
  • type_name: artifact type の名前。
  • attrs: ArtifactType を初期化するためのオプションの属性です。省略した場合、オブジェクトは初期化時に W&B から属性を読み込みます。

プロパティ ArtifactType.id

artifact typeの一意の ID。 戻り値:
  • str: id プロパティの値。

プロパティ ArtifactType.name

artifact type の名。 戻り値:
  • str: name プロパティの値。

method ArtifactType.collection

collection(name: 'str') → ArtifactCollection
名前を指定して特定の artifact collection を取得します。 引数:
  • name (str): 取得する artifact collection の名前。

method ArtifactType.collections

collections(
    filters: 'Mapping[str, Any] | None' = None,
    order: 'str | None' = None,
    per_page: 'int' = 50
) → ArtifactCollections
このartifact typeに関連付けられたすべてのartifact collectionを取得します。 引数:
  • filters (dict): クエリに適用するフィルターを指定する省略可能なマッピングです。
  • order (str): 結果の並び順を指定する省略可能な文字列です。先頭に + を付けると昇順 (デフォルト) 、- を付けると降順になります。デフォルトでは、コレクション ID の降順になります。
  • per_page (int): 1 ページあたりに取得するartifact collection数です。デフォルトは 50 です。