class_docstr: An iterable collection of artifact versions associated with a project and optional filter.
  
  This is generally used indirectly via the `Api`.artifact_versions method.
class_docstr_tok: ["An","iterable","collection","of","artifact","versions","associated","with","a","project","and","optional","filter",".","This","is","generally","used","indirectly","via","the","`","Api","`",".artifact_versions","method","."]
code: def __init__(
      self,
      client: Client,
      entity: str,
      project: str,
      collection_name: str,
      type: str,
      filters: Optional[Mapping[str, Any]] = None,
      order: Optional[str] = None,
      per_page: int = 50,
  ):
      self.entity = entity
      self.collection_name = collection_name
      self.type = type
      self.project = project
      self.filters = (
          {"state": "COMMITTED"} if filters is None else filters
      )
      self.order = order
      variables = {
          "project": self.project,
          "entity": self.entity,
          "order": self.order,
          "type": self.type,
          "collection": self.collection_name,
          "filters": json.dumps(self.filters),
      }
      self.QUERY = gql(
          """
              query Artifacts($project: String!, $entity: String!, $type: String!, $collection: String!, $cursor: String, $perPage: Int = 50, $order: String, $filters: JSONString) {{
                  project(name: $project, entityName: $entity) {{
                      artifactType(name: $type) {{
                          artifactCollection: {}(name: $collection) {{
                              name
                              artifacts(filters: $filters, after: $cursor, first: $perPage, order: $order) {{
                                  totalCount
                                  edges {{
                                      node {{
                                          ...ArtifactFragment
                                      }}
                                      version
                                      cursor
                                  }}
                                  pageInfo {{
                                      endCursor
                                      hasNextPage
                                  }}
                              }}
                          }}
                      }}
                  }}
              }}
              {}
              """.format(
              artifact_collection_edge_name(
                  server_supports_artifact_collections_gql_edges(client)
              ),
              wandb.Artifact._get_gql_artifact_fragment(),
          )
      )
      super().__init__(client, variables, per_page)
  
imports: import json
  from typing import TYPE_CHECKING, Any, Mapping, Optional, Sequence
  from wandb_gql import Client, gql
  import wandb
  from wandb.apis import public
  from wandb.apis.normalize import normalize_exceptions
  from wandb.apis.paginator import Paginator
label_desc: Use image node_id 1 to create a new Artifacts object from inherited base classes: Paginator with example: obj = Artifacts(client, entity, project, collection_name, type, filters, order, per_page)