id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15,500 | pulumi/pulumi | tests/integration/aliases/python/retype_parents/step2/__main__.py | __main__.Resource | from pulumi import Alias, ComponentResource, ResourceOptions
class Resource(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:Resource', name, None, opts) |
class Resource(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,501 | pulumi/pulumi | tests/integration/aliases/python/adopt_into_component/step1/__main__.py | __main__.Resource1 | from pulumi import ComponentResource, export, Resource, ResourceOptions
class Resource1(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:Resource', name, None, opts) |
class Resource1(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,502 | pulumi/pulumi | tests/integration/aliases/python/retype_component/step2/__main__.py | __main__.Resource1 | from pulumi import Alias, ComponentResource, export, Resource, ResourceOptions, create_urn, ROOT_STACK_RESOURCE
class Resource1(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:Resource', name, None, opts) |
class Resource1(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,503 | pulumi/pulumi | tests/integration/custom_timeouts/python/success/__main__.py | __main__.Resource1 | from pulumi import ComponentResource, CustomTimeouts, Resource, ResourceOptions
class Resource1(ComponentResource):
def __init__(self, name, opts=None):
super().__init__('my:module:Resource', name, None, opts) |
class Resource1(ComponentResource):
def __init__(self, name, opts=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,504 | pulumi/pulumi | tests/integration/enums/python/__main__.py | __main__.RubberTreeVariety | from enum import Enum
class RubberTreeVariety(str, Enum):
BURGUNDY = 'Burgundy'
RUBY = 'Ruby'
TINEKE = 'Tineke' |
class RubberTreeVariety(str, Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
15,505 | pulumi/pulumi | tests/integration/dynamic/python-config/__main__.py | __main__.SimpleProvider | from pulumi.dynamic import CreateResult, ResourceProvider, ConfigureRequest, Config, Resource
class SimpleProvider(ResourceProvider):
password: str
color: str
def configure(self, req: ConfigureRequest):
self.password = req.config.get('password')
self.color = req.config.get('colors:banana')... |
class SimpleProvider(ResourceProvider):
def configure(self, req: ConfigureRequest):
pass
def create(self, props):
pass | 3 | 0 | 6 | 0 | 6 | 1 | 2 | 0.07 | 1 | 2 | 2 | 0 | 2 | 0 | 2 | 10 | 17 | 2 | 14 | 3 | 11 | 1 | 8 | 3 | 5 | 2 | 1 | 0 | 3 |
15,506 | pulumi/pulumi | tests/integration/dynamic/python-secrets/__main__.py | __main__.SimpleProvider | from pulumi.dynamic import CreateResult, Resource, ResourceProvider
class SimpleProvider(ResourceProvider):
def create(self, props):
return CreateResult('0', {'authenticated': '200' if password.get() == 's3cret' else '401'}) |
class SimpleProvider(ResourceProvider):
def create(self, props):
pass | 2 | 0 | 7 | 0 | 2 | 5 | 2 | 1.67 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 9 | 8 | 0 | 3 | 2 | 1 | 5 | 3 | 2 | 1 | 2 | 1 | 0 | 2 |
15,507 | pulumi/pulumi | tests/integration/dynamic/python-config-separate-module/__main__.py | __main__.SimpleResource | from provider import SimpleProvider
from pulumi.dynamic import Resource
import pulumi
class SimpleResource(Resource):
authenticated: pulumi.Output[str]
color: pulumi.Output[str]
def __init__(self, name):
super().__init__(SimpleProvider(), name, {'authenticated': None, 'color': None}) |
class SimpleResource(Resource):
def __init__(self, name):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 11 | 6 | 1 | 5 | 2 | 3 | 0 | 5 | 2 | 3 | 1 | 3 | 0 | 1 |
15,508 | pulumi/pulumi | tests/integration/dynamic/python-config/__main__.py | __main__.SimpleResource | import pulumi
from pulumi.dynamic import CreateResult, ResourceProvider, ConfigureRequest, Config, Resource
class SimpleResource(Resource):
authenticated: pulumi.Output[str]
color: pulumi.Output[str]
def __init__(self, name):
super().__init__(SimpleProvider(), name, {'authenticated': None, 'color'... |
class SimpleResource(Resource):
def __init__(self, name):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 11 | 6 | 1 | 5 | 2 | 3 | 0 | 5 | 2 | 3 | 1 | 3 | 0 | 1 |
15,509 | pulumi/pulumi | tests/integration/dynamic/python-secrets/__main__.py | __main__.SimpleResource | from pulumi.dynamic import CreateResult, Resource, ResourceProvider
import pulumi
class SimpleResource(Resource):
authenticated: pulumi.Output[str]
def __init__(self, name):
super().__init__(SimpleProvider(), name, {'authenticated': None}) |
class SimpleResource(Resource):
def __init__(self, name):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 11 | 5 | 1 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 1 | 3 | 0 | 1 |
15,510 | pulumi/pulumi | tests/integration/enums/python/__main__.py | __main__.Tree | from pulumi import Input, Output, export
from pulumi.dynamic import Resource, ResourceProvider, CreateResult
from typing import Optional, Union
class Tree(Resource):
type: Output[RubberTreeVariety]
farm: Optional[Output[str]]
def __init__(self, name: str, type: Input[RubberTreeVariety], farm: Optional[Inp... |
class Tree(Resource):
def __init__(self, name: str, type: Input[RubberTreeVariety], farm: Optional[Input[str]]):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 1 | 1 | 1 | 11 | 8 | 1 | 7 | 3 | 5 | 0 | 7 | 3 | 5 | 1 | 3 | 0 | 1 |
15,511 | pulumi/pulumi | tests/integration/component_provider/python/component-provider-host/provider/component.py | component.Args | from typing import Optional, TypedDict
import pulumi
class Args(TypedDict):
str_input: pulumi.Input[str]
'This is a string input'
optional_int_input: Optional[pulumi.Input[int]]
complex_input: Optional[pulumi.Input[Complex]]
list_input: pulumi.Input[list[str]]
dict_input: pulumi.Input[dict[str,... |
class Args(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 0 | 6 | 1 | 5 | 0 | 6 | 1 | 5 | 0 | 1 | 0 | 0 |
15,512 | pulumi/pulumi | tests/integration/component_provider/python/recursive-types/provider/component.py | component.Args | import pulumi
from typing import Optional, TypedDict
class Args(TypedDict):
rec: pulumi.Input[RecursiveTypeA] |
class Args(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
15,513 | pulumi/pulumi | tests/integration/construct_component_output_values/python/component.py | component.BarArgs | from typing import Mapping, Optional
import pulumi
@pulumi.input_type
class BarArgs:
def __init__(__self__, *, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None):
if tags is not None:
pulumi.set(__self__, 'tags', tags)
@property
@pulumi.getter
def tags(self) -> Op... | @pulumi.input_type
class BarArgs:
def __init__(__self__, *, tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None):
pass
@property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
pass
@tags.setter
def tags(self) -> Optional[... | 8 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 | 0 | 3 | 3 | 14 | 2 | 12 | 7 | 4 | 0 | 8 | 4 | 4 | 2 | 0 | 1 | 4 |
15,514 | pulumi/pulumi | tests/integration/component_provider/python/component-provider-host/provider/component.py | component.Complex | import pulumi
from typing import Optional, TypedDict
class Complex(TypedDict):
"""ComplexType is very complicated"""
str_input: pulumi.Input[str]
nested_input: pulumi.Input[Nested] |
class Complex(TypedDict):
'''ComplexType is very complicated'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 1 | 2 | 0 | 3 | 1 | 2 | 0 | 1 | 0 | 0 |
15,515 | pulumi/pulumi | tests/integration/call_component_failures/python/component.py | component.Component | from typing import Optional
import pulumi
class Component(pulumi.ComponentResource):
foo: pulumi.Output[str]
def __init__(self, name: str, foo: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None):
props = dict()
props['foo'] = foo
super().__init__('testcomponent:index:Compo... |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, foo: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None):
pass
def get_message(self) -> pulumi.Output[str]:
pass | 3 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 5 | 2 | 0 | 2 | 0 | 2 | 10 | 12 | 2 | 10 | 5 | 7 | 0 | 10 | 5 | 7 | 1 | 2 | 0 | 2 |
15,516 | pulumi/pulumi | tests/integration/construct_component/python/component.py | component.Component | from typing import Any, Optional
import pulumi
class Component(pulumi.ComponentResource):
echo: pulumi.Output[Any]
childId: pulumi.Output[str]
def __init__(self, name: str, echo: pulumi.Input[Any], opts: Optional[pulumi.ResourceOptions]=None):
props = dict()
props['echo'] = echo
pr... |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, echo: pulumi.Input[Any], opts: Optional[pulumi.ResourceOptions]=None):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 5 | 1 | 0 | 1 | 0 | 1 | 9 | 10 | 1 | 9 | 3 | 7 | 0 | 9 | 3 | 7 | 1 | 2 | 0 | 1 |
15,517 | pulumi/pulumi | tests/integration/construct_component_failures/python/component.py | component.Component | from typing import Optional
import pulumi
class Component(pulumi.ComponentResource):
foo: pulumi.Output[str]
def __init__(self, name: str, foo: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None):
props = dict()
props['foo'] = foo
super().__init__('testcomponent:index:Compo... |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, foo: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 9 | 7 | 1 | 6 | 3 | 4 | 0 | 6 | 3 | 4 | 1 | 2 | 0 | 1 |
15,518 | pulumi/pulumi | tests/integration/construct_component_id_output/python/component.py | component.Component | import pulumi
from typing import Any, Optional
class Component(pulumi.ComponentResource):
def __init__(self, name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None):
props = dict()
props['id'] = id
super().__init__('testcomponent:index:Component', name, props, opts, ... |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None):
pass
@property
@pulumi.getter
def id(self) -> pulumi.Output[str]:
pass | 5 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 5 | 2 | 0 | 2 | 0 | 2 | 10 | 10 | 1 | 9 | 5 | 4 | 0 | 7 | 4 | 4 | 1 | 2 | 0 | 2 |
15,519 | pulumi/pulumi | tests/integration/construct_component_methods/python/component.py | component.Component | from typing import Optional
import pulumi
class Component(pulumi.ComponentResource):
def __init__(self, name: str, first: pulumi.Input[str], second: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None):
props = {'first': first, 'second': second}
super().__init__('testcomponent:index:Com... |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, first: pulumi.Input[str], second: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None):
pass
@pulumi.output_type
class GetMessageResult:
def __init__(self, name: str, first: pulumi.Input[str], second: pulumi.I... | 9 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 6 | 3 | 0 | 2 | 0 | 2 | 10 | 32 | 3 | 29 | 14 | 16 | 0 | 16 | 8 | 10 | 2 | 2 | 1 | 5 |
15,520 | pulumi/pulumi | tests/integration/construct_component_methods_provider/python/component.py | component.Component | import pulumi
from typing import Optional
class Component(pulumi.ComponentResource):
def __init__(self, name: str, first: pulumi.Input[str], second: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None):
props = {'first': first, 'second': second}
super().__init__('testcomponent:index:Com... |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, first: pulumi.Input[str], second: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None):
pass
@pulumi.output_type
class GetMessageResult:
def __init__(self, name: str, first: pulumi.Input[str], second: pulumi.I... | 9 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 6 | 3 | 0 | 2 | 0 | 2 | 10 | 32 | 3 | 29 | 14 | 16 | 0 | 16 | 8 | 10 | 2 | 2 | 1 | 5 |
15,521 | pulumi/pulumi | tests/integration/construct_component_methods_resources/python/component.py | component.Component | import pulumi
from typing import Optional
class Component(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None):
super().__init__('testcomponent:index:Component', name, {}, opts, True)
@pulumi.output_type
class CreateRandomResult:
def __ini... |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None):
pass
@pulumi.output_type
class CreateRandomResult:
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None):
pass
@property
@pulumi.... | 9 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 7 | 3 | 0 | 2 | 0 | 2 | 10 | 26 | 3 | 23 | 11 | 12 | 0 | 15 | 7 | 9 | 2 | 2 | 1 | 5 |
15,522 | pulumi/pulumi | tests/integration/construct_component_methods_unknown/python/component.py | component.Component | import pulumi
from typing import Optional
class Component(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None):
super().__init__('testcomponent:index:Component', name, {}, opts, True)
@pulumi.output_type
class GetMessageResult:
def __init_... |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None):
pass
@pulumi.output_type
class GetMessageResult:
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None):
pass
@property
@pulumi.ge... | 9 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 6 | 3 | 0 | 2 | 0 | 2 | 10 | 26 | 3 | 23 | 11 | 12 | 0 | 15 | 7 | 9 | 2 | 2 | 1 | 5 |
15,523 | pulumi/pulumi | tests/integration/construct_component_output_values/python/component.py | component.Component | from typing import Mapping, Optional
import pulumi
class Component(pulumi.ComponentResource):
def __init__(__self__, resource_name: str, args: Optional[ComponentArgs]=None, opts: Optional[pulumi.ResourceOptions]=None):
super().__init__('testcomponent:index:Component', resource_name, args, opts, remote=Tru... |
class Component(pulumi.ComponentResource):
def __init__(__self__, resource_name: str, args: Optional[ComponentArgs]=None, opts: Optional[pulumi.ResourceOptions]=None):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 4 | 2 | 0 | 1 | 0 | 1 | 9 | 6 | 0 | 6 | 5 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,524 | pulumi/pulumi | tests/integration/construct_component_plain/python/component.py | component.Component | import pulumi
from typing import Any, Optional
class Component(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None, children: Optional[int]=None):
props = dict()
props['children'] = children
super().__init__('testcomponent:index:Component', ... |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None, children: Optional[int]=None):
pass | 2 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 5 | 1 | 0 | 1 | 0 | 1 | 9 | 8 | 0 | 8 | 6 | 3 | 0 | 5 | 3 | 3 | 1 | 2 | 0 | 1 |
15,525 | pulumi/pulumi | tests/integration/construct_component_slow/python/component.py | component.Component | from typing import Any, Optional
import pulumi
class Component(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None):
props = dict()
super().__init__('testcomponent:index:Component', name, props, opts, True) |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, opts: Optional[pulumi.ResourceOptions]=None):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 9 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,526 | pulumi/pulumi | tests/integration/construct_component_unknown/python/component.py | component.Component | import pulumi
from typing import Optional
class Component(pulumi.ComponentResource):
def __init__(self, name: str, args: pulumi.Inputs, opts: Optional[pulumi.ResourceOptions]=None):
super().__init__('testcomponent:index:Component', name, args, opts, True) |
class Component(pulumi.ComponentResource):
def __init__(self, name: str, args: pulumi.Inputs, opts: Optional[pulumi.ResourceOptions]=None):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 9 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,527 | pulumi/pulumi | tests/integration/construct_component_output_values/python/component.py | component.ComponentArgs | import pulumi
from typing import Mapping, Optional
@pulumi.input_type
class ComponentArgs:
def __init__(__self__, *, bar: Optional[pulumi.Input['BarArgs']]=None, foo: Optional['FooArgs']=None):
if bar is not None:
pulumi.set(__self__, 'bar', bar)
if foo is not None:
pulumi.... | @pulumi.input_type
class ComponentArgs:
def __init__(__self__, *, bar: Optional[pulumi.Input['BarArgs']]=None, foo: Optional['FooArgs']=None):
pass
@property
@pulumi.getter
def bar(self) -> Optional[pulumi.Input['BarArgs']]:
pass
@bar.setter
def bar(self) -> Optional[pulumi.Inpu... | 13 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 5 | 5 | 26 | 4 | 22 | 12 | 8 | 0 | 14 | 6 | 8 | 3 | 0 | 1 | 7 |
15,528 | pulumi/pulumi | tests/integration/construct_component_output_values/python/component.py | component.FooArgs | from typing import Mapping, Optional
import pulumi
@pulumi.input_type
class FooArgs:
def __init__(__self__, *, something: Optional[pulumi.Input[str]]=None):
if something is not None:
pulumi.set(__self__, 'something', something)
@property
@pulumi.getter
def something(self) -> Optio... | @pulumi.input_type
class FooArgs:
def __init__(__self__, *, something: Optional[pulumi.Input[str]]=None):
pass
@property
@pulumi.getter
def something(self) -> Optional[pulumi.Input[str]]:
pass
@something.setter
def something(self) -> Optional[pulumi.Input[str]]:
pass | 8 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 | 0 | 3 | 3 | 14 | 2 | 12 | 7 | 4 | 0 | 8 | 4 | 4 | 2 | 0 | 1 | 4 |
15,529 | pulumi/pulumi | tests/integration/component_provider/python/component-provider-host/provider/component.py | component.MyComponent | from typing import Optional, TypedDict
import pulumi
class MyComponent(pulumi.ComponentResource):
"""MyComponent is the best"""
str_output: pulumi.Output[str]
'This is a string output'
optional_int_output: Optional[pulumi.Output[int]]
complex_output: Optional[pulumi.Output[ComplexOutput]]
list_... |
class MyComponent(pulumi.ComponentResource):
'''MyComponent is the best'''
def __init__(self, name: str, args: Args, opts: pulumi.ResourceOptions):
pass
def transform_asset(self, asset: pulumi.Asset) -> pulumi.Asset:
pass
def transform_archive(self, asset: pulumi.Archive) -> pulumi.A... | 5 | 1 | 25 | 0 | 25 | 0 | 1 | 0 | 1 | 5 | 3 | 0 | 1 | 0 | 1 | 9 | 32 | 1 | 31 | 2 | 29 | 0 | 14 | 2 | 12 | 1 | 2 | 0 | 1 |
15,530 | pulumi/pulumi | tests/integration/component_provider/python/recursive-types/provider/component.py | component.MyComponent | import pulumi
class MyComponent(pulumi.ComponentResource):
rec: pulumi.Output[RecursiveTypeB]
def __init__(self, name: str, args: Args, opts: pulumi.ResourceOptions):
super().__init__('component:index:MyComponent', name, {}, opts)
self.rec = pulumi.Output.from_input({'a': args.get('rec')})
... |
class MyComponent(pulumi.ComponentResource):
def __init__(self, name: str, args: Args, opts: pulumi.ResourceOptions):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 5 | 3 | 0 | 1 | 0 | 1 | 9 | 7 | 1 | 6 | 2 | 4 | 0 | 6 | 2 | 4 | 1 | 2 | 0 | 1 |
15,531 | pulumi/pulumi | tests/integration/component_provider/python/component-provider-host/provider/component.py | component.Nested | from typing import Optional, TypedDict
class Nested(TypedDict):
"""Deep nesting"""
str_plain: str
'A plain string' |
class Nested(TypedDict):
'''Deep nesting'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
15,532 | pulumi/pulumi | tests/integration/component_provider/python/recursive-types/provider/component.py | component.RecursiveTypeA | import pulumi
from typing import Optional, TypedDict
class RecursiveTypeA(TypedDict):
b: Optional[pulumi.Input['RecursiveTypeB']] |
class RecursiveTypeA(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
15,533 | pulumi/pulumi | tests/integration/component_provider/python/recursive-types/provider/component.py | component.RecursiveTypeB | from typing import Optional, TypedDict
import pulumi
class RecursiveTypeB(TypedDict):
a: Optional[pulumi.Input[RecursiveTypeA]] |
class RecursiveTypeB(TypedDict):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
15,534 | pulumi/pulumi | tests/performance/python/parents/echo.py | echo.Echo | from typing import Any, Optional
import pulumi
class Echo(pulumi.CustomResource):
def __init__(self, resource_name: str, echo: pulumi.Input[Any], opts: Optional[pulumi.ResourceOptions]=None):
props = {'echo': echo}
super().__init__('testprovider:index:Echo', resource_name, props, opts)
@prope... |
class Echo(pulumi.CustomResource):
def __init__(self, resource_name: str, echo: pulumi.Input[Any], opts: Optional[pulumi.ResourceOptions]=None):
pass
@property
@pulumi.getter
def echo(self) -> pulumi.Output[Any]:
pass | 5 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 5 | 2 | 0 | 2 | 0 | 2 | 10 | 16 | 1 | 15 | 10 | 5 | 0 | 6 | 4 | 3 | 1 | 2 | 0 | 2 |
15,535 | pulumi/pulumi | tests/integration/aliases/python/alias_after_failed_update/step1/fails_on_create.py | fails_on_create.FailsOnCreate | from typing import Optional
import pulumi
class FailsOnCreate(pulumi.CustomResource):
def __init__(self, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None):
super().__init__('testprovider:index:FailsOnCreate', resource_name, {}, opts) |
class FailsOnCreate(pulumi.CustomResource):
def __init__(self, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 9 | 5 | 0 | 5 | 4 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,536 | pulumi/pulumi | tests/integration/deleted_with/python/fails_on_delete.py | fails_on_delete.FailsOnDelete | import pulumi
from typing import Optional
class FailsOnDelete(pulumi.CustomResource):
def __init__(self, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None):
super().__init__('testprovider:index:FailsOnDelete', resource_name, {}, opts) |
class FailsOnDelete(pulumi.CustomResource):
def __init__(self, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None):
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 0 | 1 | 9 | 5 | 0 | 5 | 4 | 1 | 0 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
15,537 | pulumi/pulumi | scripts/get-job-matrix.py | get-job-matrix.GotestsumInclude | from typing import Any, Dict, List, Optional, Set, TypedDict, Union
class GotestsumInclude(TypedDict):
"""Job entry from `gotestsum tool ci-matrix`"""
id: int
estimatedRuntime: str
packages: str
tests: Optional[str]
description: str |
class GotestsumInclude(TypedDict):
'''Job entry from `gotestsum tool ci-matrix`'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 1 | 6 | 1 | 5 | 1 | 6 | 1 | 5 | 0 | 1 | 0 | 0 |
15,538 | pulumi/pulumi | scripts/get-job-matrix.py | get-job-matrix.GotestsumOutput | from typing import Any, Dict, List, Optional, Set, TypedDict, Union
class GotestsumOutput(TypedDict):
"""Type of value returned via `gotestsum tool ci-matrix`"""
include: List[GotestsumInclude] |
class GotestsumOutput(TypedDict):
'''Type of value returned via `gotestsum tool ci-matrix`'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
15,539 | pulumi/pulumi | scripts/get-job-matrix.py | get-job-matrix.JobKind | from enum import Enum
class JobKind(str, Enum):
"""Output kinds supported with this utility."""
INTEGRATION_TEST = 'integration-test'
ACCEPTANCE_TEST = 'acceptance-test'
UNIT_TEST = 'unit-test'
PERFORMANCE_TEST = 'performance-test'
ALL_TEST = 'all-test' |
class JobKind(str, Enum):
'''Output kinds supported with this utility.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.17 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 8 | 1 | 6 | 6 | 5 | 1 | 6 | 6 | 5 | 0 | 4 | 0 | 0 |
15,540 | pulumi/pulumi | scripts/get-job-matrix.py | get-job-matrix.PartitionModule | from dataclasses import dataclass
@dataclass
class PartitionModule:
"""Go modules to partition into jobs by package."""
module_dir: str
partitions: int | @dataclass
class PartitionModule:
'''Go modules to partition into jobs by package.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.33 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 3 | 1 | 2 | 1 | 3 | 1 | 2 | 0 | 0 | 0 | 0 |
15,541 | pulumi/pulumi | scripts/get-job-matrix.py | get-job-matrix.PartitionPackage | from dataclasses import dataclass
@dataclass
class PartitionPackage:
"""Go packages to subdivide into jobs by test."""
package: str
package_dir: str
partitions: int | @dataclass
class PartitionPackage:
'''Go packages to subdivide into jobs by test.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 4 | 1 | 3 | 1 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
15,542 | pulumi/pulumi | scripts/go-test.py | go-test.RepeatTimer | import threading
class RepeatTimer(threading.Timer):
def run(self):
while not self.finished.wait(self.interval):
self.function(*self.args, **self.kwargs) |
class RepeatTimer(threading.Timer):
def run(self):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 29 | 4 | 0 | 4 | 2 | 2 | 0 | 4 | 2 | 2 | 2 | 2 | 1 | 2 |
15,543 | pulumi/pulumi | docs/make.py | make.Config | import pathlib
class Config:
"""Config collects configuration information necessary to execute build
tasks."""
def __init__(self, generated_dir: str, tools_dir: str, protoc_version: str, protoc_platforms: dict[str, str], protoc_gen_doc_version: str, protoc_gen_doc_platforms: dict[str, str], proto_path: st... |
class Config:
'''Config collects configuration information necessary to execute build
tasks.'''
def __init__(self, generated_dir: str, tools_dir: str, protoc_version: str, protoc_platforms: dict[str, str], protoc_gen_doc_version: str, protoc_gen_doc_platforms: dict[str, str], proto_path: str, proto_files:... | 2 | 2 | 68 | 6 | 30 | 32 | 1 | 1.1 | 0 | 3 | 0 | 0 | 1 | 15 | 1 | 1 | 72 | 7 | 31 | 29 | 18 | 34 | 18 | 18 | 16 | 1 | 0 | 0 | 1 |
15,544 | pulumi/pulumi | tests/integration/dynamic/python-config-separate-module/provider.py | provider.SimpleProvider | from pulumi.dynamic import CreateResult, ResourceProvider, ConfigureRequest, Config
class SimpleProvider(ResourceProvider):
password: str
color: str
def configure(self, req: ConfigureRequest):
self.password = req.config.get('password')
self.color = req.config.get('colors:banana')
def ... |
class SimpleProvider(ResourceProvider):
def configure(self, req: ConfigureRequest):
pass
def create(self, props):
pass | 3 | 0 | 6 | 0 | 6 | 1 | 2 | 0.07 | 1 | 2 | 2 | 0 | 2 | 0 | 2 | 10 | 17 | 2 | 14 | 3 | 11 | 1 | 8 | 3 | 5 | 2 | 1 | 0 | 3 |
15,545 | pulumi/pulumi | sdk/python/lib/pulumi/Asset.py | pulumi.Asset.FileAsset | from os import PathLike, fspath
from typing import Union
class FileAsset(Asset):
"""
A FileAsset is a kind of asset produced from a given path to a file on
the local filesystem.
"""
path: str
def __init__(self, path: Union[str, PathLike]) -> None:
if not isinstance(path, (str, PathLike... |
class FileAsset(Asset):
'''
A FileAsset is a kind of asset produced from a given path to a file on
the local filesystem.
'''
def __init__(self, path: Union[str, PathLike]) -> None:
pass | 2 | 1 | 4 | 0 | 4 | 0 | 2 | 0.67 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 12 | 2 | 6 | 2 | 4 | 4 | 6 | 2 | 4 | 2 | 1 | 1 | 2 |
15,546 | pulumi/pulumi | sdk/python/lib/pulumi/Resource.py | pulumi.Resource.ComponentResource | from .runtime.resource import _pkg_from_type, get_resource, register_resource, register_resource_outputs, read_resource, collapse_alias_to_urn, create_urn as create_urn_internal
from typing import Optional, Any, Union, Callable, TYPE_CHECKING, cast
from collections.abc import Awaitable, Mapping, Sequence
class Compone... |
class ComponentResource(Resource):
'''
ComponentResource is a resource that aggregates one or more other child resources into a higher
level abstraction. The component itself is a resource, but does not require custom CRUD
operations for provisioning.
'''
def __init__(self, t: str, name: str,... | 3 | 3 | 15 | 1 | 8 | 7 | 2 | 1.12 | 1 | 3 | 1 | 0 | 2 | 0 | 2 | 8 | 40 | 4 | 17 | 11 | 6 | 19 | 9 | 3 | 6 | 2 | 1 | 1 | 3 |
15,547 | pulumi/pulumi | sdk/python/lib/pulumi/Resource.py | pulumi.Resource.DependencyProviderResource | from . import urn as urn_util
import asyncio
from .output import _is_prompt, _map_input, _map2_input, Output
class DependencyProviderResource(ProviderResource):
"""
A DependencyProviderResource is a resource that is used by the provider SDK as a stand-in for a provider that
is only used for its reference. ... |
class DependencyProviderResource(ProviderResource):
'''
A DependencyProviderResource is a resource that is used by the provider SDK as a stand-in for a provider that
is only used for its reference. Its only valid properties are its URN and ID.
'''
def __init__(self, ref: str) -> None:
pass | 2 | 1 | 25 | 4 | 19 | 2 | 1 | 0.3 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 10 | 31 | 5 | 20 | 11 | 18 | 6 | 20 | 11 | 18 | 1 | 3 | 0 | 1 |
15,548 | pulumi/pulumi | sdk/python/lib/pulumi/Resource.py | pulumi.Resource.DependencyResource | from . import urn as urn_util
import asyncio
from .output import _is_prompt, _map_input, _map2_input, Output
class DependencyResource(CustomResource):
"""
A DependencyResource is a resource that is used to indicate that an Output has a dependency on a particular
resource. These resources are only created w... |
class DependencyResource(CustomResource):
'''
A DependencyResource is a resource that is used to indicate that an Output has a dependency on a particular
resource. These resources are only created when dealing with remote component resources.
'''
def __init__(self, urn: str) -> None:
pass | 2 | 1 | 10 | 1 | 9 | 0 | 1 | 0.4 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 9 | 16 | 2 | 10 | 5 | 8 | 4 | 10 | 5 | 8 | 1 | 2 | 0 | 1 |
15,549 | pulumi/pulumi | sdk/python/lib/pulumi/Resource.py | pulumi.Resource.ProviderResource | from typing import Optional, Any, Union, Callable, TYPE_CHECKING, cast
from collections.abc import Awaitable, Mapping, Sequence
class ProviderResource(CustomResource):
"""
ProviderResource is a resource that implements CRUD operations for other custom resources. These resources are
managed similarly to oth... |
class ProviderResource(CustomResource):
'''
ProviderResource is a resource that implements CRUD operations for other custom resources. These resources are
managed similarly to other resources, including the usual diffing and update semantics.
'''
def __init__(self, pkg: str, name: str, props: Opti... | 2 | 2 | 28 | 1 | 17 | 10 | 2 | 0.89 | 1 | 4 | 1 | 1 | 1 | 0 | 1 | 9 | 39 | 3 | 19 | 10 | 9 | 17 | 7 | 2 | 5 | 2 | 2 | 1 | 2 |
15,550 | pulumi/pulumi | sdk/python/lib/pulumi/Resource.py | pulumi.Resource.Resource | from collections.abc import Awaitable, Mapping, Sequence
from typing import Optional, Any, Union, Callable, TYPE_CHECKING, cast
from . import log
from . import _types
from .runtime.resource import _pkg_from_type, get_resource, register_resource, register_resource_outputs, read_resource, collapse_alias_to_urn, create_ur... |
class Resource:
'''
Resource represents a class whose CRUD operations are implemented by a provider plugin.
'''
def __init__(self, t: str, name: str, custom: bool, props: Optional['Inputs']=None, opts: Optional[ResourceOptions]=None, remote: bool=False, dependency: bool=False, package_ref: Optiona... | 12 | 9 | 46 | 5 | 26 | 15 | 7 | 0.72 | 0 | 11 | 4 | 2 | 6 | 0 | 6 | 6 | 335 | 48 | 167 | 38 | 147 | 120 | 114 | 25 | 107 | 28 | 0 | 3 | 40 |
15,551 | pulumi/pulumi | sdk/python/lib/pulumi/Resource.py | pulumi.Resource.ResourceOptions | import warnings
import copy
from collections.abc import Awaitable, Mapping, Sequence
from . import log
from typing import Optional, Any, Union, Callable, TYPE_CHECKING, cast
from .resource_hooks import ResourceHookBinding
from .output import _is_prompt, _map_input, _map2_input, Output
from . import urn as urn_util
cla... |
class ResourceOptions:
'''
ResourceOptions is a bag of optional settings that control a resource's behavior.
'''
def __init__(self, parent: Optional['Resource']=None, depends_on: Optional['Input[Union[Sequence[Input[Resource]], Resource]]']=None, protect: Optional[bool]=None, provider: Optional['Provi... | 6 | 4 | 46 | 4 | 25 | 18 | 5 | 1.17 | 0 | 7 | 1 | 0 | 4 | 1 | 5 | 5 | 402 | 51 | 163 | 46 | 127 | 191 | 101 | 17 | 94 | 17 | 0 | 3 | 29 |
15,552 | pulumi/pulumi | sdk/python/lib/pulumi/_types.py | pulumi._types._Property | from typing import Any, Callable, Optional, TypeVar, Union, cast, get_type_hints, overload
class _Property:
"""
Represents a Pulumi property. It is not meant to be created outside this module,
rather, the property() function should be used.
"""
def __init__(self, name: str, default: Any=MISSING) -... |
class _Property:
'''
Represents a Pulumi property. It is not meant to be created outside this module,
rather, the property() function should be used.
'''
def __init__(self, name: str, default: Any=MISSING) -> None:
pass | 2 | 1 | 8 | 0 | 8 | 0 | 3 | 0.44 | 0 | 3 | 0 | 0 | 1 | 3 | 1 | 1 | 14 | 1 | 9 | 5 | 7 | 4 | 9 | 5 | 7 | 3 | 0 | 1 | 3 |
15,553 | pulumi/pulumi | sdk/python/lib/pulumi/_utils.py | pulumi._utils.ContextProperty | import typing
from contextvars import ContextVar
class ContextProperty:
"""Property-like interface for ContextVars
This class is intended to wrap attribute access in class instances in a property-like interface
while also ensuring the data being stored does not leak between contexts.
The preferred me... |
class ContextProperty:
'''Property-like interface for ContextVars
This class is intended to wrap attribute access in class instances in a property-like interface
while also ensuring the data being stored does not leak between contexts.
The preferred method for using this class is via the @contextproper... | 17 | 2 | 4 | 0 | 4 | 0 | 1 | 0.3 | 0 | 5 | 0 | 0 | 16 | 4 | 16 | 16 | 100 | 22 | 60 | 32 | 37 | 18 | 54 | 26 | 37 | 2 | 0 | 1 | 22 |
15,554 | pulumi/pulumi | sdk/python/lib/pulumi/_utils.py | pulumi._utils._LazyLoader | import importlib.abc
import importlib
class _LazyLoader(importlib.abc.Loader):
"""A loader that creates a module which defers loading until attribute access."""
@staticmethod
def __check_eager_loader(loader):
if not hasattr(loader, 'exec_module'):
raise TypeError('loader must define ex... |
class _LazyLoader(importlib.abc.Loader):
'''A loader that creates a module which defers loading until attribute access.'''
@staticmethod
def __check_eager_loader(loader):
pass
@classmethod
def factory(cls, loader):
'''Construct a callable which returns the eager loader made lazy.'''... | 8 | 3 | 5 | 0 | 4 | 1 | 1 | 0.32 | 1 | 2 | 1 | 0 | 3 | 1 | 5 | 8 | 34 | 5 | 22 | 10 | 14 | 7 | 20 | 8 | 14 | 2 | 2 | 1 | 6 |
15,555 | pulumi/pulumi | sdk/python/lib/pulumi/_utils.py | pulumi._utils._LazyModule | import sys
import types
class _LazyModule(types.ModuleType):
"""A subclass of the module type which triggers loading upon attribute access."""
def __getattribute__(self, attr):
"""Trigger the load of the module and return the attribute."""
self.__class__ = types.ModuleType
original_nam... |
class _LazyModule(types.ModuleType):
'''A subclass of the module type which triggers loading upon attribute access.'''
def __getattribute__(self, attr):
'''Trigger the load of the module and return the attribute.'''
pass
def __delattr__(self, attr):
'''Trigger the load and then pe... | 3 | 3 | 21 | 0 | 12 | 9 | 4 | 0.72 | 1 | 1 | 0 | 0 | 2 | 1 | 2 | 2 | 45 | 2 | 25 | 9 | 22 | 18 | 20 | 9 | 17 | 6 | 1 | 2 | 7 |
15,556 | pulumi/pulumi | sdk/python/lib/pulumi/asset.py | pulumi.asset.Archive | class Archive:
"""
Archive represents a collection of named assets.
""" | class Archive:
'''
Archive represents a collection of named assets.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
15,557 | pulumi/pulumi | sdk/python/lib/pulumi/asset.py | pulumi.asset.Asset | class Asset:
"""
Asset represents a single blob of text or data that is managed as a first
class entity.
""" | class Asset:
'''
Asset represents a single blob of text or data that is managed as a first
class entity.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 0 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 5 | 0 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
15,558 | pulumi/pulumi | sdk/python/lib/pulumi/asset.py | pulumi.asset.AssetArchive | from typing import Union
class AssetArchive(Archive):
"""
An AssetArchive is an archive created from an in-memory collection of named assets or other archives.
"""
assets: dict[str, Union[Asset, Archive]]
def __init__(self, assets: dict[str, Union[Asset, Archive]]) -> None:
if not isinstan... |
class AssetArchive(Archive):
'''
An AssetArchive is an archive created from an in-memory collection of named assets or other archives.
'''
def __init__(self, assets: dict[str, Union[Asset, Archive]]) -> None:
pass | 2 | 1 | 11 | 0 | 11 | 0 | 5 | 0.23 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 18 | 2 | 13 | 3 | 11 | 3 | 11 | 3 | 9 | 5 | 1 | 2 | 5 |
15,559 | pulumi/pulumi | sdk/python/lib/pulumi/asset.py | pulumi.asset.FileArchive | class FileArchive(Archive):
"""
A FileArchive is a file-based archive, or collection of file-based assets. This can be
a raw directory or a single archive file in one of the supported formats (.tar, .tar.gz, or .zip).
"""
path: str
def __init__(self, path: str) -> None:
if not isinstan... | class FileArchive(Archive):
'''
A FileArchive is a file-based archive, or collection of file-based assets. This can be
a raw directory or a single archive file in one of the supported formats (.tar, .tar.gz, or .zip).
'''
def __init__(self, path: str) -> None:
pass | 2 | 1 | 4 | 0 | 4 | 0 | 2 | 0.67 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 12 | 2 | 6 | 2 | 4 | 4 | 6 | 2 | 4 | 2 | 1 | 1 | 2 |
15,560 | pulumi/pulumi | sdk/python/lib/pulumi/asset.py | pulumi.asset.FileAsset | from typing import Union
from os import PathLike, fspath
class FileAsset(Asset):
"""
A FileAsset is a kind of asset produced from a given path to a file on
the local filesystem.
"""
path: str
def __init__(self, path: Union[str, PathLike]) -> None:
if not isinstance(path, (str, PathLike... |
class FileAsset(Asset):
'''
A FileAsset is a kind of asset produced from a given path to a file on
the local filesystem.
'''
def __init__(self, path: Union[str, PathLike]) -> None:
pass | 2 | 1 | 4 | 0 | 4 | 0 | 2 | 0.67 | 1 | 3 | 0 | 0 | 1 | 0 | 1 | 1 | 12 | 2 | 6 | 2 | 4 | 4 | 6 | 2 | 4 | 2 | 1 | 1 | 2 |
15,561 | pulumi/pulumi | sdk/python/lib/pulumi/asset.py | pulumi.asset.RemoteArchive | class RemoteArchive(Archive):
"""
A RemoteArchive is a file-based archive fetched from a remote location. The URI's scheme dictates
the protocol for fetching contents: "file://" specifies a local file, "http://" and "https://"
specify HTTP and HTTPS, respectively, and specific providers may recognize c... | class RemoteArchive(Archive):
'''
A RemoteArchive is a file-based archive fetched from a remote location. The URI's scheme dictates
the protocol for fetching contents: "file://" specifies a local file, "http://" and "https://"
specify HTTP and HTTPS, respectively, and specific providers may recognize c... | 2 | 1 | 4 | 0 | 4 | 0 | 2 | 0.83 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 13 | 2 | 6 | 2 | 4 | 5 | 6 | 2 | 4 | 2 | 1 | 1 | 2 |
15,562 | pulumi/pulumi | sdk/python/lib/pulumi/asset.py | pulumi.asset.RemoteAsset | class RemoteAsset(Asset):
"""
A RemoteAsset is a kind of asset produced from a given URI string. The URI's scheme
dictates the protocol for fetching contents: "file://" specifies a local file, "http://"
and "https://" specify HTTP and HTTPS, respectively. Note that specific providers may recognize
a... | class RemoteAsset(Asset):
'''
A RemoteAsset is a kind of asset produced from a given URI string. The URI's scheme
dictates the protocol for fetching contents: "file://" specifies a local file, "http://"
and "https://" specify HTTP and HTTPS, respectively. Note that specific providers may recognize
a... | 2 | 1 | 4 | 0 | 4 | 0 | 2 | 1 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 14 | 2 | 6 | 2 | 4 | 6 | 6 | 2 | 4 | 2 | 1 | 1 | 2 |
15,563 | pulumi/pulumi | sdk/python/lib/pulumi/asset.py | pulumi.asset.StringAsset | class StringAsset(Asset):
"""
A StringAsset is a kind of asset produced from an in-memory UTF-8 encoded string.
"""
text: str
def __init__(self, text: str) -> None:
if not isinstance(text, str):
raise TypeError('StringAsset data must be a string')
self.text = text | class StringAsset(Asset):
'''
A StringAsset is a kind of asset produced from an in-memory UTF-8 encoded string.
'''
def __init__(self, text: str) -> None:
pass | 2 | 1 | 4 | 0 | 4 | 0 | 2 | 0.5 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 11 | 2 | 6 | 2 | 4 | 3 | 6 | 2 | 4 | 2 | 1 | 1 | 2 |
15,564 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_cmd.py | pulumi.automation._cmd.CommandResult | class CommandResult:
def __init__(self, stdout: str, stderr: str, code: int) -> None:
self.stdout = stdout
self.stderr = stderr
self.code = code
def __repr__(self):
return f'CommandResult(stdout={self.stdout!r}, stderr={self.stderr!r}, code={self.code!r})'
def __str__(self... | class CommandResult:
def __init__(self, stdout: str, stderr: str, code: int) -> None:
pass
def __repr__(self):
pass
def __str__(self) -> str:
pass | 4 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 3 | 3 | 3 | 3 | 11 | 2 | 9 | 7 | 5 | 0 | 9 | 7 | 5 | 1 | 0 | 0 | 3 |
15,565 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_cmd.py | pulumi.automation._cmd.PulumiCommand | from .._version import version as sdk_version
from collections.abc import Mapping
from ._minimum_version import _MINIMUM_VERSION
import threading
import os
from .errors import InvalidVersionError, create_command_error
import subprocess
from semver import VersionInfo
import tempfile
from ._env import _SKIP_VERSION_CHECK... |
class PulumiCommand:
'''
PulumiCommand manages the Pulumi CLI. It can be used to to install the CLI and run commands.
'''
def __init__(self, root: Optional[str]=None, version: Optional[VersionInfo]=None, skip_version_check: bool=False):
'''
Creates a new PulumiCommand.
:param r... | 10 | 4 | 36 | 3 | 28 | 6 | 4 | 0.24 | 0 | 5 | 1 | 1 | 2 | 0 | 5 | 5 | 194 | 19 | 144 | 42 | 119 | 35 | 73 | 21 | 67 | 8 | 0 | 5 | 20 |
15,566 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_config.py | pulumi.automation._config.ConfigValue | class ConfigValue:
"""
ConfigValue is the input/output of a `pulumi config` command.
It has a plaintext value, and an option boolean indicating secretness.
"""
value: str
secret: bool = False
def __init__(self, value: str, secret: bool=False):
self.value = value
self.secret ... | class ConfigValue:
'''
ConfigValue is the input/output of a `pulumi config` command.
It has a plaintext value, and an option boolean indicating secretness.
'''
def __init__(self, value: str, secret: bool=False):
pass
def __repr__(self):
pass | 3 | 1 | 3 | 0 | 3 | 0 | 2 | 0.5 | 0 | 2 | 0 | 0 | 2 | 0 | 2 | 2 | 15 | 3 | 8 | 4 | 5 | 4 | 8 | 4 | 5 | 2 | 0 | 0 | 3 |
15,567 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_local_workspace.py | pulumi.automation._local_workspace.LocalWorkspace | import json
from ._tag import TagMap
from ._project_settings import ProjectSettings
from ._output import OutputMap, OutputValue
from ._stack import _DATETIME_FORMAT, Stack
from ._cmd import CommandResult, OnOutput, PulumiCommand
from ._workspace import Deployment, PluginInfo, PulumiFn, StackSummary, TokenInformation, W... |
class LocalWorkspace(Workspace):
'''
LocalWorkspace is a default implementation of the Workspace interface.
A Workspace is the execution context containing a single Pulumi project, a program,
and multiple stacks. Workspaces are used to manage the execution environment,
providing various utilities s... | 44 | 1 | 12 | 0 | 12 | 0 | 3 | 0.06 | 1 | 18 | 13 | 0 | 42 | 6 | 42 | 95 | 587 | 61 | 496 | 173 | 415 | 32 | 330 | 131 | 287 | 20 | 5 | 3 | 125 |
15,568 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_local_workspace.py | pulumi.automation._local_workspace.LocalWorkspaceOptions | from collections.abc import Mapping
from ._project_settings import ProjectSettings
from typing import TYPE_CHECKING, Callable, Optional, Union
from ._cmd import CommandResult, OnOutput, PulumiCommand
from ._stack_settings import StackSettings
from ._workspace import Deployment, PluginInfo, PulumiFn, StackSummary, Token... |
class LocalWorkspaceOptions:
def __init__(self, work_dir: Optional[str]=None, pulumi_home: Optional[str]=None, program: Optional[PulumiFn]=None, env_vars: Optional[Mapping[str, str]]=None, secrets_provider: Optional[str]=None, project_settings: Optional[ProjectSettings]=None, stack_settings: Optional[Mapping[str,... | 2 | 0 | 19 | 0 | 19 | 0 | 1 | 0 | 0 | 4 | 3 | 0 | 1 | 0 | 1 | 1 | 29 | 1 | 28 | 20 | 16 | 0 | 18 | 10 | 16 | 1 | 0 | 0 | 1 |
15,569 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_local_workspace.py | pulumi.automation._local_workspace.Secret | class Secret(str):
"""
Represents a secret value.
""" | class Secret(str):
'''
Represents a secret value.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 66 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 2 | 0 | 0 |
15,570 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_output.py | pulumi.automation._output.OutputValue | from typing import Any
from ._config import _SECRET_SENTINEL
class OutputValue:
value: Any
secret: bool
def __init__(self, value: Any, secret: bool):
self.value = value
self.secret = secret
def __repr__(self):
return _SECRET_SENTINEL if self.secret else repr(self.value) |
class OutputValue:
def __init__(self, value: Any, secret: bool):
pass
def __repr__(self):
pass | 3 | 0 | 3 | 0 | 3 | 0 | 2 | 0 | 0 | 2 | 0 | 0 | 2 | 0 | 2 | 2 | 10 | 2 | 8 | 3 | 5 | 0 | 8 | 3 | 5 | 2 | 0 | 0 | 3 |
15,571 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_project_settings.py | pulumi.automation._project_settings.ProjectBackend | from typing import Any, Optional, Union
class ProjectBackend:
"""Configuration for the project's Pulumi state storage backend."""
url: Optional[str]
def __init__(self, url: Optional[str]=None):
self.url = url
@staticmethod
def from_dict(data: dict[str, Any]) -> 'ProjectBackend':
"... |
class ProjectBackend:
'''Configuration for the project's Pulumi state storage backend.'''
def __init__(self, url: Optional[str]=None):
pass
@staticmethod
def from_dict(data: dict[str, Any]) -> 'ProjectBackend':
'''Deserialize a ProjectBackend from a dictionary.'''
pass
def... | 5 | 3 | 5 | 0 | 4 | 1 | 1 | 0.2 | 0 | 2 | 0 | 0 | 2 | 0 | 3 | 3 | 22 | 4 | 15 | 5 | 10 | 3 | 8 | 4 | 4 | 1 | 0 | 0 | 3 |
15,572 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_project_settings.py | pulumi.automation._project_settings.ProjectRuntimeInfo | from typing import Any, Optional, Union
from collections.abc import Iterable, Mapping
class ProjectRuntimeInfo:
"""A description of the Project's program runtime and associated metadata."""
name: str
options: Optional[Mapping[str, Any]]
def __init__(self, name: str, options: Optional[Mapping[str, Any]... |
class ProjectRuntimeInfo:
'''A description of the Project's program runtime and associated metadata.'''
def __init__(self, name: str, options: Optional[Mapping[str, Any]]=None):
pass
@staticmethod
def from_dict(data: dict[str, Any]) -> 'ProjectRuntimeInfo':
'''Deserialize a ProjectRunt... | 5 | 3 | 6 | 0 | 5 | 1 | 1 | 0.16 | 0 | 2 | 0 | 0 | 2 | 0 | 3 | 3 | 26 | 4 | 19 | 5 | 14 | 3 | 10 | 4 | 6 | 1 | 0 | 0 | 3 |
15,573 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_project_settings.py | pulumi.automation._project_settings.ProjectSettings | from typing import Any, Optional, Union
class ProjectSettings:
"""A Pulumi project manifest. It describes metadata applying to all sub-stacks created from the project."""
name: str
runtime: Union[str, ProjectRuntimeInfo]
main: Optional[str] = None
description: Optional[str] = None
author: Optio... |
class ProjectSettings:
'''A Pulumi project manifest. It describes metadata applying to all sub-stacks created from the project.'''
def __init__(self, name: str, runtime: Union[str, ProjectRuntimeInfo], main: Optional[str]=None, description: Optional[str]=None, author: Optional[str]=None, website: Optional[str... | 5 | 3 | 27 | 1 | 26 | 1 | 3 | 0.03 | 0 | 7 | 3 | 0 | 2 | 0 | 3 | 3 | 99 | 7 | 89 | 28 | 72 | 3 | 37 | 15 | 33 | 4 | 0 | 1 | 10 |
15,574 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_project_settings.py | pulumi.automation._project_settings.ProjectTemplate | from typing import Any, Optional, Union
from collections.abc import Iterable, Mapping
class ProjectTemplate:
"""A template used to seed new stacks created from this project."""
description: Optional[str]
quickstart: Optional[str]
config: Mapping[str, ProjectTemplateConfigValue]
important: Optional[... |
class ProjectTemplate:
'''A template used to seed new stacks created from this project.'''
def __init__(self, description: Optional[str]=None, quickstart: Optional[str]=None, config: Optional[Mapping[str, ProjectTemplateConfigValue]]=None, important: Optional[bool]=None):
pass
@staticmethod
de... | 5 | 3 | 11 | 0 | 10 | 1 | 1 | 0.08 | 0 | 4 | 1 | 0 | 2 | 0 | 3 | 3 | 43 | 4 | 36 | 11 | 25 | 3 | 14 | 4 | 10 | 1 | 0 | 0 | 3 |
15,575 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_project_settings.py | pulumi.automation._project_settings.ProjectTemplateConfigValue | from typing import Any, Optional, Union
class ProjectTemplateConfigValue:
"""A placeholder config value for a project template."""
description: Optional[str]
default: Optional[str]
secret: bool
def __init__(self, description: Optional[str]=None, default: Optional[str]=None, secret: bool=False):
... |
class ProjectTemplateConfigValue:
'''A placeholder config value for a project template.'''
def __init__(self, description: Optional[str]=None, default: Optional[str]=None, secret: bool=False):
pass
@staticmethod
def from_dict(data: dict[str, Any]) -> 'ProjectTemplateConfigValue':
'''De... | 5 | 3 | 8 | 0 | 8 | 1 | 1 | 0.11 | 0 | 3 | 0 | 0 | 2 | 0 | 3 | 3 | 35 | 4 | 28 | 10 | 18 | 3 | 12 | 4 | 8 | 1 | 0 | 0 | 3 |
15,576 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_remote_stack.py | pulumi.automation._remote_stack.RemoteStack | from pulumi.automation._workspace import Deployment
from pulumi.automation._output import OutputMap
from typing import Optional
from pulumi.automation._cmd import OnOutput
from pulumi.automation._stack import DestroyResult, OnEvent, PreviewResult, RefreshResult, Stack, UpResult, UpdateSummary
class RemoteStack:
""... |
class RemoteStack:
'''
RemoteStack is an isolated, independencly configurable instance of a Pulumi program that is
operated on remotely (up/preview/refresh/destroy).
'''
@property
def name(self) -> str:
pass
def __init__(self, stack: Stack):
pass
def up(self, on_output... | 13 | 10 | 10 | 1 | 4 | 5 | 1 | 1.31 | 0 | 9 | 7 | 0 | 11 | 0 | 11 | 11 | 125 | 21 | 45 | 33 | 12 | 59 | 24 | 12 | 12 | 1 | 0 | 0 | 11 |
15,577 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_remote_workspace.py | pulumi.automation._remote_workspace.RemoteGitAuth | from typing import Optional, Union
class RemoteGitAuth:
"""
Authentication options for the repository that can be specified for a private Git repo.
There are three different authentication paths:
- Personal accesstoken
- SSH private key (and its optional password)
- Basic auth username and ... | null | 2 | 1 | 14 | 0 | 14 | 0 | 1 | 1.15 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 50 | 7 | 20 | 10 | 10 | 23 | 12 | 2 | 10 | 1 | 0 | 0 | 1 |
15,578 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_remote_workspace.py | pulumi.automation._remote_workspace.RemoteWorkspaceOptions | from pulumi.automation._local_workspace import ExecutorImage, LocalWorkspace, Secret
from typing import Optional, Union
from collections.abc import Mapping
class RemoteWorkspaceOptions:
"""
Extensibility options to configure a RemoteWorkspace.
"""
env_vars: Optional[Mapping[str, Union[str, Secret]]]
... |
class RemoteWorkspaceOptions:
'''
Extensibility options to configure a RemoteWorkspace.
'''
def __init__(self, *, env_vars: Optional[Mapping[str, Union[str, Secret]]]=None, pre_run_commands: Optional[list[str]]=None, skip_install_dependencies: Optional[bool]=None, executor_image: Optional[ExecutorImag... | 2 | 1 | 12 | 0 | 12 | 0 | 1 | 0.18 | 0 | 3 | 1 | 0 | 1 | 0 | 1 | 1 | 22 | 2 | 17 | 9 | 8 | 3 | 10 | 2 | 8 | 1 | 0 | 0 | 1 |
15,579 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_representable.py | pulumi.automation._representable._Representable | class _Representable:
"""This mix-in improves the default `__repr__` to be more readable."""
def __repr__(self):
inputs = self.__dict__
fields = [f'{key}={value!r}' for key, value in inputs.items()]
fields = ', '.join(fields)
return f'{self.__class__.__name__}({fields})' | class _Representable:
'''This mix-in improves the default `__repr__` to be more readable.'''
def __repr__(self):
pass | 2 | 1 | 5 | 0 | 5 | 0 | 1 | 0.17 | 0 | 0 | 0 | 2 | 1 | 0 | 1 | 1 | 8 | 1 | 6 | 4 | 4 | 1 | 6 | 4 | 4 | 1 | 0 | 0 | 1 |
15,580 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_server.py | pulumi.automation._server.LanguageServer | import contextvars
import traceback
import sys
import asyncio
import grpc
from contextlib import suppress
from .. import log
from ..errors import RunError
from concurrent.futures import ThreadPoolExecutor
from ..runtime import reset_options, run_in_stack, set_all_config
from ._workspace import PulumiFn
from ..runtime.p... |
class LanguageServer(LanguageRuntimeServicer):
def __init__(self, program: PulumiFn) -> None:
pass
def GetRequiredPlugins(self, request, context):
pass
def GetRequiredPackages(self, request, context):
pass
def _exception_handler(self, loop, context):
pass
def Ru... | 8 | 0 | 27 | 2 | 22 | 4 | 3 | 0.18 | 1 | 4 | 1 | 0 | 5 | 0 | 5 | 19 | 97 | 11 | 74 | 17 | 67 | 13 | 55 | 16 | 48 | 10 | 2 | 3 | 16 |
15,581 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack.py | pulumi.automation._stack.BaseResult | from ._representable import _Representable
class BaseResult(_Representable):
def __init__(self, stdout: str, stderr: str):
self.stdout = stdout
self.stderr = stderr |
class BaseResult(_Representable):
def __init__(self, stdout: str, stderr: str):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 1 | 0 | 5 | 1 | 2 | 1 | 2 | 4 | 0 | 4 | 4 | 2 | 0 | 4 | 4 | 2 | 1 | 1 | 0 | 1 |
15,582 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack.py | pulumi.automation._stack.DestroyResult | class DestroyResult(BaseResult):
def __init__(self, stdout: str, stderr: str, summary: UpdateSummary):
super().__init__(stdout, stderr)
self.summary = summary | class DestroyResult(BaseResult):
def __init__(self, stdout: str, stderr: str, summary: UpdateSummary):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 1 | 1 | 3 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,583 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack.py | pulumi.automation._stack.ExecKind | from enum import Enum
class ExecKind(str, Enum):
LOCAL = 'auto.local'
INLINE = 'auto.inline' |
class ExecKind(str, Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
15,584 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack.py | pulumi.automation._stack.ImportResource | from typing import Any, Optional, Callable, TypedDict
class ImportResource(TypedDict, total=False):
"""
ImportResource represents a resource to import into a stack.
- id: The import ID of the resource. The format is specific to resource type.
- type: The type token of the Pulumi resource
- n... |
class ImportResource(TypedDict, total=False):
'''
ImportResource represents a resource to import into a stack.
- id: The import ID of the resource. The format is specific to resource type.
- type: The type token of the Pulumi resource
- name: The name of the resource
- logicalName: The ... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1.5 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 34 | 4 | 12 | 1 | 11 | 18 | 12 | 1 | 11 | 0 | 1 | 0 | 0 |
15,585 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack.py | pulumi.automation._stack.ImportResult | class ImportResult(BaseResult):
def __init__(self, stdout: str, stderr: str, summary: UpdateSummary, generated_code: str):
super().__init__(stdout, stderr)
self.summary = summary
self.generated_code = generated_code | class ImportResult(BaseResult):
def __init__(self, stdout: str, stderr: str, summary: UpdateSummary, generated_code: str):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 2 | 1 | 3 | 7 | 0 | 7 | 6 | 3 | 0 | 5 | 4 | 3 | 1 | 2 | 0 | 1 |
15,586 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack.py | pulumi.automation._stack.PreviewResult | from .events import OpMap, EngineEvent, SummaryEvent
class PreviewResult(BaseResult):
def __init__(self, stdout: str, stderr: str, change_summary: OpMap):
super().__init__(stdout, stderr)
self.change_summary = change_summary |
class PreviewResult(BaseResult):
def __init__(self, stdout: str, stderr: str, change_summary: OpMap):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 1 | 1 | 3 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,587 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack.py | pulumi.automation._stack.RefreshResult | class RefreshResult(BaseResult):
def __init__(self, stdout: str, stderr: str, summary: UpdateSummary):
super().__init__(stdout, stderr)
self.summary = summary | class RefreshResult(BaseResult):
def __init__(self, stdout: str, stderr: str, summary: UpdateSummary):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 1 | 1 | 3 | 4 | 0 | 4 | 3 | 2 | 0 | 4 | 3 | 2 | 1 | 2 | 0 | 1 |
15,588 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack.py | pulumi.automation._stack.Stack | from ._server import LanguageServer
import grpc
from concurrent import futures
from .events import OpMap, EngineEvent, SummaryEvent
from typing import Any, Optional, Callable, TypedDict
from ..runtime.settings import _GRPC_CHANNEL_OPTIONS
from ._workspace import Workspace, PulumiFn, Deployment
from ._cmd import Command... |
class Stack:
'''
Stack is an isolated, independently configurable instance of a Pulumi program.
Stack exposes methods for the full pulumi lifecycle (up/preview/refresh/destroy), as well as managing configuration.
Multiple Stacks are commonly used to denote different phases of development
(such as d... | 50 | 34 | 21 | 2 | 12 | 7 | 2 | 0.58 | 0 | 26 | 18 | 0 | 31 | 3 | 34 | 34 | 811 | 109 | 444 | 217 | 291 | 258 | 255 | 101 | 215 | 9 | 0 | 3 | 79 |
15,589 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack.py | pulumi.automation._stack.StackInitMode | from enum import Enum
class StackInitMode(Enum):
CREATE = 'create'
SELECT = 'select'
CREATE_OR_SELECT = 'create_or_select' |
class StackInitMode(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 4 | 0 | 4 | 4 | 3 | 0 | 4 | 4 | 3 | 0 | 4 | 0 | 0 |
15,590 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack.py | pulumi.automation._stack.UpResult | from ._output import OutputMap
class UpResult(BaseResult):
def __init__(self, stdout: str, stderr: str, summary: UpdateSummary, outputs: OutputMap):
super().__init__(stdout, stderr)
self.outputs = outputs
self.summary = summary |
class UpResult(BaseResult):
def __init__(self, stdout: str, stderr: str, summary: UpdateSummary, outputs: OutputMap):
pass | 2 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 1 | 2 | 1 | 3 | 7 | 0 | 7 | 6 | 3 | 0 | 5 | 4 | 3 | 1 | 2 | 0 | 1 |
15,591 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack.py | pulumi.automation._stack.UpdateSummary | from typing import Any, Optional, Callable, TypedDict
from datetime import datetime
from ._config import ConfigValue, ConfigMap
from collections.abc import Mapping
from .events import OpMap, EngineEvent, SummaryEvent
class UpdateSummary:
def __init__(self, kind: str, start_time: datetime, message: str, environmen... |
class UpdateSummary:
def __init__(self, kind: str, start_time: datetime, message: str, environment: Mapping[str, str], config: Mapping[str, dict], result: str, end_time: Optional[datetime]=None, version: Optional[int]=None, deployment: Optional[str]=None, resource_changes: Optional[OpMap]=None):
pass
... | 3 | 0 | 22 | 0 | 20 | 2 | 2 | 0.1 | 0 | 5 | 1 | 0 | 2 | 10 | 2 | 2 | 45 | 1 | 40 | 29 | 25 | 4 | 19 | 17 | 16 | 3 | 0 | 1 | 4 |
15,592 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack_settings.py | pulumi.automation._stack_settings.StackSettings | from typing import Optional, Any
class StackSettings:
"""A description of the Stack's configuration and encryption metadata."""
secrets_provider: Optional[str]
encrypted_key: Optional[str]
encryption_salt: Optional[str]
config: Optional[dict[str, Any]]
def __init__(self, secrets_provider: Opti... |
class StackSettings:
'''A description of the Stack's configuration and encryption metadata.'''
def __init__(self, secrets_provider: Optional[str]=None, encrypted_key: Optional[str]=None, encryption_salt: Optional[str]=None, config: Optional[dict[str, Any]]=None):
pass
@classmethod
def _deseria... | 5 | 1 | 16 | 1 | 15 | 1 | 4 | 0.06 | 0 | 4 | 1 | 0 | 2 | 0 | 3 | 3 | 59 | 6 | 50 | 17 | 39 | 3 | 36 | 10 | 32 | 7 | 0 | 3 | 13 |
15,593 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_stack_settings.py | pulumi.automation._stack_settings.StackSettingsSecureConfigValue | class StackSettingsSecureConfigValue:
"""A secret Stack config entry."""
secure: str
def __init__(self, secure: str):
self.secure = secure | class StackSettingsSecureConfigValue:
'''A secret Stack config entry.'''
def __init__(self, secure: str):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 0.25 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 7 | 2 | 4 | 2 | 2 | 1 | 4 | 2 | 2 | 1 | 0 | 0 | 1 |
15,594 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_workspace.py | pulumi.automation._workspace.Deployment | from collections.abc import Mapping, Awaitable
from typing import Any, Callable, Optional
class Deployment:
version: Optional[int]
deployment: Optional[Mapping[str, Any]]
def __init__(self, version: Optional[int]=None, deployment: Optional[Mapping[str, Any]]=None) -> None:
self.version = version
... |
class Deployment:
def __init__(self, version: Optional[int]=None, deployment: Optional[Mapping[str, Any]]=None) -> None:
pass
def __repr__(self):
pass | 3 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 0 | 3 | 0 | 0 | 2 | 0 | 2 | 2 | 14 | 2 | 12 | 7 | 5 | 0 | 8 | 3 | 5 | 1 | 0 | 0 | 2 |
15,595 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_workspace.py | pulumi.automation._workspace.PluginInfo | from typing import Any, Callable, Optional
from datetime import datetime
class PluginInfo:
name: str
kind: str
size: int
last_used_time: datetime
install_time: Optional[datetime]
version: Optional[str]
def __init__(self, name: str, kind: str, size: int, last_used_time: datetime, install_ti... |
class PluginInfo:
def __init__(self, name: str, kind: str, size: int, last_used_time: datetime, install_time: Optional[datetime]=None, version: Optional[str]=None) -> None:
pass | 2 | 0 | 15 | 0 | 15 | 0 | 1 | 0 | 0 | 3 | 0 | 0 | 1 | 1 | 1 | 1 | 23 | 1 | 22 | 11 | 12 | 0 | 14 | 3 | 12 | 1 | 0 | 0 | 1 |
15,596 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_workspace.py | pulumi.automation._workspace.StackSummary | from datetime import datetime
from typing import Any, Callable, Optional
class StackSummary:
"""A summary of the status of a given stack."""
name: str
current: bool
update_in_progress: Optional[bool]
last_update: Optional[datetime]
resource_count: Optional[int]
url: Optional[str]
def _... |
class StackSummary:
'''A summary of the status of a given stack.'''
def __init__(self, name: str, current: bool, update_in_progress: Optional[bool]=None, last_update: Optional[datetime]=None, resource_count: Optional[int]=None, url: Optional[str]=None) -> None:
pass | 2 | 1 | 15 | 0 | 15 | 0 | 1 | 0.05 | 0 | 4 | 0 | 0 | 1 | 0 | 1 | 1 | 25 | 2 | 22 | 10 | 12 | 1 | 14 | 2 | 12 | 1 | 0 | 0 | 1 |
15,597 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_workspace.py | pulumi.automation._workspace.TokenInformation | from typing import Any, Callable, Optional
from dataclasses import dataclass
@dataclass
class TokenInformation:
"""Information about the token that was used to authenticate the current user."""
name: str
organization: Optional[str]
team: Optional[str] | @dataclass
class TokenInformation:
'''Information about the token that was used to authenticate the current user.'''
pass | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 4 | 1 | 3 | 1 | 4 | 1 | 3 | 0 | 0 | 0 | 0 |
15,598 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_workspace.py | pulumi.automation._workspace.WhoAmIResult | from typing import Any, Callable, Optional
class WhoAmIResult:
"""The currently logged-in Pulumi identity."""
user: str
url: Optional[str]
organizations: Optional[list[str]]
token_information: Optional[TokenInformation]
def __init__(self, user: str, url: Optional[str]=None, organizations: Opti... |
class WhoAmIResult:
'''The currently logged-in Pulumi identity.'''
def __init__(self, user: str, url: Optional[str]=None, organizations: Optional[list[str]]=None, token_information: Optional[TokenInformation]=None) -> None:
pass | 2 | 1 | 11 | 0 | 11 | 0 | 1 | 0.06 | 0 | 2 | 1 | 0 | 1 | 0 | 1 | 1 | 19 | 2 | 16 | 8 | 8 | 1 | 10 | 2 | 8 | 1 | 0 | 0 | 1 |
15,599 | pulumi/pulumi | sdk/python/lib/pulumi/automation/_workspace.py | pulumi.automation._workspace.Workspace | from ._stack_settings import StackSettings
from ._tag import TagMap
from ._config import ConfigMap, ConfigValue
from typing import Any, Callable, Optional
from ._output import OutputMap
from ._project_settings import ProjectSettings
from collections.abc import Mapping, Awaitable
from abc import ABC, abstractmethod
from... |
class Workspace(ABC):
'''
Workspace is the execution context containing a single Pulumi project, a program, and multiple stacks.
Workspaces are used to manage the execution environment, providing various utilities such as plugin
installation, environment configuration ($PULUMI_HOME), and creation, dele... | 67 | 34 | 8 | 1 | 2 | 6 | 1 | 2.3 | 1 | 9 | 7 | 1 | 33 | 0 | 33 | 53 | 378 | 74 | 92 | 86 | 7 | 212 | 41 | 35 | 7 | 1 | 4 | 0 | 33 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.