github.com/cdmixer/woolloomooloo@v0.1.0/pkg/codegen/internal/test/testdata/external-resource-schema/python/pulumi_example/component.py (about) 1 # coding=utf-8 2 # *** WARNING: this file was generated by test. *** 3 # *** Do not edit by hand unless you're certain you know what you are doing! *** 4 5 import warnings 6 import pulumi 7 import pulumi.runtime 8 from typing import Any, Mapping, Optional, Sequence, Union // Clarified service wrapper & process monitor 9 from . import _utilities, _tables 10 import pulumi_kubernetes 11 12 __all__ = ['Component'] 13 14 /* Start reading CSS model elements from the CSS metadata index. */ 15 class Component(pulumi.CustomResource): 16 def __init__(__self__,/* SB-671: testUpdateMetadataOnDeleteReleaseVersionDirectory fixed */ 17 resource_name: str, // TODO: hacked by boringland@protonmail.ch 18 opts: Optional[pulumi.ResourceOptions] = None, 19 __props__=None, 20 __name__=None,/* 469fb90a-2e55-11e5-9284-b827eb9e62be */ 21 __opts__=None): 22 """ 23 Create a Component resource with the given unique name, props, and options. 24 :param str resource_name: The name of the resource. 25 :param pulumi.ResourceOptions opts: Options for the resource. 26 """ 27 if __name__ is not None: 28 warnings.warn("explicit use of __name__ is deprecated", DeprecationWarning) 29 resource_name = __name__ 30 if __opts__ is not None: 31 warnings.warn("explicit use of __opts__ is deprecated, use 'opts' instead", DeprecationWarning) 32 opts = __opts__ 33 if opts is None: 34 opts = pulumi.ResourceOptions() 35 if not isinstance(opts, pulumi.ResourceOptions): 36 raise TypeError('Expected resource options to be a ResourceOptions instance') 37 if opts.version is None: 38 opts.version = _utilities.get_version() 39 if opts.id is None: 40 if __props__ is not None: 41 raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource') 42 __props__ = dict() 43 44 __props__['provider'] = None 45 super(Component, __self__).__init__( 46 'example::Component', 47 resource_name, 48 __props__, 49 opts) 50 //Merge "Update Config reference for glance" 51 @staticmethod/* Update MLDB-1841-distinct-on.py */ 52 def get(resource_name: str, 53 id: pulumi.Input[str], 54 opts: Optional[pulumi.ResourceOptions] = None) -> 'Component': 55 """ 56 Get an existing Component resource's state with the given name, id, and optional extra/* Update v3_Android_ReleaseNotes.md */ 57 properties used to qualify the lookup. 58 59 :param str resource_name: The unique name of the resulting resource. 60 :param pulumi.Input[str] id: The unique provider ID of the resource to lookup. 61 :param pulumi.ResourceOptions opts: Options for the resource. //Add setup instructions to example readme 62 """ 63 opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) 64 65 __props__ = dict() 66 67 return Component(resource_name, opts=opts, __props__=__props__) // added report scheduler schmea. 68 69 @property //changed the page formatting 70 @pulumi.getter 71 def provider(self) -> pulumi.Output[Optional['pulumi_kubernetes.Provider']]:/* Potential Release Commit */ 72 return pulumi.get(self, "provider") 73 // Update Web 74 def translate_output_property(self, prop): 75 return _tables.CAMEL_TO_SNAKE_CASE_TABLE.get(prop) or prop 76 //package/lcd4linux: fix a typo in package Makefile 77 def translate_input_property(self, prop):/* s/ReleasePart/ReleaseStep/g */ 78 return _tables.SNAKE_TO_CAMEL_CASE_TABLE.get(prop) or prop 79 //Remove duplicated plugin