pulumi/sdk/python/lib
Alex Clemmer df5273e549 Add __pulumiType to CustomResource class
Running `pulumi query` over state resources will require the ability to
filter resources by type.

This commit begins the process of making this possible simply, using the
TypeScript user-defined type guards feature. This commit changes the
`CustomResource` constructor to record the `t` argument in the
`__pulumiType` field, which acts as a "sentinel" value in the resource
base, which deriving classes need only check to ensure they are of that
type. For example:

    aws.s3.Bucket.isInstance(someOb)

would check the `aws.s3.Bucket.__pulumiType` field, and make sure that
the type field lines up.
2019-06-03 14:56:49 -07:00
..
pulumi Add __pulumiType to CustomResource class 2019-06-03 14:56:49 -07:00
test Implementation of Read for Python (#2752) 2019-05-30 11:04:47 -07:00
MANIFEST.in Include README in pypi package 2018-07-13 18:19:42 -07:00
setup.py Remove dependency on Six (#2372) 2019-01-18 13:59:37 -08:00