diff --git a/CHANGELOG.md b/CHANGELOG.md index ea886a4126..578f89ac59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - Document await logic in the SDKs. (https://github.com/pulumi/pulumi-kubernetes/pull/711). - Document await timeouts and how to override. (https://github.com/pulumi/pulumi-kubernetes/pull/718). - Improve CustomResource for Python SDK. (https://github.com/pulumi/pulumi-kubernetes/pull/700). +- Clean up Python SDK get methods. (https://github.com/pulumi/pulumi-kubernetes/pull/740). - Don't populate `.status` in input types (https://github.com/pulumi/pulumi-kubernetes/pull/635). ## 1.0.0-beta.1 (August 13, 2019) diff --git a/pkg/gen/python-templates/CustomResource.py b/pkg/gen/python-templates/CustomResource.py index e8aefe3787..fc1fd333e5 100644 --- a/pkg/gen/python-templates/CustomResource.py +++ b/pkg/gen/python-templates/CustomResource.py @@ -64,6 +64,12 @@ def __init__(self, resource_name, api_version, kind, spec=None, metadata=None, o @staticmethod def get(resource_name, api_version, kind, id, opts=None): """ + Get the state of an existing `CustomResource` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + :param str resource_name: _Unique_ name used to register this resource with Pulumi. :param str api_version: The API version of the apiExtensions.CustomResource we wish to select, as specified by the CustomResourceDefinition that defines it on the diff --git a/pkg/gen/python-templates/kind.py.mustache b/pkg/gen/python-templates/kind.py.mustache index 69b1ec0509..f9fa32a158 100644 --- a/pkg/gen/python-templates/kind.py.mustache +++ b/pkg/gen/python-templates/kind.py.mustache @@ -88,9 +88,22 @@ class {{Kind}}(pulumi.CustomResource): opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return {{Kind}}(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `{{Kind}}` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return {{Kind}}(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py index 6d591018af..05e2346c03 100755 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py @@ -86,9 +86,22 @@ def __init__(self, resource_name, opts=None, metadata=None, webhooks=None, __nam opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return MutatingWebhookConfiguration(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `MutatingWebhookConfiguration` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return MutatingWebhookConfiguration(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py index 16432b82de..4330e4fb97 100755 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return MutatingWebhookConfigurationList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `MutatingWebhookConfigurationList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return MutatingWebhookConfigurationList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py index 60ccad08a6..4a7711a8fd 100755 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py @@ -86,9 +86,22 @@ def __init__(self, resource_name, opts=None, metadata=None, webhooks=None, __nam opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ValidatingWebhookConfiguration(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ValidatingWebhookConfiguration` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ValidatingWebhookConfiguration(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py index e5f2ea7fb8..b5fb340ff0 100755 --- a/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +++ b/sdk/python/pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ValidatingWebhookConfigurationList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ValidatingWebhookConfigurationList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ValidatingWebhookConfigurationList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py b/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py index e8aefe3787..fc1fd333e5 100755 --- a/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/CustomResource.py @@ -64,6 +64,12 @@ def __init__(self, resource_name, api_version, kind, spec=None, metadata=None, o @staticmethod def get(resource_name, api_version, kind, id, opts=None): """ + Get the state of an existing `CustomResource` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + :param str resource_name: _Unique_ name used to register this resource with Pulumi. :param str api_version: The API version of the apiExtensions.CustomResource we wish to select, as specified by the CustomResourceDefinition that defines it on the diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py index b6454dcd30..471ea2e9d1 100755 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CustomResourceDefinition(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CustomResourceDefinition` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CustomResourceDefinition(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py index 67c1bd05ae..9b48551b01 100755 --- a/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +++ b/sdk/python/pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py @@ -83,9 +83,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CustomResourceDefinitionList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CustomResourceDefinitionList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CustomResourceDefinitionList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py index f9eda18c9f..c4b7af4f9e 100755 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIService.py @@ -86,9 +86,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return APIService(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `APIService` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return APIService(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py index 0f87b9e07f..17e68480de 100755 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1/APIServiceList.py @@ -81,9 +81,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return APIServiceList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `APIServiceList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return APIServiceList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py index 6d18579bf7..fbe964867f 100755 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIService.py @@ -86,9 +86,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return APIService(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `APIService` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return APIService(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py index e646b34ca5..52ad72fe16 100755 --- a/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +++ b/sdk/python/pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py @@ -81,9 +81,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return APIServiceList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `APIServiceList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return APIServiceList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py index 23afc946b8..1e43f99f52 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevision.py @@ -101,9 +101,22 @@ def __init__(self, resource_name, opts=None, revision=None, data=None, metadata= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ControllerRevision(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ControllerRevision` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ControllerRevision(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py index 5f55f4c0c9..7cf210986b 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ControllerRevisionList.py @@ -86,9 +86,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ControllerRevisionList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ControllerRevisionList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ControllerRevisionList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py index d0140f66b2..4939ddd37b 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSet.py @@ -94,9 +94,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return DaemonSet(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `DaemonSet` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return DaemonSet(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py index d8178c077e..57a4d51cbe 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DaemonSetList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return DaemonSetList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `DaemonSetList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return DaemonSetList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py index 8860b5a2e2..1759dd713a 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/Deployment.py @@ -111,9 +111,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Deployment(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Deployment` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Deployment(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py index 67f7d8fdf8..9f75df9f1a 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/DeploymentList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return DeploymentList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `DeploymentList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return DeploymentList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py index 891f42e4f6..f1b654997d 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSet.py @@ -96,9 +96,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ReplicaSet(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ReplicaSet` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ReplicaSet(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py index 6076e1b717..6040056fd5 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/ReplicaSetList.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ReplicaSetList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ReplicaSetList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ReplicaSetList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py index d8ef169b99..34ee7a76fc 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSet.py @@ -105,9 +105,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return StatefulSet(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `StatefulSet` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return StatefulSet(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py index fe553a3d25..969a8af8df 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1/StatefulSetList.py @@ -81,9 +81,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return StatefulSetList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `StatefulSetList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return StatefulSetList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py index 86a15c0195..8b643b991b 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevision.py @@ -103,9 +103,22 @@ def __init__(self, resource_name, opts=None, revision=None, data=None, metadata= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ControllerRevision(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ControllerRevision` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ControllerRevision(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py index 411427c171..318a74b3ff 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py @@ -86,9 +86,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ControllerRevisionList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ControllerRevisionList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ControllerRevisionList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py index cefbdf31a3..0965e72ba7 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/Deployment.py @@ -113,9 +113,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Deployment(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Deployment` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Deployment(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py index 9362f8670d..30dcd65228 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/DeploymentList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return DeploymentList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `DeploymentList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return DeploymentList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py index c4e5fa4cad..1462c33751 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSet.py @@ -107,9 +107,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return StatefulSet(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `StatefulSet` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return StatefulSet(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py index c34e767889..41953ebab1 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta1/StatefulSetList.py @@ -81,9 +81,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return StatefulSetList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `StatefulSetList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return StatefulSetList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py index b034953f88..5cc3d2d16c 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevision.py @@ -103,9 +103,22 @@ def __init__(self, resource_name, opts=None, revision=None, data=None, metadata= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ControllerRevision(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ControllerRevision` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ControllerRevision(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py index 2b2ce3f66e..6db5fa1059 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ControllerRevisionList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ControllerRevisionList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ControllerRevisionList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py index 38ad3c626d..000acf3308 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSet.py @@ -95,9 +95,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return DaemonSet(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `DaemonSet` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return DaemonSet(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py index e346b7bcdb..24fb80b63f 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DaemonSetList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return DaemonSetList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `DaemonSetList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return DaemonSetList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py index 3829c3bff3..cd078035c1 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/Deployment.py @@ -113,9 +113,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Deployment(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Deployment` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Deployment(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py index 9e8d91dc1e..b4b67b5ee1 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/DeploymentList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return DeploymentList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `DeploymentList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return DeploymentList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py index 81f4e4de2f..f744ffa103 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSet.py @@ -98,9 +98,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ReplicaSet(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ReplicaSet` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ReplicaSet(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py index 413b5c19a1..7f9de8d090 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ReplicaSetList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ReplicaSetList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ReplicaSetList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py index 6d54b38c31..029b59cbae 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSet.py @@ -107,9 +107,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return StatefulSet(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `StatefulSet` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return StatefulSet(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py index c54442bb64..e9b0f78413 100755 --- a/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +++ b/sdk/python/pulumi_kubernetes/apps/v1beta2/StatefulSetList.py @@ -81,9 +81,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return StatefulSetList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `StatefulSetList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return StatefulSetList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py index a7abf10891..032a984907 100755 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py @@ -81,9 +81,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return AuditSink(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `AuditSink` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return AuditSink(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py index 68e968c3a0..2cb4d14a1a 100755 --- a/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +++ b/sdk/python/pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py @@ -83,9 +83,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return AuditSinkList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `AuditSinkList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return AuditSinkList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py index f1759568c5..f702cac8c8 100755 --- a/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1/TokenReview.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return TokenReview(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `TokenReview` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return TokenReview(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py index b996ca0d4d..7ee6e26582 100755 --- a/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py +++ b/sdk/python/pulumi_kubernetes/authentication/v1beta1/TokenReview.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return TokenReview(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `TokenReview` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return TokenReview(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py index 480ff29626..7d92b644e6 100755 --- a/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/LocalSubjectAccessReview.py @@ -92,9 +92,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return LocalSubjectAccessReview(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `LocalSubjectAccessReview` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return LocalSubjectAccessReview(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py index 5ef86961ab..e4028b2d4a 100755 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectAccessReview.py @@ -91,9 +91,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return SelfSubjectAccessReview(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `SelfSubjectAccessReview` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return SelfSubjectAccessReview(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py index d8c650ab36..956938ab71 100755 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SelfSubjectRulesReview.py @@ -95,9 +95,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return SelfSubjectRulesReview(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `SelfSubjectRulesReview` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return SelfSubjectRulesReview(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py index d0d79fe7ca..cfb55c5abf 100755 --- a/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1/SubjectAccessReview.py @@ -88,9 +88,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return SubjectAccessReview(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `SubjectAccessReview` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return SubjectAccessReview(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py index 28fcf4321e..414086e741 100755 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/LocalSubjectAccessReview.py @@ -92,9 +92,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return LocalSubjectAccessReview(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `LocalSubjectAccessReview` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return LocalSubjectAccessReview(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py index 3e35de987d..36516ac328 100755 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectAccessReview.py @@ -91,9 +91,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return SelfSubjectAccessReview(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `SelfSubjectAccessReview` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return SelfSubjectAccessReview(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py index f73080e723..57cb3eae00 100755 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SelfSubjectRulesReview.py @@ -95,9 +95,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return SelfSubjectRulesReview(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `SelfSubjectRulesReview` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return SelfSubjectRulesReview(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py index 01a99799a2..3b16185252 100755 --- a/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py +++ b/sdk/python/pulumi_kubernetes/authorization/v1beta1/SubjectAccessReview.py @@ -88,9 +88,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return SubjectAccessReview(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `SubjectAccessReview` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return SubjectAccessReview(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py index 71c6cff8dd..605623d473 100755 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py @@ -92,9 +92,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return HorizontalPodAutoscaler(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `HorizontalPodAutoscaler` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return HorizontalPodAutoscaler(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py index e5b8b3a5b4..16f9ae5e0e 100755 --- a/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return HorizontalPodAutoscalerList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `HorizontalPodAutoscalerList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return HorizontalPodAutoscalerList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py index 2fd2a7f42e..613cdc478a 100755 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py @@ -94,9 +94,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return HorizontalPodAutoscaler(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `HorizontalPodAutoscaler` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return HorizontalPodAutoscaler(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py index 857d11ef51..b0c2c00225 100755 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return HorizontalPodAutoscalerList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `HorizontalPodAutoscalerList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return HorizontalPodAutoscalerList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py index 13805cf43f..07ca4051a9 100755 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py @@ -94,9 +94,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return HorizontalPodAutoscaler(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `HorizontalPodAutoscaler` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return HorizontalPodAutoscaler(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py index 11741e23c3..e3e95043c7 100755 --- a/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +++ b/sdk/python/pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return HorizontalPodAutoscalerList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `HorizontalPodAutoscalerList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return HorizontalPodAutoscalerList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1/Job.py b/sdk/python/pulumi_kubernetes/batch/v1/Job.py index c537b8fedf..3f059ed2c9 100755 --- a/sdk/python/pulumi_kubernetes/batch/v1/Job.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/Job.py @@ -100,9 +100,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Job(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Job` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Job(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py index fab75c8e27..a5d5e0a9d5 100755 --- a/sdk/python/pulumi_kubernetes/batch/v1/JobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1/JobList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return JobList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `JobList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return JobList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py index 5446a2dcf7..57e4a989d2 100755 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJob.py @@ -94,9 +94,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CronJob(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CronJob` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CronJob(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py index 4b0ce4a48a..2be8b624f8 100755 --- a/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v1beta1/CronJobList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CronJobList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CronJobList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CronJobList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py index af64e333a1..c22c2207d4 100755 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJob.py @@ -94,9 +94,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CronJob(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CronJob` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CronJob(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py index e62e5e122a..842d80ab68 100755 --- a/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py +++ b/sdk/python/pulumi_kubernetes/batch/v2alpha1/CronJobList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CronJobList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CronJobList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CronJobList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py index 47d3671450..9525d50bc1 100755 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py @@ -86,9 +86,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CertificateSigningRequest(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CertificateSigningRequest` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CertificateSigningRequest(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py index 82e0d29391..ef1b0e9a2a 100755 --- a/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +++ b/sdk/python/pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py @@ -81,9 +81,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CertificateSigningRequestList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CertificateSigningRequestList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CertificateSigningRequestList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py index 02b88344b1..e26793b83b 100755 --- a/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/Lease.py @@ -86,9 +86,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Lease(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Lease` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Lease(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py index 9b537d7955..d2382495ed 100755 --- a/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1/LeaseList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return LeaseList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `LeaseList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return LeaseList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py index bdfd7dc1bf..1c556a3df4 100755 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/Lease.py @@ -86,9 +86,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Lease(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Lease` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Lease(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py index 740695def6..03eca8f737 100755 --- a/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py +++ b/sdk/python/pulumi_kubernetes/coordination/v1beta1/LeaseList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return LeaseList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `LeaseList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return LeaseList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Binding.py b/sdk/python/pulumi_kubernetes/core/v1/Binding.py index 03d950f368..0533d187e7 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/Binding.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Binding.py @@ -88,9 +88,22 @@ def __init__(self, resource_name, opts=None, target=None, metadata=None, __name_ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Binding(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Binding` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Binding(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py index be19acf7e2..ce60615794 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatus.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, conditions=None, metadata=None, __n opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ComponentStatus(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ComponentStatus` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ComponentStatus(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py index fd3ae0a343..f4f690ad5c 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ComponentStatusList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ComponentStatusList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ComponentStatusList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ComponentStatusList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py index 538601efaa..6062024d87 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMap.py @@ -105,9 +105,22 @@ def __init__(self, resource_name, opts=None, binary_data=None, data=None, metada opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ConfigMap(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ConfigMap` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ConfigMap(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py index 17e6378fe7..ee17f7e6e0 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ConfigMapList.py @@ -86,9 +86,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ConfigMapList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ConfigMapList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ConfigMapList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py index 4c517729d0..274d0a7486 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Endpoints.py @@ -106,9 +106,22 @@ def __init__(self, resource_name, opts=None, metadata=None, subsets=None, __name opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Endpoints(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Endpoints` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Endpoints(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py index ce0db12f88..3d113fcc79 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EndpointsList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return EndpointsList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `EndpointsList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return EndpointsList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Event.py b/sdk/python/pulumi_kubernetes/core/v1/Event.py index 64be59bad5..675cf39d58 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/Event.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Event.py @@ -183,9 +183,22 @@ def __init__(self, resource_name, opts=None, involved_object=None, metadata=None opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Event(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Event` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Event(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/EventList.py b/sdk/python/pulumi_kubernetes/core/v1/EventList.py index 112f7987ec..2afd7f7e88 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/EventList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/EventList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return EventList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `EventList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return EventList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py index 5aa68300c6..600472623f 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRange.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return LimitRange(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `LimitRange` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return LimitRange(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py index 1b13f12978..d4a022c46a 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/LimitRangeList.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return LimitRangeList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `LimitRangeList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return LimitRangeList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py index 4d935e9c1d..ca709c6122 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/Namespace.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Namespace.py @@ -93,9 +93,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Namespace(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Namespace` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Namespace(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py index b944581d7e..94b1ac1d43 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NamespaceList.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return NamespaceList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `NamespaceList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return NamespaceList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Node.py b/sdk/python/pulumi_kubernetes/core/v1/Node.py index 98249e2449..c313f68c9a 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/Node.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Node.py @@ -94,9 +94,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Node(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Node` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Node(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py index a0e78f8ad5..3c708717aa 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/NodeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/NodeList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return NodeList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `NodeList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return NodeList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py index b92e61f216..be96314082 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolume.py @@ -97,9 +97,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PersistentVolume(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PersistentVolume` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PersistentVolume(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py index 864ae2bfee..ed18b54404 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaim.py @@ -94,9 +94,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PersistentVolumeClaim(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PersistentVolumeClaim` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PersistentVolumeClaim(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py index 480fa3b9e0..c1dc15aa05 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PersistentVolumeClaimList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PersistentVolumeClaimList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PersistentVolumeClaimList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py index 6812a117ca..62fb1c16c1 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PersistentVolumeList.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PersistentVolumeList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PersistentVolumeList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PersistentVolumeList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Pod.py b/sdk/python/pulumi_kubernetes/core/v1/Pod.py index 311f34a224..af1f515cfd 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/Pod.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Pod.py @@ -111,9 +111,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Pod(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Pod` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Pod(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodList.py b/sdk/python/pulumi_kubernetes/core/v1/PodList.py index a75ac60eb3..e44fb125c9 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/PodList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodList.py @@ -88,9 +88,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PodList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PodList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PodList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py index 9e9538d0bd..17fa148664 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplate.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, metadata=None, template=None, __nam opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PodTemplate(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PodTemplate` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PodTemplate(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py index 9fc8e633c7..22635e9ddc 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/PodTemplateList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PodTemplateList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PodTemplateList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PodTemplateList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py index fcd041cf9b..48fb486603 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationController.py @@ -98,9 +98,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ReplicationController(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ReplicationController` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ReplicationController(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py index 89d4d1db04..6cb6edb166 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ReplicationControllerList.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ReplicationControllerList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ReplicationControllerList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ReplicationControllerList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py index 10879cd7de..db6caf38b9 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuota.py @@ -93,9 +93,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ResourceQuota(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ResourceQuota` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ResourceQuota(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py index e44b6682d6..46210d0b54 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ResourceQuotaList.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ResourceQuotaList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ResourceQuotaList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ResourceQuotaList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Secret.py b/sdk/python/pulumi_kubernetes/core/v1/Secret.py index 41136eb44b..7e02d155c9 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/Secret.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Secret.py @@ -111,9 +111,22 @@ def __init__(self, resource_name, opts=None, data=None, metadata=None, string_da opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Secret(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Secret` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Secret(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py index 1faf66035c..e76d2e8324 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/SecretList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/SecretList.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return SecretList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `SecretList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return SecretList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/Service.py b/sdk/python/pulumi_kubernetes/core/v1/Service.py index 0e15621576..bbd4f0d955 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/Service.py +++ b/sdk/python/pulumi_kubernetes/core/v1/Service.py @@ -121,9 +121,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Service(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Service` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Service(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py index 9ab41e8c0b..373e013a62 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccount.py @@ -112,9 +112,22 @@ def __init__(self, resource_name, opts=None, automount_service_account_token=Non opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ServiceAccount(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ServiceAccount` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ServiceAccount(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py index 288bca556c..27fec6817c 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceAccountList.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ServiceAccountList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ServiceAccountList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ServiceAccountList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py index a9405bd4be..8d5a9ad7ca 100755 --- a/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py +++ b/sdk/python/pulumi_kubernetes/core/v1/ServiceList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ServiceList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ServiceList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ServiceList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py index 467355567a..0c401b9999 100755 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/Event.py @@ -184,9 +184,22 @@ def __init__(self, resource_name, opts=None, event_time=None, action=None, depre opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Event(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Event` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Event(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py index eb38a0a748..ce9d8e23c9 100755 --- a/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py +++ b/sdk/python/pulumi_kubernetes/events/v1beta1/EventList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return EventList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `EventList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return EventList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py index 0492101873..7fdca1bea1 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSet.py @@ -95,9 +95,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return DaemonSet(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `DaemonSet` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return DaemonSet(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py index 75c5f4add3..e21b7ed014 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return DaemonSetList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `DaemonSetList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return DaemonSetList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py index 91c20fd96f..2a0326bf91 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Deployment.py @@ -113,9 +113,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Deployment(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Deployment` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Deployment(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py index c504da84d8..f01c6cc924 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/DeploymentList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return DeploymentList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `DeploymentList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return DeploymentList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py index d12d0e7865..51af3e917c 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/Ingress.py @@ -112,9 +112,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Ingress(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Ingress` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Ingress(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py index abf4909e98..4168b76b45 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/IngressList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return IngressList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `IngressList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return IngressList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py index e8a5613088..32fc83758a 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return NetworkPolicy(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `NetworkPolicy` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return NetworkPolicy(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py index 3e8e287aa4..ed8a3c39c7 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py @@ -88,9 +88,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return NetworkPolicyList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `NetworkPolicyList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return NetworkPolicyList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py index deef57b1b3..24b387204a 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PodSecurityPolicy(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PodSecurityPolicy` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PodSecurityPolicy(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py index 42497c2e12..beb4ada3da 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py @@ -88,9 +88,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PodSecurityPolicyList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PodSecurityPolicyList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PodSecurityPolicyList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py index aa3bed61ec..e4d80f6148 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py @@ -98,9 +98,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ReplicaSet(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ReplicaSet` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ReplicaSet(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py index 2a9d7b4020..a8d211fc6f 100755 --- a/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +++ b/sdk/python/pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py @@ -89,9 +89,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ReplicaSetList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ReplicaSetList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ReplicaSetList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/meta/v1/Status.py b/sdk/python/pulumi_kubernetes/meta/v1/Status.py index 0e000ddfab..046ca99e80 100755 --- a/sdk/python/pulumi_kubernetes/meta/v1/Status.py +++ b/sdk/python/pulumi_kubernetes/meta/v1/Status.py @@ -120,9 +120,22 @@ def __init__(self, resource_name, opts=None, code=None, details=None, message=No opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Status(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Status` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Status(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py index 9fc3fa0966..b3f676c1a5 100755 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicy.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return NetworkPolicy(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `NetworkPolicy` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return NetworkPolicy(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py index 4beca7beb5..cb5c7ae559 100755 --- a/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1/NetworkPolicyList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return NetworkPolicyList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `NetworkPolicyList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return NetworkPolicyList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py index 67143cc639..afaa1c8860 100755 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/Ingress.py @@ -110,9 +110,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Ingress(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Ingress` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Ingress(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py index d859e1dd27..67dd1eec17 100755 --- a/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py +++ b/sdk/python/pulumi_kubernetes/networking/v1beta1/IngressList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return IngressList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `IngressList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return IngressList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py index b94074484d..a6212207ea 100755 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClass.py @@ -92,9 +92,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RuntimeClass(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RuntimeClass` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RuntimeClass(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py index e69f7576e7..db03f41bf5 100755 --- a/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RuntimeClassList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RuntimeClassList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RuntimeClassList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py index fc39a59adc..ca3c9f127a 100755 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClass.py @@ -101,9 +101,22 @@ def __init__(self, resource_name, opts=None, handler=None, metadata=None, __name opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RuntimeClass(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RuntimeClass` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RuntimeClass(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py index d524c622b2..6cd1844ffa 100755 --- a/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +++ b/sdk/python/pulumi_kubernetes/node/v1beta1/RuntimeClassList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RuntimeClassList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RuntimeClassList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RuntimeClassList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py index 83522ffe42..f476758208 100755 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PodDisruptionBudget(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PodDisruptionBudget` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PodDisruptionBudget(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py index e50f65274e..ce85691c25 100755 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py @@ -81,9 +81,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PodDisruptionBudgetList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PodDisruptionBudgetList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PodDisruptionBudgetList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py index 407337fb43..5c68c9747c 100755 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py @@ -86,9 +86,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PodSecurityPolicy(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PodSecurityPolicy` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PodSecurityPolicy(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py index dd6b8db0af..502e76164d 100755 --- a/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +++ b/sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PodSecurityPolicyList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PodSecurityPolicyList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PodSecurityPolicyList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py index 09f6ff2f62..04de6df7ed 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRole.py @@ -95,9 +95,22 @@ def __init__(self, resource_name, opts=None, aggregation_rule=None, metadata=Non opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRole(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRole` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRole(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py index 42d5d2418a..8b8d08680d 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py @@ -95,9 +95,22 @@ def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subje opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRoleBinding(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRoleBinding` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRoleBinding(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py index 8a4f0f4c3a..e8fb6e70f6 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRoleBindingList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRoleBindingList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRoleBindingList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py index 45d90aa253..d9c88820e9 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/ClusterRoleList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRoleList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRoleList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRoleList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py index 0d7a5f7bd7..46580f60c1 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/Role.py @@ -84,9 +84,22 @@ def __init__(self, resource_name, opts=None, metadata=None, rules=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Role(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Role` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Role(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py index 7425811260..8d03bdf73c 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBinding.py @@ -97,9 +97,22 @@ def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subje opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RoleBinding(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RoleBinding` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RoleBinding(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py index 9658e1f781..702b11642c 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleBindingList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RoleBindingList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RoleBindingList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RoleBindingList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py index 520118aff1..3656011764 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1/RoleList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RoleList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RoleList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RoleList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py index 66f93afb56..cd3a7a9eec 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py @@ -95,9 +95,22 @@ def __init__(self, resource_name, opts=None, aggregation_rule=None, metadata=Non opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRole(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRole` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRole(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py index 5cc32cbf12..104b7dbe17 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py @@ -95,9 +95,22 @@ def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subje opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRoleBinding(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRoleBinding` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRoleBinding(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py index 9ae664554c..6c527eb8f0 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRoleBindingList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRoleBindingList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRoleBindingList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py index 9a8f108339..77f6f53163 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRoleList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRoleList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRoleList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py index a73a475594..cfdb737563 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/Role.py @@ -84,9 +84,22 @@ def __init__(self, resource_name, opts=None, metadata=None, rules=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Role(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Role` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Role(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py index 6f9932bb7d..e62766c1b0 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py @@ -97,9 +97,22 @@ def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subje opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RoleBinding(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RoleBinding` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RoleBinding(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py index dcb82ec780..71a86444f8 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RoleBindingList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RoleBindingList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RoleBindingList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py index 0ea31af1a8..7408605178 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1alpha1/RoleList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RoleList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RoleList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RoleList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py index 219f57e0e3..372a4e6349 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRole.py @@ -95,9 +95,22 @@ def __init__(self, resource_name, opts=None, aggregation_rule=None, metadata=Non opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRole(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRole` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRole(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py index 963b15758e..f6ca17ba95 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py @@ -95,9 +95,22 @@ def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subje opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRoleBinding(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRoleBinding` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRoleBinding(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py index 4e800d88f0..0d48b92edb 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRoleBindingList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRoleBindingList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRoleBindingList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py index a24c90b1ba..9d7d2a7361 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return ClusterRoleList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `ClusterRoleList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return ClusterRoleList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py index 9bb74ab44f..384e14aeed 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/Role.py @@ -84,9 +84,22 @@ def __init__(self, resource_name, opts=None, metadata=None, rules=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return Role(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `Role` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return Role(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py index 8b05e9efff..d7cf23ff53 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBinding.py @@ -97,9 +97,22 @@ def __init__(self, resource_name, opts=None, role_ref=None, metadata=None, subje opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RoleBinding(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RoleBinding` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RoleBinding(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py index 07daa66bb0..a540bef0d1 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RoleBindingList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RoleBindingList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RoleBindingList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py index 0fcb4eb174..eff59f0386 100755 --- a/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py +++ b/sdk/python/pulumi_kubernetes/rbac/v1beta1/RoleList.py @@ -85,9 +85,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return RoleList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `RoleList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return RoleList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py index bf0178bb97..c3194c4b19 100755 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClass.py @@ -126,9 +126,22 @@ def __init__(self, resource_name, opts=None, value=None, description=None, globa opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PriorityClass(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PriorityClass` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PriorityClass(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py index 1eb18087c4..aa9abbf9bf 100755 --- a/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1/PriorityClassList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PriorityClassList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PriorityClassList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PriorityClassList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py index 2c36713d3a..96a249a3b4 100755 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py @@ -127,9 +127,22 @@ def __init__(self, resource_name, opts=None, value=None, description=None, globa opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PriorityClass(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PriorityClass` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PriorityClass(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py index 152c014967..3280a55c46 100755 --- a/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PriorityClassList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PriorityClassList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PriorityClassList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py index 289e03b8d2..ce4734e55d 100755 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py @@ -127,9 +127,22 @@ def __init__(self, resource_name, opts=None, value=None, description=None, globa opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PriorityClass(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PriorityClass` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PriorityClass(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py index 8cc6300182..aefe66e2c0 100755 --- a/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +++ b/sdk/python/pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PriorityClassList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PriorityClassList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PriorityClassList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py index cc088e7a66..b431991ae9 100755 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPreset.py @@ -79,9 +79,22 @@ def __init__(self, resource_name, opts=None, metadata=None, spec=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PodPreset(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PodPreset` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PodPreset(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py index 03b4926445..15a0f390cb 100755 --- a/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +++ b/sdk/python/pulumi_kubernetes/settings/v1alpha1/PodPresetList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return PodPresetList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `PodPresetList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return PodPresetList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py index ba8b48e4dc..ce4c9d6045 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClass.py @@ -151,9 +151,22 @@ def __init__(self, resource_name, opts=None, provisioner=None, allow_volume_expa opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return StorageClass(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `StorageClass` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return StorageClass(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py index 6d3c45e880..cde6791dbe 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/StorageClassList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return StorageClassList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `StorageClassList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return StorageClassList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py index acaac11202..3c65de7038 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachment.py @@ -97,9 +97,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return VolumeAttachment(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `VolumeAttachment` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return VolumeAttachment(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py index 0b461d71f4..b08214029f 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1/VolumeAttachmentList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return VolumeAttachmentList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `VolumeAttachmentList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return VolumeAttachmentList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py index cf62dc76a9..8a4dbb0b7e 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py @@ -97,9 +97,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return VolumeAttachment(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `VolumeAttachment` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return VolumeAttachment(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py index a3aef13dcf..190c8ac7df 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return VolumeAttachmentList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `VolumeAttachmentList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return VolumeAttachmentList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py index 40fea068ee..06622172fe 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriver.py @@ -100,9 +100,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CSIDriver(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CSIDriver` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CSIDriver(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py index 756fe54178..37f18daadb 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSIDriverList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CSIDriverList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CSIDriverList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CSIDriverList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py index 232c831284..dbb576eeff 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINode.py @@ -91,9 +91,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CSINode(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CSINode` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CSINode(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py index d16f1d6184..7f52d64ffa 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/CSINodeList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return CSINodeList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `CSINodeList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return CSINodeList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py index 160be3d889..a32e466e4a 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClass.py @@ -151,9 +151,22 @@ def __init__(self, resource_name, opts=None, provisioner=None, allow_volume_expa opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return StorageClass(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `StorageClass` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return StorageClass(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py index 0925b60d17..d6794e16eb 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/StorageClassList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return StorageClassList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `StorageClassList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return StorageClassList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py index 5bfcdd740e..82255785e6 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py @@ -97,9 +97,22 @@ def __init__(self, resource_name, opts=None, spec=None, metadata=None, __name__= opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return VolumeAttachment(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `VolumeAttachment` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return VolumeAttachment(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop diff --git a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py index 4f1e682143..dea55847d6 100755 --- a/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +++ b/sdk/python/pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py @@ -87,9 +87,22 @@ def __init__(self, resource_name, opts=None, items=None, metadata=None, __name__ opts) @staticmethod - def get(name: str, id: Input[str], opts: Optional[ResourceOptions] = None): - opts = ResourceOptions(id=id) if opts is None else opts.merge(ResourceOptions(id=id)) - return VolumeAttachmentList(name, opts) + def get(resource_name, id, opts=None): + """ + Get the state of an existing `VolumeAttachmentList` resource, as identified by `id`. + Typically this ID is of the form [namespace]/[name]; if [namespace] is omitted, + then (per Kubernetes convention) the ID becomes default/[name]. + + Pulumi will keep track of this resource using `resource_name` as the Pulumi ID. + + :param str resource_name: _Unique_ name used to register this resource with Pulumi. + :param pulumi.Input[str] id: An ID for the Kubernetes resource to retrieve. + Takes the form [namespace]/[name] or [name]. + :param Optional[pulumi.ResourceOptions] opts: A bag of options that control this + resource's behavior. + """ + opts = ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) + return VolumeAttachmentList(resource_name, opts) def translate_output_property(self, prop: str) -> str: return tables._CASING_FORWARD_TABLE.get(prop) or prop