+ * EXPERIMENTAL + *
+ * @see https://github.com/aws/jsii/issues/1765 + */ +@javax.annotation.Generated(value = "jsii-pacmak") +@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) +@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UmaskCheck") +public class UmaskCheck extends software.amazon.jsii.JsiiObject { + + protected UmaskCheck(final software.amazon.jsii.JsiiObjectRef objRef) { + super(objRef); + } + + protected UmaskCheck(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { + super(initializationMode); + } + + /** + * This should return 0o644 (-rw-r--r--). + *
+ * EXPERIMENTAL + */ + @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) + public static @org.jetbrains.annotations.NotNull java.lang.Number mode() { + return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.UmaskCheck.class, "mode", java.lang.Number.class); + } +} diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java index 0ac621ba45..3768bf78bd 100644 --- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java +++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/submodule/MyClass.java @@ -18,11 +18,13 @@ protected MyClass(final software.amazon.jsii.JsiiObject.InitializationMode initi /** * EXPERIMENTAL + *
+ * @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
- public MyClass() {
+ public MyClass(final @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeStruct props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
- software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this);
+ software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
@@ -50,6 +52,14 @@ public MyClass() {
return this.jsiiGet("goodness", software.amazon.jsii.tests.calculator.submodule.child.Goodness.class);
}
+ /**
+ * EXPERIMENTAL
+ */
+ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
+ public @org.jetbrains.annotations.NotNull software.amazon.jsii.tests.calculator.submodule.child.SomeStruct getProps() {
+ return this.jsiiGet("props", software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.class);
+ }
+
/**
* EXPERIMENTAL
*/
@@ -65,4 +75,49 @@ public MyClass() {
public void setAllTypes(final @org.jetbrains.annotations.Nullable software.amazon.jsii.tests.calculator.AllTypes value) {
this.jsiiSet("allTypes", value);
}
+
+ /**
+ * A fluent builder for {@link software.amazon.jsii.tests.calculator.submodule.MyClass}.
+ */
+ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
+ public static final class Builder implements software.amazon.jsii.Builder
+ * @return a new instance of {@link Builder}.
+ */
+ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
+ public static Builder create() {
+ return new Builder();
+ }
+
+ private final software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.Builder props;
+
+ private Builder() {
+ this.props = new software.amazon.jsii.tests.calculator.submodule.child.SomeStruct.Builder();
+ }
+
+ /**
+ * EXPERIMENTAL
+ *
+ * @return {@code this}
+ * @param prop This parameter is required.
+ */
+ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
+ public Builder prop(final software.amazon.jsii.tests.calculator.submodule.child.SomeEnum prop) {
+ this.props.prop(prop);
+ return this;
+ }
+
+ /**
+ * @returns a newly built instance of {@link software.amazon.jsii.tests.calculator.submodule.MyClass}.
+ */
+ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
+ @Override
+ public software.amazon.jsii.tests.calculator.submodule.MyClass build() {
+ return new software.amazon.jsii.tests.calculator.submodule.MyClass(
+ this.props.build()
+ );
+ }
+ }
}
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt
index af8a15b4e1..e14eae141e 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/java/src/main/resources/software/amazon/jsii/tests/calculator/$Module.txt
@@ -184,6 +184,7 @@ jsii-calc.SupportsNiceJavaBuilderWithRequiredProps=software.amazon.jsii.tests.ca
jsii-calc.SyncVirtualMethods=software.amazon.jsii.tests.calculator.SyncVirtualMethods
jsii-calc.Thrower=software.amazon.jsii.tests.calculator.Thrower
jsii-calc.TopLevelStruct=software.amazon.jsii.tests.calculator.TopLevelStruct
+jsii-calc.UmaskCheck=software.amazon.jsii.tests.calculator.UmaskCheck
jsii-calc.UnaryOperation=software.amazon.jsii.tests.calculator.UnaryOperation
jsii-calc.UnionProperties=software.amazon.jsii.tests.calculator.UnionProperties
jsii-calc.UpcasingReflectable=software.amazon.jsii.tests.calculator.UpcasingReflectable
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py
index 80dbe4a1d6..fdc3939098 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/setup.py
@@ -1,7 +1,8 @@
import json
import setuptools
-kwargs = json.loads("""
+kwargs = json.loads(
+ """
{
"name": "jsii-calc",
"version": "0.0.0",
@@ -59,10 +60,11 @@
"License :: OSI Approved"
]
}
-""")
+"""
+)
-with open('README.md') as fp:
- kwargs['long_description'] = fp.read()
+with open("README.md") as fp:
+ kwargs["long_description"] = fp.read()
setuptools.setup(**kwargs)
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py
index 5c0b8e2c0e..b076a707cb 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/__init__.py
@@ -43,14 +43,17 @@
import scope.jsii_calc_base_of_base
import scope.jsii_calc_lib
import scope.jsii_calc_lib.custom_submodule_name
-from .composition import (CompositeOperation as _CompositeOperation_1c4d123b)
+from .composition import CompositeOperation as _CompositeOperation_1c4d123b
-class AbstractClassBase(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClassBase"):
+class AbstractClassBase(
+ metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClassBase"
+):
"""
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _AbstractClassBaseProxy
@@ -80,11 +83,14 @@ def abstract_property(self) -> str:
return jsii.get(self, "abstractProperty")
-class AbstractClassReturner(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AbstractClassReturner"):
+class AbstractClassReturner(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AbstractClassReturner"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(AbstractClassReturner, self, [])
@@ -114,12 +120,15 @@ def return_abstract_from_property(self) -> "AbstractClassBase":
return jsii.get(self, "returnAbstractFromProperty")
-class AbstractSuite(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractSuite"):
+class AbstractSuite(
+ metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractSuite"
+):
"""Ensures abstract members implementations correctly register overrides in various languages.
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _AbstractSuiteProxy
@@ -199,6 +208,7 @@ class AllTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllTypes"):
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(AllTypes, self, [])
@@ -353,7 +363,9 @@ def map_property(self) -> typing.Mapping[str, scope.jsii_calc_lib.Number]:
return jsii.get(self, "mapProperty")
@map_property.setter
- def map_property(self, value: typing.Mapping[str, scope.jsii_calc_lib.Number]) -> None:
+ def map_property(
+ self, value: typing.Mapping[str, scope.jsii_calc_lib.Number]
+ ) -> None:
jsii.set(self, "mapProperty", value)
@builtins.property
@@ -384,7 +396,9 @@ def string_property(self, value: str) -> None:
@builtins.property
@jsii.member(jsii_name="unionArrayProperty")
- def union_array_property(self) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]:
+ def union_array_property(
+ self,
+ ) -> typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]:
"""
stability
:stability: experimental
@@ -392,12 +406,18 @@ def union_array_property(self) -> typing.List[typing.Union[jsii.Number, scope.js
return jsii.get(self, "unionArrayProperty")
@union_array_property.setter
- def union_array_property(self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]) -> None:
+ def union_array_property(
+ self, value: typing.List[typing.Union[jsii.Number, scope.jsii_calc_lib.Value]]
+ ) -> None:
jsii.set(self, "unionArrayProperty", value)
@builtins.property
@jsii.member(jsii_name="unionMapProperty")
- def union_map_property(self) -> typing.Mapping[str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]:
+ def union_map_property(
+ self,
+ ) -> typing.Mapping[
+ str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]
+ ]:
"""
stability
:stability: experimental
@@ -405,12 +425,19 @@ def union_map_property(self) -> typing.Mapping[str, typing.Union[str, jsii.Numbe
return jsii.get(self, "unionMapProperty")
@union_map_property.setter
- def union_map_property(self, value: typing.Mapping[str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]]) -> None:
+ def union_map_property(
+ self,
+ value: typing.Mapping[
+ str, typing.Union[str, jsii.Number, scope.jsii_calc_lib.Number]
+ ],
+ ) -> None:
jsii.set(self, "unionMapProperty", value)
@builtins.property
@jsii.member(jsii_name="unionProperty")
- def union_property(self) -> typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]:
+ def union_property(
+ self,
+ ) -> typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]:
"""
stability
:stability: experimental
@@ -418,7 +445,10 @@ def union_property(self) -> typing.Union[str, jsii.Number, "Multiply", scope.jsi
return jsii.get(self, "unionProperty")
@union_property.setter
- def union_property(self, value: typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number]) -> None:
+ def union_property(
+ self,
+ value: typing.Union[str, jsii.Number, "Multiply", scope.jsii_calc_lib.Number],
+ ) -> None:
jsii.set(self, "unionProperty", value)
@builtins.property
@@ -480,6 +510,7 @@ class AllTypesEnum(enum.Enum):
stability
:stability: experimental
"""
+
MY_ENUM_VALUE = "MY_ENUM_VALUE"
"""
stability
@@ -496,11 +527,15 @@ class AllTypesEnum(enum.Enum):
:stability: experimental
"""
-class AllowedMethodNames(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllowedMethodNames"):
+
+class AllowedMethodNames(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AllowedMethodNames"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(AllowedMethodNames, self, [])
@@ -551,12 +586,17 @@ def set_foo(self, _x: str, _y: jsii.Number) -> None:
return jsii.invoke(self, "setFoo", [_x, _y])
-class AmbiguousParameters(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AmbiguousParameters"):
+class AmbiguousParameters(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AmbiguousParameters"
+):
"""
stability
:stability: experimental
"""
- def __init__(self, scope_: "Bell", *, scope: str, props: typing.Optional[bool]=None) -> None:
+
+ def __init__(
+ self, scope_: "Bell", *, scope: str, props: typing.Optional[bool] = None
+ ) -> None:
"""
:param scope_: -
:param scope:
@@ -588,11 +628,14 @@ def scope(self) -> "Bell":
return jsii.get(self, "scope")
-class AsyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AsyncVirtualMethods"):
+class AsyncVirtualMethods(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AsyncVirtualMethods"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(AsyncVirtualMethods, self, [])
@@ -658,6 +701,7 @@ class AugmentableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Augmentable
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(AugmentableClass, self, [])
@@ -683,22 +727,30 @@ class BaseJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.BaseJsii976"):
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(BaseJsii976, self, [])
@jsii.implements(scope.jsii_calc_lib.IFriendly)
-class BinaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.BinaryOperation"):
+class BinaryOperation(
+ scope.jsii_calc_lib.Operation,
+ metaclass=jsii.JSIIAbstractClass,
+ jsii_type="jsii-calc.BinaryOperation",
+):
"""Represents an operation with two operands.
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _BinaryOperationProxy
- def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None:
+ def __init__(
+ self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value
+ ) -> None:
"""Creates a BinaryOperation.
:param lhs: Left-hand side operand.
@@ -739,10 +791,17 @@ def rhs(self) -> scope.jsii_calc_lib.Value:
return jsii.get(self, "rhs")
-class _BinaryOperationProxy(BinaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)):
+class _BinaryOperationProxy(
+ BinaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)
+):
pass
-class Calculator(_CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Calculator"):
+
+class Calculator(
+ _CompositeOperation_1c4d123b,
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.Calculator",
+):
"""A calculator which maintains a current value and allows adding operations.
Here's how you use it::
@@ -766,7 +825,13 @@ class Calculator(_CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_typ
calculator.mul(3)
print(calculator.expression.value)
"""
- def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None) -> None:
+
+ def __init__(
+ self,
+ *,
+ initial_value: typing.Optional[jsii.Number] = None,
+ maximum_value: typing.Optional[jsii.Number] = None,
+ ) -> None:
"""Creates a Calculator object.
:param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0
@@ -775,7 +840,9 @@ def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_
stability
:stability: experimental
"""
- props = CalculatorProps(initial_value=initial_value, maximum_value=maximum_value)
+ props = CalculatorProps(
+ initial_value=initial_value, maximum_value=maximum_value
+ )
jsii.create(Calculator, self, [props])
@@ -852,7 +919,9 @@ def operations_log(self) -> typing.List[scope.jsii_calc_lib.Value]:
@builtins.property
@jsii.member(jsii_name="operationsMap")
- def operations_map(self) -> typing.Mapping[str, typing.List[scope.jsii_calc_lib.Value]]:
+ def operations_map(
+ self,
+ ) -> typing.Mapping[str, typing.List[scope.jsii_calc_lib.Value]]:
"""A map of per operation name of all operations performed.
stability
@@ -890,7 +959,9 @@ def max_value(self, value: typing.Optional[jsii.Number]) -> None:
@builtins.property
@jsii.member(jsii_name="unionProperty")
- def union_property(self) -> typing.Optional[typing.Union["Add", "Multiply", "Power"]]:
+ def union_property(
+ self,
+ ) -> typing.Optional[typing.Union["Add", "Multiply", "Power"]]:
"""Example of a property that accepts a union of types.
stability
@@ -899,13 +970,24 @@ def union_property(self) -> typing.Optional[typing.Union["Add", "Multiply", "Pow
return jsii.get(self, "unionProperty")
@union_property.setter
- def union_property(self, value: typing.Optional[typing.Union["Add", "Multiply", "Power"]]) -> None:
+ def union_property(
+ self, value: typing.Optional[typing.Union["Add", "Multiply", "Power"]]
+ ) -> None:
jsii.set(self, "unionProperty", value)
-@jsii.data_type(jsii_type="jsii-calc.CalculatorProps", jsii_struct_bases=[], name_mapping={'initial_value': 'initialValue', 'maximum_value': 'maximumValue'})
-class CalculatorProps():
- def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_value: typing.Optional[jsii.Number]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.CalculatorProps",
+ jsii_struct_bases=[],
+ name_mapping={"initial_value": "initialValue", "maximum_value": "maximumValue"},
+)
+class CalculatorProps:
+ def __init__(
+ self,
+ *,
+ initial_value: typing.Optional[jsii.Number] = None,
+ maximum_value: typing.Optional[jsii.Number] = None,
+ ) -> None:
"""Properties for Calculator.
:param initial_value: The initial value of the calculator. NOTE: Any number works here, it's fine. Default: 0
@@ -914,10 +996,11 @@ def __init__(self, *, initial_value: typing.Optional[jsii.Number]=None, maximum_
stability
:stability: experimental
"""
- self._values = {
- }
- if initial_value is not None: self._values["initial_value"] = initial_value
- if maximum_value is not None: self._values["maximum_value"] = maximum_value
+ self._values = {}
+ if initial_value is not None:
+ self._values["initial_value"] = initial_value
+ if maximum_value is not None:
+ self._values["maximum_value"] = maximum_value
@builtins.property
def initial_value(self) -> typing.Optional[jsii.Number]:
@@ -931,7 +1014,7 @@ def initial_value(self) -> typing.Optional[jsii.Number]:
stability
:stability: experimental
"""
- return self._values.get('initial_value')
+ return self._values.get("initial_value")
@builtins.property
def maximum_value(self) -> typing.Optional[jsii.Number]:
@@ -943,7 +1026,7 @@ def maximum_value(self) -> typing.Optional[jsii.Number]:
stability
:stability: experimental
"""
- return self._values.get('maximum_value')
+ return self._values.get("maximum_value")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -952,14 +1035,19 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'CalculatorProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "CalculatorProps(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class ClassWithCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithCollections"):
+class ClassWithCollections(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithCollections"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self, map: typing.Mapping[str, str], array: typing.List[str]) -> None:
"""
:param map: -
@@ -1057,15 +1145,19 @@ class ClassWithDocs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithDocs"
def an_example():
pass
"""
+
def __init__(self) -> None:
jsii.create(ClassWithDocs, self, [])
-class ClassWithJavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithJavaReservedWords"):
+class ClassWithJavaReservedWords(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithJavaReservedWords"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self, int: str) -> None:
"""
:param int: -
@@ -1095,11 +1187,14 @@ def int(self) -> str:
return jsii.get(self, "int")
-class ClassWithMutableObjectLiteralProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithMutableObjectLiteralProperty"):
+class ClassWithMutableObjectLiteralProperty(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithMutableObjectLiteralProperty"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ClassWithMutableObjectLiteralProperty, self, [])
@@ -1117,7 +1212,9 @@ def mutable_object(self, value: "IMutableObjectLiteral") -> None:
jsii.set(self, "mutableObject", value)
-class ConfusingToJackson(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConfusingToJackson"):
+class ConfusingToJackson(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConfusingToJackson"
+):
"""This tries to confuse Jackson by having overloaded property setters.
see
@@ -1125,6 +1222,7 @@ class ConfusingToJackson(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Confusing
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="makeInstance")
@builtins.classmethod
def make_instance(cls) -> "ConfusingToJackson":
@@ -1145,7 +1243,14 @@ def make_struct_instance(cls) -> "ConfusingToJacksonStruct":
@builtins.property
@jsii.member(jsii_name="unionProperty")
- def union_property(self) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]:
+ def union_property(
+ self,
+ ) -> typing.Optional[
+ typing.Union[
+ scope.jsii_calc_lib.IFriendly,
+ typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]],
+ ]
+ ]:
"""
stability
:stability: experimental
@@ -1153,30 +1258,62 @@ def union_property(self) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFr
return jsii.get(self, "unionProperty")
@union_property.setter
- def union_property(self, value: typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]) -> None:
+ def union_property(
+ self,
+ value: typing.Optional[
+ typing.Union[
+ scope.jsii_calc_lib.IFriendly,
+ typing.List[
+ typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]
+ ],
+ ]
+ ],
+ ) -> None:
jsii.set(self, "unionProperty", value)
-@jsii.data_type(jsii_type="jsii-calc.ConfusingToJacksonStruct", jsii_struct_bases=[], name_mapping={'union_property': 'unionProperty'})
-class ConfusingToJacksonStruct():
- def __init__(self, *, union_property: typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.ConfusingToJacksonStruct",
+ jsii_struct_bases=[],
+ name_mapping={"union_property": "unionProperty"},
+)
+class ConfusingToJacksonStruct:
+ def __init__(
+ self,
+ *,
+ union_property: typing.Optional[
+ typing.Union[
+ scope.jsii_calc_lib.IFriendly,
+ typing.List[
+ typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]
+ ],
+ ]
+ ] = None,
+ ) -> None:
"""
:param union_property:
stability
:stability: experimental
"""
- self._values = {
- }
- if union_property is not None: self._values["union_property"] = union_property
+ self._values = {}
+ if union_property is not None:
+ self._values["union_property"] = union_property
@builtins.property
- def union_property(self) -> typing.Optional[typing.Union[scope.jsii_calc_lib.IFriendly, typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]]]]:
+ def union_property(
+ self,
+ ) -> typing.Optional[
+ typing.Union[
+ scope.jsii_calc_lib.IFriendly,
+ typing.List[typing.Union[scope.jsii_calc_lib.IFriendly, "AbstractClass"]],
+ ]
+ ]:
"""
stability
:stability: experimental
"""
- return self._values.get('union_property')
+ return self._values.get("union_property")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -1185,14 +1322,19 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'ConfusingToJacksonStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "ConfusingToJacksonStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class ConstructorPassesThisOut(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConstructorPassesThisOut"):
+class ConstructorPassesThisOut(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConstructorPassesThisOut"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self, consumer: "PartiallyInitializedThisConsumer") -> None:
"""
:param consumer: -
@@ -1208,6 +1350,7 @@ class Constructors(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Constructors"):
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(Constructors, self, [])
@@ -1275,11 +1418,14 @@ def make_interfaces(cls) -> typing.List["IPublicInterface"]:
return jsii.sinvoke(cls, "makeInterfaces", [])
-class ConsumePureInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumePureInterface"):
+class ConsumePureInterface(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumePureInterface"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self, delegate: "IStructReturningDelegate") -> None:
"""
:param delegate: -
@@ -1298,7 +1444,9 @@ def work_it_baby(self) -> "StructB":
return jsii.invoke(self, "workItBaby", [])
-class ConsumerCanRingBell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumerCanRingBell"):
+class ConsumerCanRingBell(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumerCanRingBell"
+):
"""Test calling back to consumers that implement interfaces.
Check that if a JSII consumer implements IConsumerWithInterfaceParam, they can call
@@ -1307,6 +1455,7 @@ class ConsumerCanRingBell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Consumer
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ConsumerCanRingBell, self, [])
@@ -1419,11 +1568,14 @@ def when_typed_as_class(self, ringer: "IConcreteBellRinger") -> bool:
return jsii.invoke(self, "whenTypedAsClass", [ringer])
-class ConsumersOfThisCrazyTypeSystem(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumersOfThisCrazyTypeSystem"):
+class ConsumersOfThisCrazyTypeSystem(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ConsumersOfThisCrazyTypeSystem"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ConsumersOfThisCrazyTypeSystem, self, [])
@@ -1438,7 +1590,9 @@ def consume_another_public_interface(self, obj: "IAnotherPublicInterface") -> st
return jsii.invoke(self, "consumeAnotherPublicInterface", [obj])
@jsii.member(jsii_name="consumeNonInternalInterface")
- def consume_non_internal_interface(self, obj: "INonInternalInterface") -> typing.Any:
+ def consume_non_internal_interface(
+ self, obj: "INonInternalInterface"
+ ) -> typing.Any:
"""
:param obj: -
@@ -1454,6 +1608,7 @@ class DataRenderer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DataRenderer"):
stability
:stability: experimental
"""
+
def __init__(self) -> None:
"""
stability
@@ -1462,7 +1617,13 @@ def __init__(self) -> None:
jsii.create(DataRenderer, self, [])
@jsii.member(jsii_name="render")
- def render(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> str:
+ def render(
+ self,
+ *,
+ anumber: jsii.Number,
+ astring: str,
+ first_optional: typing.Optional[typing.List[str]] = None,
+ ) -> str:
"""
:param anumber: An awesome number value.
:param astring: A string value.
@@ -1471,7 +1632,9 @@ def render(self, *, anumber: jsii.Number, astring: str, first_optional: typing.O
stability
:stability: experimental
"""
- data = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional)
+ data = scope.jsii_calc_lib.MyFirstStruct(
+ anumber=anumber, astring=astring, first_optional=first_optional
+ )
return jsii.invoke(self, "render", [data])
@@ -1496,12 +1659,20 @@ def render_map(self, map: typing.Mapping[str, typing.Any]) -> str:
return jsii.invoke(self, "renderMap", [map])
-class DefaultedConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DefaultedConstructorArgument"):
+class DefaultedConstructorArgument(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DefaultedConstructorArgument"
+):
"""
stability
:stability: experimental
"""
- def __init__(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None:
+
+ def __init__(
+ self,
+ arg1: typing.Optional[jsii.Number] = None,
+ arg2: typing.Optional[str] = None,
+ arg3: typing.Optional[datetime.datetime] = None,
+ ) -> None:
"""
:param arg1: -
:param arg2: -
@@ -1549,6 +1720,7 @@ class Demonstrate982(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Demonstrate98
stability
:stability: experimental
"""
+
def __init__(self) -> None:
"""
stability
@@ -1585,7 +1757,10 @@ class DeprecatedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DeprecatedCl
stability
:stability: deprecated
"""
- def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None:
+
+ def __init__(
+ self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None
+ ) -> None:
"""
:param readonly_string: -
:param mutable_number: -
@@ -1647,6 +1822,7 @@ class DeprecatedEnum(enum.Enum):
stability
:stability: deprecated
"""
+
OPTION_A = "OPTION_A"
"""
deprecated
@@ -1664,8 +1840,13 @@ class DeprecatedEnum(enum.Enum):
:stability: deprecated
"""
-@jsii.data_type(jsii_type="jsii-calc.DeprecatedStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'})
-class DeprecatedStruct():
+
+@jsii.data_type(
+ jsii_type="jsii-calc.DeprecatedStruct",
+ jsii_struct_bases=[],
+ name_mapping={"readonly_property": "readonlyProperty"},
+)
+class DeprecatedStruct:
def __init__(self, *, readonly_property: str) -> None:
"""
:param readonly_property:
@@ -1677,7 +1858,7 @@ def __init__(self, *, readonly_property: str) -> None:
:stability: deprecated
"""
self._values = {
- 'readonly_property': readonly_property,
+ "readonly_property": readonly_property,
}
@builtins.property
@@ -1689,7 +1870,7 @@ def readonly_property(self) -> str:
stability
:stability: deprecated
"""
- return self._values.get('readonly_property')
+ return self._values.get("readonly_property")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -1698,12 +1879,42 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'DeprecatedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
-
-
-@jsii.data_type(jsii_type="jsii-calc.DerivedStruct", jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct], name_mapping={'anumber': 'anumber', 'astring': 'astring', 'first_optional': 'firstOptional', 'another_required': 'anotherRequired', 'bool': 'bool', 'non_primitive': 'nonPrimitive', 'another_optional': 'anotherOptional', 'optional_any': 'optionalAny', 'optional_array': 'optionalArray'})
+ return "DeprecatedStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
+
+
+@jsii.data_type(
+ jsii_type="jsii-calc.DerivedStruct",
+ jsii_struct_bases=[scope.jsii_calc_lib.MyFirstStruct],
+ name_mapping={
+ "anumber": "anumber",
+ "astring": "astring",
+ "first_optional": "firstOptional",
+ "another_required": "anotherRequired",
+ "bool": "bool",
+ "non_primitive": "nonPrimitive",
+ "another_optional": "anotherOptional",
+ "optional_any": "optionalAny",
+ "optional_array": "optionalArray",
+ },
+)
class DerivedStruct(scope.jsii_calc_lib.MyFirstStruct):
- def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None) -> None:
+ def __init__(
+ self,
+ *,
+ anumber: jsii.Number,
+ astring: str,
+ first_optional: typing.Optional[typing.List[str]] = None,
+ another_required: datetime.datetime,
+ bool: bool,
+ non_primitive: "DoubleTrouble",
+ another_optional: typing.Optional[
+ typing.Mapping[str, scope.jsii_calc_lib.Value]
+ ] = None,
+ optional_any: typing.Any = None,
+ optional_array: typing.Optional[typing.List[str]] = None,
+ ) -> None:
"""A struct which derives from another struct.
:param anumber: An awesome number value.
@@ -1720,16 +1931,20 @@ def __init__(self, *, anumber: jsii.Number, astring: str, first_optional: typing
:stability: experimental
"""
self._values = {
- 'anumber': anumber,
- 'astring': astring,
- 'another_required': another_required,
- 'bool': bool,
- 'non_primitive': non_primitive,
+ "anumber": anumber,
+ "astring": astring,
+ "another_required": another_required,
+ "bool": bool,
+ "non_primitive": non_primitive,
}
- if first_optional is not None: self._values["first_optional"] = first_optional
- if another_optional is not None: self._values["another_optional"] = another_optional
- if optional_any is not None: self._values["optional_any"] = optional_any
- if optional_array is not None: self._values["optional_array"] = optional_array
+ if first_optional is not None:
+ self._values["first_optional"] = first_optional
+ if another_optional is not None:
+ self._values["another_optional"] = another_optional
+ if optional_any is not None:
+ self._values["optional_any"] = optional_any
+ if optional_array is not None:
+ self._values["optional_array"] = optional_array
@builtins.property
def anumber(self) -> jsii.Number:
@@ -1738,7 +1953,7 @@ def anumber(self) -> jsii.Number:
stability
:stability: deprecated
"""
- return self._values.get('anumber')
+ return self._values.get("anumber")
@builtins.property
def astring(self) -> str:
@@ -1747,7 +1962,7 @@ def astring(self) -> str:
stability
:stability: deprecated
"""
- return self._values.get('astring')
+ return self._values.get("astring")
@builtins.property
def first_optional(self) -> typing.Optional[typing.List[str]]:
@@ -1755,7 +1970,7 @@ def first_optional(self) -> typing.Optional[typing.List[str]]:
stability
:stability: deprecated
"""
- return self._values.get('first_optional')
+ return self._values.get("first_optional")
@builtins.property
def another_required(self) -> datetime.datetime:
@@ -1763,7 +1978,7 @@ def another_required(self) -> datetime.datetime:
stability
:stability: experimental
"""
- return self._values.get('another_required')
+ return self._values.get("another_required")
@builtins.property
def bool(self) -> bool:
@@ -1771,7 +1986,7 @@ def bool(self) -> bool:
stability
:stability: experimental
"""
- return self._values.get('bool')
+ return self._values.get("bool")
@builtins.property
def non_primitive(self) -> "DoubleTrouble":
@@ -1780,16 +1995,18 @@ def non_primitive(self) -> "DoubleTrouble":
stability
:stability: experimental
"""
- return self._values.get('non_primitive')
+ return self._values.get("non_primitive")
@builtins.property
- def another_optional(self) -> typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]:
+ def another_optional(
+ self,
+ ) -> typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]:
"""This is optional.
stability
:stability: experimental
"""
- return self._values.get('another_optional')
+ return self._values.get("another_optional")
@builtins.property
def optional_any(self) -> typing.Any:
@@ -1797,7 +2014,7 @@ def optional_any(self) -> typing.Any:
stability
:stability: experimental
"""
- return self._values.get('optional_any')
+ return self._values.get("optional_any")
@builtins.property
def optional_array(self) -> typing.Optional[typing.List[str]]:
@@ -1805,7 +2022,7 @@ def optional_array(self) -> typing.Optional[typing.List[str]]:
stability
:stability: experimental
"""
- return self._values.get('optional_array')
+ return self._values.get("optional_array")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -1814,11 +2031,17 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'DerivedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "DerivedStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceBaseLevelStruct", jsii_struct_bases=[], name_mapping={'base_level_property': 'baseLevelProperty'})
-class DiamondInheritanceBaseLevelStruct():
+@jsii.data_type(
+ jsii_type="jsii-calc.DiamondInheritanceBaseLevelStruct",
+ jsii_struct_bases=[],
+ name_mapping={"base_level_property": "baseLevelProperty"},
+)
+class DiamondInheritanceBaseLevelStruct:
def __init__(self, *, base_level_property: str) -> None:
"""
:param base_level_property:
@@ -1827,7 +2050,7 @@ def __init__(self, *, base_level_property: str) -> None:
:stability: experimental
"""
self._values = {
- 'base_level_property': base_level_property,
+ "base_level_property": base_level_property,
}
@builtins.property
@@ -1836,7 +2059,7 @@ def base_level_property(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('base_level_property')
+ return self._values.get("base_level_property")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -1845,12 +2068,23 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'DiamondInheritanceBaseLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
-
-
-@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceFirstMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty'})
+ return "DiamondInheritanceBaseLevelStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
+
+
+@jsii.data_type(
+ jsii_type="jsii-calc.DiamondInheritanceFirstMidLevelStruct",
+ jsii_struct_bases=[DiamondInheritanceBaseLevelStruct],
+ name_mapping={
+ "base_level_property": "baseLevelProperty",
+ "first_mid_level_property": "firstMidLevelProperty",
+ },
+)
class DiamondInheritanceFirstMidLevelStruct(DiamondInheritanceBaseLevelStruct):
- def __init__(self, *, base_level_property: str, first_mid_level_property: str) -> None:
+ def __init__(
+ self, *, base_level_property: str, first_mid_level_property: str
+ ) -> None:
"""
:param base_level_property:
:param first_mid_level_property:
@@ -1859,8 +2093,8 @@ def __init__(self, *, base_level_property: str, first_mid_level_property: str) -
:stability: experimental
"""
self._values = {
- 'base_level_property': base_level_property,
- 'first_mid_level_property': first_mid_level_property,
+ "base_level_property": base_level_property,
+ "first_mid_level_property": first_mid_level_property,
}
@builtins.property
@@ -1869,7 +2103,7 @@ def base_level_property(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('base_level_property')
+ return self._values.get("base_level_property")
@builtins.property
def first_mid_level_property(self) -> str:
@@ -1877,7 +2111,7 @@ def first_mid_level_property(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('first_mid_level_property')
+ return self._values.get("first_mid_level_property")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -1886,12 +2120,23 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'DiamondInheritanceFirstMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
-
-
-@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceSecondMidLevelStruct", jsii_struct_bases=[DiamondInheritanceBaseLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty'})
+ return "DiamondInheritanceFirstMidLevelStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
+
+
+@jsii.data_type(
+ jsii_type="jsii-calc.DiamondInheritanceSecondMidLevelStruct",
+ jsii_struct_bases=[DiamondInheritanceBaseLevelStruct],
+ name_mapping={
+ "base_level_property": "baseLevelProperty",
+ "second_mid_level_property": "secondMidLevelProperty",
+ },
+)
class DiamondInheritanceSecondMidLevelStruct(DiamondInheritanceBaseLevelStruct):
- def __init__(self, *, base_level_property: str, second_mid_level_property: str) -> None:
+ def __init__(
+ self, *, base_level_property: str, second_mid_level_property: str
+ ) -> None:
"""
:param base_level_property:
:param second_mid_level_property:
@@ -1900,8 +2145,8 @@ def __init__(self, *, base_level_property: str, second_mid_level_property: str)
:stability: experimental
"""
self._values = {
- 'base_level_property': base_level_property,
- 'second_mid_level_property': second_mid_level_property,
+ "base_level_property": base_level_property,
+ "second_mid_level_property": second_mid_level_property,
}
@builtins.property
@@ -1910,7 +2155,7 @@ def base_level_property(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('base_level_property')
+ return self._values.get("base_level_property")
@builtins.property
def second_mid_level_property(self) -> str:
@@ -1918,7 +2163,7 @@ def second_mid_level_property(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('second_mid_level_property')
+ return self._values.get("second_mid_level_property")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -1927,12 +2172,35 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'DiamondInheritanceSecondMidLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
-
-
-@jsii.data_type(jsii_type="jsii-calc.DiamondInheritanceTopLevelStruct", jsii_struct_bases=[DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct], name_mapping={'base_level_property': 'baseLevelProperty', 'first_mid_level_property': 'firstMidLevelProperty', 'second_mid_level_property': 'secondMidLevelProperty', 'top_level_property': 'topLevelProperty'})
-class DiamondInheritanceTopLevelStruct(DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct):
- def __init__(self, *, base_level_property: str, first_mid_level_property: str, second_mid_level_property: str, top_level_property: str) -> None:
+ return "DiamondInheritanceSecondMidLevelStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
+
+
+@jsii.data_type(
+ jsii_type="jsii-calc.DiamondInheritanceTopLevelStruct",
+ jsii_struct_bases=[
+ DiamondInheritanceFirstMidLevelStruct,
+ DiamondInheritanceSecondMidLevelStruct,
+ ],
+ name_mapping={
+ "base_level_property": "baseLevelProperty",
+ "first_mid_level_property": "firstMidLevelProperty",
+ "second_mid_level_property": "secondMidLevelProperty",
+ "top_level_property": "topLevelProperty",
+ },
+)
+class DiamondInheritanceTopLevelStruct(
+ DiamondInheritanceFirstMidLevelStruct, DiamondInheritanceSecondMidLevelStruct
+):
+ def __init__(
+ self,
+ *,
+ base_level_property: str,
+ first_mid_level_property: str,
+ second_mid_level_property: str,
+ top_level_property: str,
+ ) -> None:
"""
:param base_level_property:
:param first_mid_level_property:
@@ -1943,10 +2211,10 @@ def __init__(self, *, base_level_property: str, first_mid_level_property: str, s
:stability: experimental
"""
self._values = {
- 'base_level_property': base_level_property,
- 'first_mid_level_property': first_mid_level_property,
- 'second_mid_level_property': second_mid_level_property,
- 'top_level_property': top_level_property,
+ "base_level_property": base_level_property,
+ "first_mid_level_property": first_mid_level_property,
+ "second_mid_level_property": second_mid_level_property,
+ "top_level_property": top_level_property,
}
@builtins.property
@@ -1955,7 +2223,7 @@ def base_level_property(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('base_level_property')
+ return self._values.get("base_level_property")
@builtins.property
def first_mid_level_property(self) -> str:
@@ -1963,7 +2231,7 @@ def first_mid_level_property(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('first_mid_level_property')
+ return self._values.get("first_mid_level_property")
@builtins.property
def second_mid_level_property(self) -> str:
@@ -1971,7 +2239,7 @@ def second_mid_level_property(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('second_mid_level_property')
+ return self._values.get("second_mid_level_property")
@builtins.property
def top_level_property(self) -> str:
@@ -1979,7 +2247,7 @@ def top_level_property(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('top_level_property')
+ return self._values.get("top_level_property")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -1988,10 +2256,14 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'DiamondInheritanceTopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "DiamondInheritanceTopLevelStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class DisappointingCollectionSource(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DisappointingCollectionSource"):
+class DisappointingCollectionSource(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DisappointingCollectionSource"
+):
"""Verifies that null/undefined can be returned for optional collections.
This source of collections is disappointing - it'll always give you nothing :(
@@ -1999,6 +2271,7 @@ class DisappointingCollectionSource(metaclass=jsii.JSIIMeta, jsii_type="jsii-cal
stability
:stability: experimental
"""
+
@jsii.python.classproperty
@jsii.member(jsii_name="maybeList")
def MAYBE_LIST(cls) -> typing.Optional[typing.List[str]]:
@@ -2024,11 +2297,14 @@ def MAYBE_MAP(cls) -> typing.Optional[typing.Mapping[str, jsii.Number]]:
return jsii.sget(cls, "maybeMap")
-class DoNotOverridePrivates(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotOverridePrivates"):
+class DoNotOverridePrivates(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotOverridePrivates"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(DoNotOverridePrivates, self, [])
@@ -2059,17 +2335,25 @@ def private_property_value(self) -> str:
return jsii.invoke(self, "privatePropertyValue", [])
-class DoNotRecognizeAnyAsOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotRecognizeAnyAsOptional"):
+class DoNotRecognizeAnyAsOptional(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoNotRecognizeAnyAsOptional"
+):
"""jsii#284: do not recognize "any" as an optional argument.
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(DoNotRecognizeAnyAsOptional, self, [])
@jsii.member(jsii_name="method")
- def method(self, _required_any: typing.Any, _optional_any: typing.Any=None, _optional_string: typing.Optional[str]=None) -> None:
+ def method(
+ self,
+ _required_any: typing.Any,
+ _optional_any: typing.Any = None,
+ _optional_string: typing.Optional[str] = None,
+ ) -> None:
"""
:param _required_any: -
:param _optional_any: -
@@ -2078,7 +2362,9 @@ def method(self, _required_any: typing.Any, _optional_any: typing.Any=None, _opt
stability
:stability: experimental
"""
- return jsii.invoke(self, "method", [_required_any, _optional_any, _optional_string])
+ return jsii.invoke(
+ self, "method", [_required_any, _optional_any, _optional_string]
+ )
class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DocumentedClass"):
@@ -2089,11 +2375,12 @@ class DocumentedClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DocumentedCl
Multiple paragraphs are separated by an empty line.
"""
+
def __init__(self) -> None:
jsii.create(DocumentedClass, self, [])
@jsii.member(jsii_name="greet")
- def greet(self, *, name: typing.Optional[str]=None) -> jsii.Number:
+ def greet(self, *, name: typing.Optional[str] = None) -> jsii.Number:
"""Greet the indicated person.
This will print out a friendly greeting intended for
@@ -2118,16 +2405,22 @@ def hola(self) -> None:
return jsii.invoke(self, "hola", [])
-class DontComplainAboutVariadicAfterOptional(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DontComplainAboutVariadicAfterOptional"):
+class DontComplainAboutVariadicAfterOptional(
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.DontComplainAboutVariadicAfterOptional",
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(DontComplainAboutVariadicAfterOptional, self, [])
@jsii.member(jsii_name="optionalAndVariadic")
- def optional_and_variadic(self, optional: typing.Optional[str]=None, *things: str) -> str:
+ def optional_and_variadic(
+ self, optional: typing.Optional[str] = None, *things: str
+ ) -> str:
"""
:param optional: -
:param things: -
@@ -2143,6 +2436,7 @@ class EnumDispenser(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EnumDispenser"
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="randomIntegerLikeEnum")
@builtins.classmethod
def random_integer_like_enum(cls) -> "AllTypesEnum":
@@ -2162,11 +2456,14 @@ def random_string_like_enum(cls) -> "StringEnum":
return jsii.sinvoke(cls, "randomStringLikeEnum", [])
-class EraseUndefinedHashValues(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EraseUndefinedHashValues"):
+class EraseUndefinedHashValues(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.EraseUndefinedHashValues"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(EraseUndefinedHashValues, self, [])
@@ -2207,9 +2504,18 @@ def prop2_is_undefined(cls) -> typing.Mapping[str, typing.Any]:
return jsii.sinvoke(cls, "prop2IsUndefined", [])
-@jsii.data_type(jsii_type="jsii-calc.EraseUndefinedHashValuesOptions", jsii_struct_bases=[], name_mapping={'option1': 'option1', 'option2': 'option2'})
-class EraseUndefinedHashValuesOptions():
- def __init__(self, *, option1: typing.Optional[str]=None, option2: typing.Optional[str]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.EraseUndefinedHashValuesOptions",
+ jsii_struct_bases=[],
+ name_mapping={"option1": "option1", "option2": "option2"},
+)
+class EraseUndefinedHashValuesOptions:
+ def __init__(
+ self,
+ *,
+ option1: typing.Optional[str] = None,
+ option2: typing.Optional[str] = None,
+ ) -> None:
"""
:param option1:
:param option2:
@@ -2217,10 +2523,11 @@ def __init__(self, *, option1: typing.Optional[str]=None, option2: typing.Option
stability
:stability: experimental
"""
- self._values = {
- }
- if option1 is not None: self._values["option1"] = option1
- if option2 is not None: self._values["option2"] = option2
+ self._values = {}
+ if option1 is not None:
+ self._values["option1"] = option1
+ if option2 is not None:
+ self._values["option2"] = option2
@builtins.property
def option1(self) -> typing.Optional[str]:
@@ -2228,7 +2535,7 @@ def option1(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('option1')
+ return self._values.get("option1")
@builtins.property
def option2(self) -> typing.Optional[str]:
@@ -2236,7 +2543,7 @@ def option2(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('option2')
+ return self._values.get("option2")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -2245,15 +2552,22 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'EraseUndefinedHashValuesOptions(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "EraseUndefinedHashValuesOptions(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class ExperimentalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExperimentalClass"):
+class ExperimentalClass(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExperimentalClass"
+):
"""
stability
:stability: experimental
"""
- def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None:
+
+ def __init__(
+ self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None
+ ) -> None:
"""
:param readonly_string: -
:param mutable_number: -
@@ -2300,6 +2614,7 @@ class ExperimentalEnum(enum.Enum):
stability
:stability: experimental
"""
+
OPTION_A = "OPTION_A"
"""
stability
@@ -2311,8 +2626,13 @@ class ExperimentalEnum(enum.Enum):
:stability: experimental
"""
-@jsii.data_type(jsii_type="jsii-calc.ExperimentalStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'})
-class ExperimentalStruct():
+
+@jsii.data_type(
+ jsii_type="jsii-calc.ExperimentalStruct",
+ jsii_struct_bases=[],
+ name_mapping={"readonly_property": "readonlyProperty"},
+)
+class ExperimentalStruct:
def __init__(self, *, readonly_property: str) -> None:
"""
:param readonly_property:
@@ -2321,7 +2641,7 @@ def __init__(self, *, readonly_property: str) -> None:
:stability: experimental
"""
self._values = {
- 'readonly_property': readonly_property,
+ "readonly_property": readonly_property,
}
@builtins.property
@@ -2330,7 +2650,7 @@ def readonly_property(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('readonly_property')
+ return self._values.get("readonly_property")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -2339,14 +2659,19 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'ExperimentalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "ExperimentalStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class ExportedBaseClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExportedBaseClass"):
+class ExportedBaseClass(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExportedBaseClass"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self, success: bool) -> None:
"""
:param success: -
@@ -2366,8 +2691,12 @@ def success(self) -> bool:
return jsii.get(self, "success")
-@jsii.data_type(jsii_type="jsii-calc.ExtendsInternalInterface", jsii_struct_bases=[], name_mapping={'boom': 'boom', 'prop': 'prop'})
-class ExtendsInternalInterface():
+@jsii.data_type(
+ jsii_type="jsii-calc.ExtendsInternalInterface",
+ jsii_struct_bases=[],
+ name_mapping={"boom": "boom", "prop": "prop"},
+)
+class ExtendsInternalInterface:
def __init__(self, *, boom: bool, prop: str) -> None:
"""
:param boom:
@@ -2377,8 +2706,8 @@ def __init__(self, *, boom: bool, prop: str) -> None:
:stability: experimental
"""
self._values = {
- 'boom': boom,
- 'prop': prop,
+ "boom": boom,
+ "prop": prop,
}
@builtins.property
@@ -2387,7 +2716,7 @@ def boom(self) -> bool:
stability
:stability: experimental
"""
- return self._values.get('boom')
+ return self._values.get("boom")
@builtins.property
def prop(self) -> str:
@@ -2395,7 +2724,7 @@ def prop(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('prop')
+ return self._values.get("prop")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -2404,7 +2733,9 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'ExtendsInternalInterface(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "ExtendsInternalInterface(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
class ExternalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExternalClass"):
@@ -2414,7 +2745,10 @@ class ExternalClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ExternalClass"
external:
:external:: true
"""
- def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None:
+
+ def __init__(
+ self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None
+ ) -> None:
"""
:param readonly_string: -
:param mutable_number: -
@@ -2471,6 +2805,7 @@ class ExternalEnum(enum.Enum):
external:
:external:: true
"""
+
OPTION_A = "OPTION_A"
"""
stability
@@ -2486,8 +2821,13 @@ class ExternalEnum(enum.Enum):
:external:: true
"""
-@jsii.data_type(jsii_type="jsii-calc.ExternalStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'})
-class ExternalStruct():
+
+@jsii.data_type(
+ jsii_type="jsii-calc.ExternalStruct",
+ jsii_struct_bases=[],
+ name_mapping={"readonly_property": "readonlyProperty"},
+)
+class ExternalStruct:
def __init__(self, *, readonly_property: str) -> None:
"""
:param readonly_property:
@@ -2498,7 +2838,7 @@ def __init__(self, *, readonly_property: str) -> None:
:external:: true
"""
self._values = {
- 'readonly_property': readonly_property,
+ "readonly_property": readonly_property,
}
@builtins.property
@@ -2509,7 +2849,7 @@ def readonly_property(self) -> str:
external:
:external:: true
"""
- return self._values.get('readonly_property')
+ return self._values.get("readonly_property")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -2518,7 +2858,9 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'ExternalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "ExternalStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GiveMeStructs"):
@@ -2526,11 +2868,26 @@ class GiveMeStructs(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GiveMeStructs"
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(GiveMeStructs, self, [])
@jsii.member(jsii_name="derivedToFirst")
- def derived_to_first(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> scope.jsii_calc_lib.MyFirstStruct:
+ def derived_to_first(
+ self,
+ *,
+ another_required: datetime.datetime,
+ bool: bool,
+ non_primitive: "DoubleTrouble",
+ another_optional: typing.Optional[
+ typing.Mapping[str, scope.jsii_calc_lib.Value]
+ ] = None,
+ optional_any: typing.Any = None,
+ optional_array: typing.Optional[typing.List[str]] = None,
+ anumber: jsii.Number,
+ astring: str,
+ first_optional: typing.Optional[typing.List[str]] = None,
+ ) -> scope.jsii_calc_lib.MyFirstStruct:
"""Accepts a struct of type DerivedStruct and returns a struct of type FirstStruct.
:param another_required:
@@ -2546,12 +2903,36 @@ def derived_to_first(self, *, another_required: datetime.datetime, bool: bool, n
stability
:stability: experimental
"""
- derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional)
+ derived = DerivedStruct(
+ another_required=another_required,
+ bool=bool,
+ non_primitive=non_primitive,
+ another_optional=another_optional,
+ optional_any=optional_any,
+ optional_array=optional_array,
+ anumber=anumber,
+ astring=astring,
+ first_optional=first_optional,
+ )
return jsii.invoke(self, "derivedToFirst", [derived])
@jsii.member(jsii_name="readDerivedNonPrimitive")
- def read_derived_non_primitive(self, *, another_required: datetime.datetime, bool: bool, non_primitive: "DoubleTrouble", another_optional: typing.Optional[typing.Mapping[str, scope.jsii_calc_lib.Value]]=None, optional_any: typing.Any=None, optional_array: typing.Optional[typing.List[str]]=None, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> "DoubleTrouble":
+ def read_derived_non_primitive(
+ self,
+ *,
+ another_required: datetime.datetime,
+ bool: bool,
+ non_primitive: "DoubleTrouble",
+ another_optional: typing.Optional[
+ typing.Mapping[str, scope.jsii_calc_lib.Value]
+ ] = None,
+ optional_any: typing.Any = None,
+ optional_array: typing.Optional[typing.List[str]] = None,
+ anumber: jsii.Number,
+ astring: str,
+ first_optional: typing.Optional[typing.List[str]] = None,
+ ) -> "DoubleTrouble":
"""Returns the boolean from a DerivedStruct struct.
:param another_required:
@@ -2567,12 +2948,28 @@ def read_derived_non_primitive(self, *, another_required: datetime.datetime, boo
stability
:stability: experimental
"""
- derived = DerivedStruct(another_required=another_required, bool=bool, non_primitive=non_primitive, another_optional=another_optional, optional_any=optional_any, optional_array=optional_array, anumber=anumber, astring=astring, first_optional=first_optional)
+ derived = DerivedStruct(
+ another_required=another_required,
+ bool=bool,
+ non_primitive=non_primitive,
+ another_optional=another_optional,
+ optional_any=optional_any,
+ optional_array=optional_array,
+ anumber=anumber,
+ astring=astring,
+ first_optional=first_optional,
+ )
return jsii.invoke(self, "readDerivedNonPrimitive", [derived])
@jsii.member(jsii_name="readFirstNumber")
- def read_first_number(self, *, anumber: jsii.Number, astring: str, first_optional: typing.Optional[typing.List[str]]=None) -> jsii.Number:
+ def read_first_number(
+ self,
+ *,
+ anumber: jsii.Number,
+ astring: str,
+ first_optional: typing.Optional[typing.List[str]] = None,
+ ) -> jsii.Number:
"""Returns the "anumber" from a MyFirstStruct struct;
:param anumber: An awesome number value.
@@ -2582,7 +2979,9 @@ def read_first_number(self, *, anumber: jsii.Number, astring: str, first_optiona
stability
:stability: experimental
"""
- first = scope.jsii_calc_lib.MyFirstStruct(anumber=anumber, astring=astring, first_optional=first_optional)
+ first = scope.jsii_calc_lib.MyFirstStruct(
+ anumber=anumber, astring=astring, first_optional=first_optional
+ )
return jsii.invoke(self, "readFirstNumber", [first])
@@ -2596,9 +2995,11 @@ def struct_literal(self) -> scope.jsii_calc_lib.StructWithOnlyOptionals:
return jsii.get(self, "structLiteral")
-@jsii.data_type(jsii_type="jsii-calc.Greetee", jsii_struct_bases=[], name_mapping={'name': 'name'})
-class Greetee():
- def __init__(self, *, name: typing.Optional[str]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.Greetee", jsii_struct_bases=[], name_mapping={"name": "name"}
+)
+class Greetee:
+ def __init__(self, *, name: typing.Optional[str] = None) -> None:
"""These are some arguments you can pass to a method.
:param name: The name of the greetee. Default: world
@@ -2606,9 +3007,9 @@ def __init__(self, *, name: typing.Optional[str]=None) -> None:
stability
:stability: experimental
"""
- self._values = {
- }
- if name is not None: self._values["name"] = name
+ self._values = {}
+ if name is not None:
+ self._values["name"] = name
@builtins.property
def name(self) -> typing.Optional[str]:
@@ -2620,7 +3021,7 @@ def name(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('name')
+ return self._values.get("name")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -2629,14 +3030,19 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'Greetee(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "Greetee(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class GreetingAugmenter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GreetingAugmenter"):
+class GreetingAugmenter(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.GreetingAugmenter"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(GreetingAugmenter, self, [])
@@ -2658,6 +3064,7 @@ class IAnonymousImplementationProvider(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IAnonymousImplementationProviderProxy
@@ -2679,13 +3086,15 @@ def provide_as_interface(self) -> "IAnonymouslyImplementMe":
...
-class _IAnonymousImplementationProviderProxy():
+class _IAnonymousImplementationProviderProxy:
"""We can return an anonymous interface implementation from an override without losing the interface declarations.
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IAnonymousImplementationProvider"
+
@jsii.member(jsii_name="provideAsClass")
def provide_as_class(self) -> "Implementation":
"""
@@ -2709,6 +3118,7 @@ class IAnonymouslyImplementMe(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IAnonymouslyImplementMeProxy
@@ -2731,12 +3141,14 @@ def verb(self) -> str:
...
-class _IAnonymouslyImplementMeProxy():
+class _IAnonymouslyImplementMeProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IAnonymouslyImplementMe"
+
@builtins.property
@jsii.member(jsii_name="value")
def value(self) -> jsii.Number:
@@ -2761,6 +3173,7 @@ class IAnotherPublicInterface(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IAnotherPublicInterfaceProxy
@@ -2779,12 +3192,14 @@ def a(self, value: str) -> None:
...
-class _IAnotherPublicInterfaceProxy():
+class _IAnotherPublicInterfaceProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IAnotherPublicInterface"
+
@builtins.property
@jsii.member(jsii_name="a")
def a(self) -> str:
@@ -2805,6 +3220,7 @@ class IBell(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IBellProxy
@@ -2818,12 +3234,14 @@ def ring(self) -> None:
...
-class _IBellProxy():
+class _IBellProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IBell"
+
@jsii.member(jsii_name="ring")
def ring(self) -> None:
"""
@@ -2840,6 +3258,7 @@ class IBellRinger(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IBellRingerProxy
@@ -2855,13 +3274,15 @@ def your_turn(self, bell: "IBell") -> None:
...
-class _IBellRingerProxy():
+class _IBellRingerProxy:
"""Takes the object parameter as an interface.
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IBellRinger"
+
@jsii.member(jsii_name="yourTurn")
def your_turn(self, bell: "IBell") -> None:
"""
@@ -2880,6 +3301,7 @@ class IConcreteBellRinger(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IConcreteBellRingerProxy
@@ -2895,13 +3317,15 @@ def your_turn(self, bell: "Bell") -> None:
...
-class _IConcreteBellRingerProxy():
+class _IConcreteBellRingerProxy:
"""Takes the object parameter as a calss.
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IConcreteBellRinger"
+
@jsii.member(jsii_name="yourTurn")
def your_turn(self, bell: "Bell") -> None:
"""
@@ -2922,6 +3346,7 @@ class IDeprecatedInterface(jsii.compat.Protocol):
stability
:stability: deprecated
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IDeprecatedInterfaceProxy
@@ -2954,7 +3379,7 @@ def method(self) -> None:
...
-class _IDeprecatedInterfaceProxy():
+class _IDeprecatedInterfaceProxy:
"""
deprecated
:deprecated: useless interface
@@ -2962,7 +3387,9 @@ class _IDeprecatedInterfaceProxy():
stability
:stability: deprecated
"""
+
__jsii_type__ = "jsii-calc.IDeprecatedInterface"
+
@builtins.property
@jsii.member(jsii_name="mutableProperty")
def mutable_property(self) -> typing.Optional[jsii.Number]:
@@ -2997,6 +3424,7 @@ class IExperimentalInterface(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IExperimentalInterfaceProxy
@@ -3023,12 +3451,14 @@ def method(self) -> None:
...
-class _IExperimentalInterfaceProxy():
+class _IExperimentalInterfaceProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IExperimentalInterface"
+
@builtins.property
@jsii.member(jsii_name="mutableProperty")
def mutable_property(self) -> typing.Optional[jsii.Number]:
@@ -3057,6 +3487,7 @@ class IExtendsPrivateInterface(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IExtendsPrivateInterfaceProxy
@@ -3084,12 +3515,14 @@ def private(self, value: str) -> None:
...
-class _IExtendsPrivateInterfaceProxy():
+class _IExtendsPrivateInterfaceProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IExtendsPrivateInterface"
+
@builtins.property
@jsii.member(jsii_name="moreThings")
def more_things(self) -> typing.List[str]:
@@ -3121,6 +3554,7 @@ class IExternalInterface(jsii.compat.Protocol):
external:
:external:: true
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IExternalInterfaceProxy
@@ -3151,14 +3585,16 @@ def method(self) -> None:
...
-class _IExternalInterfaceProxy():
+class _IExternalInterfaceProxy:
"""
stability
:stability: experimental
external:
:external:: true
"""
+
__jsii_type__ = "jsii-calc.IExternalInterface"
+
@builtins.property
@jsii.member(jsii_name="mutableProperty")
def mutable_property(self) -> typing.Optional[jsii.Number]:
@@ -3192,6 +3628,7 @@ class IFriendlier(scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IFriendlierProxy
@@ -3224,7 +3661,9 @@ class _IFriendlierProxy(jsii.proxy_for(scope.jsii_calc_lib.IFriendly)):
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IFriendlier"
+
@jsii.member(jsii_name="farewell")
def farewell(self) -> str:
"""Say farewell.
@@ -3254,6 +3693,7 @@ class IInterfaceImplementedByAbstractClass(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IInterfaceImplementedByAbstractClassProxy
@@ -3268,13 +3708,15 @@ def prop_from_interface(self) -> str:
...
-class _IInterfaceImplementedByAbstractClassProxy():
+class _IInterfaceImplementedByAbstractClassProxy:
"""awslabs/jsii#220 Abstract return type.
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IInterfaceImplementedByAbstractClass"
+
@builtins.property
@jsii.member(jsii_name="propFromInterface")
def prop_from_interface(self) -> str:
@@ -3291,6 +3733,7 @@ class IInterfaceWithInternal(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IInterfaceWithInternalProxy
@@ -3304,12 +3747,14 @@ def visible(self) -> None:
...
-class _IInterfaceWithInternalProxy():
+class _IInterfaceWithInternalProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IInterfaceWithInternal"
+
@jsii.member(jsii_name="visible")
def visible(self) -> None:
"""
@@ -3325,6 +3770,7 @@ class IInterfaceWithMethods(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IInterfaceWithMethodsProxy
@@ -3347,12 +3793,14 @@ def do_things(self) -> None:
...
-class _IInterfaceWithMethodsProxy():
+class _IInterfaceWithMethodsProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IInterfaceWithMethods"
+
@builtins.property
@jsii.member(jsii_name="value")
def value(self) -> str:
@@ -3378,12 +3826,13 @@ class IInterfaceWithOptionalMethodArguments(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IInterfaceWithOptionalMethodArgumentsProxy
@jsii.member(jsii_name="hello")
- def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None:
+ def hello(self, arg1: str, arg2: typing.Optional[jsii.Number] = None) -> None:
"""
:param arg1: -
:param arg2: -
@@ -3394,15 +3843,17 @@ def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None:
...
-class _IInterfaceWithOptionalMethodArgumentsProxy():
+class _IInterfaceWithOptionalMethodArgumentsProxy:
"""awslabs/jsii#175 Interface proxies (and builders) do not respect optional arguments in methods.
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IInterfaceWithOptionalMethodArguments"
+
@jsii.member(jsii_name="hello")
- def hello(self, arg1: str, arg2: typing.Optional[jsii.Number]=None) -> None:
+ def hello(self, arg1: str, arg2: typing.Optional[jsii.Number] = None) -> None:
"""
:param arg1: -
:param arg2: -
@@ -3419,6 +3870,7 @@ class IInterfaceWithProperties(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IInterfaceWithPropertiesProxy
@@ -3446,12 +3898,14 @@ def read_write_string(self, value: str) -> None:
...
-class _IInterfaceWithPropertiesProxy():
+class _IInterfaceWithPropertiesProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IInterfaceWithProperties"
+
@builtins.property
@jsii.member(jsii_name="readOnlyString")
def read_only_string(self) -> str:
@@ -3481,6 +3935,7 @@ class IInterfaceWithPropertiesExtension(IInterfaceWithProperties, jsii.compat.Pr
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IInterfaceWithPropertiesExtensionProxy
@@ -3504,7 +3959,9 @@ class _IInterfaceWithPropertiesExtensionProxy(jsii.proxy_for(IInterfaceWithPrope
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IInterfaceWithPropertiesExtension"
+
@builtins.property
@jsii.member(jsii_name="foo")
def foo(self) -> jsii.Number:
@@ -3525,6 +3982,7 @@ class IJSII417PublicBaseOfBase(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IJSII417PublicBaseOfBaseProxy
@@ -3547,12 +4005,14 @@ def foo(self) -> None:
...
-class _IJSII417PublicBaseOfBaseProxy():
+class _IJSII417PublicBaseOfBaseProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IJSII417PublicBaseOfBase"
+
@builtins.property
@jsii.member(jsii_name="hasRoot")
def has_root(self) -> bool:
@@ -3577,66 +4037,79 @@ class IJsii487External(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IJsii487ExternalProxy
pass
-class _IJsii487ExternalProxy():
+
+class _IJsii487ExternalProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IJsii487External"
pass
+
@jsii.interface(jsii_type="jsii-calc.IJsii487External2")
class IJsii487External2(jsii.compat.Protocol):
"""
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IJsii487External2Proxy
pass
-class _IJsii487External2Proxy():
+
+class _IJsii487External2Proxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IJsii487External2"
pass
+
@jsii.interface(jsii_type="jsii-calc.IJsii496")
class IJsii496(jsii.compat.Protocol):
"""
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IJsii496Proxy
pass
-class _IJsii496Proxy():
+
+class _IJsii496Proxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IJsii496"
pass
+
@jsii.interface(jsii_type="jsii-calc.IMutableObjectLiteral")
class IMutableObjectLiteral(jsii.compat.Protocol):
"""
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IMutableObjectLiteralProxy
@@ -3655,12 +4128,14 @@ def value(self, value: str) -> None:
...
-class _IMutableObjectLiteralProxy():
+class _IMutableObjectLiteralProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IMutableObjectLiteral"
+
@builtins.property
@jsii.member(jsii_name="value")
def value(self) -> str:
@@ -3681,6 +4156,7 @@ class INonInternalInterface(IAnotherPublicInterface, jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _INonInternalInterfaceProxy
@@ -3717,7 +4193,9 @@ class _INonInternalInterfaceProxy(jsii.proxy_for(IAnotherPublicInterface)):
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.INonInternalInterface"
+
@builtins.property
@jsii.member(jsii_name="b")
def b(self) -> str:
@@ -3752,6 +4230,7 @@ class IObjectWithProperty(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IObjectWithPropertyProxy
@@ -3778,13 +4257,15 @@ def was_set(self) -> bool:
...
-class _IObjectWithPropertyProxy():
+class _IObjectWithPropertyProxy:
"""Make sure that setters are properly called on objects with interfaces.
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IObjectWithProperty"
+
@builtins.property
@jsii.member(jsii_name="property")
def property(self) -> str:
@@ -3814,6 +4295,7 @@ class IOptionalMethod(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IOptionalMethodProxy
@@ -3827,13 +4309,15 @@ def optional(self) -> typing.Optional[str]:
...
-class _IOptionalMethodProxy():
+class _IOptionalMethodProxy:
"""Checks that optional result from interface method code generates correctly.
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IOptionalMethod"
+
@jsii.member(jsii_name="optional")
def optional(self) -> typing.Optional[str]:
"""
@@ -3849,6 +4333,7 @@ class IPrivatelyImplemented(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IPrivatelyImplementedProxy
@@ -3863,12 +4348,14 @@ def success(self) -> bool:
...
-class _IPrivatelyImplementedProxy():
+class _IPrivatelyImplementedProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IPrivatelyImplemented"
+
@builtins.property
@jsii.member(jsii_name="success")
def success(self) -> bool:
@@ -3885,6 +4372,7 @@ class IPublicInterface(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IPublicInterfaceProxy
@@ -3898,12 +4386,14 @@ def bye(self) -> str:
...
-class _IPublicInterfaceProxy():
+class _IPublicInterfaceProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IPublicInterface"
+
@jsii.member(jsii_name="bye")
def bye(self) -> str:
"""
@@ -3919,6 +4409,7 @@ class IPublicInterface2(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IPublicInterface2Proxy
@@ -3932,12 +4423,14 @@ def ciao(self) -> str:
...
-class _IPublicInterface2Proxy():
+class _IPublicInterface2Proxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IPublicInterface2"
+
@jsii.member(jsii_name="ciao")
def ciao(self) -> str:
"""
@@ -3954,6 +4447,7 @@ class IRandomNumberGenerator(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IRandomNumberGeneratorProxy
@@ -3971,13 +4465,15 @@ def next(self) -> jsii.Number:
...
-class _IRandomNumberGeneratorProxy():
+class _IRandomNumberGeneratorProxy:
"""Generates random numbers.
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IRandomNumberGenerator"
+
@jsii.member(jsii_name="next")
def next(self) -> jsii.Number:
"""Returns another random number.
@@ -3998,6 +4494,7 @@ class IReturnJsii976(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IReturnJsii976Proxy
@@ -4012,13 +4509,15 @@ def foo(self) -> jsii.Number:
...
-class _IReturnJsii976Proxy():
+class _IReturnJsii976Proxy:
"""Returns a subclass of a known class which implements an interface.
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IReturnJsii976"
+
@builtins.property
@jsii.member(jsii_name="foo")
def foo(self) -> jsii.Number:
@@ -4035,6 +4534,7 @@ class IReturnsNumber(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IReturnsNumberProxy
@@ -4057,12 +4557,14 @@ def obtain_number(self) -> scope.jsii_calc_lib.IDoublable:
...
-class _IReturnsNumberProxy():
+class _IReturnsNumberProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IReturnsNumber"
+
@builtins.property
@jsii.member(jsii_name="numberProp")
def number_prop(self) -> scope.jsii_calc_lib.Number:
@@ -4101,8 +4603,9 @@ def method(self) -> None:
...
-class _IStableInterfaceProxy():
+class _IStableInterfaceProxy:
__jsii_type__ = "jsii-calc.IStableInterface"
+
@builtins.property
@jsii.member(jsii_name="mutableProperty")
def mutable_property(self) -> typing.Optional[jsii.Number]:
@@ -4124,6 +4627,7 @@ class IStructReturningDelegate(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IStructReturningDelegateProxy
@@ -4137,13 +4641,15 @@ def return_struct(self) -> "StructB":
...
-class _IStructReturningDelegateProxy():
+class _IStructReturningDelegateProxy:
"""Verifies that a "pure" implementation of an interface works correctly.
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IStructReturningDelegate"
+
@jsii.member(jsii_name="returnStruct")
def return_struct(self) -> "StructB":
"""
@@ -4153,11 +4659,14 @@ def return_struct(self) -> "StructB":
return jsii.invoke(self, "returnStruct", [])
-class ImplementInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementInternalInterface"):
+class ImplementInternalInterface(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementInternalInterface"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ImplementInternalInterface, self, [])
@@ -4180,6 +4689,7 @@ class Implementation(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Implementatio
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(Implementation, self, [])
@@ -4194,11 +4704,14 @@ def value(self) -> jsii.Number:
@jsii.implements(IInterfaceWithInternal)
-class ImplementsInterfaceWithInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternal"):
+class ImplementsInterfaceWithInternal(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternal"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ImplementsInterfaceWithInternal, self, [])
@@ -4211,20 +4724,28 @@ def visible(self) -> None:
return jsii.invoke(self, "visible", [])
-class ImplementsInterfaceWithInternalSubclass(ImplementsInterfaceWithInternal, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsInterfaceWithInternalSubclass"):
+class ImplementsInterfaceWithInternalSubclass(
+ ImplementsInterfaceWithInternal,
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.ImplementsInterfaceWithInternalSubclass",
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ImplementsInterfaceWithInternalSubclass, self, [])
-class ImplementsPrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsPrivateInterface"):
+class ImplementsPrivateInterface(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ImplementsPrivateInterface"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ImplementsPrivateInterface, self, [])
@@ -4242,9 +4763,19 @@ def private(self, value: str) -> None:
jsii.set(self, "private", value)
-@jsii.data_type(jsii_type="jsii-calc.ImplictBaseOfBase", jsii_struct_bases=[scope.jsii_calc_base.BaseProps], name_mapping={'foo': 'foo', 'bar': 'bar', 'goo': 'goo'})
+@jsii.data_type(
+ jsii_type="jsii-calc.ImplictBaseOfBase",
+ jsii_struct_bases=[scope.jsii_calc_base.BaseProps],
+ name_mapping={"foo": "foo", "bar": "bar", "goo": "goo"},
+)
class ImplictBaseOfBase(scope.jsii_calc_base.BaseProps):
- def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str, goo: datetime.datetime) -> None:
+ def __init__(
+ self,
+ *,
+ foo: scope.jsii_calc_base_of_base.Very,
+ bar: str,
+ goo: datetime.datetime,
+ ) -> None:
"""
:param foo: -
:param bar: -
@@ -4254,18 +4785,18 @@ def __init__(self, *, foo: scope.jsii_calc_base_of_base.Very, bar: str, goo: dat
:stability: experimental
"""
self._values = {
- 'foo': foo,
- 'bar': bar,
- 'goo': goo,
+ "foo": foo,
+ "bar": bar,
+ "goo": goo,
}
@builtins.property
def foo(self) -> scope.jsii_calc_base_of_base.Very:
- return self._values.get('foo')
+ return self._values.get("foo")
@builtins.property
def bar(self) -> str:
- return self._values.get('bar')
+ return self._values.get("bar")
@builtins.property
def goo(self) -> datetime.datetime:
@@ -4273,7 +4804,7 @@ def goo(self) -> datetime.datetime:
stability
:stability: experimental
"""
- return self._values.get('goo')
+ return self._values.get("goo")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -4282,10 +4813,14 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'ImplictBaseOfBase(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "ImplictBaseOfBase(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class InterfaceCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceCollections"):
+class InterfaceCollections(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceCollections"
+):
"""Verifies that collections of interfaces or structs are correctly handled.
See: https://github.com/aws/jsii/issues/1196
@@ -4293,6 +4828,7 @@ class InterfaceCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Interfa
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="listOfInterfaces")
@builtins.classmethod
def list_of_interfaces(cls) -> typing.List["IBell"]:
@@ -4336,9 +4872,12 @@ class InterfacesMaker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfacesMa
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="makeInterfaces")
@builtins.classmethod
- def make_interfaces(cls, count: jsii.Number) -> typing.List[scope.jsii_calc_lib.IDoublable]:
+ def make_interfaces(
+ cls, count: jsii.Number
+ ) -> typing.List[scope.jsii_calc_lib.IDoublable]:
"""
:param count: -
@@ -4357,6 +4896,7 @@ class Isomorphism(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.Isomorp
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IsomorphismProxy
@@ -4376,11 +4916,15 @@ def myself(self) -> "Isomorphism":
class _IsomorphismProxy(Isomorphism):
pass
-class JSII417PublicBaseOfBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417PublicBaseOfBase"):
+
+class JSII417PublicBaseOfBase(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417PublicBaseOfBase"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(JSII417PublicBaseOfBase, self, [])
@@ -4411,11 +4955,14 @@ def has_root(self) -> bool:
return jsii.get(self, "hasRoot")
-class JSObjectLiteralForInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralForInterface"):
+class JSObjectLiteralForInterface(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralForInterface"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(JSObjectLiteralForInterface, self, [])
@@ -4436,11 +4983,14 @@ def give_me_friendly_generator(self) -> "IFriendlyRandomGenerator":
return jsii.invoke(self, "giveMeFriendlyGenerator", [])
-class JSObjectLiteralToNative(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNative"):
+class JSObjectLiteralToNative(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNative"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(JSObjectLiteralToNative, self, [])
@@ -4453,11 +5003,14 @@ def return_literal(self) -> "JSObjectLiteralToNativeClass":
return jsii.invoke(self, "returnLiteral", [])
-class JSObjectLiteralToNativeClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNativeClass"):
+class JSObjectLiteralToNativeClass(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSObjectLiteralToNativeClass"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(JSObjectLiteralToNativeClass, self, [])
@@ -4488,11 +5041,14 @@ def prop_b(self, value: jsii.Number) -> None:
jsii.set(self, "propB", value)
-class JavaReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JavaReservedWords"):
+class JavaReservedWords(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JavaReservedWords"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(JavaReservedWords, self, [])
@@ -4932,6 +5488,7 @@ class Jsii487Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii487Derive
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(Jsii487Derived, self, [])
@@ -4942,6 +5499,7 @@ class Jsii496Derived(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Jsii496Derive
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(Jsii496Derived, self, [])
@@ -4952,6 +5510,7 @@ class JsiiAgent(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsiiAgent"):
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(JsiiAgent, self, [])
@@ -4974,6 +5533,7 @@ class JsonFormatter(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JsonFormatter"
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="anyArray")
@builtins.classmethod
def any_array(cls) -> typing.Any:
@@ -5093,7 +5653,7 @@ def any_zero(cls) -> typing.Any:
@jsii.member(jsii_name="stringify")
@builtins.classmethod
- def stringify(cls, value: typing.Any=None) -> typing.Optional[str]:
+ def stringify(cls, value: typing.Any = None) -> typing.Optional[str]:
"""
:param value: -
@@ -5103,9 +5663,27 @@ def stringify(cls, value: typing.Any=None) -> typing.Optional[str]:
return jsii.sinvoke(cls, "stringify", [value])
-@jsii.data_type(jsii_type="jsii-calc.LoadBalancedFargateServiceProps", jsii_struct_bases=[], name_mapping={'container_port': 'containerPort', 'cpu': 'cpu', 'memory_mib': 'memoryMiB', 'public_load_balancer': 'publicLoadBalancer', 'public_tasks': 'publicTasks'})
-class LoadBalancedFargateServiceProps():
- def __init__(self, *, container_port: typing.Optional[jsii.Number]=None, cpu: typing.Optional[str]=None, memory_mib: typing.Optional[str]=None, public_load_balancer: typing.Optional[bool]=None, public_tasks: typing.Optional[bool]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.LoadBalancedFargateServiceProps",
+ jsii_struct_bases=[],
+ name_mapping={
+ "container_port": "containerPort",
+ "cpu": "cpu",
+ "memory_mib": "memoryMiB",
+ "public_load_balancer": "publicLoadBalancer",
+ "public_tasks": "publicTasks",
+ },
+)
+class LoadBalancedFargateServiceProps:
+ def __init__(
+ self,
+ *,
+ container_port: typing.Optional[jsii.Number] = None,
+ cpu: typing.Optional[str] = None,
+ memory_mib: typing.Optional[str] = None,
+ public_load_balancer: typing.Optional[bool] = None,
+ public_tasks: typing.Optional[bool] = None,
+ ) -> None:
"""jsii#298: show default values in sphinx documentation, and respect newlines.
:param container_port: The container port of the application load balancer attached to your Fargate service. Corresponds to container port mapping. Default: 80
@@ -5117,13 +5695,17 @@ def __init__(self, *, container_port: typing.Optional[jsii.Number]=None, cpu: ty
stability
:stability: experimental
"""
- self._values = {
- }
- if container_port is not None: self._values["container_port"] = container_port
- if cpu is not None: self._values["cpu"] = cpu
- if memory_mib is not None: self._values["memory_mib"] = memory_mib
- if public_load_balancer is not None: self._values["public_load_balancer"] = public_load_balancer
- if public_tasks is not None: self._values["public_tasks"] = public_tasks
+ self._values = {}
+ if container_port is not None:
+ self._values["container_port"] = container_port
+ if cpu is not None:
+ self._values["cpu"] = cpu
+ if memory_mib is not None:
+ self._values["memory_mib"] = memory_mib
+ if public_load_balancer is not None:
+ self._values["public_load_balancer"] = public_load_balancer
+ if public_tasks is not None:
+ self._values["public_tasks"] = public_tasks
@builtins.property
def container_port(self) -> typing.Optional[jsii.Number]:
@@ -5137,7 +5719,7 @@ def container_port(self) -> typing.Optional[jsii.Number]:
stability
:stability: experimental
"""
- return self._values.get('container_port')
+ return self._values.get("container_port")
@builtins.property
def cpu(self) -> typing.Optional[str]:
@@ -5158,7 +5740,7 @@ def cpu(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('cpu')
+ return self._values.get("cpu")
@builtins.property
def memory_mib(self) -> typing.Optional[str]:
@@ -5185,7 +5767,7 @@ def memory_mib(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('memory_mib')
+ return self._values.get("memory_mib")
@builtins.property
def public_load_balancer(self) -> typing.Optional[bool]:
@@ -5197,7 +5779,7 @@ def public_load_balancer(self) -> typing.Optional[bool]:
stability
:stability: experimental
"""
- return self._values.get('public_load_balancer')
+ return self._values.get("public_load_balancer")
@builtins.property
def public_tasks(self) -> typing.Optional[bool]:
@@ -5209,7 +5791,7 @@ def public_tasks(self) -> typing.Optional[bool]:
stability
:stability: experimental
"""
- return self._values.get('public_tasks')
+ return self._values.get("public_tasks")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -5218,14 +5800,19 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'LoadBalancedFargateServiceProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "LoadBalancedFargateServiceProps(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class MethodNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.MethodNamedProperty"):
+class MethodNamedProperty(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.MethodNamedProperty"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(MethodNamedProperty, self, [])
@@ -5248,13 +5835,18 @@ def elite(self) -> jsii.Number:
@jsii.implements(IFriendlier, IRandomNumberGenerator)
-class Multiply(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Multiply"):
+class Multiply(
+ BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Multiply"
+):
"""The "*" binary operation.
stability
:stability: experimental
"""
- def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None:
+
+ def __init__(
+ self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value
+ ) -> None:
"""Creates a BinaryOperation.
:param lhs: Left-hand side operand.
@@ -5312,8 +5904,12 @@ def value(self) -> jsii.Number:
return jsii.get(self, "value")
-@jsii.data_type(jsii_type="jsii-calc.NestedStruct", jsii_struct_bases=[], name_mapping={'number_prop': 'numberProp'})
-class NestedStruct():
+@jsii.data_type(
+ jsii_type="jsii-calc.NestedStruct",
+ jsii_struct_bases=[],
+ name_mapping={"number_prop": "numberProp"},
+)
+class NestedStruct:
def __init__(self, *, number_prop: jsii.Number) -> None:
"""
:param number_prop: When provided, must be > 0.
@@ -5322,7 +5918,7 @@ def __init__(self, *, number_prop: jsii.Number) -> None:
:stability: experimental
"""
self._values = {
- 'number_prop': number_prop,
+ "number_prop": number_prop,
}
@builtins.property
@@ -5332,7 +5928,7 @@ def number_prop(self) -> jsii.Number:
stability
:stability: experimental
"""
- return self._values.get('number_prop')
+ return self._values.get("number_prop")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -5341,15 +5937,20 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'NestedStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "NestedStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class NodeStandardLibrary(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NodeStandardLibrary"):
+class NodeStandardLibrary(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NodeStandardLibrary"
+):
"""Test fixture to verify that jsii modules can use the node standard library.
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(NodeStandardLibrary, self, [])
@@ -5400,13 +6001,16 @@ def os_platform(self) -> str:
return jsii.get(self, "osPlatform")
-class NullShouldBeTreatedAsUndefined(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NullShouldBeTreatedAsUndefined"):
+class NullShouldBeTreatedAsUndefined(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NullShouldBeTreatedAsUndefined"
+):
"""jsii#282, aws-cdk#157: null should be treated as "undefined".
stability
:stability: experimental
"""
- def __init__(self, _param1: str, optional: typing.Any=None) -> None:
+
+ def __init__(self, _param1: str, optional: typing.Any = None) -> None:
"""
:param _param1: -
:param optional: -
@@ -5417,7 +6021,7 @@ def __init__(self, _param1: str, optional: typing.Any=None) -> None:
jsii.create(NullShouldBeTreatedAsUndefined, self, [_param1, optional])
@jsii.member(jsii_name="giveMeUndefined")
- def give_me_undefined(self, value: typing.Any=None) -> None:
+ def give_me_undefined(self, value: typing.Any = None) -> None:
"""
:param value: -
@@ -5427,7 +6031,14 @@ def give_me_undefined(self, value: typing.Any=None) -> None:
return jsii.invoke(self, "giveMeUndefined", [value])
@jsii.member(jsii_name="giveMeUndefinedInsideAnObject")
- def give_me_undefined_inside_an_object(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None) -> None:
+ def give_me_undefined_inside_an_object(
+ self,
+ *,
+ array_with_three_elements_and_undefined_as_second_argument: typing.List[
+ typing.Any
+ ],
+ this_should_be_undefined: typing.Any = None,
+ ) -> None:
"""
:param array_with_three_elements_and_undefined_as_second_argument:
:param this_should_be_undefined:
@@ -5435,7 +6046,10 @@ def give_me_undefined_inside_an_object(self, *, array_with_three_elements_and_un
stability
:stability: experimental
"""
- input = NullShouldBeTreatedAsUndefinedData(array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument, this_should_be_undefined=this_should_be_undefined)
+ input = NullShouldBeTreatedAsUndefinedData(
+ array_with_three_elements_and_undefined_as_second_argument=array_with_three_elements_and_undefined_as_second_argument,
+ this_should_be_undefined=this_should_be_undefined,
+ )
return jsii.invoke(self, "giveMeUndefinedInsideAnObject", [input])
@@ -5461,9 +6075,23 @@ def change_me_to_undefined(self, value: typing.Optional[str]) -> None:
jsii.set(self, "changeMeToUndefined", value)
-@jsii.data_type(jsii_type="jsii-calc.NullShouldBeTreatedAsUndefinedData", jsii_struct_bases=[], name_mapping={'array_with_three_elements_and_undefined_as_second_argument': 'arrayWithThreeElementsAndUndefinedAsSecondArgument', 'this_should_be_undefined': 'thisShouldBeUndefined'})
-class NullShouldBeTreatedAsUndefinedData():
- def __init__(self, *, array_with_three_elements_and_undefined_as_second_argument: typing.List[typing.Any], this_should_be_undefined: typing.Any=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.NullShouldBeTreatedAsUndefinedData",
+ jsii_struct_bases=[],
+ name_mapping={
+ "array_with_three_elements_and_undefined_as_second_argument": "arrayWithThreeElementsAndUndefinedAsSecondArgument",
+ "this_should_be_undefined": "thisShouldBeUndefined",
+ },
+)
+class NullShouldBeTreatedAsUndefinedData:
+ def __init__(
+ self,
+ *,
+ array_with_three_elements_and_undefined_as_second_argument: typing.List[
+ typing.Any
+ ],
+ this_should_be_undefined: typing.Any = None,
+ ) -> None:
"""
:param array_with_three_elements_and_undefined_as_second_argument:
:param this_should_be_undefined:
@@ -5472,17 +6100,22 @@ def __init__(self, *, array_with_three_elements_and_undefined_as_second_argument
:stability: experimental
"""
self._values = {
- 'array_with_three_elements_and_undefined_as_second_argument': array_with_three_elements_and_undefined_as_second_argument,
+ "array_with_three_elements_and_undefined_as_second_argument": array_with_three_elements_and_undefined_as_second_argument,
}
- if this_should_be_undefined is not None: self._values["this_should_be_undefined"] = this_should_be_undefined
+ if this_should_be_undefined is not None:
+ self._values["this_should_be_undefined"] = this_should_be_undefined
@builtins.property
- def array_with_three_elements_and_undefined_as_second_argument(self) -> typing.List[typing.Any]:
+ def array_with_three_elements_and_undefined_as_second_argument(
+ self,
+ ) -> typing.List[typing.Any]:
"""
stability
:stability: experimental
"""
- return self._values.get('array_with_three_elements_and_undefined_as_second_argument')
+ return self._values.get(
+ "array_with_three_elements_and_undefined_as_second_argument"
+ )
@builtins.property
def this_should_be_undefined(self) -> typing.Any:
@@ -5490,7 +6123,7 @@ def this_should_be_undefined(self) -> typing.Any:
stability
:stability: experimental
"""
- return self._values.get('this_should_be_undefined')
+ return self._values.get("this_should_be_undefined")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -5499,7 +6132,9 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'NullShouldBeTreatedAsUndefinedData(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "NullShouldBeTreatedAsUndefinedData(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NumberGenerator"):
@@ -5508,6 +6143,7 @@ class NumberGenerator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.NumberGenera
stability
:stability: experimental
"""
+
def __init__(self, generator: "IRandomNumberGenerator") -> None:
"""
:param generator: -
@@ -5549,17 +6185,22 @@ def generator(self, value: "IRandomNumberGenerator") -> None:
jsii.set(self, "generator", value)
-class ObjectRefsInCollections(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectRefsInCollections"):
+class ObjectRefsInCollections(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectRefsInCollections"
+):
"""Verify that object references can be passed inside collections.
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ObjectRefsInCollections, self, [])
@jsii.member(jsii_name="sumFromArray")
- def sum_from_array(self, values: typing.List[scope.jsii_calc_lib.Value]) -> jsii.Number:
+ def sum_from_array(
+ self, values: typing.List[scope.jsii_calc_lib.Value]
+ ) -> jsii.Number:
"""Returns the sum of all values.
:param values: -
@@ -5570,7 +6211,9 @@ def sum_from_array(self, values: typing.List[scope.jsii_calc_lib.Value]) -> jsii
return jsii.invoke(self, "sumFromArray", [values])
@jsii.member(jsii_name="sumFromMap")
- def sum_from_map(self, values: typing.Mapping[str, scope.jsii_calc_lib.Value]) -> jsii.Number:
+ def sum_from_map(
+ self, values: typing.Mapping[str, scope.jsii_calc_lib.Value]
+ ) -> jsii.Number:
"""Returns the sum of all values in a map.
:param values: -
@@ -5581,11 +6224,14 @@ def sum_from_map(self, values: typing.Mapping[str, scope.jsii_calc_lib.Value]) -
return jsii.invoke(self, "sumFromMap", [values])
-class ObjectWithPropertyProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectWithPropertyProvider"):
+class ObjectWithPropertyProvider(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ObjectWithPropertyProvider"
+):
"""
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="provide")
@builtins.classmethod
def provide(cls) -> "IObjectWithProperty":
@@ -5605,6 +6251,7 @@ class Old(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Old"):
stability
:stability: deprecated
"""
+
def __init__(self) -> None:
jsii.create(Old, self, [])
@@ -5618,11 +6265,14 @@ def do_a_thing(self) -> None:
return jsii.invoke(self, "doAThing", [])
-class OptionalArgumentInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalArgumentInvoker"):
+class OptionalArgumentInvoker(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalArgumentInvoker"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self, delegate: "IInterfaceWithOptionalMethodArguments") -> None:
"""
:param delegate: -
@@ -5649,12 +6299,20 @@ def invoke_without_optional(self) -> None:
return jsii.invoke(self, "invokeWithoutOptional", [])
-class OptionalConstructorArgument(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalConstructorArgument"):
+class OptionalConstructorArgument(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalConstructorArgument"
+):
"""
stability
:stability: experimental
"""
- def __init__(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None:
+
+ def __init__(
+ self,
+ arg1: jsii.Number,
+ arg2: str,
+ arg3: typing.Optional[datetime.datetime] = None,
+ ) -> None:
"""
:param arg1: -
:param arg2: -
@@ -5693,18 +6351,22 @@ def arg3(self) -> typing.Optional[datetime.datetime]:
return jsii.get(self, "arg3")
-@jsii.data_type(jsii_type="jsii-calc.OptionalStruct", jsii_struct_bases=[], name_mapping={'field': 'field'})
-class OptionalStruct():
- def __init__(self, *, field: typing.Optional[str]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.OptionalStruct",
+ jsii_struct_bases=[],
+ name_mapping={"field": "field"},
+)
+class OptionalStruct:
+ def __init__(self, *, field: typing.Optional[str] = None) -> None:
"""
:param field:
stability
:stability: experimental
"""
- self._values = {
- }
- if field is not None: self._values["field"] = field
+ self._values = {}
+ if field is not None:
+ self._values["field"] = field
@builtins.property
def field(self) -> typing.Optional[str]:
@@ -5712,7 +6374,7 @@ def field(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('field')
+ return self._values.get("field")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -5721,15 +6383,20 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'OptionalStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "OptionalStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class OptionalStructConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalStructConsumer"):
+class OptionalStructConsumer(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OptionalStructConsumer"
+):
"""
stability
:stability: experimental
"""
- def __init__(self, *, field: typing.Optional[str]=None) -> None:
+
+ def __init__(self, *, field: typing.Optional[str] = None) -> None:
"""
:param field:
@@ -5759,13 +6426,16 @@ def field_value(self) -> typing.Optional[str]:
return jsii.get(self, "fieldValue")
-class OverridableProtectedMember(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverridableProtectedMember"):
+class OverridableProtectedMember(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverridableProtectedMember"
+):
"""
see
:see: https://github.com/aws/jsii/issues/903
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(OverridableProtectedMember, self, [])
@@ -5816,11 +6486,14 @@ def _override_read_write(self, value: str) -> None:
jsii.set(self, "overrideReadWrite", value)
-class OverrideReturnsObject(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverrideReturnsObject"):
+class OverrideReturnsObject(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.OverrideReturnsObject"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(OverrideReturnsObject, self, [])
@@ -5835,8 +6508,12 @@ def test(self, obj: "IReturnsNumber") -> jsii.Number:
return jsii.invoke(self, "test", [obj])
-@jsii.data_type(jsii_type="jsii-calc.ParentStruct982", jsii_struct_bases=[], name_mapping={'foo': 'foo'})
-class ParentStruct982():
+@jsii.data_type(
+ jsii_type="jsii-calc.ParentStruct982",
+ jsii_struct_bases=[],
+ name_mapping={"foo": "foo"},
+)
+class ParentStruct982:
def __init__(self, *, foo: str) -> None:
"""https://github.com/aws/jsii/issues/982.
@@ -5846,7 +6523,7 @@ def __init__(self, *, foo: str) -> None:
:stability: experimental
"""
self._values = {
- 'foo': foo,
+ "foo": foo,
}
@builtins.property
@@ -5855,7 +6532,7 @@ def foo(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('foo')
+ return self._values.get("foo")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -5864,14 +6541,20 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'ParentStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "ParentStruct982(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class PartiallyInitializedThisConsumer(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.PartiallyInitializedThisConsumer"):
+class PartiallyInitializedThisConsumer(
+ metaclass=jsii.JSIIAbstractClass,
+ jsii_type="jsii-calc.PartiallyInitializedThisConsumer",
+):
"""
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _PartiallyInitializedThisConsumerProxy
@@ -5881,7 +6564,9 @@ def __init__(self) -> None:
@jsii.member(jsii_name="consumePartiallyInitializedThis")
@abc.abstractmethod
- def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str:
+ def consume_partially_initialized_this(
+ self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum"
+ ) -> str:
"""
:param obj: -
:param dt: -
@@ -5895,7 +6580,9 @@ def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt
class _PartiallyInitializedThisConsumerProxy(PartiallyInitializedThisConsumer):
@jsii.member(jsii_name="consumePartiallyInitializedThis")
- def consume_partially_initialized_this(self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum") -> str:
+ def consume_partially_initialized_this(
+ self, obj: "ConstructorPassesThisOut", dt: datetime.datetime, ev: "AllTypesEnum"
+ ) -> str:
"""
:param obj: -
:param dt: -
@@ -5912,6 +6599,7 @@ class Polymorphism(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Polymorphism"):
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(Polymorphism, self, [])
@@ -5926,13 +6614,18 @@ def say_hello(self, friendly: scope.jsii_calc_lib.IFriendly) -> str:
return jsii.invoke(self, "sayHello", [friendly])
-class Power(_CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Power"):
+class Power(
+ _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Power"
+):
"""The power operation.
stability
:stability: experimental
"""
- def __init__(self, base: scope.jsii_calc_lib.Value, pow: scope.jsii_calc_lib.Value) -> None:
+
+ def __init__(
+ self, base: scope.jsii_calc_lib.Value, pow: scope.jsii_calc_lib.Value
+ ) -> None:
"""Creates a Power operation.
:param base: The base of the power.
@@ -5976,12 +6669,15 @@ def pow(self) -> scope.jsii_calc_lib.Value:
return jsii.get(self, "pow")
-class PropertyNamedProperty(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PropertyNamedProperty"):
+class PropertyNamedProperty(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PropertyNamedProperty"
+):
"""Reproduction for https://github.com/aws/jsii/issues/1113 Where a method or property named "property" would result in impossible to load Python code.
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(PropertyNamedProperty, self, [])
@@ -6009,6 +6705,7 @@ class PublicClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PublicClass"):
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(PublicClass, self, [])
@@ -6021,11 +6718,14 @@ def hello(self) -> None:
return jsii.invoke(self, "hello", [])
-class PythonReservedWords(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonReservedWords"):
+class PythonReservedWords(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonReservedWords"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(PythonReservedWords, self, [])
@@ -6286,12 +6986,15 @@ def yield_(self) -> None:
return jsii.invoke(self, "yield", [])
-class ReferenceEnumFromScopedPackage(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReferenceEnumFromScopedPackage"):
+class ReferenceEnumFromScopedPackage(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReferenceEnumFromScopedPackage"
+):
"""See awslabs/jsii#138.
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ReferenceEnumFromScopedPackage, self, [])
@@ -6323,11 +7026,16 @@ def foo(self) -> typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]:
return jsii.get(self, "foo")
@foo.setter
- def foo(self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]) -> None:
+ def foo(
+ self, value: typing.Optional[scope.jsii_calc_lib.EnumFromScopedModule]
+ ) -> None:
jsii.set(self, "foo", value)
-class ReturnsPrivateImplementationOfInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ReturnsPrivateImplementationOfInterface"):
+class ReturnsPrivateImplementationOfInterface(
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.ReturnsPrivateImplementationOfInterface",
+):
"""Helps ensure the JSII kernel & runtime cooperate correctly when an un-exported instance of a class is returned with a declared type that is an exported interface, and the instance inherits from an exported class.
return
@@ -6338,6 +7046,7 @@ class ReturnsPrivateImplementationOfInterface(metaclass=jsii.JSIIMeta, jsii_type
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ReturnsPrivateImplementationOfInterface, self, [])
@@ -6351,9 +7060,15 @@ def private_implementation(self) -> "IPrivatelyImplemented":
return jsii.get(self, "privateImplementation")
-@jsii.data_type(jsii_type="jsii-calc.RootStruct", jsii_struct_bases=[], name_mapping={'string_prop': 'stringProp', 'nested_struct': 'nestedStruct'})
-class RootStruct():
- def __init__(self, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.RootStruct",
+ jsii_struct_bases=[],
+ name_mapping={"string_prop": "stringProp", "nested_struct": "nestedStruct"},
+)
+class RootStruct:
+ def __init__(
+ self, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"] = None
+ ) -> None:
"""This is here to check that we can pass a nested struct into a kwargs by specifying it as an in-line dictionary.
This is cheating with the (current) declared types, but this is the "more
@@ -6365,11 +7080,13 @@ def __init__(self, *, string_prop: str, nested_struct: typing.Optional["NestedSt
stability
:stability: experimental
"""
- if isinstance(nested_struct, dict): nested_struct = NestedStruct(**nested_struct)
+ if isinstance(nested_struct, dict):
+ nested_struct = NestedStruct(**nested_struct)
self._values = {
- 'string_prop': string_prop,
+ "string_prop": string_prop,
}
- if nested_struct is not None: self._values["nested_struct"] = nested_struct
+ if nested_struct is not None:
+ self._values["nested_struct"] = nested_struct
@builtins.property
def string_prop(self) -> str:
@@ -6378,7 +7095,7 @@ def string_prop(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('string_prop')
+ return self._values.get("string_prop")
@builtins.property
def nested_struct(self) -> typing.Optional["NestedStruct"]:
@@ -6386,7 +7103,7 @@ def nested_struct(self) -> typing.Optional["NestedStruct"]:
stability
:stability: experimental
"""
- return self._values.get('nested_struct')
+ return self._values.get("nested_struct")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -6395,17 +7112,24 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'RootStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "RootStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class RootStructValidator(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RootStructValidator"):
+class RootStructValidator(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RootStructValidator"
+):
"""
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="validate")
@builtins.classmethod
- def validate(cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"]=None) -> None:
+ def validate(
+ cls, *, string_prop: str, nested_struct: typing.Optional["NestedStruct"] = None
+ ) -> None:
"""
:param string_prop: May not be empty.
:param nested_struct:
@@ -6418,16 +7142,24 @@ def validate(cls, *, string_prop: str, nested_struct: typing.Optional["NestedStr
return jsii.sinvoke(cls, "validate", [struct])
-class RuntimeTypeChecking(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RuntimeTypeChecking"):
+class RuntimeTypeChecking(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.RuntimeTypeChecking"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(RuntimeTypeChecking, self, [])
@jsii.member(jsii_name="methodWithDefaultedArguments")
- def method_with_defaulted_arguments(self, arg1: typing.Optional[jsii.Number]=None, arg2: typing.Optional[str]=None, arg3: typing.Optional[datetime.datetime]=None) -> None:
+ def method_with_defaulted_arguments(
+ self,
+ arg1: typing.Optional[jsii.Number] = None,
+ arg2: typing.Optional[str] = None,
+ arg3: typing.Optional[datetime.datetime] = None,
+ ) -> None:
"""
:param arg1: -
:param arg2: -
@@ -6439,7 +7171,7 @@ def method_with_defaulted_arguments(self, arg1: typing.Optional[jsii.Number]=Non
return jsii.invoke(self, "methodWithDefaultedArguments", [arg1, arg2, arg3])
@jsii.member(jsii_name="methodWithOptionalAnyArgument")
- def method_with_optional_any_argument(self, arg: typing.Any=None) -> None:
+ def method_with_optional_any_argument(self, arg: typing.Any = None) -> None:
"""
:param arg: -
@@ -6449,7 +7181,12 @@ def method_with_optional_any_argument(self, arg: typing.Any=None) -> None:
return jsii.invoke(self, "methodWithOptionalAnyArgument", [arg])
@jsii.member(jsii_name="methodWithOptionalArguments")
- def method_with_optional_arguments(self, arg1: jsii.Number, arg2: str, arg3: typing.Optional[datetime.datetime]=None) -> None:
+ def method_with_optional_arguments(
+ self,
+ arg1: jsii.Number,
+ arg2: str,
+ arg3: typing.Optional[datetime.datetime] = None,
+ ) -> None:
"""Used to verify verification of number of method arguments.
:param arg1: -
@@ -6462,9 +7199,21 @@ def method_with_optional_arguments(self, arg1: jsii.Number, arg2: str, arg3: typ
return jsii.invoke(self, "methodWithOptionalArguments", [arg1, arg2, arg3])
-@jsii.data_type(jsii_type="jsii-calc.SecondLevelStruct", jsii_struct_bases=[], name_mapping={'deeper_required_prop': 'deeperRequiredProp', 'deeper_optional_prop': 'deeperOptionalProp'})
-class SecondLevelStruct():
- def __init__(self, *, deeper_required_prop: str, deeper_optional_prop: typing.Optional[str]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.SecondLevelStruct",
+ jsii_struct_bases=[],
+ name_mapping={
+ "deeper_required_prop": "deeperRequiredProp",
+ "deeper_optional_prop": "deeperOptionalProp",
+ },
+)
+class SecondLevelStruct:
+ def __init__(
+ self,
+ *,
+ deeper_required_prop: str,
+ deeper_optional_prop: typing.Optional[str] = None,
+ ) -> None:
"""
:param deeper_required_prop: It's long and required.
:param deeper_optional_prop: It's long, but you'll almost never pass it.
@@ -6473,9 +7222,10 @@ def __init__(self, *, deeper_required_prop: str, deeper_optional_prop: typing.Op
:stability: experimental
"""
self._values = {
- 'deeper_required_prop': deeper_required_prop,
+ "deeper_required_prop": deeper_required_prop,
}
- if deeper_optional_prop is not None: self._values["deeper_optional_prop"] = deeper_optional_prop
+ if deeper_optional_prop is not None:
+ self._values["deeper_optional_prop"] = deeper_optional_prop
@builtins.property
def deeper_required_prop(self) -> str:
@@ -6484,7 +7234,7 @@ def deeper_required_prop(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('deeper_required_prop')
+ return self._values.get("deeper_required_prop")
@builtins.property
def deeper_optional_prop(self) -> typing.Optional[str]:
@@ -6493,7 +7243,7 @@ def deeper_optional_prop(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('deeper_optional_prop')
+ return self._values.get("deeper_optional_prop")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -6502,10 +7252,14 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'SecondLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "SecondLevelStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class SingleInstanceTwoTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingleInstanceTwoTypes"):
+class SingleInstanceTwoTypes(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingleInstanceTwoTypes"
+):
"""Test that a single instance can be returned under two different FQNs.
JSII clients can instantiate 2 different strongly-typed wrappers for the same
@@ -6515,6 +7269,7 @@ class SingleInstanceTwoTypes(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Singl
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(SingleInstanceTwoTypes, self, [])
@@ -6543,6 +7298,7 @@ class SingletonInt(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonInt"):
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="isSingletonInt")
def is_singleton_int(self, value: jsii.Number) -> bool:
"""
@@ -6561,6 +7317,7 @@ class SingletonIntEnum(enum.Enum):
stability
:stability: experimental
"""
+
SINGLETON_INT = "SINGLETON_INT"
"""Elite!
@@ -6568,6 +7325,7 @@ class SingletonIntEnum(enum.Enum):
:stability: experimental
"""
+
class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonString"):
"""Verifies that singleton enums are handled correctly.
@@ -6576,6 +7334,7 @@ class SingletonString(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SingletonStr
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="isSingletonString")
def is_singleton_string(self, value: str) -> bool:
"""
@@ -6594,6 +7353,7 @@ class SingletonStringEnum(enum.Enum):
stability
:stability: experimental
"""
+
SINGLETON_STRING = "SINGLETON_STRING"
"""1337.
@@ -6601,8 +7361,13 @@ class SingletonStringEnum(enum.Enum):
:stability: experimental
"""
-@jsii.data_type(jsii_type="jsii-calc.SmellyStruct", jsii_struct_bases=[], name_mapping={'property': 'property', 'yet_anoter_one': 'yetAnoterOne'})
-class SmellyStruct():
+
+@jsii.data_type(
+ jsii_type="jsii-calc.SmellyStruct",
+ jsii_struct_bases=[],
+ name_mapping={"property": "property", "yet_anoter_one": "yetAnoterOne"},
+)
+class SmellyStruct:
def __init__(self, *, property: str, yet_anoter_one: bool) -> None:
"""
:param property:
@@ -6612,8 +7377,8 @@ def __init__(self, *, property: str, yet_anoter_one: bool) -> None:
:stability: experimental
"""
self._values = {
- 'property': property,
- 'yet_anoter_one': yet_anoter_one,
+ "property": property,
+ "yet_anoter_one": yet_anoter_one,
}
@builtins.property
@@ -6622,7 +7387,7 @@ def property(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('property')
+ return self._values.get("property")
@builtins.property
def yet_anoter_one(self) -> bool:
@@ -6630,7 +7395,7 @@ def yet_anoter_one(self) -> bool:
stability
:stability: experimental
"""
- return self._values.get('yet_anoter_one')
+ return self._values.get("yet_anoter_one")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -6639,7 +7404,9 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'SmellyStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "SmellyStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SomeTypeJsii976"):
@@ -6647,6 +7414,7 @@ class SomeTypeJsii976(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SomeTypeJsii
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(SomeTypeJsii976, self, [])
@@ -6670,7 +7438,9 @@ def return_return(cls) -> "IReturnJsii976":
class StableClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StableClass"):
- def __init__(self, readonly_string: str, mutable_number: typing.Optional[jsii.Number]=None) -> None:
+ def __init__(
+ self, readonly_string: str, mutable_number: typing.Optional[jsii.Number] = None
+ ) -> None:
"""
:param readonly_string: -
:param mutable_number: -
@@ -6701,19 +7471,24 @@ class StableEnum(enum.Enum):
OPTION_A = "OPTION_A"
OPTION_B = "OPTION_B"
-@jsii.data_type(jsii_type="jsii-calc.StableStruct", jsii_struct_bases=[], name_mapping={'readonly_property': 'readonlyProperty'})
-class StableStruct():
+
+@jsii.data_type(
+ jsii_type="jsii-calc.StableStruct",
+ jsii_struct_bases=[],
+ name_mapping={"readonly_property": "readonlyProperty"},
+)
+class StableStruct:
def __init__(self, *, readonly_property: str) -> None:
"""
:param readonly_property:
"""
self._values = {
- 'readonly_property': readonly_property,
+ "readonly_property": readonly_property,
}
@builtins.property
def readonly_property(self) -> str:
- return self._values.get('readonly_property')
+ return self._values.get("readonly_property")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -6722,7 +7497,9 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'StableStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "StableStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StaticContext"):
@@ -6733,6 +7510,7 @@ class StaticContext(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StaticContext"
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="canAccessStaticContext")
@builtins.classmethod
def can_access_static_context(cls) -> bool:
@@ -6761,6 +7539,7 @@ class Statics(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Statics"):
stability
:stability: experimental
"""
+
def __init__(self, value: str) -> None:
"""
:param value: -
@@ -6874,6 +7653,7 @@ class StringEnum(enum.Enum):
stability
:stability: experimental
"""
+
A = "A"
"""
stability
@@ -6890,11 +7670,13 @@ class StringEnum(enum.Enum):
:stability: experimental
"""
+
class StripInternal(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StripInternal"):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(StripInternal, self, [])
@@ -6912,9 +7694,23 @@ def you_see_me(self, value: str) -> None:
jsii.set(self, "youSeeMe", value)
-@jsii.data_type(jsii_type="jsii-calc.StructA", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_number': 'optionalNumber', 'optional_string': 'optionalString'})
-class StructA():
- def __init__(self, *, required_string: str, optional_number: typing.Optional[jsii.Number]=None, optional_string: typing.Optional[str]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.StructA",
+ jsii_struct_bases=[],
+ name_mapping={
+ "required_string": "requiredString",
+ "optional_number": "optionalNumber",
+ "optional_string": "optionalString",
+ },
+)
+class StructA:
+ def __init__(
+ self,
+ *,
+ required_string: str,
+ optional_number: typing.Optional[jsii.Number] = None,
+ optional_string: typing.Optional[str] = None,
+ ) -> None:
"""We can serialize and deserialize structs without silently ignoring optional fields.
:param required_string:
@@ -6925,10 +7721,12 @@ def __init__(self, *, required_string: str, optional_number: typing.Optional[jsi
:stability: experimental
"""
self._values = {
- 'required_string': required_string,
+ "required_string": required_string,
}
- if optional_number is not None: self._values["optional_number"] = optional_number
- if optional_string is not None: self._values["optional_string"] = optional_string
+ if optional_number is not None:
+ self._values["optional_number"] = optional_number
+ if optional_string is not None:
+ self._values["optional_string"] = optional_string
@builtins.property
def required_string(self) -> str:
@@ -6936,7 +7734,7 @@ def required_string(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('required_string')
+ return self._values.get("required_string")
@builtins.property
def optional_number(self) -> typing.Optional[jsii.Number]:
@@ -6944,7 +7742,7 @@ def optional_number(self) -> typing.Optional[jsii.Number]:
stability
:stability: experimental
"""
- return self._values.get('optional_number')
+ return self._values.get("optional_number")
@builtins.property
def optional_string(self) -> typing.Optional[str]:
@@ -6952,7 +7750,7 @@ def optional_string(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('optional_string')
+ return self._values.get("optional_string")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -6961,12 +7759,28 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'StructA(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
-
-
-@jsii.data_type(jsii_type="jsii-calc.StructB", jsii_struct_bases=[], name_mapping={'required_string': 'requiredString', 'optional_boolean': 'optionalBoolean', 'optional_struct_a': 'optionalStructA'})
-class StructB():
- def __init__(self, *, required_string: str, optional_boolean: typing.Optional[bool]=None, optional_struct_a: typing.Optional["StructA"]=None) -> None:
+ return "StructA(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
+
+
+@jsii.data_type(
+ jsii_type="jsii-calc.StructB",
+ jsii_struct_bases=[],
+ name_mapping={
+ "required_string": "requiredString",
+ "optional_boolean": "optionalBoolean",
+ "optional_struct_a": "optionalStructA",
+ },
+)
+class StructB:
+ def __init__(
+ self,
+ *,
+ required_string: str,
+ optional_boolean: typing.Optional[bool] = None,
+ optional_struct_a: typing.Optional["StructA"] = None,
+ ) -> None:
"""This intentionally overlaps with StructA (where only requiredString is provided) to test htat the kernel properly disambiguates those.
:param required_string:
@@ -6976,12 +7790,15 @@ def __init__(self, *, required_string: str, optional_boolean: typing.Optional[bo
stability
:stability: experimental
"""
- if isinstance(optional_struct_a, dict): optional_struct_a = StructA(**optional_struct_a)
+ if isinstance(optional_struct_a, dict):
+ optional_struct_a = StructA(**optional_struct_a)
self._values = {
- 'required_string': required_string,
+ "required_string": required_string,
}
- if optional_boolean is not None: self._values["optional_boolean"] = optional_boolean
- if optional_struct_a is not None: self._values["optional_struct_a"] = optional_struct_a
+ if optional_boolean is not None:
+ self._values["optional_boolean"] = optional_boolean
+ if optional_struct_a is not None:
+ self._values["optional_struct_a"] = optional_struct_a
@builtins.property
def required_string(self) -> str:
@@ -6989,7 +7806,7 @@ def required_string(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('required_string')
+ return self._values.get("required_string")
@builtins.property
def optional_boolean(self) -> typing.Optional[bool]:
@@ -6997,7 +7814,7 @@ def optional_boolean(self) -> typing.Optional[bool]:
stability
:stability: experimental
"""
- return self._values.get('optional_boolean')
+ return self._values.get("optional_boolean")
@builtins.property
def optional_struct_a(self) -> typing.Optional["StructA"]:
@@ -7005,7 +7822,7 @@ def optional_struct_a(self) -> typing.Optional["StructA"]:
stability
:stability: experimental
"""
- return self._values.get('optional_struct_a')
+ return self._values.get("optional_struct_a")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -7014,12 +7831,18 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'StructB(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
-
-
-@jsii.data_type(jsii_type="jsii-calc.StructParameterType", jsii_struct_bases=[], name_mapping={'scope': 'scope', 'props': 'props'})
-class StructParameterType():
- def __init__(self, *, scope: str, props: typing.Optional[bool]=None) -> None:
+ return "StructB(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
+
+
+@jsii.data_type(
+ jsii_type="jsii-calc.StructParameterType",
+ jsii_struct_bases=[],
+ name_mapping={"scope": "scope", "props": "props"},
+)
+class StructParameterType:
+ def __init__(self, *, scope: str, props: typing.Optional[bool] = None) -> None:
"""Verifies that, in languages that do keyword lifting (e.g: Python), having a struct member with the same name as a positional parameter results in the correct code being emitted.
See: https://github.com/aws/aws-cdk/issues/4302
@@ -7031,9 +7854,10 @@ def __init__(self, *, scope: str, props: typing.Optional[bool]=None) -> None:
:stability: experimental
"""
self._values = {
- 'scope': scope,
+ "scope": scope,
}
- if props is not None: self._values["props"] = props
+ if props is not None:
+ self._values["props"] = props
@builtins.property
def scope(self) -> str:
@@ -7041,7 +7865,7 @@ def scope(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('scope')
+ return self._values.get("scope")
@builtins.property
def props(self) -> typing.Optional[bool]:
@@ -7049,7 +7873,7 @@ def props(self) -> typing.Optional[bool]:
stability
:stability: experimental
"""
- return self._values.get('props')
+ return self._values.get("props")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -7058,17 +7882,22 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'StructParameterType(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "StructParameterType(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
class StructPassing(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructPassing"):
"""Just because we can."""
+
def __init__(self) -> None:
jsii.create(StructPassing, self, [])
@jsii.member(jsii_name="howManyVarArgsDidIPass")
@builtins.classmethod
- def how_many_var_args_did_i_pass(cls, _positional: jsii.Number, *inputs: "TopLevelStruct") -> jsii.Number:
+ def how_many_var_args_did_i_pass(
+ cls, _positional: jsii.Number, *inputs: "TopLevelStruct"
+ ) -> jsii.Number:
"""
:param _positional: -
:param inputs: -
@@ -7077,23 +7906,35 @@ def how_many_var_args_did_i_pass(cls, _positional: jsii.Number, *inputs: "TopLev
@jsii.member(jsii_name="roundTrip")
@builtins.classmethod
- def round_trip(cls, _positional: jsii.Number, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None) -> "TopLevelStruct":
+ def round_trip(
+ cls,
+ _positional: jsii.Number,
+ *,
+ required: str,
+ second_level: typing.Union[jsii.Number, "SecondLevelStruct"],
+ optional: typing.Optional[str] = None,
+ ) -> "TopLevelStruct":
"""
:param _positional: -
:param required: This is a required field.
:param second_level: A union to really stress test our serialization.
:param optional: You don't have to pass this.
"""
- input = TopLevelStruct(required=required, second_level=second_level, optional=optional)
+ input = TopLevelStruct(
+ required=required, second_level=second_level, optional=optional
+ )
return jsii.sinvoke(cls, "roundTrip", [_positional, input])
-class StructUnionConsumer(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructUnionConsumer"):
+class StructUnionConsumer(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.StructUnionConsumer"
+):
"""
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="isStructA")
@builtins.classmethod
def is_struct_a(cls, struct: typing.Union["StructA", "StructB"]) -> bool:
@@ -7117,9 +7958,25 @@ def is_struct_b(cls, struct: typing.Union["StructA", "StructB"]) -> bool:
return jsii.sinvoke(cls, "isStructB", [struct])
-@jsii.data_type(jsii_type="jsii-calc.StructWithJavaReservedWords", jsii_struct_bases=[], name_mapping={'default': 'default', 'assert_': 'assert', 'result': 'result', 'that': 'that'})
-class StructWithJavaReservedWords():
- def __init__(self, *, default: str, assert_: typing.Optional[str]=None, result: typing.Optional[str]=None, that: typing.Optional[str]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.StructWithJavaReservedWords",
+ jsii_struct_bases=[],
+ name_mapping={
+ "default": "default",
+ "assert_": "assert",
+ "result": "result",
+ "that": "that",
+ },
+)
+class StructWithJavaReservedWords:
+ def __init__(
+ self,
+ *,
+ default: str,
+ assert_: typing.Optional[str] = None,
+ result: typing.Optional[str] = None,
+ that: typing.Optional[str] = None,
+ ) -> None:
"""
:param default:
:param assert_:
@@ -7130,11 +7987,14 @@ def __init__(self, *, default: str, assert_: typing.Optional[str]=None, result:
:stability: experimental
"""
self._values = {
- 'default': default,
+ "default": default,
}
- if assert_ is not None: self._values["assert_"] = assert_
- if result is not None: self._values["result"] = result
- if that is not None: self._values["that"] = that
+ if assert_ is not None:
+ self._values["assert_"] = assert_
+ if result is not None:
+ self._values["result"] = result
+ if that is not None:
+ self._values["that"] = that
@builtins.property
def default(self) -> str:
@@ -7142,7 +8002,7 @@ def default(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('default')
+ return self._values.get("default")
@builtins.property
def assert_(self) -> typing.Optional[str]:
@@ -7150,7 +8010,7 @@ def assert_(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('assert_')
+ return self._values.get("assert_")
@builtins.property
def result(self) -> typing.Optional[str]:
@@ -7158,7 +8018,7 @@ def result(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('result')
+ return self._values.get("result")
@builtins.property
def that(self) -> typing.Optional[str]:
@@ -7166,7 +8026,7 @@ def that(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('that')
+ return self._values.get("that")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -7175,15 +8035,20 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'StructWithJavaReservedWords(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "StructWithJavaReservedWords(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class Sum(_CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Sum"):
+class Sum(
+ _CompositeOperation_1c4d123b, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Sum"
+):
"""An operation that sums multiple values.
stability
:stability: experimental
"""
+
def __init__(self) -> None:
"""
stability
@@ -7218,9 +8083,13 @@ def parts(self, value: typing.List[scope.jsii_calc_lib.Value]) -> None:
jsii.set(self, "parts", value)
-@jsii.data_type(jsii_type="jsii-calc.SupportsNiceJavaBuilderProps", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'id': 'id'})
-class SupportsNiceJavaBuilderProps():
- def __init__(self, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.SupportsNiceJavaBuilderProps",
+ jsii_struct_bases=[],
+ name_mapping={"bar": "bar", "id": "id"},
+)
+class SupportsNiceJavaBuilderProps:
+ def __init__(self, *, bar: jsii.Number, id: typing.Optional[str] = None) -> None:
"""
:param bar: Some number, like 42.
:param id: An ``id`` field here is terrible API design, because the constructor of ``SupportsNiceJavaBuilder`` already has a parameter named ``id``. But here we are, doing it like we didn't care.
@@ -7229,9 +8098,10 @@ def __init__(self, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None:
:stability: experimental
"""
self._values = {
- 'bar': bar,
+ "bar": bar,
}
- if id is not None: self._values["id"] = id
+ if id is not None:
+ self._values["id"] = id
@builtins.property
def bar(self) -> jsii.Number:
@@ -7240,7 +8110,7 @@ def bar(self) -> jsii.Number:
stability
:stability: experimental
"""
- return self._values.get('bar')
+ return self._values.get("bar")
@builtins.property
def id(self) -> typing.Optional[str]:
@@ -7251,7 +8121,7 @@ def id(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('id')
+ return self._values.get("id")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -7260,16 +8130,24 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'SupportsNiceJavaBuilderProps(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "SupportsNiceJavaBuilderProps(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class SupportsNiceJavaBuilderWithRequiredProps(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SupportsNiceJavaBuilderWithRequiredProps"):
+class SupportsNiceJavaBuilderWithRequiredProps(
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.SupportsNiceJavaBuilderWithRequiredProps",
+):
"""We can generate fancy builders in Java for classes which take a mix of positional & struct parameters.
stability
:stability: experimental
"""
- def __init__(self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str]=None) -> None:
+
+ def __init__(
+ self, id_: jsii.Number, *, bar: jsii.Number, id: typing.Optional[str] = None
+ ) -> None:
"""
:param id_: some identifier of your choice.
:param bar: Some number, like 42.
@@ -7311,11 +8189,14 @@ def prop_id(self) -> typing.Optional[str]:
return jsii.get(self, "propId")
-class SyncVirtualMethods(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SyncVirtualMethods"):
+class SyncVirtualMethods(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SyncVirtualMethods"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(SyncVirtualMethods, self, [])
@@ -7487,6 +8368,7 @@ class Thrower(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Thrower"):
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(Thrower, self, [])
@@ -7499,9 +8381,23 @@ def throw_error(self) -> None:
return jsii.invoke(self, "throwError", [])
-@jsii.data_type(jsii_type="jsii-calc.TopLevelStruct", jsii_struct_bases=[], name_mapping={'required': 'required', 'second_level': 'secondLevel', 'optional': 'optional'})
-class TopLevelStruct():
- def __init__(self, *, required: str, second_level: typing.Union[jsii.Number, "SecondLevelStruct"], optional: typing.Optional[str]=None) -> None:
+@jsii.data_type(
+ jsii_type="jsii-calc.TopLevelStruct",
+ jsii_struct_bases=[],
+ name_mapping={
+ "required": "required",
+ "second_level": "secondLevel",
+ "optional": "optional",
+ },
+)
+class TopLevelStruct:
+ def __init__(
+ self,
+ *,
+ required: str,
+ second_level: typing.Union[jsii.Number, "SecondLevelStruct"],
+ optional: typing.Optional[str] = None,
+ ) -> None:
"""
:param required: This is a required field.
:param second_level: A union to really stress test our serialization.
@@ -7511,10 +8407,11 @@ def __init__(self, *, required: str, second_level: typing.Union[jsii.Number, "Se
:stability: experimental
"""
self._values = {
- 'required': required,
- 'second_level': second_level,
+ "required": required,
+ "second_level": second_level,
}
- if optional is not None: self._values["optional"] = optional
+ if optional is not None:
+ self._values["optional"] = optional
@builtins.property
def required(self) -> str:
@@ -7523,7 +8420,7 @@ def required(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('required')
+ return self._values.get("required")
@builtins.property
def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]:
@@ -7532,7 +8429,7 @@ def second_level(self) -> typing.Union[jsii.Number, "SecondLevelStruct"]:
stability
:stability: experimental
"""
- return self._values.get('second_level')
+ return self._values.get("second_level")
@builtins.property
def optional(self) -> typing.Optional[str]:
@@ -7541,7 +8438,7 @@ def optional(self) -> typing.Optional[str]:
stability
:stability: experimental
"""
- return self._values.get('optional')
+ return self._values.get("optional")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -7550,15 +8447,42 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'TopLevelStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "TopLevelStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-class UnaryOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.UnaryOperation"):
+class UmaskCheck(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UmaskCheck"):
+ """Checks the current file permissions are cool (no funky UMASK down-scoping happened).
+
+ see
+ :see: https://github.com/aws/jsii/issues/1765
+ stability
+ :stability: experimental
+ """
+
+ @jsii.member(jsii_name="mode")
+ @builtins.classmethod
+ def mode(cls) -> jsii.Number:
+ """This should return 0o644 (-rw-r--r--).
+
+ stability
+ :stability: experimental
+ """
+ return jsii.sinvoke(cls, "mode", [])
+
+
+class UnaryOperation(
+ scope.jsii_calc_lib.Operation,
+ metaclass=jsii.JSIIAbstractClass,
+ jsii_type="jsii-calc.UnaryOperation",
+):
"""An operation on a single operand.
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _UnaryOperationProxy
@@ -7582,12 +8506,24 @@ def operand(self) -> scope.jsii_calc_lib.Value:
return jsii.get(self, "operand")
-class _UnaryOperationProxy(UnaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)):
+class _UnaryOperationProxy(
+ UnaryOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)
+):
pass
-@jsii.data_type(jsii_type="jsii-calc.UnionProperties", jsii_struct_bases=[], name_mapping={'bar': 'bar', 'foo': 'foo'})
-class UnionProperties():
- def __init__(self, *, bar: typing.Union[str, jsii.Number, "AllTypes"], foo: typing.Optional[typing.Union[str, jsii.Number]]=None) -> None:
+
+@jsii.data_type(
+ jsii_type="jsii-calc.UnionProperties",
+ jsii_struct_bases=[],
+ name_mapping={"bar": "bar", "foo": "foo"},
+)
+class UnionProperties:
+ def __init__(
+ self,
+ *,
+ bar: typing.Union[str, jsii.Number, "AllTypes"],
+ foo: typing.Optional[typing.Union[str, jsii.Number]] = None,
+ ) -> None:
"""
:param bar:
:param foo:
@@ -7596,9 +8532,10 @@ def __init__(self, *, bar: typing.Union[str, jsii.Number, "AllTypes"], foo: typi
:stability: experimental
"""
self._values = {
- 'bar': bar,
+ "bar": bar,
}
- if foo is not None: self._values["foo"] = foo
+ if foo is not None:
+ self._values["foo"] = foo
@builtins.property
def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]:
@@ -7606,7 +8543,7 @@ def bar(self) -> typing.Union[str, jsii.Number, "AllTypes"]:
stability
:stability: experimental
"""
- return self._values.get('bar')
+ return self._values.get("bar")
@builtins.property
def foo(self) -> typing.Optional[typing.Union[str, jsii.Number]]:
@@ -7614,7 +8551,7 @@ def foo(self) -> typing.Optional[typing.Union[str, jsii.Number]]:
stability
:stability: experimental
"""
- return self._values.get('foo')
+ return self._values.get("foo")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -7623,16 +8560,21 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'UnionProperties(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "UnionProperties(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
@jsii.implements(scope.jsii_calc_lib.custom_submodule_name.IReflectable)
-class UpcasingReflectable(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UpcasingReflectable"):
+class UpcasingReflectable(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UpcasingReflectable"
+):
"""Ensures submodule-imported types from dependencies can be used correctly.
stability
:stability: experimental
"""
+
def __init__(self, delegate: typing.Mapping[str, typing.Any]) -> None:
"""
:param delegate: -
@@ -7653,7 +8595,9 @@ def REFLECTOR(cls) -> scope.jsii_calc_lib.custom_submodule_name.Reflector:
@builtins.property
@jsii.member(jsii_name="entries")
- def entries(self) -> typing.List[scope.jsii_calc_lib.custom_submodule_name.ReflectableEntry]:
+ def entries(
+ self,
+ ) -> typing.List[scope.jsii_calc_lib.custom_submodule_name.ReflectableEntry]:
"""
stability
:stability: experimental
@@ -7661,11 +8605,14 @@ def entries(self) -> typing.List[scope.jsii_calc_lib.custom_submodule_name.Refle
return jsii.get(self, "entries")
-class UseBundledDependency(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseBundledDependency"):
+class UseBundledDependency(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseBundledDependency"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(UseBundledDependency, self, [])
@@ -7684,6 +8631,7 @@ class UseCalcBase(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UseCalcBase"):
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(UseCalcBase, self, [])
@@ -7696,11 +8644,14 @@ def hello(self) -> scope.jsii_calc_base.Base:
return jsii.invoke(self, "hello", [])
-class UsesInterfaceWithProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UsesInterfaceWithProperties"):
+class UsesInterfaceWithProperties(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.UsesInterfaceWithProperties"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self, obj: "IInterfaceWithProperties") -> None:
"""
:param obj: -
@@ -7753,6 +8704,7 @@ class VariadicInvoker(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicInvo
stability
:stability: experimental
"""
+
def __init__(self, method: "VariadicMethod") -> None:
"""
:param method: -
@@ -7778,6 +8730,7 @@ class VariadicMethod(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VariadicMetho
stability
:stability: experimental
"""
+
def __init__(self, *prefix: jsii.Number) -> None:
"""
:param prefix: a prefix that will be use for all values returned by ``#asArray``.
@@ -7788,7 +8741,9 @@ def __init__(self, *prefix: jsii.Number) -> None:
jsii.create(VariadicMethod, self, [*prefix])
@jsii.member(jsii_name="asArray")
- def as_array(self, first: jsii.Number, *others: jsii.Number) -> typing.List[jsii.Number]:
+ def as_array(
+ self, first: jsii.Number, *others: jsii.Number
+ ) -> typing.List[jsii.Number]:
"""
:param first: the first element of the array to be returned (after the ``prefix`` provided at construction time).
:param others: other elements to be included in the array.
@@ -7799,11 +8754,14 @@ def as_array(self, first: jsii.Number, *others: jsii.Number) -> typing.List[jsii
return jsii.invoke(self, "asArray", [first, *others])
-class VirtualMethodPlayground(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VirtualMethodPlayground"):
+class VirtualMethodPlayground(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.VirtualMethodPlayground"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(VirtualMethodPlayground, self, [])
@@ -7858,7 +8816,9 @@ def sum_sync(self, count: jsii.Number) -> jsii.Number:
return jsii.invoke(self, "sumSync", [count])
-class VoidCallback(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.VoidCallback"):
+class VoidCallback(
+ metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.VoidCallback"
+):
"""This test is used to validate the runtimes can return correctly from a void callback.
- Implement ``overrideMe`` (method does not have to do anything).
@@ -7868,6 +8828,7 @@ class VoidCallback(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.VoidCa
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _VoidCallbackProxy
@@ -7912,13 +8873,16 @@ def _override_me(self) -> None:
return jsii.invoke(self, "overrideMe", [])
-class WithPrivatePropertyInConstructor(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.WithPrivatePropertyInConstructor"):
+class WithPrivatePropertyInConstructor(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.WithPrivatePropertyInConstructor"
+):
"""Verifies that private property declarations in constructor arguments are hidden.
stability
:stability: experimental
"""
- def __init__(self, private_field: typing.Optional[str]=None) -> None:
+
+ def __init__(self, private_field: typing.Optional[str] = None) -> None:
"""
:param private_field: -
@@ -7938,11 +8902,16 @@ def success(self) -> bool:
@jsii.implements(IInterfaceImplementedByAbstractClass)
-class AbstractClass(AbstractClassBase, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.AbstractClass"):
+class AbstractClass(
+ AbstractClassBase,
+ metaclass=jsii.JSIIAbstractClass,
+ jsii_type="jsii-calc.AbstractClass",
+):
"""
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _AbstractClassProxy
@@ -7997,7 +8966,10 @@ class Add(BinaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Add"):
stability
:stability: experimental
"""
- def __init__(self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value) -> None:
+
+ def __init__(
+ self, lhs: scope.jsii_calc_lib.Value, rhs: scope.jsii_calc_lib.Value
+ ) -> None:
"""Creates a BinaryOperation.
:param lhs: Left-hand side operand.
@@ -8029,11 +9001,14 @@ def value(self) -> jsii.Number:
@jsii.implements(IAnonymousImplementationProvider)
-class AnonymousImplementationProvider(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AnonymousImplementationProvider"):
+class AnonymousImplementationProvider(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.AnonymousImplementationProvider"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(AnonymousImplementationProvider, self, [])
@@ -8060,6 +9035,7 @@ class Bell(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Bell"):
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(Bell, self, [])
@@ -8085,7 +9061,11 @@ def rung(self, value: bool) -> None:
jsii.set(self, "rung", value)
-@jsii.data_type(jsii_type="jsii-calc.ChildStruct982", jsii_struct_bases=[ParentStruct982], name_mapping={'foo': 'foo', 'bar': 'bar'})
+@jsii.data_type(
+ jsii_type="jsii-calc.ChildStruct982",
+ jsii_struct_bases=[ParentStruct982],
+ name_mapping={"foo": "foo", "bar": "bar"},
+)
class ChildStruct982(ParentStruct982):
def __init__(self, *, foo: str, bar: jsii.Number) -> None:
"""
@@ -8096,8 +9076,8 @@ def __init__(self, *, foo: str, bar: jsii.Number) -> None:
:stability: experimental
"""
self._values = {
- 'foo': foo,
- 'bar': bar,
+ "foo": foo,
+ "bar": bar,
}
@builtins.property
@@ -8106,7 +9086,7 @@ def foo(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('foo')
+ return self._values.get("foo")
@builtins.property
def bar(self) -> jsii.Number:
@@ -8114,7 +9094,7 @@ def bar(self) -> jsii.Number:
stability
:stability: experimental
"""
- return self._values.get('bar')
+ return self._values.get("bar")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -8123,15 +9103,21 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'ChildStruct982(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "ChildStruct982(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
@jsii.implements(INonInternalInterface)
-class ClassThatImplementsTheInternalInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassThatImplementsTheInternalInterface"):
+class ClassThatImplementsTheInternalInterface(
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.ClassThatImplementsTheInternalInterface",
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ClassThatImplementsTheInternalInterface, self, [])
@@ -8189,11 +9175,15 @@ def d(self, value: str) -> None:
@jsii.implements(INonInternalInterface)
-class ClassThatImplementsThePrivateInterface(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassThatImplementsThePrivateInterface"):
+class ClassThatImplementsThePrivateInterface(
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.ClassThatImplementsThePrivateInterface",
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(ClassThatImplementsThePrivateInterface, self, [])
@@ -8251,15 +9241,21 @@ def e(self, value: str) -> None:
@jsii.implements(IInterfaceWithProperties)
-class ClassWithPrivateConstructorAndAutomaticProperties(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties"):
+class ClassWithPrivateConstructorAndAutomaticProperties(
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.ClassWithPrivateConstructorAndAutomaticProperties",
+):
"""Class that implements interface properties automatically, but using a private constructor.
stability
:stability: experimental
"""
+
@jsii.member(jsii_name="create")
@builtins.classmethod
- def create(cls, read_only_string: str, read_write_string: str) -> "ClassWithPrivateConstructorAndAutomaticProperties":
+ def create(
+ cls, read_only_string: str, read_write_string: str
+ ) -> "ClassWithPrivateConstructorAndAutomaticProperties":
"""
:param read_only_string: -
:param read_write_string: -
@@ -8293,25 +9289,34 @@ def read_write_string(self, value: str) -> None:
@jsii.interface(jsii_type="jsii-calc.IFriendlyRandomGenerator")
-class IFriendlyRandomGenerator(IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol):
+class IFriendlyRandomGenerator(
+ IRandomNumberGenerator, scope.jsii_calc_lib.IFriendly, jsii.compat.Protocol
+):
"""
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IFriendlyRandomGeneratorProxy
pass
-class _IFriendlyRandomGeneratorProxy(jsii.proxy_for(IRandomNumberGenerator), jsii.proxy_for(scope.jsii_calc_lib.IFriendly)):
+
+class _IFriendlyRandomGeneratorProxy(
+ jsii.proxy_for(IRandomNumberGenerator),
+ jsii.proxy_for(scope.jsii_calc_lib.IFriendly),
+):
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IFriendlyRandomGenerator"
pass
+
@jsii.interface(jsii_type="jsii-calc.IInterfaceThatShouldNotBeADataType")
class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Protocol):
"""Even though this interface has only properties, it is disqualified from being a datatype because it inherits from an interface that is not a datatype.
@@ -8319,6 +9324,7 @@ class IInterfaceThatShouldNotBeADataType(IInterfaceWithMethods, jsii.compat.Prot
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IInterfaceThatShouldNotBeADataTypeProxy
@@ -8339,7 +9345,9 @@ class _IInterfaceThatShouldNotBeADataTypeProxy(jsii.proxy_for(IInterfaceWithMeth
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IInterfaceThatShouldNotBeADataType"
+
@builtins.property
@jsii.member(jsii_name="otherValue")
def other_value(self) -> str:
@@ -8356,6 +9364,7 @@ class IJSII417Derived(IJSII417PublicBaseOfBase, jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IJSII417DerivedProxy
@@ -8391,7 +9400,9 @@ class _IJSII417DerivedProxy(jsii.proxy_for(IJSII417PublicBaseOfBase)):
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.IJSII417Derived"
+
@builtins.property
@jsii.member(jsii_name="property")
def property(self) -> str:
@@ -8419,11 +9430,14 @@ def baz(self) -> None:
@jsii.implements(IPublicInterface2)
-class InbetweenClass(PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InbetweenClass"):
+class InbetweenClass(
+ PublicClass, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InbetweenClass"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(InbetweenClass, self, [])
@@ -8436,11 +9450,16 @@ def ciao(self) -> str:
return jsii.invoke(self, "ciao", [])
-class JSII417Derived(JSII417PublicBaseOfBase, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.JSII417Derived"):
+class JSII417Derived(
+ JSII417PublicBaseOfBase,
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.JSII417Derived",
+):
"""
stability
:stability: experimental
"""
+
def __init__(self, property: str) -> None:
"""
:param property: -
@@ -8483,6 +9502,7 @@ class Negate(UnaryOperation, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.Negat
stability
:stability: experimental
"""
+
def __init__(self, operand: scope.jsii_calc_lib.Value) -> None:
"""
:param operand: -
@@ -8539,12 +9559,23 @@ def value(self) -> jsii.Number:
return jsii.get(self, "value")
-class SupportsNiceJavaBuilder(SupportsNiceJavaBuilderWithRequiredProps, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.SupportsNiceJavaBuilder"):
+class SupportsNiceJavaBuilder(
+ SupportsNiceJavaBuilderWithRequiredProps,
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.SupportsNiceJavaBuilder",
+):
"""
stability
:stability: experimental
"""
- def __init__(self, id: jsii.Number, default_bar: typing.Optional[jsii.Number]=None, props: typing.Optional["SupportsNiceJavaBuilderProps"]=None, *rest: str) -> None:
+
+ def __init__(
+ self,
+ id: jsii.Number,
+ default_bar: typing.Optional[jsii.Number] = None,
+ props: typing.Optional["SupportsNiceJavaBuilderProps"] = None,
+ *rest: str,
+ ) -> None:
"""
:param id: some identifier.
:param default_bar: the default value of ``bar``.
@@ -8582,6 +9613,7 @@ class DoubleTrouble(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DoubleTrouble"
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(DoubleTrouble, self, [])
@@ -8782,6 +9814,7 @@ def next(self) -> jsii.Number:
"SyncVirtualMethods",
"Thrower",
"TopLevelStruct",
+ "UmaskCheck",
"UnaryOperation",
"UnionProperties",
"UpcasingReflectable",
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py
index e84388515d..5a3c3bd284 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/_jsii/__init__.py
@@ -12,7 +12,9 @@
import scope.jsii_calc_base_of_base._jsii
import scope.jsii_calc_lib._jsii
-__jsii_assembly__ = jsii.JSIIAssembly.load("jsii-calc", "0.0.0", __name__[0:-6], "jsii-calc@0.0.0.jsii.tgz")
+__jsii_assembly__ = jsii.JSIIAssembly.load(
+ "jsii-calc", "0.0.0", __name__[0:-6], "jsii-calc@0.0.0.jsii.tgz"
+)
__all__ = [
"__jsii_assembly__",
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py
index e769852cb2..17356f0f91 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/composition/__init__.py
@@ -13,12 +13,17 @@
import scope.jsii_calc_lib
-class CompositeOperation(scope.jsii_calc_lib.Operation, metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.composition.CompositeOperation"):
+class CompositeOperation(
+ scope.jsii_calc_lib.Operation,
+ metaclass=jsii.JSIIAbstractClass,
+ jsii_type="jsii-calc.composition.CompositeOperation",
+):
"""Abstract operation composed from an expression of other operations.
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _CompositeOperationProxy
@@ -100,13 +105,16 @@ def string_style(self) -> "CompositionStringStyle":
def string_style(self, value: "CompositionStringStyle") -> None:
jsii.set(self, "stringStyle", value)
- @jsii.enum(jsii_type="jsii-calc.composition.CompositeOperation.CompositionStringStyle")
+ @jsii.enum(
+ jsii_type="jsii-calc.composition.CompositeOperation.CompositionStringStyle"
+ )
class CompositionStringStyle(enum.Enum):
"""Style of .toString() output for CompositeOperation.
stability
:stability: experimental
"""
+
NORMAL = "NORMAL"
"""Normal string expression.
@@ -121,7 +129,9 @@ class CompositionStringStyle(enum.Enum):
"""
-class _CompositeOperationProxy(CompositeOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)):
+class _CompositeOperationProxy(
+ CompositeOperation, jsii.proxy_for(scope.jsii_calc_lib.Operation)
+):
@builtins.property
@jsii.member(jsii_name="expression")
def expression(self) -> scope.jsii_calc_lib.Value:
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py
index be5697ee4d..19c60636d5 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/derived_class_has_no_properties/__init__.py
@@ -11,11 +11,14 @@
from .._jsii import *
-class Base(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Base"):
+class Base(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Base"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(Base, self, [])
@@ -33,11 +36,16 @@ def prop(self, value: str) -> None:
jsii.set(self, "prop", value)
-class Derived(Base, metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.DerivedClassHasNoProperties.Derived"):
+class Derived(
+ Base,
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.DerivedClassHasNoProperties.Derived",
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(Derived, self, [])
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py
index f07e287712..1c9f355178 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_includes_classes/__init__.py
@@ -11,11 +11,15 @@
from .._jsii import *
-class Foo(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Foo"):
+class Foo(
+ metaclass=jsii.JSIIMeta,
+ jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Foo",
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
jsii.create(Foo, self, [])
@@ -33,8 +37,12 @@ def bar(self, value: typing.Optional[str]) -> None:
jsii.set(self, "bar", value)
-@jsii.data_type(jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'})
-class Hello():
+@jsii.data_type(
+ jsii_type="jsii-calc.InterfaceInNamespaceIncludesClasses.Hello",
+ jsii_struct_bases=[],
+ name_mapping={"foo": "foo"},
+)
+class Hello:
def __init__(self, *, foo: jsii.Number) -> None:
"""
:param foo:
@@ -43,7 +51,7 @@ def __init__(self, *, foo: jsii.Number) -> None:
:stability: experimental
"""
self._values = {
- 'foo': foo,
+ "foo": foo,
}
@builtins.property
@@ -52,7 +60,7 @@ def foo(self) -> jsii.Number:
stability
:stability: experimental
"""
- return self._values.get('foo')
+ return self._values.get("foo")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -61,7 +69,9 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "Hello(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
__all__ = [
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py
index 178720d98e..cda30a2163 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/interface_in_namespace_only_interface/__init__.py
@@ -11,8 +11,12 @@
from .._jsii import *
-@jsii.data_type(jsii_type="jsii-calc.InterfaceInNamespaceOnlyInterface.Hello", jsii_struct_bases=[], name_mapping={'foo': 'foo'})
-class Hello():
+@jsii.data_type(
+ jsii_type="jsii-calc.InterfaceInNamespaceOnlyInterface.Hello",
+ jsii_struct_bases=[],
+ name_mapping={"foo": "foo"},
+)
+class Hello:
def __init__(self, *, foo: jsii.Number) -> None:
"""
:param foo:
@@ -21,7 +25,7 @@ def __init__(self, *, foo: jsii.Number) -> None:
:stability: experimental
"""
self._values = {
- 'foo': foo,
+ "foo": foo,
}
@builtins.property
@@ -30,7 +34,7 @@ def foo(self) -> jsii.Number:
stability
:stability: experimental
"""
- return self._values.get('foo')
+ return self._values.get("foo")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -39,7 +43,9 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'Hello(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "Hello(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
__all__ = [
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py
index 729bcdc19c..5d63911e34 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/python_self/__init__.py
@@ -11,11 +11,14 @@
from .._jsii import *
-class ClassWithSelf(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelf"):
+class ClassWithSelf(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelf"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self_, self: str) -> None:
"""
:param self: -
@@ -45,11 +48,14 @@ def self(self) -> str:
return jsii.get(self, "self")
-class ClassWithSelfKwarg(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelfKwarg"):
+class ClassWithSelfKwarg(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.PythonSelf.ClassWithSelfKwarg"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self_, *, self: str) -> None:
"""
:param self:
@@ -77,6 +83,7 @@ class IInterfaceWithSelf(jsii.compat.Protocol):
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _IInterfaceWithSelfProxy
@@ -92,12 +99,14 @@ def method(self_, self: jsii.Number) -> str:
...
-class _IInterfaceWithSelfProxy():
+class _IInterfaceWithSelfProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.PythonSelf.IInterfaceWithSelf"
+
@jsii.member(jsii_name="method")
def method(self_, self: jsii.Number) -> str:
"""
@@ -109,8 +118,12 @@ def method(self_, self: jsii.Number) -> str:
return jsii.invoke(self_, "method", [self])
-@jsii.data_type(jsii_type="jsii-calc.PythonSelf.StructWithSelf", jsii_struct_bases=[], name_mapping={'self': 'self'})
-class StructWithSelf():
+@jsii.data_type(
+ jsii_type="jsii-calc.PythonSelf.StructWithSelf",
+ jsii_struct_bases=[],
+ name_mapping={"self": "self"},
+)
+class StructWithSelf:
def __init__(self_, *, self: str) -> None:
"""
:param self:
@@ -119,7 +132,7 @@ def __init__(self_, *, self: str) -> None:
:stability: experimental
"""
self_._values = {
- 'self': self,
+ "self": self,
}
@builtins.property
@@ -128,7 +141,7 @@ def self(self) -> str:
stability
:stability: experimental
"""
- return self._values.get('self')
+ return self._values.get("self")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -137,7 +150,9 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'StructWithSelf(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "StructWithSelf(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
__all__ = [
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py
index 9b60c4e08a..dbfd234f69 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/__init__.py
@@ -10,9 +10,14 @@
from .._jsii import *
-from .. import (AllTypes as _AllTypes_b08307c5)
-from .child import (Awesomeness as _Awesomeness_d37a24df, Goodness as _Goodness_2df26737)
-from .nested_submodule.deeply_nested import (INamespaced as _INamespaced_e2f386ad)
+from .. import AllTypes as _AllTypes_b08307c5
+from .child import (
+ SomeStruct as _SomeStruct_91627123,
+ SomeEnum as _SomeEnum_b2e41d92,
+ Awesomeness as _Awesomeness_d37a24df,
+ Goodness as _Goodness_2df26737,
+)
+from .nested_submodule.deeply_nested import INamespaced as _INamespaced_e2f386ad
@jsii.implements(_INamespaced_e2f386ad)
@@ -21,12 +26,17 @@ class MyClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.MyClass"):
stability
:stability: experimental
"""
- def __init__(self) -> None:
+
+ def __init__(self, *, prop: _SomeEnum_b2e41d92) -> None:
"""
+ :param prop:
+
stability
:stability: experimental
"""
- jsii.create(MyClass, self, [])
+ props = _SomeStruct_91627123(prop=prop)
+
+ jsii.create(MyClass, self, [props])
@builtins.property
@jsii.member(jsii_name="awesomeness")
@@ -55,6 +65,15 @@ def goodness(self) -> _Goodness_2df26737:
"""
return jsii.get(self, "goodness")
+ @builtins.property
+ @jsii.member(jsii_name="props")
+ def props(self) -> _SomeStruct_91627123:
+ """
+ stability
+ :stability: experimental
+ """
+ return jsii.get(self, "props")
+
@builtins.property
@jsii.member(jsii_name="allTypes")
def all_types(self) -> typing.Optional[_AllTypes_b08307c5]:
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py
index 01cd470677..4e441e3685 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/back_references/__init__.py
@@ -10,11 +10,15 @@
from ..._jsii import *
-from .. import (MyClass as _MyClass_a2fdc0b6)
+from .. import MyClass as _MyClass_a2fdc0b6
-@jsii.data_type(jsii_type="jsii-calc.submodule.back_references.MyClassReference", jsii_struct_bases=[], name_mapping={'reference': 'reference'})
-class MyClassReference():
+@jsii.data_type(
+ jsii_type="jsii-calc.submodule.back_references.MyClassReference",
+ jsii_struct_bases=[],
+ name_mapping={"reference": "reference"},
+)
+class MyClassReference:
def __init__(self, *, reference: _MyClass_a2fdc0b6) -> None:
"""
:param reference:
@@ -23,7 +27,7 @@ def __init__(self, *, reference: _MyClass_a2fdc0b6) -> None:
:stability: experimental
"""
self._values = {
- 'reference': reference,
+ "reference": reference,
}
@builtins.property
@@ -32,7 +36,7 @@ def reference(self) -> _MyClass_a2fdc0b6:
stability
:stability: experimental
"""
- return self._values.get('reference')
+ return self._values.get("reference")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -41,7 +45,9 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'MyClassReference(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "MyClassReference(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
__all__ = [
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py
index e3eee7a961..7546ef5720 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/child/__init__.py
@@ -17,6 +17,7 @@ class Awesomeness(enum.Enum):
stability
:stability: experimental
"""
+
AWESOME = "AWESOME"
"""It was awesome!
@@ -24,12 +25,14 @@ class Awesomeness(enum.Enum):
:stability: experimental
"""
+
@jsii.enum(jsii_type="jsii-calc.submodule.child.Goodness")
class Goodness(enum.Enum):
"""
stability
:stability: experimental
"""
+
PRETTY_GOOD = "PRETTY_GOOD"
"""It's pretty good.
@@ -49,11 +52,15 @@ class Goodness(enum.Enum):
:stability: experimental
"""
-class InnerClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.InnerClass"):
+
+class InnerClass(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.InnerClass"
+):
"""
stability
:stability: experimental
"""
+
def __init__(self) -> None:
"""
stability
@@ -71,7 +78,9 @@ def STATIC_PROP(cls) -> "SomeStruct":
return jsii.sget(cls, "staticProp")
-class OuterClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.OuterClass"):
+class OuterClass(
+ metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.OuterClass"
+):
"""Checks that classes can self-reference during initialization.
see
@@ -79,6 +88,7 @@ class OuterClass(metaclass=jsii.JSIIMeta, jsii_type="jsii-calc.submodule.child.O
stability
:stability: experimental
"""
+
def __init__(self) -> None:
"""
stability
@@ -102,14 +112,20 @@ class SomeEnum(enum.Enum):
stability
:stability: experimental
"""
+
SOME = "SOME"
"""
stability
:stability: experimental
"""
-@jsii.data_type(jsii_type="jsii-calc.submodule.child.SomeStruct", jsii_struct_bases=[], name_mapping={'prop': 'prop'})
-class SomeStruct():
+
+@jsii.data_type(
+ jsii_type="jsii-calc.submodule.child.SomeStruct",
+ jsii_struct_bases=[],
+ name_mapping={"prop": "prop"},
+)
+class SomeStruct:
def __init__(self, *, prop: "SomeEnum") -> None:
"""
:param prop:
@@ -118,7 +134,7 @@ def __init__(self, *, prop: "SomeEnum") -> None:
:stability: experimental
"""
self._values = {
- 'prop': prop,
+ "prop": prop,
}
@builtins.property
@@ -127,7 +143,7 @@ def prop(self) -> "SomeEnum":
stability
:stability: experimental
"""
- return self._values.get('prop')
+ return self._values.get("prop")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -136,11 +152,17 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'SomeStruct(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "SomeStruct(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
-@jsii.data_type(jsii_type="jsii-calc.submodule.child.Structure", jsii_struct_bases=[], name_mapping={'bool': 'bool'})
-class Structure():
+@jsii.data_type(
+ jsii_type="jsii-calc.submodule.child.Structure",
+ jsii_struct_bases=[],
+ name_mapping={"bool": "bool"},
+)
+class Structure:
def __init__(self, *, bool: bool) -> None:
"""
:param bool:
@@ -149,7 +171,7 @@ def __init__(self, *, bool: bool) -> None:
:stability: experimental
"""
self._values = {
- 'bool': bool,
+ "bool": bool,
}
@builtins.property
@@ -158,7 +180,7 @@ def bool(self) -> bool:
stability
:stability: experimental
"""
- return self._values.get('bool')
+ return self._values.get("bool")
def __eq__(self, rhs) -> bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -167,7 +189,9 @@ def __ne__(self, rhs) -> bool:
return not (rhs == self)
def __repr__(self) -> str:
- return 'Structure(%s)' % ', '.join(k + '=' + repr(v) for k, v in self._values.items())
+ return "Structure(%s)" % ", ".join(
+ k + "=" + repr(v) for k, v in self._values.items()
+ )
__all__ = [
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py
index 3091322c07..efd2ae9d4a 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/__init__.py
@@ -10,16 +10,20 @@
from ..._jsii import *
-from ..child import (Goodness as _Goodness_2df26737)
-from .deeply_nested import (INamespaced as _INamespaced_e2f386ad)
+from ..child import Goodness as _Goodness_2df26737
+from .deeply_nested import INamespaced as _INamespaced_e2f386ad
@jsii.implements(_INamespaced_e2f386ad)
-class Namespaced(metaclass=jsii.JSIIAbstractClass, jsii_type="jsii-calc.submodule.nested_submodule.Namespaced"):
+class Namespaced(
+ metaclass=jsii.JSIIAbstractClass,
+ jsii_type="jsii-calc.submodule.nested_submodule.Namespaced",
+):
"""
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _NamespacedProxy
diff --git a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py
index c81e52e8c5..ee0b9ce2f2 100644
--- a/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py
+++ b/packages/jsii-pacmak/test/expected.jsii-calc/python/src/jsii_calc/submodule/nested_submodule/deeply_nested/__init__.py
@@ -11,12 +11,15 @@
from ...._jsii import *
-@jsii.interface(jsii_type="jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced")
+@jsii.interface(
+ jsii_type="jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced"
+)
class INamespaced(jsii.compat.Protocol):
"""
stability
:stability: experimental
"""
+
@builtins.staticmethod
def __jsii_proxy_class__():
return _INamespacedProxy
@@ -31,12 +34,14 @@ def defined_at(self) -> str:
...
-class _INamespacedProxy():
+class _INamespacedProxy:
"""
stability
:stability: experimental
"""
+
__jsii_type__ = "jsii-calc.submodule.nested_submodule.deeplyNested.INamespaced"
+
@builtins.property
@jsii.member(jsii_name="definedAt")
def defined_at(self) -> str:
diff --git a/packages/jsii-reflect/package.json b/packages/jsii-reflect/package.json
index f78c250362..783a7fdb43 100644
--- a/packages/jsii-reflect/package.json
+++ b/packages/jsii-reflect/package.json
@@ -43,18 +43,18 @@
"devDependencies": {
"@scope/jsii-calc-lib": "^0.0.0",
"@types/fs-extra": "^8.1.0",
- "@types/jest": "^26.0.0",
+ "@types/jest": "^26.0.3",
"@types/node": "^10.17.26",
"@types/yargs": "^15.0.5",
- "eslint": "^7.2.0",
+ "eslint": "^7.3.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
- "jest": "^26.0.1",
+ "jest": "^26.1.0",
"jsii": "^0.0.0",
"jsii-build-tools": "^0.0.0",
"jsii-calc": "^0.0.0",
"prettier": "^2.0.5",
- "typescript": "~3.9.5"
+ "typescript": "~3.9.6"
},
"jest": {
"collectCoverage": true,
diff --git a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap
index f1d40c56a0..9cf59a43d5 100644
--- a/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap
+++ b/packages/jsii-reflect/test/__snapshots__/jsii-tree.test.js.snap
@@ -174,7 +174,10 @@ exports[`jsii-tree --all 1`] = `
│ │ └─┬ class MyClass (experimental)
│ │ ├── interfaces: INamespaced
│ │ └─┬ members
- │ │ ├──