snowflake.core.schema.Schema | Snowflake Documentation (original) (raw)

class snowflake.core.schema.Schema(name: str, created_on: datetime | None = None, kind: str | None = 'PERMANENT', is_default: bool | None = None, is_current: bool | None = None, database_name: str | None = None, owner: str | None = None, comment: str | None = None, options: str | None = None, managed_access: bool | None = False, retention_time: int | None = None, dropped_on: datetime | None = None, owner_role_type: str | None = None, budget: str | None = None, data_retention_time_in_days: int | None = None, default_ddl_collation: str | None = None, log_level: str | None = None, pipe_execution_paused: bool | None = None, max_data_extension_time_in_days: int | None = None, suspend_task_after_num_failures: int | None = None, trace_level: str | None = None, user_task_managed_initial_warehouse_size: str | None = None, user_task_timeout_ms: int | None = None, serverless_task_min_statement_size: str | None = None, serverless_task_max_statement_size: str | None = None)

Bases: object

A model object representing the ModelSchema resource.

Constructs an object of type ModelSchema with the provided properties.

Parameters:

Methods

classmethod from_dict(obj: dict) → ModelSchemaModel

Creates an instance of ModelSchema from a dict.

This method constructs a ModelSchema object from a dictionary with the key-value pairs of its properties.

Parameters:

obj (dict) – A dictionary whose keys and values correspond to the properties of the resource object.

Returns:

A ModelSchema object created using the input dictionary; this will fail if the required properties are missing.

Return type:

ModelSchema

to_dict()

Creates a dictionary of the properties from a ModelSchema.

This method constructs a dictionary with the key-value entries corresponding to the properties of the ModelSchema object.

Returns:

A dictionary object created using the input model.

Return type:

dict