관리자용 함수

class ai.backend.client.admin.Admin[소스]

관리자 GraphQL 쿼리를 날리고 받아오는 함수형 인터페이스를 제공합니다.

참고

Depending on the privilege of your API access key, you may or may not have access to querying/mutating server-side resources of other users.

session = None

이 함수 클래스가 사용할 클라이언트 세션 인스턴스

classmethod await query(query, variables=None)[소스]

Sends the GraphQL query and returns the response.

매개변수
  • query (str) -- The GraphQL query string.

  • variables (Optional[Mapping[str, Any]]) -- An optional key-value dictionary to fill the interpolated template variables in the query.

반환 형식

Any

반환값

The object parsed from the response JSON string.