Skip to main content

aip_sdk.WorkspaceTarget

aip_sdk.WorkspaceTarget

Where request() writes the resolved workspace id for one call.

Declared per call site alongside a WorkspaceScope, never inferred from the HTTP method: the same method carries the workspace in the query on one route and in the body on another, so guessing would be wrong about half the time.

Attributes

  • QUERY: A query-string parameter.
  • BODY: A top-level field of the JSON body. Not available on a multipart request, which carries no JSON body to place it in.
  • PATH: A placeholder in the request path, e.g. /workspaces/{workspace_id}/ops.
  • CALLER: Nowhere — the value was already placed by the code that asked for it.

aip_sdk.WorkspaceTarget.BODY​

aip_sdk.WorkspaceTarget.BODY = 'body'

No docstring is defined in the source.

aip_sdk.WorkspaceTarget.CALLER​

aip_sdk.WorkspaceTarget.CALLER = 'caller'

No docstring is defined in the source.

aip_sdk.WorkspaceTarget.PATH​

aip_sdk.WorkspaceTarget.PATH = 'path'

No docstring is defined in the source.

aip_sdk.WorkspaceTarget.QUERY​

aip_sdk.WorkspaceTarget.QUERY = 'query'

No docstring is defined in the source.