sparse-intern-71089
11/14/2020, 5:46 PMclean-dentist-2515
11/14/2020, 5:48 PM___main___.py
to get file contentsclean-dentist-2515
11/14/2020, 5:50 PMbroad-dog-22463
11/14/2020, 5:50 PMclean-dentist-2515
11/14/2020, 5:50 PMbroad-dog-22463
11/14/2020, 5:51 PMclean-dentist-2515
11/14/2020, 5:56 PM@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, ...) -> SshKey
raises the question... "staticmethod of what?"
I understood this to mean I should do something like:
import pulumi_digitalocean as do
key = do.SshKey.get(...)
clean-dentist-2515
11/14/2020, 5:58 PMdef SshKey(resource_name: str, opts: Optional[ResourceOptions] = None, name: Optional[str] = None, public_key: Optional[str] = None)
so it looks like do.SshKey
is a factory function rather than a class
I couldn't think of any other way to interpret it thoughbroad-dog-22463
11/14/2020, 6:01 PMbroad-dog-22463
11/14/2020, 6:02 PM