snowflake.core.managed_account.ManagedAccountΒΆ
- class snowflake.core.managed_account.ManagedAccount(name: str, admin_name: str, admin_password: str, account_type: str = 'READER', cloud: str | None = None, region: str | None = None, locator: str | None = None, created_on: datetime | None = None, url: str | None = None, account_locator_url: str | None = None, comment: str | None = None)ΒΆ
Bases:
object
A model object representing the ManagedAccount resource.
Constructs an object of type ManagedAccount with the provided properties.
- Parameters:
name (str) β A Snowflake object identifier.
admin_name (str) β Name of the account administrator.
admin_password (str) β Password for the account administrator.
account_type (str) β Type of the account.
cloud (str, optional) β Cloud in which the managed account is located. For reader accounts, this is always the same as the cloud for the provider account.
region (str, optional) β Region in which the managed account is located. For reader accounts, this is always the same as the region for the provider account.
locator (str, optional) β Legacy identifier for the account.
created_on (datetime, optional) β Date and time the account was created.
url (str, optional) β Account URL that is used to connect to the account, in the account name format. The account identifier in this format follows the pattern <orgname>-<account_name>.
account_locator_url (str, optional) β Account URL that is used to connect to the account, in the legacy account locator format.
comment (str, optional) β Optional comment in which to store information related to the account.
Methods
- classmethod from_dict(obj: dict) ManagedAccountModel ΒΆ
Creates an instance of ManagedAccount from a dict.
This method constructs a ManagedAccount 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 ManagedAccount object created using the input dictionary; this will fail if the required properties are missing.
- Return type:
- to_dict()ΒΆ
Creates a dictionary of the properties from a ManagedAccount.
This method constructs a dictionary with the key-value entries corresponding to the properties of the ManagedAccount object.
- Returns:
A dictionary object created using the input model.
- Return type:
dict