steamship.data.package package#
Submodules#
steamship.data.package.package module#
- class steamship.data.package.package.Package(*, client: Client = None, id: str = None, handle: str = None, userId: str = None, profile: Manifest | None = None, description: str | None = None, readme: str | None = None, isPublic: bool = False)[source]#
Bases:
CamelModel
- static create(client: Client, handle: str = None, profile: Manifest = None, is_public=False, fetch_if_exists=False) Package [source]#
- class steamship.data.package.package.PackageCreateRequest(*, id: str = None, handle: str = None, isPublic: bool = False, profile: Manifest | None = None, fetchIfExists: bool = False)[source]#
Bases:
CreateRequest
steamship.data.package.package_instance module#
- class steamship.data.package.package_instance.CreatePackageInstanceRequest(*, id: str = None, packageId: str = None, packageHandle: str = None, packageVersionId: str = None, packageVersionHandle: str = None, handle: str = None, fetchIfExists: bool = None, config: Dict[str, Any] = None, workspaceId: str = None, localDevelopmentURL: str | None = None)[source]#
Bases:
Request
- class steamship.data.package.package_instance.ListPackageInstancesRequest(*, pageSize: int | None = None, pageToken: str | None = None, sortOrder: SortOrder | None = SortOrder.DESC, packageId: str | None = None, packageVersionId: str | None = None, includeWorkspace: bool | None = None, acrossWorkspaces: bool | None = None)[source]#
Bases:
ListRequest
- class steamship.data.package.package_instance.ListPackageInstancesResponse(*, nextPageToken: str | None = None, packageInstances: List[PackageInstance])[source]#
Bases:
ListResponse
- package_instances: List[PackageInstance]#
- class steamship.data.package.package_instance.PackageInstance(*, client: Client = None, id: str = None, handle: str = None, packageId: str = None, packageHandle: str | None = None, userHandle: str = None, packageVersionId: str = None, packageVersionHandle: str | None = None, userId: str = None, invocationURL: str = None, config: Dict[str, Any] = None, workspaceId: str = None, workspaceHandle: str = None, initStatus: InvocableInitStatus | None = None, createdAt: datetime | None = None)[source]#
Bases:
CamelModel
- blocks_from_invoke(path: str, verb: Verb = Verb.POST, timeout_s: float | None = None, **kwargs) List[Block] [source]#
- static create(client: Client, package_id: str = None, package_handle: str = None, package_version_id: str = None, package_version_handle: str = None, handle: str = None, fetch_if_exists: bool = None, config: Dict[str, Any] = None) PackageInstance [source]#
- static create_local_development_instance(client: Client, local_development_url: str, package_id: str = None, package_handle: str = None, handle: str = None, fetch_if_exists: bool = True, config: Dict[str, Any] = None) PackageInstance [source]#
- delete() PackageInstance [source]#
- static get(client: Client, handle: str) PackageInstance [source]#
- init_status: InvocableInitStatus | None#
- static list(client: Client, package_id: str | None = None, package_version_id: str | None = None, include_workspace: bool | None = None, across_workspaces: bool | None = None, page_size: int | None = None, page_token: str | None = None, sort_order: SortOrder | None = SortOrder.DESC) ListPackageInstancesResponse [source]#
- task_from_invoke(path: str, verb: Verb = Verb.POST, timeout_s: float | None = None, **kwargs) Task [source]#
steamship.data.package.package_version module#
- class steamship.data.package.package_version.CreatePackageVersionRequest(*, packageId: str = None, handle: str = None, type: str = 'file', hostingHandler: str = None, configTemplate: str = None)[source]#
Bases:
Request
- class steamship.data.package.package_version.PackageVersion(*, client: Client = None, id: str = None, packageId: str = None, handle: str = None, configTemplate: Dict[str, Any] = None)[source]#
Bases:
CamelModel
- static create(client: Client, package_id: str | None = None, handle: str | None = None, filename: str | None = None, filebytes: bytes | None = None, config_template: Dict[str, Any] | None = None, hosting_handler: str | None = None) PackageVersion [source]#
- delete() PackageVersion [source]#
Delete this package version. If this package is public and another user has created an instance of this version, this method will throw an error and the PackageVersion will not be deleted. Deleting the PackageVersion will delete any instances of it that you have created.
Module contents#
- class steamship.data.package.Package(*, client: Client = None, id: str = None, handle: str = None, userId: str = None, profile: Manifest | None = None, description: str | None = None, readme: str | None = None, isPublic: bool = False)[source]#
Bases:
CamelModel
- static create(client: Client, handle: str = None, profile: Manifest = None, is_public=False, fetch_if_exists=False) Package [source]#
- class steamship.data.package.PackageInstance(*, client: Client = None, id: str = None, handle: str = None, packageId: str = None, packageHandle: str | None = None, userHandle: str = None, packageVersionId: str = None, packageVersionHandle: str | None = None, userId: str = None, invocationURL: str = None, config: Dict[str, Any] = None, workspaceId: str = None, workspaceHandle: str = None, initStatus: InvocableInitStatus | None = None, createdAt: datetime | None = None)[source]#
Bases:
CamelModel
- blocks_from_invoke(path: str, verb: Verb = Verb.POST, timeout_s: float | None = None, **kwargs) List[Block] [source]#
- static create(client: Client, package_id: str = None, package_handle: str = None, package_version_id: str = None, package_version_handle: str = None, handle: str = None, fetch_if_exists: bool = None, config: Dict[str, Any] = None) PackageInstance [source]#
- static create_local_development_instance(client: Client, local_development_url: str, package_id: str = None, package_handle: str = None, handle: str = None, fetch_if_exists: bool = True, config: Dict[str, Any] = None) PackageInstance [source]#
- delete() PackageInstance [source]#
- static get(client: Client, handle: str) PackageInstance [source]#
- init_status: InvocableInitStatus | None#
- static list(client: Client, package_id: str | None = None, package_version_id: str | None = None, include_workspace: bool | None = None, across_workspaces: bool | None = None, page_size: int | None = None, page_token: str | None = None, sort_order: SortOrder | None = SortOrder.DESC) ListPackageInstancesResponse [source]#
- task_from_invoke(path: str, verb: Verb = Verb.POST, timeout_s: float | None = None, **kwargs) Task [source]#
- class steamship.data.package.PackageVersion(*, client: Client = None, id: str = None, packageId: str = None, handle: str = None, configTemplate: Dict[str, Any] = None)[source]#
Bases:
CamelModel
- static create(client: Client, package_id: str | None = None, handle: str | None = None, filename: str | None = None, filebytes: bytes | None = None, config_template: Dict[str, Any] | None = None, hosting_handler: str | None = None) PackageVersion [source]#
- delete() PackageVersion [source]#
Delete this package version. If this package is public and another user has created an instance of this version, this method will throw an error and the PackageVersion will not be deleted. Deleting the PackageVersion will delete any instances of it that you have created.