From 5a64b4529e1aae900bc7f00909d75a2b88691641 Mon Sep 17 00:00:00 2001 From: pulumi-bot Date: Sat, 28 Oct 2023 06:48:51 +0000 Subject: [PATCH] make build_sdks --- sdk/python/pulumi_ns1/_inputs.py | 513 ++----------- sdk/python/pulumi_ns1/_utilities.py | 19 - sdk/python/pulumi_ns1/account_whitelist.py | 42 +- sdk/python/pulumi_ns1/api_key.py | 404 ++--------- sdk/python/pulumi_ns1/application.py | 77 +- sdk/python/pulumi_ns1/config/__init__.pyi | 2 +- sdk/python/pulumi_ns1/config/vars.py | 2 +- sdk/python/pulumi_ns1/data_feed.py | 54 +- sdk/python/pulumi_ns1/data_source.py | 50 +- sdk/python/pulumi_ns1/dnsview.py | 92 +-- sdk/python/pulumi_ns1/get_dns_sec.py | 2 +- sdk/python/pulumi_ns1/get_networks.py | 2 +- sdk/python/pulumi_ns1/get_record.py | 2 +- sdk/python/pulumi_ns1/get_zone.py | 2 +- sdk/python/pulumi_ns1/monitoring_job.py | 188 +---- sdk/python/pulumi_ns1/notify_list.py | 40 +- sdk/python/pulumi_ns1/outputs.py | 803 +++------------------ sdk/python/pulumi_ns1/provider.py | 53 +- sdk/python/pulumi_ns1/pulsar_job.py | 120 +-- sdk/python/pulumi_ns1/record.py | 158 +--- sdk/python/pulumi_ns1/subnet.py | 144 +--- sdk/python/pulumi_ns1/team.py | 380 ++-------- sdk/python/pulumi_ns1/tsigkey.py | 52 +- sdk/python/pulumi_ns1/user.py | 428 ++--------- sdk/python/pulumi_ns1/zone.py | 196 +---- 25 files changed, 572 insertions(+), 3253 deletions(-) diff --git a/sdk/python/pulumi_ns1/_inputs.py b/sdk/python/pulumi_ns1/_inputs.py index 4cdc0cc2..6ebe678a 100644 --- a/sdk/python/pulumi_ns1/_inputs.py +++ b/sdk/python/pulumi_ns1/_inputs.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = [ @@ -36,37 +36,10 @@ def __init__(__self__, *, include_subdomains: pulumi.Input[bool], type: pulumi.Input[str], zone: pulumi.Input[str]): - APIKeyDnsRecordsAllowArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[pulumi.Input[str]] = None, - include_subdomains: Optional[pulumi.Input[bool]] = None, - type: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -112,37 +85,10 @@ def __init__(__self__, *, include_subdomains: pulumi.Input[bool], type: pulumi.Input[str], zone: pulumi.Input[str]): - APIKeyDnsRecordsDenyArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[pulumi.Input[str]] = None, - include_subdomains: Optional[pulumi.Input[bool]] = None, - type: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -199,48 +145,17 @@ def __init__(__self__, *, :param pulumi.Input[bool] static_values: Indicates whether or not to skip aggregation for this job's measurements :param pulumi.Input[bool] use_xhr: Whether to use XMLHttpRequest (XHR) when taking measurements. """ - ApplicationDefaultConfigArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - http=http, - https=https, - job_timeout_millis=job_timeout_millis, - request_timeout_millis=request_timeout_millis, - static_values=static_values, - use_xhr=use_xhr, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - http: Optional[pulumi.Input[bool]] = None, - https: Optional[pulumi.Input[bool]] = None, - job_timeout_millis: Optional[pulumi.Input[int]] = None, - request_timeout_millis: Optional[pulumi.Input[int]] = None, - static_values: Optional[pulumi.Input[bool]] = None, - use_xhr: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if http is None: - raise TypeError("Missing 'http' argument") - if job_timeout_millis is None and 'jobTimeoutMillis' in kwargs: - job_timeout_millis = kwargs['jobTimeoutMillis'] - if request_timeout_millis is None and 'requestTimeoutMillis' in kwargs: - request_timeout_millis = kwargs['requestTimeoutMillis'] - if static_values is None and 'staticValues' in kwargs: - static_values = kwargs['staticValues'] - if use_xhr is None and 'useXhr' in kwargs: - use_xhr = kwargs['useXhr'] - - _setter("http", http) + pulumi.set(__self__, "http", http) if https is not None: - _setter("https", https) + pulumi.set(__self__, "https", https) if job_timeout_millis is not None: - _setter("job_timeout_millis", job_timeout_millis) + pulumi.set(__self__, "job_timeout_millis", job_timeout_millis) if request_timeout_millis is not None: - _setter("request_timeout_millis", request_timeout_millis) + pulumi.set(__self__, "request_timeout_millis", request_timeout_millis) if static_values is not None: - _setter("static_values", static_values) + pulumi.set(__self__, "static_values", static_values) if use_xhr is not None: - _setter("use_xhr", use_xhr) + pulumi.set(__self__, "use_xhr", use_xhr) @property @pulumi.getter @@ -322,30 +237,9 @@ def __init__(__self__, *, comparison: pulumi.Input[str], key: pulumi.Input[str], value: pulumi.Input[str]): - MonitoringJobRuleArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - comparison=comparison, - key=key, - value=value, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - comparison: Optional[pulumi.Input[str]] = None, - key: Optional[pulumi.Input[str]] = None, - value: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if comparison is None: - raise TypeError("Missing 'comparison' argument") - if key is None: - raise TypeError("Missing 'key' argument") - if value is None: - raise TypeError("Missing 'value' argument") - - _setter("comparison", comparison) - _setter("key", key) - _setter("value", value) + pulumi.set(__self__, "comparison", comparison) + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "value", value) @property @pulumi.getter @@ -384,25 +278,8 @@ def __init__(__self__, *, :param pulumi.Input[Mapping[str, Any]] config: Configuration details for the given notifier type. :param pulumi.Input[str] type: The type of notifier. Available notifiers are indicated in /notifytypes endpoint. """ - NotifyListNotificationArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - config=config, - type=type, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - config: Optional[pulumi.Input[Mapping[str, Any]]] = None, - type: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if config is None: - raise TypeError("Missing 'config' argument") - if type is None: - raise TypeError("Missing 'type' argument") - - _setter("config", config) - _setter("type", type) + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "type", type) @property @pulumi.getter @@ -433,20 +310,7 @@ def type(self, value: pulumi.Input[str]): class PulsarJobBlendMetricWeightsArgs: def __init__(__self__, *, timestamp: pulumi.Input[int]): - PulsarJobBlendMetricWeightsArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - timestamp=timestamp, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - timestamp: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if timestamp is None: - raise TypeError("Missing 'timestamp' argument") - - _setter("timestamp", timestamp) + pulumi.set(__self__, "timestamp", timestamp) @property @pulumi.getter @@ -469,57 +333,22 @@ def __init__(__self__, *, static_values: Optional[pulumi.Input[bool]] = None, url_path: Optional[pulumi.Input[str]] = None, use_xhr: Optional[pulumi.Input[bool]] = None): - PulsarJobConfigArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - host=host, - http=http, - https=https, - job_timeout_millis=job_timeout_millis, - request_timeout_millis=request_timeout_millis, - static_values=static_values, - url_path=url_path, - use_xhr=use_xhr, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - host: Optional[pulumi.Input[str]] = None, - http: Optional[pulumi.Input[bool]] = None, - https: Optional[pulumi.Input[bool]] = None, - job_timeout_millis: Optional[pulumi.Input[int]] = None, - request_timeout_millis: Optional[pulumi.Input[int]] = None, - static_values: Optional[pulumi.Input[bool]] = None, - url_path: Optional[pulumi.Input[str]] = None, - use_xhr: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if job_timeout_millis is None and 'jobTimeoutMillis' in kwargs: - job_timeout_millis = kwargs['jobTimeoutMillis'] - if request_timeout_millis is None and 'requestTimeoutMillis' in kwargs: - request_timeout_millis = kwargs['requestTimeoutMillis'] - if static_values is None and 'staticValues' in kwargs: - static_values = kwargs['staticValues'] - if url_path is None and 'urlPath' in kwargs: - url_path = kwargs['urlPath'] - if use_xhr is None and 'useXhr' in kwargs: - use_xhr = kwargs['useXhr'] - if host is not None: - _setter("host", host) + pulumi.set(__self__, "host", host) if http is not None: - _setter("http", http) + pulumi.set(__self__, "http", http) if https is not None: - _setter("https", https) + pulumi.set(__self__, "https", https) if job_timeout_millis is not None: - _setter("job_timeout_millis", job_timeout_millis) + pulumi.set(__self__, "job_timeout_millis", job_timeout_millis) if request_timeout_millis is not None: - _setter("request_timeout_millis", request_timeout_millis) + pulumi.set(__self__, "request_timeout_millis", request_timeout_millis) if static_values is not None: - _setter("static_values", static_values) + pulumi.set(__self__, "static_values", static_values) if url_path is not None: - _setter("url_path", url_path) + pulumi.set(__self__, "url_path", url_path) if use_xhr is not None: - _setter("use_xhr", use_xhr) + pulumi.set(__self__, "use_xhr", use_xhr) @property @pulumi.getter @@ -601,36 +430,11 @@ def __init__(__self__, *, name: pulumi.Input[str], weight: pulumi.Input[int], maximize: Optional[pulumi.Input[bool]] = None): - PulsarJobWeightArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - default_value=default_value, - name=name, - weight=weight, - maximize=maximize, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - default_value: Optional[pulumi.Input[float]] = None, - name: Optional[pulumi.Input[str]] = None, - weight: Optional[pulumi.Input[int]] = None, - maximize: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if default_value is None and 'defaultValue' in kwargs: - default_value = kwargs['defaultValue'] - if default_value is None: - raise TypeError("Missing 'default_value' argument") - if name is None: - raise TypeError("Missing 'name' argument") - if weight is None: - raise TypeError("Missing 'weight' argument") - - _setter("default_value", default_value) - _setter("name", name) - _setter("weight", weight) + pulumi.set(__self__, "default_value", default_value) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "weight", weight) if maximize is not None: - _setter("maximize", maximize) + pulumi.set(__self__, "maximize", maximize) @property @pulumi.getter(name="defaultValue") @@ -705,27 +509,12 @@ def __init__(__self__, *, * ` meta` - (Optional) meta is supported at the `answer` level. Meta is documented below. """ - RecordAnswerArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - answer=answer, - meta=meta, - region=region, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - answer: Optional[pulumi.Input[str]] = None, - meta: Optional[pulumi.Input[Mapping[str, Any]]] = None, - region: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if answer is not None: - _setter("answer", answer) + pulumi.set(__self__, "answer", answer) if meta is not None: - _setter("meta", meta) + pulumi.set(__self__, "meta", meta) if region is not None: - _setter("region", region) + pulumi.set(__self__, "region", region) @property @pulumi.getter @@ -800,28 +589,11 @@ def __init__(__self__, *, :param pulumi.Input[bool] disabled: Determines whether the filter is applied in the filter chain. """ - RecordFilterArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - filter=filter, - config=config, - disabled=disabled, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - filter: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[Mapping[str, Any]]] = None, - disabled: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if filter is None: - raise TypeError("Missing 'filter' argument") - - _setter("filter", filter) + pulumi.set(__self__, "filter", filter) if config is not None: - _setter("config", config) + pulumi.set(__self__, "config", config) if disabled is not None: - _setter("disabled", disabled) + pulumi.set(__self__, "disabled", disabled) @property @pulumi.getter @@ -870,24 +642,9 @@ def __init__(__self__, *, """ :param pulumi.Input[str] name: Name of the region (or Answer Group). """ - RecordRegionArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - name=name, - meta=meta, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - name: Optional[pulumi.Input[str]] = None, - meta: Optional[pulumi.Input[Mapping[str, Any]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if name is None: - raise TypeError("Missing 'name' argument") - - _setter("name", name) + pulumi.set(__self__, "name", name) if meta is not None: - _setter("meta", meta) + pulumi.set(__self__, "meta", meta) @property @pulumi.getter @@ -918,37 +675,10 @@ def __init__(__self__, *, include_subdomains: pulumi.Input[bool], type: pulumi.Input[str], zone: pulumi.Input[str]): - TeamDnsRecordsAllowArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[pulumi.Input[str]] = None, - include_subdomains: Optional[pulumi.Input[bool]] = None, - type: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -994,37 +724,10 @@ def __init__(__self__, *, include_subdomains: pulumi.Input[bool], type: pulumi.Input[str], zone: pulumi.Input[str]): - TeamDnsRecordsDenyArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[pulumi.Input[str]] = None, - include_subdomains: Optional[pulumi.Input[bool]] = None, - type: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -1071,25 +774,8 @@ def __init__(__self__, *, """ :param pulumi.Input[str] name: The free form name of the team. """ - TeamIpWhitelistArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - name=name, - values=values, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - name: Optional[pulumi.Input[str]] = None, - values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if name is None: - raise TypeError("Missing 'name' argument") - if values is None: - raise TypeError("Missing 'values' argument") - - _setter("name", name) - _setter("values", values) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "values", values) @property @pulumi.getter @@ -1120,37 +806,10 @@ def __init__(__self__, *, include_subdomains: pulumi.Input[bool], type: pulumi.Input[str], zone: pulumi.Input[str]): - UserDnsRecordsAllowArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[pulumi.Input[str]] = None, - include_subdomains: Optional[pulumi.Input[bool]] = None, - type: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -1196,37 +855,10 @@ def __init__(__self__, *, include_subdomains: pulumi.Input[bool], type: pulumi.Input[str], zone: pulumi.Input[str]): - UserDnsRecordsDenyArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[pulumi.Input[str]] = None, - include_subdomains: Optional[pulumi.Input[bool]] = None, - type: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -1281,32 +913,13 @@ def __init__(__self__, *, when the zone changes. Default `false`. :param pulumi.Input[int] port: Port of the the secondary server. Default `53`. """ - ZoneSecondaryArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - ip=ip, - networks=networks, - notify=notify, - port=port, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - ip: Optional[pulumi.Input[str]] = None, - networks: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, - notify: Optional[pulumi.Input[bool]] = None, - port: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if ip is None: - raise TypeError("Missing 'ip' argument") - - _setter("ip", ip) + pulumi.set(__self__, "ip", ip) if networks is not None: - _setter("networks", networks) + pulumi.set(__self__, "networks", networks) if notify is not None: - _setter("notify", notify) + pulumi.set(__self__, "notify", notify) if port is not None: - _setter("port", port) + pulumi.set(__self__, "port", port) @property @pulumi.getter diff --git a/sdk/python/pulumi_ns1/_utilities.py b/sdk/python/pulumi_ns1/_utilities.py index 2936b65a..2d9a3c84 100644 --- a/sdk/python/pulumi_ns1/_utilities.py +++ b/sdk/python/pulumi_ns1/_utilities.py @@ -246,24 +246,5 @@ def lifted_func(*args, opts=None, **kwargs): return (lambda _: lifted_func) - -def configure(val, cls: type, input: bool): - def _apply(v): - if isinstance(v, typing.Mapping): - def _setter(key, value): - v[key] = value - cls._configure(_setter, **v) - return v - - # Check that cls has a static _configure method. External classes may - # not have it if it was generated with older codegen. - if hasattr(cls, "_configure"): - if isinstance(val, typing.Mapping): - return _apply(val) - elif input and val is not None and not isinstance(val, cls): - return pulumi.Output.from_input(val).apply(_apply) - - return val - def get_plugin_download_url(): return None diff --git a/sdk/python/pulumi_ns1/account_whitelist.py b/sdk/python/pulumi_ns1/account_whitelist.py index 47f8f592..7de1d531 100644 --- a/sdk/python/pulumi_ns1/account_whitelist.py +++ b/sdk/python/pulumi_ns1/account_whitelist.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['AccountWhitelistArgs', 'AccountWhitelist'] @@ -21,24 +21,9 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] values: Array of IP addresses/networks from which to allow access. :param pulumi.Input[str] name: The free form name of the whitelist. """ - AccountWhitelistArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - values=values, - name=name, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if values is None: - raise TypeError("Missing 'values' argument") - - _setter("values", values) + pulumi.set(__self__, "values", values) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) @property @pulumi.getter @@ -75,23 +60,10 @@ def __init__(__self__, *, :param pulumi.Input[str] name: The free form name of the whitelist. :param pulumi.Input[Sequence[pulumi.Input[str]]] values: Array of IP addresses/networks from which to allow access. """ - _AccountWhitelistState._configure( - lambda key, value: pulumi.set(__self__, key, value), - name=name, - values=values, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - name: Optional[pulumi.Input[str]] = None, - values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if values is not None: - _setter("values", values) + pulumi.set(__self__, "values", values) @property @pulumi.getter @@ -203,10 +175,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - AccountWhitelistArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/api_key.py b/sdk/python/pulumi_ns1/api_key.py index 93562f82..d78eeebd 100644 --- a/sdk/python/pulumi_ns1/api_key.py +++ b/sdk/python/pulumi_ns1/api_key.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -88,206 +88,73 @@ def __init__(__self__, *, :param pulumi.Input[bool] security_manage_global2fa: Whether the apikey can manage global two factor authentication. :param pulumi.Input[Sequence[pulumi.Input[str]]] teams: The teams that the apikey belongs to. """ - APIKeyArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - account_manage_account_settings=account_manage_account_settings, - account_manage_apikeys=account_manage_apikeys, - account_manage_ip_whitelist=account_manage_ip_whitelist, - account_manage_payment_methods=account_manage_payment_methods, - account_manage_plan=account_manage_plan, - account_manage_teams=account_manage_teams, - account_manage_users=account_manage_users, - account_view_activity_log=account_view_activity_log, - account_view_invoices=account_view_invoices, - data_manage_datafeeds=data_manage_datafeeds, - data_manage_datasources=data_manage_datasources, - data_push_to_datafeeds=data_push_to_datafeeds, - dhcp_manage_dhcp=dhcp_manage_dhcp, - dhcp_view_dhcp=dhcp_view_dhcp, - dns_manage_zones=dns_manage_zones, - dns_records_allows=dns_records_allows, - dns_records_denies=dns_records_denies, - dns_view_zones=dns_view_zones, - dns_zones_allow_by_default=dns_zones_allow_by_default, - dns_zones_allows=dns_zones_allows, - dns_zones_denies=dns_zones_denies, - ip_whitelist_strict=ip_whitelist_strict, - ip_whitelists=ip_whitelists, - ipam_manage_ipam=ipam_manage_ipam, - ipam_view_ipam=ipam_view_ipam, - monitoring_manage_jobs=monitoring_manage_jobs, - monitoring_manage_lists=monitoring_manage_lists, - monitoring_view_jobs=monitoring_view_jobs, - name=name, - security_manage_active_directory=security_manage_active_directory, - security_manage_global2fa=security_manage_global2fa, - teams=teams, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - account_manage_account_settings: Optional[pulumi.Input[bool]] = None, - account_manage_apikeys: Optional[pulumi.Input[bool]] = None, - account_manage_ip_whitelist: Optional[pulumi.Input[bool]] = None, - account_manage_payment_methods: Optional[pulumi.Input[bool]] = None, - account_manage_plan: Optional[pulumi.Input[bool]] = None, - account_manage_teams: Optional[pulumi.Input[bool]] = None, - account_manage_users: Optional[pulumi.Input[bool]] = None, - account_view_activity_log: Optional[pulumi.Input[bool]] = None, - account_view_invoices: Optional[pulumi.Input[bool]] = None, - data_manage_datafeeds: Optional[pulumi.Input[bool]] = None, - data_manage_datasources: Optional[pulumi.Input[bool]] = None, - data_push_to_datafeeds: Optional[pulumi.Input[bool]] = None, - dhcp_manage_dhcp: Optional[pulumi.Input[bool]] = None, - dhcp_view_dhcp: Optional[pulumi.Input[bool]] = None, - dns_manage_zones: Optional[pulumi.Input[bool]] = None, - dns_records_allows: Optional[pulumi.Input[Sequence[pulumi.Input['APIKeyDnsRecordsAllowArgs']]]] = None, - dns_records_denies: Optional[pulumi.Input[Sequence[pulumi.Input['APIKeyDnsRecordsDenyArgs']]]] = None, - dns_view_zones: Optional[pulumi.Input[bool]] = None, - dns_zones_allow_by_default: Optional[pulumi.Input[bool]] = None, - dns_zones_allows: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - dns_zones_denies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - ip_whitelist_strict: Optional[pulumi.Input[bool]] = None, - ip_whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - ipam_manage_ipam: Optional[pulumi.Input[bool]] = None, - ipam_view_ipam: Optional[pulumi.Input[bool]] = None, - monitoring_manage_jobs: Optional[pulumi.Input[bool]] = None, - monitoring_manage_lists: Optional[pulumi.Input[bool]] = None, - monitoring_view_jobs: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - security_manage_active_directory: Optional[pulumi.Input[bool]] = None, - security_manage_global2fa: Optional[pulumi.Input[bool]] = None, - teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if account_manage_account_settings is None and 'accountManageAccountSettings' in kwargs: - account_manage_account_settings = kwargs['accountManageAccountSettings'] - if account_manage_apikeys is None and 'accountManageApikeys' in kwargs: - account_manage_apikeys = kwargs['accountManageApikeys'] - if account_manage_ip_whitelist is None and 'accountManageIpWhitelist' in kwargs: - account_manage_ip_whitelist = kwargs['accountManageIpWhitelist'] - if account_manage_payment_methods is None and 'accountManagePaymentMethods' in kwargs: - account_manage_payment_methods = kwargs['accountManagePaymentMethods'] - if account_manage_plan is None and 'accountManagePlan' in kwargs: - account_manage_plan = kwargs['accountManagePlan'] - if account_manage_teams is None and 'accountManageTeams' in kwargs: - account_manage_teams = kwargs['accountManageTeams'] - if account_manage_users is None and 'accountManageUsers' in kwargs: - account_manage_users = kwargs['accountManageUsers'] - if account_view_activity_log is None and 'accountViewActivityLog' in kwargs: - account_view_activity_log = kwargs['accountViewActivityLog'] - if account_view_invoices is None and 'accountViewInvoices' in kwargs: - account_view_invoices = kwargs['accountViewInvoices'] - if data_manage_datafeeds is None and 'dataManageDatafeeds' in kwargs: - data_manage_datafeeds = kwargs['dataManageDatafeeds'] - if data_manage_datasources is None and 'dataManageDatasources' in kwargs: - data_manage_datasources = kwargs['dataManageDatasources'] - if data_push_to_datafeeds is None and 'dataPushToDatafeeds' in kwargs: - data_push_to_datafeeds = kwargs['dataPushToDatafeeds'] - if dhcp_manage_dhcp is None and 'dhcpManageDhcp' in kwargs: - dhcp_manage_dhcp = kwargs['dhcpManageDhcp'] - if dhcp_view_dhcp is None and 'dhcpViewDhcp' in kwargs: - dhcp_view_dhcp = kwargs['dhcpViewDhcp'] - if dns_manage_zones is None and 'dnsManageZones' in kwargs: - dns_manage_zones = kwargs['dnsManageZones'] - if dns_records_allows is None and 'dnsRecordsAllows' in kwargs: - dns_records_allows = kwargs['dnsRecordsAllows'] - if dns_records_denies is None and 'dnsRecordsDenies' in kwargs: - dns_records_denies = kwargs['dnsRecordsDenies'] - if dns_view_zones is None and 'dnsViewZones' in kwargs: - dns_view_zones = kwargs['dnsViewZones'] - if dns_zones_allow_by_default is None and 'dnsZonesAllowByDefault' in kwargs: - dns_zones_allow_by_default = kwargs['dnsZonesAllowByDefault'] - if dns_zones_allows is None and 'dnsZonesAllows' in kwargs: - dns_zones_allows = kwargs['dnsZonesAllows'] - if dns_zones_denies is None and 'dnsZonesDenies' in kwargs: - dns_zones_denies = kwargs['dnsZonesDenies'] - if ip_whitelist_strict is None and 'ipWhitelistStrict' in kwargs: - ip_whitelist_strict = kwargs['ipWhitelistStrict'] - if ip_whitelists is None and 'ipWhitelists' in kwargs: - ip_whitelists = kwargs['ipWhitelists'] - if ipam_manage_ipam is None and 'ipamManageIpam' in kwargs: - ipam_manage_ipam = kwargs['ipamManageIpam'] - if ipam_view_ipam is None and 'ipamViewIpam' in kwargs: - ipam_view_ipam = kwargs['ipamViewIpam'] - if monitoring_manage_jobs is None and 'monitoringManageJobs' in kwargs: - monitoring_manage_jobs = kwargs['monitoringManageJobs'] - if monitoring_manage_lists is None and 'monitoringManageLists' in kwargs: - monitoring_manage_lists = kwargs['monitoringManageLists'] - if monitoring_view_jobs is None and 'monitoringViewJobs' in kwargs: - monitoring_view_jobs = kwargs['monitoringViewJobs'] - if security_manage_active_directory is None and 'securityManageActiveDirectory' in kwargs: - security_manage_active_directory = kwargs['securityManageActiveDirectory'] - if security_manage_global2fa is None and 'securityManageGlobal2fa' in kwargs: - security_manage_global2fa = kwargs['securityManageGlobal2fa'] - if account_manage_account_settings is not None: - _setter("account_manage_account_settings", account_manage_account_settings) + pulumi.set(__self__, "account_manage_account_settings", account_manage_account_settings) if account_manage_apikeys is not None: - _setter("account_manage_apikeys", account_manage_apikeys) + pulumi.set(__self__, "account_manage_apikeys", account_manage_apikeys) if account_manage_ip_whitelist is not None: - _setter("account_manage_ip_whitelist", account_manage_ip_whitelist) + pulumi.set(__self__, "account_manage_ip_whitelist", account_manage_ip_whitelist) if account_manage_payment_methods is not None: - _setter("account_manage_payment_methods", account_manage_payment_methods) + pulumi.set(__self__, "account_manage_payment_methods", account_manage_payment_methods) if account_manage_plan is not None: warnings.warn("""obsolete, should no longer be used""", DeprecationWarning) pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""") if account_manage_plan is not None: - _setter("account_manage_plan", account_manage_plan) + pulumi.set(__self__, "account_manage_plan", account_manage_plan) if account_manage_teams is not None: - _setter("account_manage_teams", account_manage_teams) + pulumi.set(__self__, "account_manage_teams", account_manage_teams) if account_manage_users is not None: - _setter("account_manage_users", account_manage_users) + pulumi.set(__self__, "account_manage_users", account_manage_users) if account_view_activity_log is not None: - _setter("account_view_activity_log", account_view_activity_log) + pulumi.set(__self__, "account_view_activity_log", account_view_activity_log) if account_view_invoices is not None: - _setter("account_view_invoices", account_view_invoices) + pulumi.set(__self__, "account_view_invoices", account_view_invoices) if data_manage_datafeeds is not None: - _setter("data_manage_datafeeds", data_manage_datafeeds) + pulumi.set(__self__, "data_manage_datafeeds", data_manage_datafeeds) if data_manage_datasources is not None: - _setter("data_manage_datasources", data_manage_datasources) + pulumi.set(__self__, "data_manage_datasources", data_manage_datasources) if data_push_to_datafeeds is not None: - _setter("data_push_to_datafeeds", data_push_to_datafeeds) + pulumi.set(__self__, "data_push_to_datafeeds", data_push_to_datafeeds) if dhcp_manage_dhcp is not None: - _setter("dhcp_manage_dhcp", dhcp_manage_dhcp) + pulumi.set(__self__, "dhcp_manage_dhcp", dhcp_manage_dhcp) if dhcp_view_dhcp is not None: - _setter("dhcp_view_dhcp", dhcp_view_dhcp) + pulumi.set(__self__, "dhcp_view_dhcp", dhcp_view_dhcp) if dns_manage_zones is not None: - _setter("dns_manage_zones", dns_manage_zones) + pulumi.set(__self__, "dns_manage_zones", dns_manage_zones) if dns_records_allows is not None: - _setter("dns_records_allows", dns_records_allows) + pulumi.set(__self__, "dns_records_allows", dns_records_allows) if dns_records_denies is not None: - _setter("dns_records_denies", dns_records_denies) + pulumi.set(__self__, "dns_records_denies", dns_records_denies) if dns_view_zones is not None: - _setter("dns_view_zones", dns_view_zones) + pulumi.set(__self__, "dns_view_zones", dns_view_zones) if dns_zones_allow_by_default is not None: - _setter("dns_zones_allow_by_default", dns_zones_allow_by_default) + pulumi.set(__self__, "dns_zones_allow_by_default", dns_zones_allow_by_default) if dns_zones_allows is not None: - _setter("dns_zones_allows", dns_zones_allows) + pulumi.set(__self__, "dns_zones_allows", dns_zones_allows) if dns_zones_denies is not None: - _setter("dns_zones_denies", dns_zones_denies) + pulumi.set(__self__, "dns_zones_denies", dns_zones_denies) if ip_whitelist_strict is not None: - _setter("ip_whitelist_strict", ip_whitelist_strict) + pulumi.set(__self__, "ip_whitelist_strict", ip_whitelist_strict) if ip_whitelists is not None: - _setter("ip_whitelists", ip_whitelists) + pulumi.set(__self__, "ip_whitelists", ip_whitelists) if ipam_manage_ipam is not None: - _setter("ipam_manage_ipam", ipam_manage_ipam) + pulumi.set(__self__, "ipam_manage_ipam", ipam_manage_ipam) if ipam_view_ipam is not None: - _setter("ipam_view_ipam", ipam_view_ipam) + pulumi.set(__self__, "ipam_view_ipam", ipam_view_ipam) if monitoring_manage_jobs is not None: - _setter("monitoring_manage_jobs", monitoring_manage_jobs) + pulumi.set(__self__, "monitoring_manage_jobs", monitoring_manage_jobs) if monitoring_manage_lists is not None: - _setter("monitoring_manage_lists", monitoring_manage_lists) + pulumi.set(__self__, "monitoring_manage_lists", monitoring_manage_lists) if monitoring_view_jobs is not None: - _setter("monitoring_view_jobs", monitoring_view_jobs) + pulumi.set(__self__, "monitoring_view_jobs", monitoring_view_jobs) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if security_manage_active_directory is not None: - _setter("security_manage_active_directory", security_manage_active_directory) + pulumi.set(__self__, "security_manage_active_directory", security_manage_active_directory) if security_manage_global2fa is not None: - _setter("security_manage_global2fa", security_manage_global2fa) + pulumi.set(__self__, "security_manage_global2fa", security_manage_global2fa) if teams is not None: - _setter("teams", teams) + pulumi.set(__self__, "teams", teams) @property @pulumi.getter(name="accountManageAccountSettings") @@ -759,210 +626,75 @@ def __init__(__self__, *, :param pulumi.Input[bool] security_manage_global2fa: Whether the apikey can manage global two factor authentication. :param pulumi.Input[Sequence[pulumi.Input[str]]] teams: The teams that the apikey belongs to. """ - _APIKeyState._configure( - lambda key, value: pulumi.set(__self__, key, value), - account_manage_account_settings=account_manage_account_settings, - account_manage_apikeys=account_manage_apikeys, - account_manage_ip_whitelist=account_manage_ip_whitelist, - account_manage_payment_methods=account_manage_payment_methods, - account_manage_plan=account_manage_plan, - account_manage_teams=account_manage_teams, - account_manage_users=account_manage_users, - account_view_activity_log=account_view_activity_log, - account_view_invoices=account_view_invoices, - data_manage_datafeeds=data_manage_datafeeds, - data_manage_datasources=data_manage_datasources, - data_push_to_datafeeds=data_push_to_datafeeds, - dhcp_manage_dhcp=dhcp_manage_dhcp, - dhcp_view_dhcp=dhcp_view_dhcp, - dns_manage_zones=dns_manage_zones, - dns_records_allows=dns_records_allows, - dns_records_denies=dns_records_denies, - dns_view_zones=dns_view_zones, - dns_zones_allow_by_default=dns_zones_allow_by_default, - dns_zones_allows=dns_zones_allows, - dns_zones_denies=dns_zones_denies, - ip_whitelist_strict=ip_whitelist_strict, - ip_whitelists=ip_whitelists, - ipam_manage_ipam=ipam_manage_ipam, - ipam_view_ipam=ipam_view_ipam, - key=key, - monitoring_manage_jobs=monitoring_manage_jobs, - monitoring_manage_lists=monitoring_manage_lists, - monitoring_view_jobs=monitoring_view_jobs, - name=name, - security_manage_active_directory=security_manage_active_directory, - security_manage_global2fa=security_manage_global2fa, - teams=teams, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - account_manage_account_settings: Optional[pulumi.Input[bool]] = None, - account_manage_apikeys: Optional[pulumi.Input[bool]] = None, - account_manage_ip_whitelist: Optional[pulumi.Input[bool]] = None, - account_manage_payment_methods: Optional[pulumi.Input[bool]] = None, - account_manage_plan: Optional[pulumi.Input[bool]] = None, - account_manage_teams: Optional[pulumi.Input[bool]] = None, - account_manage_users: Optional[pulumi.Input[bool]] = None, - account_view_activity_log: Optional[pulumi.Input[bool]] = None, - account_view_invoices: Optional[pulumi.Input[bool]] = None, - data_manage_datafeeds: Optional[pulumi.Input[bool]] = None, - data_manage_datasources: Optional[pulumi.Input[bool]] = None, - data_push_to_datafeeds: Optional[pulumi.Input[bool]] = None, - dhcp_manage_dhcp: Optional[pulumi.Input[bool]] = None, - dhcp_view_dhcp: Optional[pulumi.Input[bool]] = None, - dns_manage_zones: Optional[pulumi.Input[bool]] = None, - dns_records_allows: Optional[pulumi.Input[Sequence[pulumi.Input['APIKeyDnsRecordsAllowArgs']]]] = None, - dns_records_denies: Optional[pulumi.Input[Sequence[pulumi.Input['APIKeyDnsRecordsDenyArgs']]]] = None, - dns_view_zones: Optional[pulumi.Input[bool]] = None, - dns_zones_allow_by_default: Optional[pulumi.Input[bool]] = None, - dns_zones_allows: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - dns_zones_denies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - ip_whitelist_strict: Optional[pulumi.Input[bool]] = None, - ip_whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - ipam_manage_ipam: Optional[pulumi.Input[bool]] = None, - ipam_view_ipam: Optional[pulumi.Input[bool]] = None, - key: Optional[pulumi.Input[str]] = None, - monitoring_manage_jobs: Optional[pulumi.Input[bool]] = None, - monitoring_manage_lists: Optional[pulumi.Input[bool]] = None, - monitoring_view_jobs: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - security_manage_active_directory: Optional[pulumi.Input[bool]] = None, - security_manage_global2fa: Optional[pulumi.Input[bool]] = None, - teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if account_manage_account_settings is None and 'accountManageAccountSettings' in kwargs: - account_manage_account_settings = kwargs['accountManageAccountSettings'] - if account_manage_apikeys is None and 'accountManageApikeys' in kwargs: - account_manage_apikeys = kwargs['accountManageApikeys'] - if account_manage_ip_whitelist is None and 'accountManageIpWhitelist' in kwargs: - account_manage_ip_whitelist = kwargs['accountManageIpWhitelist'] - if account_manage_payment_methods is None and 'accountManagePaymentMethods' in kwargs: - account_manage_payment_methods = kwargs['accountManagePaymentMethods'] - if account_manage_plan is None and 'accountManagePlan' in kwargs: - account_manage_plan = kwargs['accountManagePlan'] - if account_manage_teams is None and 'accountManageTeams' in kwargs: - account_manage_teams = kwargs['accountManageTeams'] - if account_manage_users is None and 'accountManageUsers' in kwargs: - account_manage_users = kwargs['accountManageUsers'] - if account_view_activity_log is None and 'accountViewActivityLog' in kwargs: - account_view_activity_log = kwargs['accountViewActivityLog'] - if account_view_invoices is None and 'accountViewInvoices' in kwargs: - account_view_invoices = kwargs['accountViewInvoices'] - if data_manage_datafeeds is None and 'dataManageDatafeeds' in kwargs: - data_manage_datafeeds = kwargs['dataManageDatafeeds'] - if data_manage_datasources is None and 'dataManageDatasources' in kwargs: - data_manage_datasources = kwargs['dataManageDatasources'] - if data_push_to_datafeeds is None and 'dataPushToDatafeeds' in kwargs: - data_push_to_datafeeds = kwargs['dataPushToDatafeeds'] - if dhcp_manage_dhcp is None and 'dhcpManageDhcp' in kwargs: - dhcp_manage_dhcp = kwargs['dhcpManageDhcp'] - if dhcp_view_dhcp is None and 'dhcpViewDhcp' in kwargs: - dhcp_view_dhcp = kwargs['dhcpViewDhcp'] - if dns_manage_zones is None and 'dnsManageZones' in kwargs: - dns_manage_zones = kwargs['dnsManageZones'] - if dns_records_allows is None and 'dnsRecordsAllows' in kwargs: - dns_records_allows = kwargs['dnsRecordsAllows'] - if dns_records_denies is None and 'dnsRecordsDenies' in kwargs: - dns_records_denies = kwargs['dnsRecordsDenies'] - if dns_view_zones is None and 'dnsViewZones' in kwargs: - dns_view_zones = kwargs['dnsViewZones'] - if dns_zones_allow_by_default is None and 'dnsZonesAllowByDefault' in kwargs: - dns_zones_allow_by_default = kwargs['dnsZonesAllowByDefault'] - if dns_zones_allows is None and 'dnsZonesAllows' in kwargs: - dns_zones_allows = kwargs['dnsZonesAllows'] - if dns_zones_denies is None and 'dnsZonesDenies' in kwargs: - dns_zones_denies = kwargs['dnsZonesDenies'] - if ip_whitelist_strict is None and 'ipWhitelistStrict' in kwargs: - ip_whitelist_strict = kwargs['ipWhitelistStrict'] - if ip_whitelists is None and 'ipWhitelists' in kwargs: - ip_whitelists = kwargs['ipWhitelists'] - if ipam_manage_ipam is None and 'ipamManageIpam' in kwargs: - ipam_manage_ipam = kwargs['ipamManageIpam'] - if ipam_view_ipam is None and 'ipamViewIpam' in kwargs: - ipam_view_ipam = kwargs['ipamViewIpam'] - if monitoring_manage_jobs is None and 'monitoringManageJobs' in kwargs: - monitoring_manage_jobs = kwargs['monitoringManageJobs'] - if monitoring_manage_lists is None and 'monitoringManageLists' in kwargs: - monitoring_manage_lists = kwargs['monitoringManageLists'] - if monitoring_view_jobs is None and 'monitoringViewJobs' in kwargs: - monitoring_view_jobs = kwargs['monitoringViewJobs'] - if security_manage_active_directory is None and 'securityManageActiveDirectory' in kwargs: - security_manage_active_directory = kwargs['securityManageActiveDirectory'] - if security_manage_global2fa is None and 'securityManageGlobal2fa' in kwargs: - security_manage_global2fa = kwargs['securityManageGlobal2fa'] - if account_manage_account_settings is not None: - _setter("account_manage_account_settings", account_manage_account_settings) + pulumi.set(__self__, "account_manage_account_settings", account_manage_account_settings) if account_manage_apikeys is not None: - _setter("account_manage_apikeys", account_manage_apikeys) + pulumi.set(__self__, "account_manage_apikeys", account_manage_apikeys) if account_manage_ip_whitelist is not None: - _setter("account_manage_ip_whitelist", account_manage_ip_whitelist) + pulumi.set(__self__, "account_manage_ip_whitelist", account_manage_ip_whitelist) if account_manage_payment_methods is not None: - _setter("account_manage_payment_methods", account_manage_payment_methods) + pulumi.set(__self__, "account_manage_payment_methods", account_manage_payment_methods) if account_manage_plan is not None: warnings.warn("""obsolete, should no longer be used""", DeprecationWarning) pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""") if account_manage_plan is not None: - _setter("account_manage_plan", account_manage_plan) + pulumi.set(__self__, "account_manage_plan", account_manage_plan) if account_manage_teams is not None: - _setter("account_manage_teams", account_manage_teams) + pulumi.set(__self__, "account_manage_teams", account_manage_teams) if account_manage_users is not None: - _setter("account_manage_users", account_manage_users) + pulumi.set(__self__, "account_manage_users", account_manage_users) if account_view_activity_log is not None: - _setter("account_view_activity_log", account_view_activity_log) + pulumi.set(__self__, "account_view_activity_log", account_view_activity_log) if account_view_invoices is not None: - _setter("account_view_invoices", account_view_invoices) + pulumi.set(__self__, "account_view_invoices", account_view_invoices) if data_manage_datafeeds is not None: - _setter("data_manage_datafeeds", data_manage_datafeeds) + pulumi.set(__self__, "data_manage_datafeeds", data_manage_datafeeds) if data_manage_datasources is not None: - _setter("data_manage_datasources", data_manage_datasources) + pulumi.set(__self__, "data_manage_datasources", data_manage_datasources) if data_push_to_datafeeds is not None: - _setter("data_push_to_datafeeds", data_push_to_datafeeds) + pulumi.set(__self__, "data_push_to_datafeeds", data_push_to_datafeeds) if dhcp_manage_dhcp is not None: - _setter("dhcp_manage_dhcp", dhcp_manage_dhcp) + pulumi.set(__self__, "dhcp_manage_dhcp", dhcp_manage_dhcp) if dhcp_view_dhcp is not None: - _setter("dhcp_view_dhcp", dhcp_view_dhcp) + pulumi.set(__self__, "dhcp_view_dhcp", dhcp_view_dhcp) if dns_manage_zones is not None: - _setter("dns_manage_zones", dns_manage_zones) + pulumi.set(__self__, "dns_manage_zones", dns_manage_zones) if dns_records_allows is not None: - _setter("dns_records_allows", dns_records_allows) + pulumi.set(__self__, "dns_records_allows", dns_records_allows) if dns_records_denies is not None: - _setter("dns_records_denies", dns_records_denies) + pulumi.set(__self__, "dns_records_denies", dns_records_denies) if dns_view_zones is not None: - _setter("dns_view_zones", dns_view_zones) + pulumi.set(__self__, "dns_view_zones", dns_view_zones) if dns_zones_allow_by_default is not None: - _setter("dns_zones_allow_by_default", dns_zones_allow_by_default) + pulumi.set(__self__, "dns_zones_allow_by_default", dns_zones_allow_by_default) if dns_zones_allows is not None: - _setter("dns_zones_allows", dns_zones_allows) + pulumi.set(__self__, "dns_zones_allows", dns_zones_allows) if dns_zones_denies is not None: - _setter("dns_zones_denies", dns_zones_denies) + pulumi.set(__self__, "dns_zones_denies", dns_zones_denies) if ip_whitelist_strict is not None: - _setter("ip_whitelist_strict", ip_whitelist_strict) + pulumi.set(__self__, "ip_whitelist_strict", ip_whitelist_strict) if ip_whitelists is not None: - _setter("ip_whitelists", ip_whitelists) + pulumi.set(__self__, "ip_whitelists", ip_whitelists) if ipam_manage_ipam is not None: - _setter("ipam_manage_ipam", ipam_manage_ipam) + pulumi.set(__self__, "ipam_manage_ipam", ipam_manage_ipam) if ipam_view_ipam is not None: - _setter("ipam_view_ipam", ipam_view_ipam) + pulumi.set(__self__, "ipam_view_ipam", ipam_view_ipam) if key is not None: - _setter("key", key) + pulumi.set(__self__, "key", key) if monitoring_manage_jobs is not None: - _setter("monitoring_manage_jobs", monitoring_manage_jobs) + pulumi.set(__self__, "monitoring_manage_jobs", monitoring_manage_jobs) if monitoring_manage_lists is not None: - _setter("monitoring_manage_lists", monitoring_manage_lists) + pulumi.set(__self__, "monitoring_manage_lists", monitoring_manage_lists) if monitoring_view_jobs is not None: - _setter("monitoring_view_jobs", monitoring_view_jobs) + pulumi.set(__self__, "monitoring_view_jobs", monitoring_view_jobs) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if security_manage_active_directory is not None: - _setter("security_manage_active_directory", security_manage_active_directory) + pulumi.set(__self__, "security_manage_active_directory", security_manage_active_directory) if security_manage_global2fa is not None: - _setter("security_manage_global2fa", security_manage_global2fa) + pulumi.set(__self__, "security_manage_global2fa", security_manage_global2fa) if teams is not None: - _setter("teams", teams) + pulumi.set(__self__, "teams", teams) @property @pulumi.getter(name="accountManageAccountSettings") @@ -1559,10 +1291,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - APIKeyArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/application.py b/sdk/python/pulumi_ns1/application.py index d797f4c6..3a78c448 100644 --- a/sdk/python/pulumi_ns1/application.py +++ b/sdk/python/pulumi_ns1/application.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -32,41 +32,16 @@ def __init__(__self__, *, :param pulumi.Input[int] jobs_per_transaction: Number of jobs to measure per user impression. :param pulumi.Input[str] name: Descriptive name for this Pulsar app. """ - ApplicationArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - active=active, - browser_wait_millis=browser_wait_millis, - default_config=default_config, - jobs_per_transaction=jobs_per_transaction, - name=name, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - active: Optional[pulumi.Input[bool]] = None, - browser_wait_millis: Optional[pulumi.Input[int]] = None, - default_config: Optional[pulumi.Input['ApplicationDefaultConfigArgs']] = None, - jobs_per_transaction: Optional[pulumi.Input[int]] = None, - name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if browser_wait_millis is None and 'browserWaitMillis' in kwargs: - browser_wait_millis = kwargs['browserWaitMillis'] - if default_config is None and 'defaultConfig' in kwargs: - default_config = kwargs['defaultConfig'] - if jobs_per_transaction is None and 'jobsPerTransaction' in kwargs: - jobs_per_transaction = kwargs['jobsPerTransaction'] - if active is not None: - _setter("active", active) + pulumi.set(__self__, "active", active) if browser_wait_millis is not None: - _setter("browser_wait_millis", browser_wait_millis) + pulumi.set(__self__, "browser_wait_millis", browser_wait_millis) if default_config is not None: - _setter("default_config", default_config) + pulumi.set(__self__, "default_config", default_config) if jobs_per_transaction is not None: - _setter("jobs_per_transaction", jobs_per_transaction) + pulumi.set(__self__, "jobs_per_transaction", jobs_per_transaction) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) @property @pulumi.getter @@ -151,41 +126,16 @@ def __init__(__self__, *, :param pulumi.Input[int] jobs_per_transaction: Number of jobs to measure per user impression. :param pulumi.Input[str] name: Descriptive name for this Pulsar app. """ - _ApplicationState._configure( - lambda key, value: pulumi.set(__self__, key, value), - active=active, - browser_wait_millis=browser_wait_millis, - default_config=default_config, - jobs_per_transaction=jobs_per_transaction, - name=name, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - active: Optional[pulumi.Input[bool]] = None, - browser_wait_millis: Optional[pulumi.Input[int]] = None, - default_config: Optional[pulumi.Input['ApplicationDefaultConfigArgs']] = None, - jobs_per_transaction: Optional[pulumi.Input[int]] = None, - name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if browser_wait_millis is None and 'browserWaitMillis' in kwargs: - browser_wait_millis = kwargs['browserWaitMillis'] - if default_config is None and 'defaultConfig' in kwargs: - default_config = kwargs['defaultConfig'] - if jobs_per_transaction is None and 'jobsPerTransaction' in kwargs: - jobs_per_transaction = kwargs['jobsPerTransaction'] - if active is not None: - _setter("active", active) + pulumi.set(__self__, "active", active) if browser_wait_millis is not None: - _setter("browser_wait_millis", browser_wait_millis) + pulumi.set(__self__, "browser_wait_millis", browser_wait_millis) if default_config is not None: - _setter("default_config", default_config) + pulumi.set(__self__, "default_config", default_config) if jobs_per_transaction is not None: - _setter("jobs_per_transaction", jobs_per_transaction) + pulumi.set(__self__, "jobs_per_transaction", jobs_per_transaction) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) @property @pulumi.getter @@ -357,10 +307,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - ApplicationArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, @@ -382,7 +328,6 @@ def _internal_init(__self__, __props__.__dict__["active"] = active __props__.__dict__["browser_wait_millis"] = browser_wait_millis - default_config = _utilities.configure(default_config, ApplicationDefaultConfigArgs, True) __props__.__dict__["default_config"] = default_config __props__.__dict__["jobs_per_transaction"] = jobs_per_transaction __props__.__dict__["name"] = name diff --git a/sdk/python/pulumi_ns1/config/__init__.pyi b/sdk/python/pulumi_ns1/config/__init__.pyi index ca9ad22a..39e0d0ae 100644 --- a/sdk/python/pulumi_ns1/config/__init__.pyi +++ b/sdk/python/pulumi_ns1/config/__init__.pyi @@ -6,7 +6,7 @@ import copy import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities apikey: Optional[str] diff --git a/sdk/python/pulumi_ns1/config/vars.py b/sdk/python/pulumi_ns1/config/vars.py index e48f7cd9..b56bb6bb 100644 --- a/sdk/python/pulumi_ns1/config/vars.py +++ b/sdk/python/pulumi_ns1/config/vars.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities import types diff --git a/sdk/python/pulumi_ns1/data_feed.py b/sdk/python/pulumi_ns1/data_feed.py index fbde5ee5..7142a129 100644 --- a/sdk/python/pulumi_ns1/data_feed.py +++ b/sdk/python/pulumi_ns1/data_feed.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['DataFeedArgs', 'DataFeed'] @@ -24,30 +24,11 @@ def __init__(__self__, *, `feed_config` from /data/sourcetypes. `jobid` is required in the `config` for datafeeds connected to NS1 monitoring. :param pulumi.Input[str] name: The free form name of the data feed. """ - DataFeedArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - source_id=source_id, - config=config, - name=name, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - source_id: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[Mapping[str, Any]]] = None, - name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if source_id is None and 'sourceId' in kwargs: - source_id = kwargs['sourceId'] - if source_id is None: - raise TypeError("Missing 'source_id' argument") - - _setter("source_id", source_id) + pulumi.set(__self__, "source_id", source_id) if config is not None: - _setter("config", config) + pulumi.set(__self__, "config", config) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) @property @pulumi.getter(name="sourceId") @@ -100,29 +81,12 @@ def __init__(__self__, *, :param pulumi.Input[str] name: The free form name of the data feed. :param pulumi.Input[str] source_id: The data source id that this feed is connected to. """ - _DataFeedState._configure( - lambda key, value: pulumi.set(__self__, key, value), - config=config, - name=name, - source_id=source_id, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - config: Optional[pulumi.Input[Mapping[str, Any]]] = None, - name: Optional[pulumi.Input[str]] = None, - source_id: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if source_id is None and 'sourceId' in kwargs: - source_id = kwargs['sourceId'] - if config is not None: - _setter("config", config) + pulumi.set(__self__, "config", config) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if source_id is not None: - _setter("source_id", source_id) + pulumi.set(__self__, "source_id", source_id) @property @pulumi.getter @@ -268,10 +232,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - DataFeedArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/data_source.py b/sdk/python/pulumi_ns1/data_source.py index 67a00b84..d0a04cee 100644 --- a/sdk/python/pulumi_ns1/data_source.py +++ b/sdk/python/pulumi_ns1/data_source.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['DataSourceArgs', 'DataSource'] @@ -24,28 +24,11 @@ def __init__(__self__, *, matching the specification in `config` from /data/sourcetypes. :param pulumi.Input[str] name: The free form name of the data source. """ - DataSourceArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - sourcetype=sourcetype, - config=config, - name=name, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - sourcetype: Optional[pulumi.Input[str]] = None, - config: Optional[pulumi.Input[Mapping[str, Any]]] = None, - name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if sourcetype is None: - raise TypeError("Missing 'sourcetype' argument") - - _setter("sourcetype", sourcetype) + pulumi.set(__self__, "sourcetype", sourcetype) if config is not None: - _setter("config", config) + pulumi.set(__self__, "config", config) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) @property @pulumi.getter @@ -98,27 +81,12 @@ def __init__(__self__, *, :param pulumi.Input[str] name: The free form name of the data source. :param pulumi.Input[str] sourcetype: The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes. """ - _DataSourceState._configure( - lambda key, value: pulumi.set(__self__, key, value), - config=config, - name=name, - sourcetype=sourcetype, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - config: Optional[pulumi.Input[Mapping[str, Any]]] = None, - name: Optional[pulumi.Input[str]] = None, - sourcetype: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if config is not None: - _setter("config", config) + pulumi.set(__self__, "config", config) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if sourcetype is not None: - _setter("sourcetype", sourcetype) + pulumi.set(__self__, "sourcetype", sourcetype) @property @pulumi.getter @@ -232,10 +200,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - DataSourceArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/dnsview.py b/sdk/python/pulumi_ns1/dnsview.py index 31236b49..eacad0b2 100644 --- a/sdk/python/pulumi_ns1/dnsview.py +++ b/sdk/python/pulumi_ns1/dnsview.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['DnsviewArgs', 'Dnsview'] @@ -23,43 +23,18 @@ def __init__(__self__, *, """ The set of arguments for constructing a Dnsview resource. """ - DnsviewArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - name=name, - networks=networks, - preference=preference, - read_acls=read_acls, - update_acls=update_acls, - zones=zones, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - name: Optional[pulumi.Input[str]] = None, - networks: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, - preference: Optional[pulumi.Input[int]] = None, - read_acls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - update_acls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if read_acls is None and 'readAcls' in kwargs: - read_acls = kwargs['readAcls'] - if update_acls is None and 'updateAcls' in kwargs: - update_acls = kwargs['updateAcls'] - if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if networks is not None: - _setter("networks", networks) + pulumi.set(__self__, "networks", networks) if preference is not None: - _setter("preference", preference) + pulumi.set(__self__, "preference", preference) if read_acls is not None: - _setter("read_acls", read_acls) + pulumi.set(__self__, "read_acls", read_acls) if update_acls is not None: - _setter("update_acls", update_acls) + pulumi.set(__self__, "update_acls", update_acls) if zones is not None: - _setter("zones", zones) + pulumi.set(__self__, "zones", zones) @property @pulumi.getter @@ -130,55 +105,22 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering Dnsview resources. """ - _DnsviewState._configure( - lambda key, value: pulumi.set(__self__, key, value), - created_at=created_at, - name=name, - networks=networks, - preference=preference, - read_acls=read_acls, - update_acls=update_acls, - updated_at=updated_at, - zones=zones, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - created_at: Optional[pulumi.Input[int]] = None, - name: Optional[pulumi.Input[str]] = None, - networks: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, - preference: Optional[pulumi.Input[int]] = None, - read_acls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - update_acls: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - updated_at: Optional[pulumi.Input[int]] = None, - zones: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if created_at is None and 'createdAt' in kwargs: - created_at = kwargs['createdAt'] - if read_acls is None and 'readAcls' in kwargs: - read_acls = kwargs['readAcls'] - if update_acls is None and 'updateAcls' in kwargs: - update_acls = kwargs['updateAcls'] - if updated_at is None and 'updatedAt' in kwargs: - updated_at = kwargs['updatedAt'] - if created_at is not None: - _setter("created_at", created_at) + pulumi.set(__self__, "created_at", created_at) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if networks is not None: - _setter("networks", networks) + pulumi.set(__self__, "networks", networks) if preference is not None: - _setter("preference", preference) + pulumi.set(__self__, "preference", preference) if read_acls is not None: - _setter("read_acls", read_acls) + pulumi.set(__self__, "read_acls", read_acls) if update_acls is not None: - _setter("update_acls", update_acls) + pulumi.set(__self__, "update_acls", update_acls) if updated_at is not None: - _setter("updated_at", updated_at) + pulumi.set(__self__, "updated_at", updated_at) if zones is not None: - _setter("zones", zones) + pulumi.set(__self__, "zones", zones) @property @pulumi.getter(name="createdAt") @@ -288,10 +230,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - DnsviewArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/get_dns_sec.py b/sdk/python/pulumi_ns1/get_dns_sec.py index 43109a0e..902d315a 100644 --- a/sdk/python/pulumi_ns1/get_dns_sec.py +++ b/sdk/python/pulumi_ns1/get_dns_sec.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs diff --git a/sdk/python/pulumi_ns1/get_networks.py b/sdk/python/pulumi_ns1/get_networks.py index 4bd95651..d8a414c6 100644 --- a/sdk/python/pulumi_ns1/get_networks.py +++ b/sdk/python/pulumi_ns1/get_networks.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs diff --git a/sdk/python/pulumi_ns1/get_record.py b/sdk/python/pulumi_ns1/get_record.py index 2a509f33..c4def020 100644 --- a/sdk/python/pulumi_ns1/get_record.py +++ b/sdk/python/pulumi_ns1/get_record.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs diff --git a/sdk/python/pulumi_ns1/get_zone.py b/sdk/python/pulumi_ns1/get_zone.py index 0ee37bfd..984b47ab 100644 --- a/sdk/python/pulumi_ns1/get_zone.py +++ b/sdk/python/pulumi_ns1/get_zone.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs diff --git a/sdk/python/pulumi_ns1/monitoring_job.py b/sdk/python/pulumi_ns1/monitoring_job.py index 98c3402c..b312a42d 100644 --- a/sdk/python/pulumi_ns1/monitoring_job.py +++ b/sdk/python/pulumi_ns1/monitoring_job.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -52,97 +52,34 @@ def __init__(__self__, *, :param pulumi.Input[bool] rapid_recheck: If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification. :param pulumi.Input[Sequence[pulumi.Input['MonitoringJobRuleArgs']]] rules: A list of rules for determining failure conditions. Each rule acts on one of the outputs from the monitoring job. You must specify key (the output key); comparison (a comparison to perform on the the output); and value (the value to compare to). For example, {"key":"rtt", "comparison":"<", "value":100} is a rule requiring the rtt from a job to be under 100ms, or the job will be marked failed. Available output keys, comparators, and value types are are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes. """ - MonitoringJobArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - config=config, - frequency=frequency, - job_type=job_type, - regions=regions, - active=active, - mute=mute, - name=name, - notes=notes, - notify_delay=notify_delay, - notify_failback=notify_failback, - notify_list=notify_list, - notify_regional=notify_regional, - notify_repeat=notify_repeat, - policy=policy, - rapid_recheck=rapid_recheck, - rules=rules, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - config: Optional[pulumi.Input[Mapping[str, Any]]] = None, - frequency: Optional[pulumi.Input[int]] = None, - job_type: Optional[pulumi.Input[str]] = None, - regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - active: Optional[pulumi.Input[bool]] = None, - mute: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - notes: Optional[pulumi.Input[str]] = None, - notify_delay: Optional[pulumi.Input[int]] = None, - notify_failback: Optional[pulumi.Input[bool]] = None, - notify_list: Optional[pulumi.Input[str]] = None, - notify_regional: Optional[pulumi.Input[bool]] = None, - notify_repeat: Optional[pulumi.Input[int]] = None, - policy: Optional[pulumi.Input[str]] = None, - rapid_recheck: Optional[pulumi.Input[bool]] = None, - rules: Optional[pulumi.Input[Sequence[pulumi.Input['MonitoringJobRuleArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if config is None: - raise TypeError("Missing 'config' argument") - if frequency is None: - raise TypeError("Missing 'frequency' argument") - if job_type is None and 'jobType' in kwargs: - job_type = kwargs['jobType'] - if job_type is None: - raise TypeError("Missing 'job_type' argument") - if regions is None: - raise TypeError("Missing 'regions' argument") - if notify_delay is None and 'notifyDelay' in kwargs: - notify_delay = kwargs['notifyDelay'] - if notify_failback is None and 'notifyFailback' in kwargs: - notify_failback = kwargs['notifyFailback'] - if notify_list is None and 'notifyList' in kwargs: - notify_list = kwargs['notifyList'] - if notify_regional is None and 'notifyRegional' in kwargs: - notify_regional = kwargs['notifyRegional'] - if notify_repeat is None and 'notifyRepeat' in kwargs: - notify_repeat = kwargs['notifyRepeat'] - if rapid_recheck is None and 'rapidRecheck' in kwargs: - rapid_recheck = kwargs['rapidRecheck'] - - _setter("config", config) - _setter("frequency", frequency) - _setter("job_type", job_type) - _setter("regions", regions) + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "frequency", frequency) + pulumi.set(__self__, "job_type", job_type) + pulumi.set(__self__, "regions", regions) if active is not None: - _setter("active", active) + pulumi.set(__self__, "active", active) if mute is not None: - _setter("mute", mute) + pulumi.set(__self__, "mute", mute) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if notes is not None: - _setter("notes", notes) + pulumi.set(__self__, "notes", notes) if notify_delay is not None: - _setter("notify_delay", notify_delay) + pulumi.set(__self__, "notify_delay", notify_delay) if notify_failback is not None: - _setter("notify_failback", notify_failback) + pulumi.set(__self__, "notify_failback", notify_failback) if notify_list is not None: - _setter("notify_list", notify_list) + pulumi.set(__self__, "notify_list", notify_list) if notify_regional is not None: - _setter("notify_regional", notify_regional) + pulumi.set(__self__, "notify_regional", notify_regional) if notify_repeat is not None: - _setter("notify_repeat", notify_repeat) + pulumi.set(__self__, "notify_repeat", notify_repeat) if policy is not None: - _setter("policy", policy) + pulumi.set(__self__, "policy", policy) if rapid_recheck is not None: - _setter("rapid_recheck", rapid_recheck) + pulumi.set(__self__, "rapid_recheck", rapid_recheck) if rules is not None: - _setter("rules", rules) + pulumi.set(__self__, "rules", rules) @property @pulumi.getter @@ -375,93 +312,38 @@ def __init__(__self__, *, job. See NS1 API docs for supported values. :param pulumi.Input[Sequence[pulumi.Input['MonitoringJobRuleArgs']]] rules: A list of rules for determining failure conditions. Each rule acts on one of the outputs from the monitoring job. You must specify key (the output key); comparison (a comparison to perform on the the output); and value (the value to compare to). For example, {"key":"rtt", "comparison":"<", "value":100} is a rule requiring the rtt from a job to be under 100ms, or the job will be marked failed. Available output keys, comparators, and value types are are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes. """ - _MonitoringJobState._configure( - lambda key, value: pulumi.set(__self__, key, value), - active=active, - config=config, - frequency=frequency, - job_type=job_type, - mute=mute, - name=name, - notes=notes, - notify_delay=notify_delay, - notify_failback=notify_failback, - notify_list=notify_list, - notify_regional=notify_regional, - notify_repeat=notify_repeat, - policy=policy, - rapid_recheck=rapid_recheck, - regions=regions, - rules=rules, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - active: Optional[pulumi.Input[bool]] = None, - config: Optional[pulumi.Input[Mapping[str, Any]]] = None, - frequency: Optional[pulumi.Input[int]] = None, - job_type: Optional[pulumi.Input[str]] = None, - mute: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - notes: Optional[pulumi.Input[str]] = None, - notify_delay: Optional[pulumi.Input[int]] = None, - notify_failback: Optional[pulumi.Input[bool]] = None, - notify_list: Optional[pulumi.Input[str]] = None, - notify_regional: Optional[pulumi.Input[bool]] = None, - notify_repeat: Optional[pulumi.Input[int]] = None, - policy: Optional[pulumi.Input[str]] = None, - rapid_recheck: Optional[pulumi.Input[bool]] = None, - regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - rules: Optional[pulumi.Input[Sequence[pulumi.Input['MonitoringJobRuleArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if job_type is None and 'jobType' in kwargs: - job_type = kwargs['jobType'] - if notify_delay is None and 'notifyDelay' in kwargs: - notify_delay = kwargs['notifyDelay'] - if notify_failback is None and 'notifyFailback' in kwargs: - notify_failback = kwargs['notifyFailback'] - if notify_list is None and 'notifyList' in kwargs: - notify_list = kwargs['notifyList'] - if notify_regional is None and 'notifyRegional' in kwargs: - notify_regional = kwargs['notifyRegional'] - if notify_repeat is None and 'notifyRepeat' in kwargs: - notify_repeat = kwargs['notifyRepeat'] - if rapid_recheck is None and 'rapidRecheck' in kwargs: - rapid_recheck = kwargs['rapidRecheck'] - if active is not None: - _setter("active", active) + pulumi.set(__self__, "active", active) if config is not None: - _setter("config", config) + pulumi.set(__self__, "config", config) if frequency is not None: - _setter("frequency", frequency) + pulumi.set(__self__, "frequency", frequency) if job_type is not None: - _setter("job_type", job_type) + pulumi.set(__self__, "job_type", job_type) if mute is not None: - _setter("mute", mute) + pulumi.set(__self__, "mute", mute) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if notes is not None: - _setter("notes", notes) + pulumi.set(__self__, "notes", notes) if notify_delay is not None: - _setter("notify_delay", notify_delay) + pulumi.set(__self__, "notify_delay", notify_delay) if notify_failback is not None: - _setter("notify_failback", notify_failback) + pulumi.set(__self__, "notify_failback", notify_failback) if notify_list is not None: - _setter("notify_list", notify_list) + pulumi.set(__self__, "notify_list", notify_list) if notify_regional is not None: - _setter("notify_regional", notify_regional) + pulumi.set(__self__, "notify_regional", notify_regional) if notify_repeat is not None: - _setter("notify_repeat", notify_repeat) + pulumi.set(__self__, "notify_repeat", notify_repeat) if policy is not None: - _setter("policy", policy) + pulumi.set(__self__, "policy", policy) if rapid_recheck is not None: - _setter("rapid_recheck", rapid_recheck) + pulumi.set(__self__, "rapid_recheck", rapid_recheck) if regions is not None: - _setter("regions", regions) + pulumi.set(__self__, "regions", regions) if rules is not None: - _setter("rules", rules) + pulumi.set(__self__, "rules", rules) @property @pulumi.getter @@ -799,10 +681,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - MonitoringJobArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/notify_list.py b/sdk/python/pulumi_ns1/notify_list.py index 781fab7a..6755ec2b 100644 --- a/sdk/python/pulumi_ns1/notify_list.py +++ b/sdk/python/pulumi_ns1/notify_list.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -23,23 +23,10 @@ def __init__(__self__, *, :param pulumi.Input[str] name: The free-form display name for the notify list. :param pulumi.Input[Sequence[pulumi.Input['NotifyListNotificationArgs']]] notifications: A list of notifiers. All notifiers in a notification list will receive notifications whenever an event is send to the list (e.g., when a monitoring job fails). Notifiers are documented below. """ - NotifyListArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - name=name, - notifications=notifications, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - name: Optional[pulumi.Input[str]] = None, - notifications: Optional[pulumi.Input[Sequence[pulumi.Input['NotifyListNotificationArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if notifications is not None: - _setter("notifications", notifications) + pulumi.set(__self__, "notifications", notifications) @property @pulumi.getter @@ -76,23 +63,10 @@ def __init__(__self__, *, :param pulumi.Input[str] name: The free-form display name for the notify list. :param pulumi.Input[Sequence[pulumi.Input['NotifyListNotificationArgs']]] notifications: A list of notifiers. All notifiers in a notification list will receive notifications whenever an event is send to the list (e.g., when a monitoring job fails). Notifiers are documented below. """ - _NotifyListState._configure( - lambda key, value: pulumi.set(__self__, key, value), - name=name, - notifications=notifications, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - name: Optional[pulumi.Input[str]] = None, - notifications: Optional[pulumi.Input[Sequence[pulumi.Input['NotifyListNotificationArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if notifications is not None: - _setter("notifications", notifications) + pulumi.set(__self__, "notifications", notifications) @property @pulumi.getter @@ -216,10 +190,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - NotifyListArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/outputs.py b/sdk/python/pulumi_ns1/outputs.py index d820fa1b..053cf768 100644 --- a/sdk/python/pulumi_ns1/outputs.py +++ b/sdk/python/pulumi_ns1/outputs.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs @@ -64,37 +64,10 @@ def __init__(__self__, *, include_subdomains: bool, type: str, zone: str): - APIKeyDnsRecordsAllow._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[str] = None, - include_subdomains: Optional[bool] = None, - type: Optional[str] = None, - zone: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -141,37 +114,10 @@ def __init__(__self__, *, include_subdomains: bool, type: str, zone: str): - APIKeyDnsRecordsDeny._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[str] = None, - include_subdomains: Optional[bool] = None, - type: Optional[str] = None, - zone: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -235,48 +181,17 @@ def __init__(__self__, *, :param bool static_values: Indicates whether or not to skip aggregation for this job's measurements :param bool use_xhr: Whether to use XMLHttpRequest (XHR) when taking measurements. """ - ApplicationDefaultConfig._configure( - lambda key, value: pulumi.set(__self__, key, value), - http=http, - https=https, - job_timeout_millis=job_timeout_millis, - request_timeout_millis=request_timeout_millis, - static_values=static_values, - use_xhr=use_xhr, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - http: Optional[bool] = None, - https: Optional[bool] = None, - job_timeout_millis: Optional[int] = None, - request_timeout_millis: Optional[int] = None, - static_values: Optional[bool] = None, - use_xhr: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if http is None: - raise TypeError("Missing 'http' argument") - if job_timeout_millis is None and 'jobTimeoutMillis' in kwargs: - job_timeout_millis = kwargs['jobTimeoutMillis'] - if request_timeout_millis is None and 'requestTimeoutMillis' in kwargs: - request_timeout_millis = kwargs['requestTimeoutMillis'] - if static_values is None and 'staticValues' in kwargs: - static_values = kwargs['staticValues'] - if use_xhr is None and 'useXhr' in kwargs: - use_xhr = kwargs['useXhr'] - - _setter("http", http) + pulumi.set(__self__, "http", http) if https is not None: - _setter("https", https) + pulumi.set(__self__, "https", https) if job_timeout_millis is not None: - _setter("job_timeout_millis", job_timeout_millis) + pulumi.set(__self__, "job_timeout_millis", job_timeout_millis) if request_timeout_millis is not None: - _setter("request_timeout_millis", request_timeout_millis) + pulumi.set(__self__, "request_timeout_millis", request_timeout_millis) if static_values is not None: - _setter("static_values", static_values) + pulumi.set(__self__, "static_values", static_values) if use_xhr is not None: - _setter("use_xhr", use_xhr) + pulumi.set(__self__, "use_xhr", use_xhr) @property @pulumi.getter @@ -334,30 +249,9 @@ def __init__(__self__, *, comparison: str, key: str, value: str): - MonitoringJobRule._configure( - lambda key, value: pulumi.set(__self__, key, value), - comparison=comparison, - key=key, - value=value, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - comparison: Optional[str] = None, - key: Optional[str] = None, - value: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if comparison is None: - raise TypeError("Missing 'comparison' argument") - if key is None: - raise TypeError("Missing 'key' argument") - if value is None: - raise TypeError("Missing 'value' argument") - - _setter("comparison", comparison) - _setter("key", key) - _setter("value", value) + pulumi.set(__self__, "comparison", comparison) + pulumi.set(__self__, "key", key) + pulumi.set(__self__, "value", value) @property @pulumi.getter @@ -384,25 +278,8 @@ def __init__(__self__, *, :param Mapping[str, Any] config: Configuration details for the given notifier type. :param str type: The type of notifier. Available notifiers are indicated in /notifytypes endpoint. """ - NotifyListNotification._configure( - lambda key, value: pulumi.set(__self__, key, value), - config=config, - type=type, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - config: Optional[Mapping[str, Any]] = None, - type: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if config is None: - raise TypeError("Missing 'config' argument") - if type is None: - raise TypeError("Missing 'type' argument") - - _setter("config", config) - _setter("type", type) + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "type", type) @property @pulumi.getter @@ -425,20 +302,7 @@ def type(self) -> str: class PulsarJobBlendMetricWeights(dict): def __init__(__self__, *, timestamp: int): - PulsarJobBlendMetricWeights._configure( - lambda key, value: pulumi.set(__self__, key, value), - timestamp=timestamp, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - timestamp: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if timestamp is None: - raise TypeError("Missing 'timestamp' argument") - - _setter("timestamp", timestamp) + pulumi.set(__self__, "timestamp", timestamp) @property @pulumi.getter @@ -482,57 +346,22 @@ def __init__(__self__, *, static_values: Optional[bool] = None, url_path: Optional[str] = None, use_xhr: Optional[bool] = None): - PulsarJobConfig._configure( - lambda key, value: pulumi.set(__self__, key, value), - host=host, - http=http, - https=https, - job_timeout_millis=job_timeout_millis, - request_timeout_millis=request_timeout_millis, - static_values=static_values, - url_path=url_path, - use_xhr=use_xhr, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - host: Optional[str] = None, - http: Optional[bool] = None, - https: Optional[bool] = None, - job_timeout_millis: Optional[int] = None, - request_timeout_millis: Optional[int] = None, - static_values: Optional[bool] = None, - url_path: Optional[str] = None, - use_xhr: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if job_timeout_millis is None and 'jobTimeoutMillis' in kwargs: - job_timeout_millis = kwargs['jobTimeoutMillis'] - if request_timeout_millis is None and 'requestTimeoutMillis' in kwargs: - request_timeout_millis = kwargs['requestTimeoutMillis'] - if static_values is None and 'staticValues' in kwargs: - static_values = kwargs['staticValues'] - if url_path is None and 'urlPath' in kwargs: - url_path = kwargs['urlPath'] - if use_xhr is None and 'useXhr' in kwargs: - use_xhr = kwargs['useXhr'] - if host is not None: - _setter("host", host) + pulumi.set(__self__, "host", host) if http is not None: - _setter("http", http) + pulumi.set(__self__, "http", http) if https is not None: - _setter("https", https) + pulumi.set(__self__, "https", https) if job_timeout_millis is not None: - _setter("job_timeout_millis", job_timeout_millis) + pulumi.set(__self__, "job_timeout_millis", job_timeout_millis) if request_timeout_millis is not None: - _setter("request_timeout_millis", request_timeout_millis) + pulumi.set(__self__, "request_timeout_millis", request_timeout_millis) if static_values is not None: - _setter("static_values", static_values) + pulumi.set(__self__, "static_values", static_values) if url_path is not None: - _setter("url_path", url_path) + pulumi.set(__self__, "url_path", url_path) if use_xhr is not None: - _setter("use_xhr", use_xhr) + pulumi.set(__self__, "use_xhr", use_xhr) @property @pulumi.getter @@ -599,36 +428,11 @@ def __init__(__self__, *, name: str, weight: int, maximize: Optional[bool] = None): - PulsarJobWeight._configure( - lambda key, value: pulumi.set(__self__, key, value), - default_value=default_value, - name=name, - weight=weight, - maximize=maximize, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - default_value: Optional[float] = None, - name: Optional[str] = None, - weight: Optional[int] = None, - maximize: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if default_value is None and 'defaultValue' in kwargs: - default_value = kwargs['defaultValue'] - if default_value is None: - raise TypeError("Missing 'default_value' argument") - if name is None: - raise TypeError("Missing 'name' argument") - if weight is None: - raise TypeError("Missing 'weight' argument") - - _setter("default_value", default_value) - _setter("name", name) - _setter("weight", weight) + pulumi.set(__self__, "default_value", default_value) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "weight", weight) if maximize is not None: - _setter("maximize", maximize) + pulumi.set(__self__, "maximize", maximize) @property @pulumi.getter(name="defaultValue") @@ -687,27 +491,12 @@ def __init__(__self__, *, * ` meta` - (Optional) meta is supported at the `answer` level. Meta is documented below. """ - RecordAnswer._configure( - lambda key, value: pulumi.set(__self__, key, value), - answer=answer, - meta=meta, - region=region, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - answer: Optional[str] = None, - meta: Optional[Mapping[str, Any]] = None, - region: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if answer is not None: - _setter("answer", answer) + pulumi.set(__self__, "answer", answer) if meta is not None: - _setter("meta", meta) + pulumi.set(__self__, "meta", meta) if region is not None: - _setter("region", region) + pulumi.set(__self__, "region", region) @property @pulumi.getter @@ -770,28 +559,11 @@ def __init__(__self__, *, :param bool disabled: Determines whether the filter is applied in the filter chain. """ - RecordFilter._configure( - lambda key, value: pulumi.set(__self__, key, value), - filter=filter, - config=config, - disabled=disabled, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - filter: Optional[str] = None, - config: Optional[Mapping[str, Any]] = None, - disabled: Optional[bool] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if filter is None: - raise TypeError("Missing 'filter' argument") - - _setter("filter", filter) + pulumi.set(__self__, "filter", filter) if config is not None: - _setter("config", config) + pulumi.set(__self__, "config", config) if disabled is not None: - _setter("disabled", disabled) + pulumi.set(__self__, "disabled", disabled) @property @pulumi.getter @@ -828,24 +600,9 @@ def __init__(__self__, *, """ :param str name: Name of the region (or Answer Group). """ - RecordRegion._configure( - lambda key, value: pulumi.set(__self__, key, value), - name=name, - meta=meta, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - name: Optional[str] = None, - meta: Optional[Mapping[str, Any]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if name is None: - raise TypeError("Missing 'name' argument") - - _setter("name", name) + pulumi.set(__self__, "name", name) if meta is not None: - _setter("meta", meta) + pulumi.set(__self__, "meta", meta) @property @pulumi.getter @@ -885,37 +642,10 @@ def __init__(__self__, *, include_subdomains: bool, type: str, zone: str): - TeamDnsRecordsAllow._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[str] = None, - include_subdomains: Optional[bool] = None, - type: Optional[str] = None, - zone: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -962,37 +692,10 @@ def __init__(__self__, *, include_subdomains: bool, type: str, zone: str): - TeamDnsRecordsDeny._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[str] = None, - include_subdomains: Optional[bool] = None, - type: Optional[str] = None, - zone: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -1023,25 +726,8 @@ def __init__(__self__, *, """ :param str name: The free form name of the team. """ - TeamIpWhitelist._configure( - lambda key, value: pulumi.set(__self__, key, value), - name=name, - values=values, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - name: Optional[str] = None, - values: Optional[Sequence[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if name is None: - raise TypeError("Missing 'name' argument") - if values is None: - raise TypeError("Missing 'values' argument") - - _setter("name", name) - _setter("values", values) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "values", values) @property @pulumi.getter @@ -1081,37 +767,10 @@ def __init__(__self__, *, include_subdomains: bool, type: str, zone: str): - UserDnsRecordsAllow._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[str] = None, - include_subdomains: Optional[bool] = None, - type: Optional[str] = None, - zone: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -1158,37 +817,10 @@ def __init__(__self__, *, include_subdomains: bool, type: str, zone: str): - UserDnsRecordsDeny._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - include_subdomains=include_subdomains, - type=type, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[str] = None, - include_subdomains: Optional[bool] = None, - type: Optional[str] = None, - zone: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if include_subdomains is None and 'includeSubdomains' in kwargs: - include_subdomains = kwargs['includeSubdomains'] - if include_subdomains is None: - raise TypeError("Missing 'include_subdomains' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - - _setter("domain", domain) - _setter("include_subdomains", include_subdomains) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "include_subdomains", include_subdomains) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -1227,32 +859,13 @@ def __init__(__self__, *, when the zone changes. Default `false`. :param int port: Port of the the secondary server. Default `53`. """ - ZoneSecondary._configure( - lambda key, value: pulumi.set(__self__, key, value), - ip=ip, - networks=networks, - notify=notify, - port=port, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - ip: Optional[str] = None, - networks: Optional[Sequence[int]] = None, - notify: Optional[bool] = None, - port: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if ip is None: - raise TypeError("Missing 'ip' argument") - - _setter("ip", ip) + pulumi.set(__self__, "ip", ip) if networks is not None: - _setter("networks", networks) + pulumi.set(__self__, "networks", networks) if notify is not None: - _setter("notify", notify) + pulumi.set(__self__, "notify", notify) if port is not None: - _setter("port", port) + pulumi.set(__self__, "port", port) @property @pulumi.getter @@ -1301,30 +914,9 @@ def __init__(__self__, *, :param Sequence['GetDNSSecDelegationDArgs'] ds: (Computed) List of Keys. Key is documented below. :param int ttl: (Computed) TTL for the Keys (int). """ - GetDNSSecDelegationResult._configure( - lambda key, value: pulumi.set(__self__, key, value), - dnskeys=dnskeys, - ds=ds, - ttl=ttl, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - dnskeys: Optional[Sequence['outputs.GetDNSSecDelegationDnskeyResult']] = None, - ds: Optional[Sequence['outputs.GetDNSSecDelegationDResult']] = None, - ttl: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if dnskeys is None: - raise TypeError("Missing 'dnskeys' argument") - if ds is None: - raise TypeError("Missing 'ds' argument") - if ttl is None: - raise TypeError("Missing 'ttl' argument") - - _setter("dnskeys", dnskeys) - _setter("ds", ds) - _setter("ttl", ttl) + pulumi.set(__self__, "dnskeys", dnskeys) + pulumi.set(__self__, "ds", ds) + pulumi.set(__self__, "ttl", ttl) @property @pulumi.getter @@ -1364,37 +956,10 @@ def __init__(__self__, *, :param str protocol: (Computed) Protocol of the key. :param str public_key: (Computed) Public key for the key. """ - GetDNSSecDelegationDResult._configure( - lambda key, value: pulumi.set(__self__, key, value), - algorithm=algorithm, - flags=flags, - protocol=protocol, - public_key=public_key, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - algorithm: Optional[str] = None, - flags: Optional[str] = None, - protocol: Optional[str] = None, - public_key: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if algorithm is None: - raise TypeError("Missing 'algorithm' argument") - if flags is None: - raise TypeError("Missing 'flags' argument") - if protocol is None: - raise TypeError("Missing 'protocol' argument") - if public_key is None and 'publicKey' in kwargs: - public_key = kwargs['publicKey'] - if public_key is None: - raise TypeError("Missing 'public_key' argument") - - _setter("algorithm", algorithm) - _setter("flags", flags) - _setter("protocol", protocol) - _setter("public_key", public_key) + pulumi.set(__self__, "algorithm", algorithm) + pulumi.set(__self__, "flags", flags) + pulumi.set(__self__, "protocol", protocol) + pulumi.set(__self__, "public_key", public_key) @property @pulumi.getter @@ -1442,37 +1007,10 @@ def __init__(__self__, *, :param str protocol: (Computed) Protocol of the key. :param str public_key: (Computed) Public key for the key. """ - GetDNSSecDelegationDnskeyResult._configure( - lambda key, value: pulumi.set(__self__, key, value), - algorithm=algorithm, - flags=flags, - protocol=protocol, - public_key=public_key, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - algorithm: Optional[str] = None, - flags: Optional[str] = None, - protocol: Optional[str] = None, - public_key: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if algorithm is None: - raise TypeError("Missing 'algorithm' argument") - if flags is None: - raise TypeError("Missing 'flags' argument") - if protocol is None: - raise TypeError("Missing 'protocol' argument") - if public_key is None and 'publicKey' in kwargs: - public_key = kwargs['publicKey'] - if public_key is None: - raise TypeError("Missing 'public_key' argument") - - _setter("algorithm", algorithm) - _setter("flags", flags) - _setter("protocol", protocol) - _setter("public_key", public_key) + pulumi.set(__self__, "algorithm", algorithm) + pulumi.set(__self__, "flags", flags) + pulumi.set(__self__, "protocol", protocol) + pulumi.set(__self__, "public_key", public_key) @property @pulumi.getter @@ -1516,25 +1054,8 @@ def __init__(__self__, *, :param Sequence['GetDNSSecKeyDnskeyArgs'] dnskeys: (Computed) List of Keys. Key is documented below. :param int ttl: (Computed) TTL for the Keys (int). """ - GetDNSSecKeyResult._configure( - lambda key, value: pulumi.set(__self__, key, value), - dnskeys=dnskeys, - ttl=ttl, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - dnskeys: Optional[Sequence['outputs.GetDNSSecKeyDnskeyResult']] = None, - ttl: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if dnskeys is None: - raise TypeError("Missing 'dnskeys' argument") - if ttl is None: - raise TypeError("Missing 'ttl' argument") - - _setter("dnskeys", dnskeys) - _setter("ttl", ttl) + pulumi.set(__self__, "dnskeys", dnskeys) + pulumi.set(__self__, "ttl", ttl) @property @pulumi.getter @@ -1566,37 +1087,10 @@ def __init__(__self__, *, :param str protocol: (Computed) Protocol of the key. :param str public_key: (Computed) Public key for the key. """ - GetDNSSecKeyDnskeyResult._configure( - lambda key, value: pulumi.set(__self__, key, value), - algorithm=algorithm, - flags=flags, - protocol=protocol, - public_key=public_key, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - algorithm: Optional[str] = None, - flags: Optional[str] = None, - protocol: Optional[str] = None, - public_key: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if algorithm is None: - raise TypeError("Missing 'algorithm' argument") - if flags is None: - raise TypeError("Missing 'flags' argument") - if protocol is None: - raise TypeError("Missing 'protocol' argument") - if public_key is None and 'publicKey' in kwargs: - public_key = kwargs['publicKey'] - if public_key is None: - raise TypeError("Missing 'public_key' argument") - - _setter("algorithm", algorithm) - _setter("flags", flags) - _setter("protocol", protocol) - _setter("public_key", public_key) + pulumi.set(__self__, "algorithm", algorithm) + pulumi.set(__self__, "flags", flags) + pulumi.set(__self__, "protocol", protocol) + pulumi.set(__self__, "public_key", public_key) @property @pulumi.getter @@ -1642,32 +1136,9 @@ def __init__(__self__, *, :param str name: Name of the network. :param int network_id: network ID (`int`). Default is network 0, the primary NS1 Managed DNS Network. """ - GetNetworksNetworkResult._configure( - lambda key, value: pulumi.set(__self__, key, value), - label=label, - name=name, - network_id=network_id, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - label: Optional[str] = None, - name: Optional[str] = None, - network_id: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if label is None: - raise TypeError("Missing 'label' argument") - if name is None: - raise TypeError("Missing 'name' argument") - if network_id is None and 'networkId' in kwargs: - network_id = kwargs['networkId'] - if network_id is None: - raise TypeError("Missing 'network_id' argument") - - _setter("label", label) - _setter("name", name) - _setter("network_id", network_id) + pulumi.set(__self__, "label", label) + pulumi.set(__self__, "name", name) + pulumi.set(__self__, "network_id", network_id) @property @pulumi.getter @@ -1703,30 +1174,9 @@ def __init__(__self__, *, """ :param Mapping[str, Any] meta: Map of metadata """ - GetRecordAnswerResult._configure( - lambda key, value: pulumi.set(__self__, key, value), - answer=answer, - meta=meta, - region=region, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - answer: Optional[str] = None, - meta: Optional[Mapping[str, Any]] = None, - region: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if answer is None: - raise TypeError("Missing 'answer' argument") - if meta is None: - raise TypeError("Missing 'meta' argument") - if region is None: - raise TypeError("Missing 'region' argument") - - _setter("answer", answer) - _setter("meta", meta) - _setter("region", region) + pulumi.set(__self__, "answer", answer) + pulumi.set(__self__, "meta", meta) + pulumi.set(__self__, "region", region) @property @pulumi.getter @@ -1753,30 +1203,9 @@ def __init__(__self__, *, config: Mapping[str, Any], disabled: bool, filter: str): - GetRecordFilterResult._configure( - lambda key, value: pulumi.set(__self__, key, value), - config=config, - disabled=disabled, - filter=filter, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - config: Optional[Mapping[str, Any]] = None, - disabled: Optional[bool] = None, - filter: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if config is None: - raise TypeError("Missing 'config' argument") - if disabled is None: - raise TypeError("Missing 'disabled' argument") - if filter is None: - raise TypeError("Missing 'filter' argument") - - _setter("config", config) - _setter("disabled", disabled) - _setter("filter", filter) + pulumi.set(__self__, "config", config) + pulumi.set(__self__, "disabled", disabled) + pulumi.set(__self__, "filter", filter) @property @pulumi.getter @@ -1802,25 +1231,8 @@ def __init__(__self__, *, """ :param Mapping[str, Any] meta: Map of metadata """ - GetRecordRegionResult._configure( - lambda key, value: pulumi.set(__self__, key, value), - meta=meta, - name=name, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - meta: Optional[Mapping[str, Any]] = None, - name: Optional[str] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if meta is None: - raise TypeError("Missing 'meta' argument") - if name is None: - raise TypeError("Missing 'name' argument") - - _setter("meta", meta) - _setter("name", name) + pulumi.set(__self__, "meta", meta) + pulumi.set(__self__, "name", name) @property @pulumi.getter @@ -1851,35 +1263,10 @@ def __init__(__self__, *, when the zone changes. Default `false`. :param int port: Port of the the secondary server. Default `53`. """ - GetZoneSecondaryResult._configure( - lambda key, value: pulumi.set(__self__, key, value), - ip=ip, - networks=networks, - notify=notify, - port=port, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - ip: Optional[str] = None, - networks: Optional[Sequence[int]] = None, - notify: Optional[bool] = None, - port: Optional[int] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if ip is None: - raise TypeError("Missing 'ip' argument") - if networks is None: - raise TypeError("Missing 'networks' argument") - if notify is None: - raise TypeError("Missing 'notify' argument") - if port is None: - raise TypeError("Missing 'port' argument") - - _setter("ip", ip) - _setter("networks", networks) - _setter("notify", notify) - _setter("port", port) + pulumi.set(__self__, "ip", ip) + pulumi.set(__self__, "networks", networks) + pulumi.set(__self__, "notify", notify) + pulumi.set(__self__, "port", port) @property @pulumi.getter diff --git a/sdk/python/pulumi_ns1/provider.py b/sdk/python/pulumi_ns1/provider.py index 754083a8..ebb3681f 100644 --- a/sdk/python/pulumi_ns1/provider.py +++ b/sdk/python/pulumi_ns1/provider.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['ProviderArgs', 'Provider'] @@ -31,53 +31,20 @@ def __init__(__self__, *, :param pulumi.Input[int] retry_max: Maximum retries for 50x errors (-1 to disable) :param pulumi.Input[str] user_agent: User-Agent string to use in NS1 API requests """ - ProviderArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - apikey=apikey, - enable_ddi=enable_ddi, - endpoint=endpoint, - ignore_ssl=ignore_ssl, - rate_limit_parallelism=rate_limit_parallelism, - retry_max=retry_max, - user_agent=user_agent, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - apikey: Optional[pulumi.Input[str]] = None, - enable_ddi: Optional[pulumi.Input[bool]] = None, - endpoint: Optional[pulumi.Input[str]] = None, - ignore_ssl: Optional[pulumi.Input[bool]] = None, - rate_limit_parallelism: Optional[pulumi.Input[int]] = None, - retry_max: Optional[pulumi.Input[int]] = None, - user_agent: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if enable_ddi is None and 'enableDdi' in kwargs: - enable_ddi = kwargs['enableDdi'] - if ignore_ssl is None and 'ignoreSsl' in kwargs: - ignore_ssl = kwargs['ignoreSsl'] - if rate_limit_parallelism is None and 'rateLimitParallelism' in kwargs: - rate_limit_parallelism = kwargs['rateLimitParallelism'] - if retry_max is None and 'retryMax' in kwargs: - retry_max = kwargs['retryMax'] - if user_agent is None and 'userAgent' in kwargs: - user_agent = kwargs['userAgent'] - if apikey is not None: - _setter("apikey", apikey) + pulumi.set(__self__, "apikey", apikey) if enable_ddi is not None: - _setter("enable_ddi", enable_ddi) + pulumi.set(__self__, "enable_ddi", enable_ddi) if endpoint is not None: - _setter("endpoint", endpoint) + pulumi.set(__self__, "endpoint", endpoint) if ignore_ssl is not None: - _setter("ignore_ssl", ignore_ssl) + pulumi.set(__self__, "ignore_ssl", ignore_ssl) if rate_limit_parallelism is not None: - _setter("rate_limit_parallelism", rate_limit_parallelism) + pulumi.set(__self__, "rate_limit_parallelism", rate_limit_parallelism) if retry_max is not None: - _setter("retry_max", retry_max) + pulumi.set(__self__, "retry_max", retry_max) if user_agent is not None: - _setter("user_agent", user_agent) + pulumi.set(__self__, "user_agent", user_agent) @property @pulumi.getter @@ -215,10 +182,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - ProviderArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/pulsar_job.py b/sdk/python/pulumi_ns1/pulsar_job.py index 718592d1..955e4199 100644 --- a/sdk/python/pulumi_ns1/pulsar_job.py +++ b/sdk/python/pulumi_ns1/pulsar_job.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -27,55 +27,20 @@ def __init__(__self__, *, """ The set of arguments for constructing a PulsarJob resource. """ - PulsarJobArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - app_id=app_id, - type_id=type_id, - active=active, - blend_metric_weights=blend_metric_weights, - config=config, - name=name, - shared=shared, - weights=weights, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - app_id: Optional[pulumi.Input[str]] = None, - type_id: Optional[pulumi.Input[str]] = None, - active: Optional[pulumi.Input[bool]] = None, - blend_metric_weights: Optional[pulumi.Input['PulsarJobBlendMetricWeightsArgs']] = None, - config: Optional[pulumi.Input['PulsarJobConfigArgs']] = None, - name: Optional[pulumi.Input[str]] = None, - shared: Optional[pulumi.Input[bool]] = None, - weights: Optional[pulumi.Input[Sequence[pulumi.Input['PulsarJobWeightArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if app_id is None and 'appId' in kwargs: - app_id = kwargs['appId'] - if app_id is None: - raise TypeError("Missing 'app_id' argument") - if type_id is None and 'typeId' in kwargs: - type_id = kwargs['typeId'] - if type_id is None: - raise TypeError("Missing 'type_id' argument") - if blend_metric_weights is None and 'blendMetricWeights' in kwargs: - blend_metric_weights = kwargs['blendMetricWeights'] - - _setter("app_id", app_id) - _setter("type_id", type_id) + pulumi.set(__self__, "app_id", app_id) + pulumi.set(__self__, "type_id", type_id) if active is not None: - _setter("active", active) + pulumi.set(__self__, "active", active) if blend_metric_weights is not None: - _setter("blend_metric_weights", blend_metric_weights) + pulumi.set(__self__, "blend_metric_weights", blend_metric_weights) if config is not None: - _setter("config", config) + pulumi.set(__self__, "config", config) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if shared is not None: - _setter("shared", shared) + pulumi.set(__self__, "shared", shared) if weights is not None: - _setter("weights", weights) + pulumi.set(__self__, "weights", weights) @property @pulumi.getter(name="appId") @@ -167,67 +132,28 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering PulsarJob resources. """ - _PulsarJobState._configure( - lambda key, value: pulumi.set(__self__, key, value), - active=active, - app_id=app_id, - blend_metric_weights=blend_metric_weights, - community=community, - config=config, - customer=customer, - job_id=job_id, - name=name, - shared=shared, - type_id=type_id, - weights=weights, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - active: Optional[pulumi.Input[bool]] = None, - app_id: Optional[pulumi.Input[str]] = None, - blend_metric_weights: Optional[pulumi.Input['PulsarJobBlendMetricWeightsArgs']] = None, - community: Optional[pulumi.Input[bool]] = None, - config: Optional[pulumi.Input['PulsarJobConfigArgs']] = None, - customer: Optional[pulumi.Input[int]] = None, - job_id: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - shared: Optional[pulumi.Input[bool]] = None, - type_id: Optional[pulumi.Input[str]] = None, - weights: Optional[pulumi.Input[Sequence[pulumi.Input['PulsarJobWeightArgs']]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if app_id is None and 'appId' in kwargs: - app_id = kwargs['appId'] - if blend_metric_weights is None and 'blendMetricWeights' in kwargs: - blend_metric_weights = kwargs['blendMetricWeights'] - if job_id is None and 'jobId' in kwargs: - job_id = kwargs['jobId'] - if type_id is None and 'typeId' in kwargs: - type_id = kwargs['typeId'] - if active is not None: - _setter("active", active) + pulumi.set(__self__, "active", active) if app_id is not None: - _setter("app_id", app_id) + pulumi.set(__self__, "app_id", app_id) if blend_metric_weights is not None: - _setter("blend_metric_weights", blend_metric_weights) + pulumi.set(__self__, "blend_metric_weights", blend_metric_weights) if community is not None: - _setter("community", community) + pulumi.set(__self__, "community", community) if config is not None: - _setter("config", config) + pulumi.set(__self__, "config", config) if customer is not None: - _setter("customer", customer) + pulumi.set(__self__, "customer", customer) if job_id is not None: - _setter("job_id", job_id) + pulumi.set(__self__, "job_id", job_id) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if shared is not None: - _setter("shared", shared) + pulumi.set(__self__, "shared", shared) if type_id is not None: - _setter("type_id", type_id) + pulumi.set(__self__, "type_id", type_id) if weights is not None: - _setter("weights", weights) + pulumi.set(__self__, "weights", weights) @property @pulumi.getter @@ -366,10 +292,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - PulsarJobArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, @@ -396,9 +318,7 @@ def _internal_init(__self__, if app_id is None and not opts.urn: raise TypeError("Missing required property 'app_id'") __props__.__dict__["app_id"] = app_id - blend_metric_weights = _utilities.configure(blend_metric_weights, PulsarJobBlendMetricWeightsArgs, True) __props__.__dict__["blend_metric_weights"] = blend_metric_weights - config = _utilities.configure(config, PulsarJobConfigArgs, True) __props__.__dict__["config"] = config __props__.__dict__["name"] = name __props__.__dict__["shared"] = shared diff --git a/sdk/python/pulumi_ns1/record.py b/sdk/python/pulumi_ns1/record.py index 28977582..77a67f63 100644 --- a/sdk/python/pulumi_ns1/record.py +++ b/sdk/python/pulumi_ns1/record.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -53,85 +53,34 @@ def __init__(__self__, *, * ` meta` - (Optional) meta is supported at the `record` level. Meta is documented below. """ - RecordArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - domain=domain, - type=type, - zone=zone, - answers=answers, - blocked_tags=blocked_tags, - filters=filters, - link=link, - meta=meta, - override_ttl=override_ttl, - regions=regions, - short_answers=short_answers, - tags=tags, - ttl=ttl, - use_client_subnet=use_client_subnet, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - domain: Optional[pulumi.Input[str]] = None, - type: Optional[pulumi.Input[str]] = None, - zone: Optional[pulumi.Input[str]] = None, - answers: Optional[pulumi.Input[Sequence[pulumi.Input['RecordAnswerArgs']]]] = None, - blocked_tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - filters: Optional[pulumi.Input[Sequence[pulumi.Input['RecordFilterArgs']]]] = None, - link: Optional[pulumi.Input[str]] = None, - meta: Optional[pulumi.Input[Mapping[str, Any]]] = None, - override_ttl: Optional[pulumi.Input[bool]] = None, - regions: Optional[pulumi.Input[Sequence[pulumi.Input['RecordRegionArgs']]]] = None, - short_answers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - ttl: Optional[pulumi.Input[int]] = None, - use_client_subnet: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if domain is None: - raise TypeError("Missing 'domain' argument") - if type is None: - raise TypeError("Missing 'type' argument") - if zone is None: - raise TypeError("Missing 'zone' argument") - if blocked_tags is None and 'blockedTags' in kwargs: - blocked_tags = kwargs['blockedTags'] - if override_ttl is None and 'overrideTtl' in kwargs: - override_ttl = kwargs['overrideTtl'] - if short_answers is None and 'shortAnswers' in kwargs: - short_answers = kwargs['shortAnswers'] - if use_client_subnet is None and 'useClientSubnet' in kwargs: - use_client_subnet = kwargs['useClientSubnet'] - - _setter("domain", domain) - _setter("type", type) - _setter("zone", zone) + pulumi.set(__self__, "domain", domain) + pulumi.set(__self__, "type", type) + pulumi.set(__self__, "zone", zone) if answers is not None: - _setter("answers", answers) + pulumi.set(__self__, "answers", answers) if blocked_tags is not None: - _setter("blocked_tags", blocked_tags) + pulumi.set(__self__, "blocked_tags", blocked_tags) if filters is not None: - _setter("filters", filters) + pulumi.set(__self__, "filters", filters) if link is not None: - _setter("link", link) + pulumi.set(__self__, "link", link) if meta is not None: - _setter("meta", meta) + pulumi.set(__self__, "meta", meta) if override_ttl is not None: - _setter("override_ttl", override_ttl) + pulumi.set(__self__, "override_ttl", override_ttl) if regions is not None: - _setter("regions", regions) + pulumi.set(__self__, "regions", regions) if short_answers is not None: warnings.warn("""short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""", DeprecationWarning) pulumi.log.warn("""short_answers is deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""") if short_answers is not None: - _setter("short_answers", short_answers) + pulumi.set(__self__, "short_answers", short_answers) if tags is not None: - _setter("tags", tags) + pulumi.set(__self__, "tags", tags) if ttl is not None: - _setter("ttl", ttl) + pulumi.set(__self__, "ttl", ttl) if use_client_subnet is not None: - _setter("use_client_subnet", use_client_subnet) + pulumi.set(__self__, "use_client_subnet", use_client_subnet) @property @pulumi.getter @@ -341,82 +290,37 @@ def __init__(__self__, *, :param pulumi.Input[str] zone: The zone the record belongs to. Cannot have leading or trailing dots (".") - see the example above and `FQDN formatting` below. """ - _RecordState._configure( - lambda key, value: pulumi.set(__self__, key, value), - answers=answers, - blocked_tags=blocked_tags, - domain=domain, - filters=filters, - link=link, - meta=meta, - override_ttl=override_ttl, - regions=regions, - short_answers=short_answers, - tags=tags, - ttl=ttl, - type=type, - use_client_subnet=use_client_subnet, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - answers: Optional[pulumi.Input[Sequence[pulumi.Input['RecordAnswerArgs']]]] = None, - blocked_tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - domain: Optional[pulumi.Input[str]] = None, - filters: Optional[pulumi.Input[Sequence[pulumi.Input['RecordFilterArgs']]]] = None, - link: Optional[pulumi.Input[str]] = None, - meta: Optional[pulumi.Input[Mapping[str, Any]]] = None, - override_ttl: Optional[pulumi.Input[bool]] = None, - regions: Optional[pulumi.Input[Sequence[pulumi.Input['RecordRegionArgs']]]] = None, - short_answers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - ttl: Optional[pulumi.Input[int]] = None, - type: Optional[pulumi.Input[str]] = None, - use_client_subnet: Optional[pulumi.Input[bool]] = None, - zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if blocked_tags is None and 'blockedTags' in kwargs: - blocked_tags = kwargs['blockedTags'] - if override_ttl is None and 'overrideTtl' in kwargs: - override_ttl = kwargs['overrideTtl'] - if short_answers is None and 'shortAnswers' in kwargs: - short_answers = kwargs['shortAnswers'] - if use_client_subnet is None and 'useClientSubnet' in kwargs: - use_client_subnet = kwargs['useClientSubnet'] - if answers is not None: - _setter("answers", answers) + pulumi.set(__self__, "answers", answers) if blocked_tags is not None: - _setter("blocked_tags", blocked_tags) + pulumi.set(__self__, "blocked_tags", blocked_tags) if domain is not None: - _setter("domain", domain) + pulumi.set(__self__, "domain", domain) if filters is not None: - _setter("filters", filters) + pulumi.set(__self__, "filters", filters) if link is not None: - _setter("link", link) + pulumi.set(__self__, "link", link) if meta is not None: - _setter("meta", meta) + pulumi.set(__self__, "meta", meta) if override_ttl is not None: - _setter("override_ttl", override_ttl) + pulumi.set(__self__, "override_ttl", override_ttl) if regions is not None: - _setter("regions", regions) + pulumi.set(__self__, "regions", regions) if short_answers is not None: warnings.warn("""short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""", DeprecationWarning) pulumi.log.warn("""short_answers is deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""") if short_answers is not None: - _setter("short_answers", short_answers) + pulumi.set(__self__, "short_answers", short_answers) if tags is not None: - _setter("tags", tags) + pulumi.set(__self__, "tags", tags) if ttl is not None: - _setter("ttl", ttl) + pulumi.set(__self__, "ttl", ttl) if type is not None: - _setter("type", type) + pulumi.set(__self__, "type", type) if use_client_subnet is not None: - _setter("use_client_subnet", use_client_subnet) + pulumi.set(__self__, "use_client_subnet", use_client_subnet) if zone is not None: - _setter("zone", zone) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter @@ -683,10 +587,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - RecordArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/subnet.py b/sdk/python/pulumi_ns1/subnet.py index ca761c4d..947eb204 100644 --- a/sdk/python/pulumi_ns1/subnet.py +++ b/sdk/python/pulumi_ns1/subnet.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['SubnetArgs', 'Subnet'] @@ -29,75 +29,30 @@ def __init__(__self__, *, """ The set of arguments for constructing a Subnet resource. """ - SubnetArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - children=children, - desc=desc, - dhcp_scoped=dhcp_scoped, - free_addresses=free_addresses, - name=name, - network_id=network_id, - parent_id=parent_id, - prefix=prefix, - status=status, - tags=tags, - total_addresses=total_addresses, - used_addresses=used_addresses, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - children: Optional[pulumi.Input[int]] = None, - desc: Optional[pulumi.Input[str]] = None, - dhcp_scoped: Optional[pulumi.Input[bool]] = None, - free_addresses: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - network_id: Optional[pulumi.Input[int]] = None, - parent_id: Optional[pulumi.Input[int]] = None, - prefix: Optional[pulumi.Input[str]] = None, - status: Optional[pulumi.Input[str]] = None, - tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, - total_addresses: Optional[pulumi.Input[str]] = None, - used_addresses: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if dhcp_scoped is None and 'dhcpScoped' in kwargs: - dhcp_scoped = kwargs['dhcpScoped'] - if free_addresses is None and 'freeAddresses' in kwargs: - free_addresses = kwargs['freeAddresses'] - if network_id is None and 'networkId' in kwargs: - network_id = kwargs['networkId'] - if parent_id is None and 'parentId' in kwargs: - parent_id = kwargs['parentId'] - if total_addresses is None and 'totalAddresses' in kwargs: - total_addresses = kwargs['totalAddresses'] - if used_addresses is None and 'usedAddresses' in kwargs: - used_addresses = kwargs['usedAddresses'] - if children is not None: - _setter("children", children) + pulumi.set(__self__, "children", children) if desc is not None: - _setter("desc", desc) + pulumi.set(__self__, "desc", desc) if dhcp_scoped is not None: - _setter("dhcp_scoped", dhcp_scoped) + pulumi.set(__self__, "dhcp_scoped", dhcp_scoped) if free_addresses is not None: - _setter("free_addresses", free_addresses) + pulumi.set(__self__, "free_addresses", free_addresses) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if network_id is not None: - _setter("network_id", network_id) + pulumi.set(__self__, "network_id", network_id) if parent_id is not None: - _setter("parent_id", parent_id) + pulumi.set(__self__, "parent_id", parent_id) if prefix is not None: - _setter("prefix", prefix) + pulumi.set(__self__, "prefix", prefix) if status is not None: - _setter("status", status) + pulumi.set(__self__, "status", status) if tags is not None: - _setter("tags", tags) + pulumi.set(__self__, "tags", tags) if total_addresses is not None: - _setter("total_addresses", total_addresses) + pulumi.set(__self__, "total_addresses", total_addresses) if used_addresses is not None: - _setter("used_addresses", used_addresses) + pulumi.set(__self__, "used_addresses", used_addresses) @property @pulumi.getter @@ -226,75 +181,30 @@ def __init__(__self__, *, """ Input properties used for looking up and filtering Subnet resources. """ - _SubnetState._configure( - lambda key, value: pulumi.set(__self__, key, value), - children=children, - desc=desc, - dhcp_scoped=dhcp_scoped, - free_addresses=free_addresses, - name=name, - network_id=network_id, - parent_id=parent_id, - prefix=prefix, - status=status, - tags=tags, - total_addresses=total_addresses, - used_addresses=used_addresses, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - children: Optional[pulumi.Input[int]] = None, - desc: Optional[pulumi.Input[str]] = None, - dhcp_scoped: Optional[pulumi.Input[bool]] = None, - free_addresses: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - network_id: Optional[pulumi.Input[int]] = None, - parent_id: Optional[pulumi.Input[int]] = None, - prefix: Optional[pulumi.Input[str]] = None, - status: Optional[pulumi.Input[str]] = None, - tags: Optional[pulumi.Input[Mapping[str, Any]]] = None, - total_addresses: Optional[pulumi.Input[str]] = None, - used_addresses: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if dhcp_scoped is None and 'dhcpScoped' in kwargs: - dhcp_scoped = kwargs['dhcpScoped'] - if free_addresses is None and 'freeAddresses' in kwargs: - free_addresses = kwargs['freeAddresses'] - if network_id is None and 'networkId' in kwargs: - network_id = kwargs['networkId'] - if parent_id is None and 'parentId' in kwargs: - parent_id = kwargs['parentId'] - if total_addresses is None and 'totalAddresses' in kwargs: - total_addresses = kwargs['totalAddresses'] - if used_addresses is None and 'usedAddresses' in kwargs: - used_addresses = kwargs['usedAddresses'] - if children is not None: - _setter("children", children) + pulumi.set(__self__, "children", children) if desc is not None: - _setter("desc", desc) + pulumi.set(__self__, "desc", desc) if dhcp_scoped is not None: - _setter("dhcp_scoped", dhcp_scoped) + pulumi.set(__self__, "dhcp_scoped", dhcp_scoped) if free_addresses is not None: - _setter("free_addresses", free_addresses) + pulumi.set(__self__, "free_addresses", free_addresses) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if network_id is not None: - _setter("network_id", network_id) + pulumi.set(__self__, "network_id", network_id) if parent_id is not None: - _setter("parent_id", parent_id) + pulumi.set(__self__, "parent_id", parent_id) if prefix is not None: - _setter("prefix", prefix) + pulumi.set(__self__, "prefix", prefix) if status is not None: - _setter("status", status) + pulumi.set(__self__, "status", status) if tags is not None: - _setter("tags", tags) + pulumi.set(__self__, "tags", tags) if total_addresses is not None: - _setter("total_addresses", total_addresses) + pulumi.set(__self__, "total_addresses", total_addresses) if used_addresses is not None: - _setter("used_addresses", used_addresses) + pulumi.set(__self__, "used_addresses", used_addresses) @property @pulumi.getter @@ -446,10 +356,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - SubnetArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/team.py b/sdk/python/pulumi_ns1/team.py index 042f974c..1f01969e 100644 --- a/sdk/python/pulumi_ns1/team.py +++ b/sdk/python/pulumi_ns1/team.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -84,196 +84,69 @@ def __init__(__self__, *, Only relevant for the DDI product. :param pulumi.Input[bool] security_manage_global2fa: Whether the team can manage global two factor authentication. """ - TeamArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - account_manage_account_settings=account_manage_account_settings, - account_manage_apikeys=account_manage_apikeys, - account_manage_ip_whitelist=account_manage_ip_whitelist, - account_manage_payment_methods=account_manage_payment_methods, - account_manage_plan=account_manage_plan, - account_manage_teams=account_manage_teams, - account_manage_users=account_manage_users, - account_view_activity_log=account_view_activity_log, - account_view_invoices=account_view_invoices, - data_manage_datafeeds=data_manage_datafeeds, - data_manage_datasources=data_manage_datasources, - data_push_to_datafeeds=data_push_to_datafeeds, - dhcp_manage_dhcp=dhcp_manage_dhcp, - dhcp_view_dhcp=dhcp_view_dhcp, - dns_manage_zones=dns_manage_zones, - dns_records_allows=dns_records_allows, - dns_records_denies=dns_records_denies, - dns_view_zones=dns_view_zones, - dns_zones_allow_by_default=dns_zones_allow_by_default, - dns_zones_allows=dns_zones_allows, - dns_zones_denies=dns_zones_denies, - ip_whitelists=ip_whitelists, - ipam_manage_ipam=ipam_manage_ipam, - ipam_view_ipam=ipam_view_ipam, - monitoring_manage_jobs=monitoring_manage_jobs, - monitoring_manage_lists=monitoring_manage_lists, - monitoring_view_jobs=monitoring_view_jobs, - name=name, - security_manage_active_directory=security_manage_active_directory, - security_manage_global2fa=security_manage_global2fa, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - account_manage_account_settings: Optional[pulumi.Input[bool]] = None, - account_manage_apikeys: Optional[pulumi.Input[bool]] = None, - account_manage_ip_whitelist: Optional[pulumi.Input[bool]] = None, - account_manage_payment_methods: Optional[pulumi.Input[bool]] = None, - account_manage_plan: Optional[pulumi.Input[bool]] = None, - account_manage_teams: Optional[pulumi.Input[bool]] = None, - account_manage_users: Optional[pulumi.Input[bool]] = None, - account_view_activity_log: Optional[pulumi.Input[bool]] = None, - account_view_invoices: Optional[pulumi.Input[bool]] = None, - data_manage_datafeeds: Optional[pulumi.Input[bool]] = None, - data_manage_datasources: Optional[pulumi.Input[bool]] = None, - data_push_to_datafeeds: Optional[pulumi.Input[bool]] = None, - dhcp_manage_dhcp: Optional[pulumi.Input[bool]] = None, - dhcp_view_dhcp: Optional[pulumi.Input[bool]] = None, - dns_manage_zones: Optional[pulumi.Input[bool]] = None, - dns_records_allows: Optional[pulumi.Input[Sequence[pulumi.Input['TeamDnsRecordsAllowArgs']]]] = None, - dns_records_denies: Optional[pulumi.Input[Sequence[pulumi.Input['TeamDnsRecordsDenyArgs']]]] = None, - dns_view_zones: Optional[pulumi.Input[bool]] = None, - dns_zones_allow_by_default: Optional[pulumi.Input[bool]] = None, - dns_zones_allows: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - dns_zones_denies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - ip_whitelists: Optional[pulumi.Input[Sequence[pulumi.Input['TeamIpWhitelistArgs']]]] = None, - ipam_manage_ipam: Optional[pulumi.Input[bool]] = None, - ipam_view_ipam: Optional[pulumi.Input[bool]] = None, - monitoring_manage_jobs: Optional[pulumi.Input[bool]] = None, - monitoring_manage_lists: Optional[pulumi.Input[bool]] = None, - monitoring_view_jobs: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - security_manage_active_directory: Optional[pulumi.Input[bool]] = None, - security_manage_global2fa: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if account_manage_account_settings is None and 'accountManageAccountSettings' in kwargs: - account_manage_account_settings = kwargs['accountManageAccountSettings'] - if account_manage_apikeys is None and 'accountManageApikeys' in kwargs: - account_manage_apikeys = kwargs['accountManageApikeys'] - if account_manage_ip_whitelist is None and 'accountManageIpWhitelist' in kwargs: - account_manage_ip_whitelist = kwargs['accountManageIpWhitelist'] - if account_manage_payment_methods is None and 'accountManagePaymentMethods' in kwargs: - account_manage_payment_methods = kwargs['accountManagePaymentMethods'] - if account_manage_plan is None and 'accountManagePlan' in kwargs: - account_manage_plan = kwargs['accountManagePlan'] - if account_manage_teams is None and 'accountManageTeams' in kwargs: - account_manage_teams = kwargs['accountManageTeams'] - if account_manage_users is None and 'accountManageUsers' in kwargs: - account_manage_users = kwargs['accountManageUsers'] - if account_view_activity_log is None and 'accountViewActivityLog' in kwargs: - account_view_activity_log = kwargs['accountViewActivityLog'] - if account_view_invoices is None and 'accountViewInvoices' in kwargs: - account_view_invoices = kwargs['accountViewInvoices'] - if data_manage_datafeeds is None and 'dataManageDatafeeds' in kwargs: - data_manage_datafeeds = kwargs['dataManageDatafeeds'] - if data_manage_datasources is None and 'dataManageDatasources' in kwargs: - data_manage_datasources = kwargs['dataManageDatasources'] - if data_push_to_datafeeds is None and 'dataPushToDatafeeds' in kwargs: - data_push_to_datafeeds = kwargs['dataPushToDatafeeds'] - if dhcp_manage_dhcp is None and 'dhcpManageDhcp' in kwargs: - dhcp_manage_dhcp = kwargs['dhcpManageDhcp'] - if dhcp_view_dhcp is None and 'dhcpViewDhcp' in kwargs: - dhcp_view_dhcp = kwargs['dhcpViewDhcp'] - if dns_manage_zones is None and 'dnsManageZones' in kwargs: - dns_manage_zones = kwargs['dnsManageZones'] - if dns_records_allows is None and 'dnsRecordsAllows' in kwargs: - dns_records_allows = kwargs['dnsRecordsAllows'] - if dns_records_denies is None and 'dnsRecordsDenies' in kwargs: - dns_records_denies = kwargs['dnsRecordsDenies'] - if dns_view_zones is None and 'dnsViewZones' in kwargs: - dns_view_zones = kwargs['dnsViewZones'] - if dns_zones_allow_by_default is None and 'dnsZonesAllowByDefault' in kwargs: - dns_zones_allow_by_default = kwargs['dnsZonesAllowByDefault'] - if dns_zones_allows is None and 'dnsZonesAllows' in kwargs: - dns_zones_allows = kwargs['dnsZonesAllows'] - if dns_zones_denies is None and 'dnsZonesDenies' in kwargs: - dns_zones_denies = kwargs['dnsZonesDenies'] - if ip_whitelists is None and 'ipWhitelists' in kwargs: - ip_whitelists = kwargs['ipWhitelists'] - if ipam_manage_ipam is None and 'ipamManageIpam' in kwargs: - ipam_manage_ipam = kwargs['ipamManageIpam'] - if ipam_view_ipam is None and 'ipamViewIpam' in kwargs: - ipam_view_ipam = kwargs['ipamViewIpam'] - if monitoring_manage_jobs is None and 'monitoringManageJobs' in kwargs: - monitoring_manage_jobs = kwargs['monitoringManageJobs'] - if monitoring_manage_lists is None and 'monitoringManageLists' in kwargs: - monitoring_manage_lists = kwargs['monitoringManageLists'] - if monitoring_view_jobs is None and 'monitoringViewJobs' in kwargs: - monitoring_view_jobs = kwargs['monitoringViewJobs'] - if security_manage_active_directory is None and 'securityManageActiveDirectory' in kwargs: - security_manage_active_directory = kwargs['securityManageActiveDirectory'] - if security_manage_global2fa is None and 'securityManageGlobal2fa' in kwargs: - security_manage_global2fa = kwargs['securityManageGlobal2fa'] - if account_manage_account_settings is not None: - _setter("account_manage_account_settings", account_manage_account_settings) + pulumi.set(__self__, "account_manage_account_settings", account_manage_account_settings) if account_manage_apikeys is not None: - _setter("account_manage_apikeys", account_manage_apikeys) + pulumi.set(__self__, "account_manage_apikeys", account_manage_apikeys) if account_manage_ip_whitelist is not None: - _setter("account_manage_ip_whitelist", account_manage_ip_whitelist) + pulumi.set(__self__, "account_manage_ip_whitelist", account_manage_ip_whitelist) if account_manage_payment_methods is not None: - _setter("account_manage_payment_methods", account_manage_payment_methods) + pulumi.set(__self__, "account_manage_payment_methods", account_manage_payment_methods) if account_manage_plan is not None: warnings.warn("""obsolete, should no longer be used""", DeprecationWarning) pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""") if account_manage_plan is not None: - _setter("account_manage_plan", account_manage_plan) + pulumi.set(__self__, "account_manage_plan", account_manage_plan) if account_manage_teams is not None: - _setter("account_manage_teams", account_manage_teams) + pulumi.set(__self__, "account_manage_teams", account_manage_teams) if account_manage_users is not None: - _setter("account_manage_users", account_manage_users) + pulumi.set(__self__, "account_manage_users", account_manage_users) if account_view_activity_log is not None: - _setter("account_view_activity_log", account_view_activity_log) + pulumi.set(__self__, "account_view_activity_log", account_view_activity_log) if account_view_invoices is not None: - _setter("account_view_invoices", account_view_invoices) + pulumi.set(__self__, "account_view_invoices", account_view_invoices) if data_manage_datafeeds is not None: - _setter("data_manage_datafeeds", data_manage_datafeeds) + pulumi.set(__self__, "data_manage_datafeeds", data_manage_datafeeds) if data_manage_datasources is not None: - _setter("data_manage_datasources", data_manage_datasources) + pulumi.set(__self__, "data_manage_datasources", data_manage_datasources) if data_push_to_datafeeds is not None: - _setter("data_push_to_datafeeds", data_push_to_datafeeds) + pulumi.set(__self__, "data_push_to_datafeeds", data_push_to_datafeeds) if dhcp_manage_dhcp is not None: - _setter("dhcp_manage_dhcp", dhcp_manage_dhcp) + pulumi.set(__self__, "dhcp_manage_dhcp", dhcp_manage_dhcp) if dhcp_view_dhcp is not None: - _setter("dhcp_view_dhcp", dhcp_view_dhcp) + pulumi.set(__self__, "dhcp_view_dhcp", dhcp_view_dhcp) if dns_manage_zones is not None: - _setter("dns_manage_zones", dns_manage_zones) + pulumi.set(__self__, "dns_manage_zones", dns_manage_zones) if dns_records_allows is not None: - _setter("dns_records_allows", dns_records_allows) + pulumi.set(__self__, "dns_records_allows", dns_records_allows) if dns_records_denies is not None: - _setter("dns_records_denies", dns_records_denies) + pulumi.set(__self__, "dns_records_denies", dns_records_denies) if dns_view_zones is not None: - _setter("dns_view_zones", dns_view_zones) + pulumi.set(__self__, "dns_view_zones", dns_view_zones) if dns_zones_allow_by_default is not None: - _setter("dns_zones_allow_by_default", dns_zones_allow_by_default) + pulumi.set(__self__, "dns_zones_allow_by_default", dns_zones_allow_by_default) if dns_zones_allows is not None: - _setter("dns_zones_allows", dns_zones_allows) + pulumi.set(__self__, "dns_zones_allows", dns_zones_allows) if dns_zones_denies is not None: - _setter("dns_zones_denies", dns_zones_denies) + pulumi.set(__self__, "dns_zones_denies", dns_zones_denies) if ip_whitelists is not None: - _setter("ip_whitelists", ip_whitelists) + pulumi.set(__self__, "ip_whitelists", ip_whitelists) if ipam_manage_ipam is not None: - _setter("ipam_manage_ipam", ipam_manage_ipam) + pulumi.set(__self__, "ipam_manage_ipam", ipam_manage_ipam) if ipam_view_ipam is not None: - _setter("ipam_view_ipam", ipam_view_ipam) + pulumi.set(__self__, "ipam_view_ipam", ipam_view_ipam) if monitoring_manage_jobs is not None: - _setter("monitoring_manage_jobs", monitoring_manage_jobs) + pulumi.set(__self__, "monitoring_manage_jobs", monitoring_manage_jobs) if monitoring_manage_lists is not None: - _setter("monitoring_manage_lists", monitoring_manage_lists) + pulumi.set(__self__, "monitoring_manage_lists", monitoring_manage_lists) if monitoring_view_jobs is not None: - _setter("monitoring_view_jobs", monitoring_view_jobs) + pulumi.set(__self__, "monitoring_view_jobs", monitoring_view_jobs) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if security_manage_active_directory is not None: - _setter("security_manage_active_directory", security_manage_active_directory) + pulumi.set(__self__, "security_manage_active_directory", security_manage_active_directory) if security_manage_global2fa is not None: - _setter("security_manage_global2fa", security_manage_global2fa) + pulumi.set(__self__, "security_manage_global2fa", security_manage_global2fa) @property @pulumi.getter(name="accountManageAccountSettings") @@ -715,196 +588,69 @@ def __init__(__self__, *, Only relevant for the DDI product. :param pulumi.Input[bool] security_manage_global2fa: Whether the team can manage global two factor authentication. """ - _TeamState._configure( - lambda key, value: pulumi.set(__self__, key, value), - account_manage_account_settings=account_manage_account_settings, - account_manage_apikeys=account_manage_apikeys, - account_manage_ip_whitelist=account_manage_ip_whitelist, - account_manage_payment_methods=account_manage_payment_methods, - account_manage_plan=account_manage_plan, - account_manage_teams=account_manage_teams, - account_manage_users=account_manage_users, - account_view_activity_log=account_view_activity_log, - account_view_invoices=account_view_invoices, - data_manage_datafeeds=data_manage_datafeeds, - data_manage_datasources=data_manage_datasources, - data_push_to_datafeeds=data_push_to_datafeeds, - dhcp_manage_dhcp=dhcp_manage_dhcp, - dhcp_view_dhcp=dhcp_view_dhcp, - dns_manage_zones=dns_manage_zones, - dns_records_allows=dns_records_allows, - dns_records_denies=dns_records_denies, - dns_view_zones=dns_view_zones, - dns_zones_allow_by_default=dns_zones_allow_by_default, - dns_zones_allows=dns_zones_allows, - dns_zones_denies=dns_zones_denies, - ip_whitelists=ip_whitelists, - ipam_manage_ipam=ipam_manage_ipam, - ipam_view_ipam=ipam_view_ipam, - monitoring_manage_jobs=monitoring_manage_jobs, - monitoring_manage_lists=monitoring_manage_lists, - monitoring_view_jobs=monitoring_view_jobs, - name=name, - security_manage_active_directory=security_manage_active_directory, - security_manage_global2fa=security_manage_global2fa, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - account_manage_account_settings: Optional[pulumi.Input[bool]] = None, - account_manage_apikeys: Optional[pulumi.Input[bool]] = None, - account_manage_ip_whitelist: Optional[pulumi.Input[bool]] = None, - account_manage_payment_methods: Optional[pulumi.Input[bool]] = None, - account_manage_plan: Optional[pulumi.Input[bool]] = None, - account_manage_teams: Optional[pulumi.Input[bool]] = None, - account_manage_users: Optional[pulumi.Input[bool]] = None, - account_view_activity_log: Optional[pulumi.Input[bool]] = None, - account_view_invoices: Optional[pulumi.Input[bool]] = None, - data_manage_datafeeds: Optional[pulumi.Input[bool]] = None, - data_manage_datasources: Optional[pulumi.Input[bool]] = None, - data_push_to_datafeeds: Optional[pulumi.Input[bool]] = None, - dhcp_manage_dhcp: Optional[pulumi.Input[bool]] = None, - dhcp_view_dhcp: Optional[pulumi.Input[bool]] = None, - dns_manage_zones: Optional[pulumi.Input[bool]] = None, - dns_records_allows: Optional[pulumi.Input[Sequence[pulumi.Input['TeamDnsRecordsAllowArgs']]]] = None, - dns_records_denies: Optional[pulumi.Input[Sequence[pulumi.Input['TeamDnsRecordsDenyArgs']]]] = None, - dns_view_zones: Optional[pulumi.Input[bool]] = None, - dns_zones_allow_by_default: Optional[pulumi.Input[bool]] = None, - dns_zones_allows: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - dns_zones_denies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - ip_whitelists: Optional[pulumi.Input[Sequence[pulumi.Input['TeamIpWhitelistArgs']]]] = None, - ipam_manage_ipam: Optional[pulumi.Input[bool]] = None, - ipam_view_ipam: Optional[pulumi.Input[bool]] = None, - monitoring_manage_jobs: Optional[pulumi.Input[bool]] = None, - monitoring_manage_lists: Optional[pulumi.Input[bool]] = None, - monitoring_view_jobs: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - security_manage_active_directory: Optional[pulumi.Input[bool]] = None, - security_manage_global2fa: Optional[pulumi.Input[bool]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if account_manage_account_settings is None and 'accountManageAccountSettings' in kwargs: - account_manage_account_settings = kwargs['accountManageAccountSettings'] - if account_manage_apikeys is None and 'accountManageApikeys' in kwargs: - account_manage_apikeys = kwargs['accountManageApikeys'] - if account_manage_ip_whitelist is None and 'accountManageIpWhitelist' in kwargs: - account_manage_ip_whitelist = kwargs['accountManageIpWhitelist'] - if account_manage_payment_methods is None and 'accountManagePaymentMethods' in kwargs: - account_manage_payment_methods = kwargs['accountManagePaymentMethods'] - if account_manage_plan is None and 'accountManagePlan' in kwargs: - account_manage_plan = kwargs['accountManagePlan'] - if account_manage_teams is None and 'accountManageTeams' in kwargs: - account_manage_teams = kwargs['accountManageTeams'] - if account_manage_users is None and 'accountManageUsers' in kwargs: - account_manage_users = kwargs['accountManageUsers'] - if account_view_activity_log is None and 'accountViewActivityLog' in kwargs: - account_view_activity_log = kwargs['accountViewActivityLog'] - if account_view_invoices is None and 'accountViewInvoices' in kwargs: - account_view_invoices = kwargs['accountViewInvoices'] - if data_manage_datafeeds is None and 'dataManageDatafeeds' in kwargs: - data_manage_datafeeds = kwargs['dataManageDatafeeds'] - if data_manage_datasources is None and 'dataManageDatasources' in kwargs: - data_manage_datasources = kwargs['dataManageDatasources'] - if data_push_to_datafeeds is None and 'dataPushToDatafeeds' in kwargs: - data_push_to_datafeeds = kwargs['dataPushToDatafeeds'] - if dhcp_manage_dhcp is None and 'dhcpManageDhcp' in kwargs: - dhcp_manage_dhcp = kwargs['dhcpManageDhcp'] - if dhcp_view_dhcp is None and 'dhcpViewDhcp' in kwargs: - dhcp_view_dhcp = kwargs['dhcpViewDhcp'] - if dns_manage_zones is None and 'dnsManageZones' in kwargs: - dns_manage_zones = kwargs['dnsManageZones'] - if dns_records_allows is None and 'dnsRecordsAllows' in kwargs: - dns_records_allows = kwargs['dnsRecordsAllows'] - if dns_records_denies is None and 'dnsRecordsDenies' in kwargs: - dns_records_denies = kwargs['dnsRecordsDenies'] - if dns_view_zones is None and 'dnsViewZones' in kwargs: - dns_view_zones = kwargs['dnsViewZones'] - if dns_zones_allow_by_default is None and 'dnsZonesAllowByDefault' in kwargs: - dns_zones_allow_by_default = kwargs['dnsZonesAllowByDefault'] - if dns_zones_allows is None and 'dnsZonesAllows' in kwargs: - dns_zones_allows = kwargs['dnsZonesAllows'] - if dns_zones_denies is None and 'dnsZonesDenies' in kwargs: - dns_zones_denies = kwargs['dnsZonesDenies'] - if ip_whitelists is None and 'ipWhitelists' in kwargs: - ip_whitelists = kwargs['ipWhitelists'] - if ipam_manage_ipam is None and 'ipamManageIpam' in kwargs: - ipam_manage_ipam = kwargs['ipamManageIpam'] - if ipam_view_ipam is None and 'ipamViewIpam' in kwargs: - ipam_view_ipam = kwargs['ipamViewIpam'] - if monitoring_manage_jobs is None and 'monitoringManageJobs' in kwargs: - monitoring_manage_jobs = kwargs['monitoringManageJobs'] - if monitoring_manage_lists is None and 'monitoringManageLists' in kwargs: - monitoring_manage_lists = kwargs['monitoringManageLists'] - if monitoring_view_jobs is None and 'monitoringViewJobs' in kwargs: - monitoring_view_jobs = kwargs['monitoringViewJobs'] - if security_manage_active_directory is None and 'securityManageActiveDirectory' in kwargs: - security_manage_active_directory = kwargs['securityManageActiveDirectory'] - if security_manage_global2fa is None and 'securityManageGlobal2fa' in kwargs: - security_manage_global2fa = kwargs['securityManageGlobal2fa'] - if account_manage_account_settings is not None: - _setter("account_manage_account_settings", account_manage_account_settings) + pulumi.set(__self__, "account_manage_account_settings", account_manage_account_settings) if account_manage_apikeys is not None: - _setter("account_manage_apikeys", account_manage_apikeys) + pulumi.set(__self__, "account_manage_apikeys", account_manage_apikeys) if account_manage_ip_whitelist is not None: - _setter("account_manage_ip_whitelist", account_manage_ip_whitelist) + pulumi.set(__self__, "account_manage_ip_whitelist", account_manage_ip_whitelist) if account_manage_payment_methods is not None: - _setter("account_manage_payment_methods", account_manage_payment_methods) + pulumi.set(__self__, "account_manage_payment_methods", account_manage_payment_methods) if account_manage_plan is not None: warnings.warn("""obsolete, should no longer be used""", DeprecationWarning) pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""") if account_manage_plan is not None: - _setter("account_manage_plan", account_manage_plan) + pulumi.set(__self__, "account_manage_plan", account_manage_plan) if account_manage_teams is not None: - _setter("account_manage_teams", account_manage_teams) + pulumi.set(__self__, "account_manage_teams", account_manage_teams) if account_manage_users is not None: - _setter("account_manage_users", account_manage_users) + pulumi.set(__self__, "account_manage_users", account_manage_users) if account_view_activity_log is not None: - _setter("account_view_activity_log", account_view_activity_log) + pulumi.set(__self__, "account_view_activity_log", account_view_activity_log) if account_view_invoices is not None: - _setter("account_view_invoices", account_view_invoices) + pulumi.set(__self__, "account_view_invoices", account_view_invoices) if data_manage_datafeeds is not None: - _setter("data_manage_datafeeds", data_manage_datafeeds) + pulumi.set(__self__, "data_manage_datafeeds", data_manage_datafeeds) if data_manage_datasources is not None: - _setter("data_manage_datasources", data_manage_datasources) + pulumi.set(__self__, "data_manage_datasources", data_manage_datasources) if data_push_to_datafeeds is not None: - _setter("data_push_to_datafeeds", data_push_to_datafeeds) + pulumi.set(__self__, "data_push_to_datafeeds", data_push_to_datafeeds) if dhcp_manage_dhcp is not None: - _setter("dhcp_manage_dhcp", dhcp_manage_dhcp) + pulumi.set(__self__, "dhcp_manage_dhcp", dhcp_manage_dhcp) if dhcp_view_dhcp is not None: - _setter("dhcp_view_dhcp", dhcp_view_dhcp) + pulumi.set(__self__, "dhcp_view_dhcp", dhcp_view_dhcp) if dns_manage_zones is not None: - _setter("dns_manage_zones", dns_manage_zones) + pulumi.set(__self__, "dns_manage_zones", dns_manage_zones) if dns_records_allows is not None: - _setter("dns_records_allows", dns_records_allows) + pulumi.set(__self__, "dns_records_allows", dns_records_allows) if dns_records_denies is not None: - _setter("dns_records_denies", dns_records_denies) + pulumi.set(__self__, "dns_records_denies", dns_records_denies) if dns_view_zones is not None: - _setter("dns_view_zones", dns_view_zones) + pulumi.set(__self__, "dns_view_zones", dns_view_zones) if dns_zones_allow_by_default is not None: - _setter("dns_zones_allow_by_default", dns_zones_allow_by_default) + pulumi.set(__self__, "dns_zones_allow_by_default", dns_zones_allow_by_default) if dns_zones_allows is not None: - _setter("dns_zones_allows", dns_zones_allows) + pulumi.set(__self__, "dns_zones_allows", dns_zones_allows) if dns_zones_denies is not None: - _setter("dns_zones_denies", dns_zones_denies) + pulumi.set(__self__, "dns_zones_denies", dns_zones_denies) if ip_whitelists is not None: - _setter("ip_whitelists", ip_whitelists) + pulumi.set(__self__, "ip_whitelists", ip_whitelists) if ipam_manage_ipam is not None: - _setter("ipam_manage_ipam", ipam_manage_ipam) + pulumi.set(__self__, "ipam_manage_ipam", ipam_manage_ipam) if ipam_view_ipam is not None: - _setter("ipam_view_ipam", ipam_view_ipam) + pulumi.set(__self__, "ipam_view_ipam", ipam_view_ipam) if monitoring_manage_jobs is not None: - _setter("monitoring_manage_jobs", monitoring_manage_jobs) + pulumi.set(__self__, "monitoring_manage_jobs", monitoring_manage_jobs) if monitoring_manage_lists is not None: - _setter("monitoring_manage_lists", monitoring_manage_lists) + pulumi.set(__self__, "monitoring_manage_lists", monitoring_manage_lists) if monitoring_view_jobs is not None: - _setter("monitoring_view_jobs", monitoring_view_jobs) + pulumi.set(__self__, "monitoring_view_jobs", monitoring_view_jobs) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if security_manage_active_directory is not None: - _setter("security_manage_active_directory", security_manage_active_directory) + pulumi.set(__self__, "security_manage_active_directory", security_manage_active_directory) if security_manage_global2fa is not None: - _setter("security_manage_global2fa", security_manage_global2fa) + pulumi.set(__self__, "security_manage_global2fa", security_manage_global2fa) @property @pulumi.getter(name="accountManageAccountSettings") @@ -1473,10 +1219,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - TeamArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/tsigkey.py b/sdk/python/pulumi_ns1/tsigkey.py index 6483698a..2aa0c592 100644 --- a/sdk/python/pulumi_ns1/tsigkey.py +++ b/sdk/python/pulumi_ns1/tsigkey.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['TsigkeyArgs', 'Tsigkey'] @@ -23,29 +23,10 @@ def __init__(__self__, *, :param pulumi.Input[str] secret: The key's secret to be hashed. :param pulumi.Input[str] name: The free form name of the tsigkey. """ - TsigkeyArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - algorithm=algorithm, - secret=secret, - name=name, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - algorithm: Optional[pulumi.Input[str]] = None, - secret: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if algorithm is None: - raise TypeError("Missing 'algorithm' argument") - if secret is None: - raise TypeError("Missing 'secret' argument") - - _setter("algorithm", algorithm) - _setter("secret", secret) + pulumi.set(__self__, "algorithm", algorithm) + pulumi.set(__self__, "secret", secret) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) @property @pulumi.getter @@ -96,27 +77,12 @@ def __init__(__self__, *, :param pulumi.Input[str] name: The free form name of the tsigkey. :param pulumi.Input[str] secret: The key's secret to be hashed. """ - _TsigkeyState._configure( - lambda key, value: pulumi.set(__self__, key, value), - algorithm=algorithm, - name=name, - secret=secret, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - algorithm: Optional[pulumi.Input[str]] = None, - name: Optional[pulumi.Input[str]] = None, - secret: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if algorithm is not None: - _setter("algorithm", algorithm) + pulumi.set(__self__, "algorithm", algorithm) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if secret is not None: - _setter("secret", secret) + pulumi.set(__self__, "secret", secret) @property @pulumi.getter @@ -232,10 +198,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - TsigkeyArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/user.py b/sdk/python/pulumi_ns1/user.py index d80a4fc6..5ef0e21b 100644 --- a/sdk/python/pulumi_ns1/user.py +++ b/sdk/python/pulumi_ns1/user.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -90,220 +90,77 @@ def __init__(__self__, *, :param pulumi.Input[bool] security_manage_global2fa: Whether the user can manage global two factor authentication. :param pulumi.Input[Sequence[pulumi.Input[str]]] teams: The teams that the user belongs to. """ - UserArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - email=email, - username=username, - account_manage_account_settings=account_manage_account_settings, - account_manage_apikeys=account_manage_apikeys, - account_manage_ip_whitelist=account_manage_ip_whitelist, - account_manage_payment_methods=account_manage_payment_methods, - account_manage_plan=account_manage_plan, - account_manage_teams=account_manage_teams, - account_manage_users=account_manage_users, - account_view_activity_log=account_view_activity_log, - account_view_invoices=account_view_invoices, - data_manage_datafeeds=data_manage_datafeeds, - data_manage_datasources=data_manage_datasources, - data_push_to_datafeeds=data_push_to_datafeeds, - dhcp_manage_dhcp=dhcp_manage_dhcp, - dhcp_view_dhcp=dhcp_view_dhcp, - dns_manage_zones=dns_manage_zones, - dns_records_allows=dns_records_allows, - dns_records_denies=dns_records_denies, - dns_view_zones=dns_view_zones, - dns_zones_allow_by_default=dns_zones_allow_by_default, - dns_zones_allows=dns_zones_allows, - dns_zones_denies=dns_zones_denies, - ip_whitelist_strict=ip_whitelist_strict, - ip_whitelists=ip_whitelists, - ipam_manage_ipam=ipam_manage_ipam, - ipam_view_ipam=ipam_view_ipam, - monitoring_manage_jobs=monitoring_manage_jobs, - monitoring_manage_lists=monitoring_manage_lists, - monitoring_view_jobs=monitoring_view_jobs, - name=name, - notify=notify, - security_manage_active_directory=security_manage_active_directory, - security_manage_global2fa=security_manage_global2fa, - teams=teams, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - email: Optional[pulumi.Input[str]] = None, - username: Optional[pulumi.Input[str]] = None, - account_manage_account_settings: Optional[pulumi.Input[bool]] = None, - account_manage_apikeys: Optional[pulumi.Input[bool]] = None, - account_manage_ip_whitelist: Optional[pulumi.Input[bool]] = None, - account_manage_payment_methods: Optional[pulumi.Input[bool]] = None, - account_manage_plan: Optional[pulumi.Input[bool]] = None, - account_manage_teams: Optional[pulumi.Input[bool]] = None, - account_manage_users: Optional[pulumi.Input[bool]] = None, - account_view_activity_log: Optional[pulumi.Input[bool]] = None, - account_view_invoices: Optional[pulumi.Input[bool]] = None, - data_manage_datafeeds: Optional[pulumi.Input[bool]] = None, - data_manage_datasources: Optional[pulumi.Input[bool]] = None, - data_push_to_datafeeds: Optional[pulumi.Input[bool]] = None, - dhcp_manage_dhcp: Optional[pulumi.Input[bool]] = None, - dhcp_view_dhcp: Optional[pulumi.Input[bool]] = None, - dns_manage_zones: Optional[pulumi.Input[bool]] = None, - dns_records_allows: Optional[pulumi.Input[Sequence[pulumi.Input['UserDnsRecordsAllowArgs']]]] = None, - dns_records_denies: Optional[pulumi.Input[Sequence[pulumi.Input['UserDnsRecordsDenyArgs']]]] = None, - dns_view_zones: Optional[pulumi.Input[bool]] = None, - dns_zones_allow_by_default: Optional[pulumi.Input[bool]] = None, - dns_zones_allows: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - dns_zones_denies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - ip_whitelist_strict: Optional[pulumi.Input[bool]] = None, - ip_whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - ipam_manage_ipam: Optional[pulumi.Input[bool]] = None, - ipam_view_ipam: Optional[pulumi.Input[bool]] = None, - monitoring_manage_jobs: Optional[pulumi.Input[bool]] = None, - monitoring_manage_lists: Optional[pulumi.Input[bool]] = None, - monitoring_view_jobs: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - notify: Optional[pulumi.Input[Mapping[str, Any]]] = None, - security_manage_active_directory: Optional[pulumi.Input[bool]] = None, - security_manage_global2fa: Optional[pulumi.Input[bool]] = None, - teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if email is None: - raise TypeError("Missing 'email' argument") - if username is None: - raise TypeError("Missing 'username' argument") - if account_manage_account_settings is None and 'accountManageAccountSettings' in kwargs: - account_manage_account_settings = kwargs['accountManageAccountSettings'] - if account_manage_apikeys is None and 'accountManageApikeys' in kwargs: - account_manage_apikeys = kwargs['accountManageApikeys'] - if account_manage_ip_whitelist is None and 'accountManageIpWhitelist' in kwargs: - account_manage_ip_whitelist = kwargs['accountManageIpWhitelist'] - if account_manage_payment_methods is None and 'accountManagePaymentMethods' in kwargs: - account_manage_payment_methods = kwargs['accountManagePaymentMethods'] - if account_manage_plan is None and 'accountManagePlan' in kwargs: - account_manage_plan = kwargs['accountManagePlan'] - if account_manage_teams is None and 'accountManageTeams' in kwargs: - account_manage_teams = kwargs['accountManageTeams'] - if account_manage_users is None and 'accountManageUsers' in kwargs: - account_manage_users = kwargs['accountManageUsers'] - if account_view_activity_log is None and 'accountViewActivityLog' in kwargs: - account_view_activity_log = kwargs['accountViewActivityLog'] - if account_view_invoices is None and 'accountViewInvoices' in kwargs: - account_view_invoices = kwargs['accountViewInvoices'] - if data_manage_datafeeds is None and 'dataManageDatafeeds' in kwargs: - data_manage_datafeeds = kwargs['dataManageDatafeeds'] - if data_manage_datasources is None and 'dataManageDatasources' in kwargs: - data_manage_datasources = kwargs['dataManageDatasources'] - if data_push_to_datafeeds is None and 'dataPushToDatafeeds' in kwargs: - data_push_to_datafeeds = kwargs['dataPushToDatafeeds'] - if dhcp_manage_dhcp is None and 'dhcpManageDhcp' in kwargs: - dhcp_manage_dhcp = kwargs['dhcpManageDhcp'] - if dhcp_view_dhcp is None and 'dhcpViewDhcp' in kwargs: - dhcp_view_dhcp = kwargs['dhcpViewDhcp'] - if dns_manage_zones is None and 'dnsManageZones' in kwargs: - dns_manage_zones = kwargs['dnsManageZones'] - if dns_records_allows is None and 'dnsRecordsAllows' in kwargs: - dns_records_allows = kwargs['dnsRecordsAllows'] - if dns_records_denies is None and 'dnsRecordsDenies' in kwargs: - dns_records_denies = kwargs['dnsRecordsDenies'] - if dns_view_zones is None and 'dnsViewZones' in kwargs: - dns_view_zones = kwargs['dnsViewZones'] - if dns_zones_allow_by_default is None and 'dnsZonesAllowByDefault' in kwargs: - dns_zones_allow_by_default = kwargs['dnsZonesAllowByDefault'] - if dns_zones_allows is None and 'dnsZonesAllows' in kwargs: - dns_zones_allows = kwargs['dnsZonesAllows'] - if dns_zones_denies is None and 'dnsZonesDenies' in kwargs: - dns_zones_denies = kwargs['dnsZonesDenies'] - if ip_whitelist_strict is None and 'ipWhitelistStrict' in kwargs: - ip_whitelist_strict = kwargs['ipWhitelistStrict'] - if ip_whitelists is None and 'ipWhitelists' in kwargs: - ip_whitelists = kwargs['ipWhitelists'] - if ipam_manage_ipam is None and 'ipamManageIpam' in kwargs: - ipam_manage_ipam = kwargs['ipamManageIpam'] - if ipam_view_ipam is None and 'ipamViewIpam' in kwargs: - ipam_view_ipam = kwargs['ipamViewIpam'] - if monitoring_manage_jobs is None and 'monitoringManageJobs' in kwargs: - monitoring_manage_jobs = kwargs['monitoringManageJobs'] - if monitoring_manage_lists is None and 'monitoringManageLists' in kwargs: - monitoring_manage_lists = kwargs['monitoringManageLists'] - if monitoring_view_jobs is None and 'monitoringViewJobs' in kwargs: - monitoring_view_jobs = kwargs['monitoringViewJobs'] - if security_manage_active_directory is None and 'securityManageActiveDirectory' in kwargs: - security_manage_active_directory = kwargs['securityManageActiveDirectory'] - if security_manage_global2fa is None and 'securityManageGlobal2fa' in kwargs: - security_manage_global2fa = kwargs['securityManageGlobal2fa'] - - _setter("email", email) - _setter("username", username) + pulumi.set(__self__, "email", email) + pulumi.set(__self__, "username", username) if account_manage_account_settings is not None: - _setter("account_manage_account_settings", account_manage_account_settings) + pulumi.set(__self__, "account_manage_account_settings", account_manage_account_settings) if account_manage_apikeys is not None: - _setter("account_manage_apikeys", account_manage_apikeys) + pulumi.set(__self__, "account_manage_apikeys", account_manage_apikeys) if account_manage_ip_whitelist is not None: - _setter("account_manage_ip_whitelist", account_manage_ip_whitelist) + pulumi.set(__self__, "account_manage_ip_whitelist", account_manage_ip_whitelist) if account_manage_payment_methods is not None: - _setter("account_manage_payment_methods", account_manage_payment_methods) + pulumi.set(__self__, "account_manage_payment_methods", account_manage_payment_methods) if account_manage_plan is not None: warnings.warn("""obsolete, should no longer be used""", DeprecationWarning) pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""") if account_manage_plan is not None: - _setter("account_manage_plan", account_manage_plan) + pulumi.set(__self__, "account_manage_plan", account_manage_plan) if account_manage_teams is not None: - _setter("account_manage_teams", account_manage_teams) + pulumi.set(__self__, "account_manage_teams", account_manage_teams) if account_manage_users is not None: - _setter("account_manage_users", account_manage_users) + pulumi.set(__self__, "account_manage_users", account_manage_users) if account_view_activity_log is not None: - _setter("account_view_activity_log", account_view_activity_log) + pulumi.set(__self__, "account_view_activity_log", account_view_activity_log) if account_view_invoices is not None: - _setter("account_view_invoices", account_view_invoices) + pulumi.set(__self__, "account_view_invoices", account_view_invoices) if data_manage_datafeeds is not None: - _setter("data_manage_datafeeds", data_manage_datafeeds) + pulumi.set(__self__, "data_manage_datafeeds", data_manage_datafeeds) if data_manage_datasources is not None: - _setter("data_manage_datasources", data_manage_datasources) + pulumi.set(__self__, "data_manage_datasources", data_manage_datasources) if data_push_to_datafeeds is not None: - _setter("data_push_to_datafeeds", data_push_to_datafeeds) + pulumi.set(__self__, "data_push_to_datafeeds", data_push_to_datafeeds) if dhcp_manage_dhcp is not None: - _setter("dhcp_manage_dhcp", dhcp_manage_dhcp) + pulumi.set(__self__, "dhcp_manage_dhcp", dhcp_manage_dhcp) if dhcp_view_dhcp is not None: - _setter("dhcp_view_dhcp", dhcp_view_dhcp) + pulumi.set(__self__, "dhcp_view_dhcp", dhcp_view_dhcp) if dns_manage_zones is not None: - _setter("dns_manage_zones", dns_manage_zones) + pulumi.set(__self__, "dns_manage_zones", dns_manage_zones) if dns_records_allows is not None: - _setter("dns_records_allows", dns_records_allows) + pulumi.set(__self__, "dns_records_allows", dns_records_allows) if dns_records_denies is not None: - _setter("dns_records_denies", dns_records_denies) + pulumi.set(__self__, "dns_records_denies", dns_records_denies) if dns_view_zones is not None: - _setter("dns_view_zones", dns_view_zones) + pulumi.set(__self__, "dns_view_zones", dns_view_zones) if dns_zones_allow_by_default is not None: - _setter("dns_zones_allow_by_default", dns_zones_allow_by_default) + pulumi.set(__self__, "dns_zones_allow_by_default", dns_zones_allow_by_default) if dns_zones_allows is not None: - _setter("dns_zones_allows", dns_zones_allows) + pulumi.set(__self__, "dns_zones_allows", dns_zones_allows) if dns_zones_denies is not None: - _setter("dns_zones_denies", dns_zones_denies) + pulumi.set(__self__, "dns_zones_denies", dns_zones_denies) if ip_whitelist_strict is not None: - _setter("ip_whitelist_strict", ip_whitelist_strict) + pulumi.set(__self__, "ip_whitelist_strict", ip_whitelist_strict) if ip_whitelists is not None: - _setter("ip_whitelists", ip_whitelists) + pulumi.set(__self__, "ip_whitelists", ip_whitelists) if ipam_manage_ipam is not None: - _setter("ipam_manage_ipam", ipam_manage_ipam) + pulumi.set(__self__, "ipam_manage_ipam", ipam_manage_ipam) if ipam_view_ipam is not None: - _setter("ipam_view_ipam", ipam_view_ipam) + pulumi.set(__self__, "ipam_view_ipam", ipam_view_ipam) if monitoring_manage_jobs is not None: - _setter("monitoring_manage_jobs", monitoring_manage_jobs) + pulumi.set(__self__, "monitoring_manage_jobs", monitoring_manage_jobs) if monitoring_manage_lists is not None: - _setter("monitoring_manage_lists", monitoring_manage_lists) + pulumi.set(__self__, "monitoring_manage_lists", monitoring_manage_lists) if monitoring_view_jobs is not None: - _setter("monitoring_view_jobs", monitoring_view_jobs) + pulumi.set(__self__, "monitoring_view_jobs", monitoring_view_jobs) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if notify is not None: - _setter("notify", notify) + pulumi.set(__self__, "notify", notify) if security_manage_active_directory is not None: - _setter("security_manage_active_directory", security_manage_active_directory) + pulumi.set(__self__, "security_manage_active_directory", security_manage_active_directory) if security_manage_global2fa is not None: - _setter("security_manage_global2fa", security_manage_global2fa) + pulumi.set(__self__, "security_manage_global2fa", security_manage_global2fa) if teams is not None: - _setter("teams", teams) + pulumi.set(__self__, "teams", teams) @property @pulumi.getter @@ -801,218 +658,79 @@ def __init__(__self__, *, :param pulumi.Input[Sequence[pulumi.Input[str]]] teams: The teams that the user belongs to. :param pulumi.Input[str] username: The users login name. """ - _UserState._configure( - lambda key, value: pulumi.set(__self__, key, value), - account_manage_account_settings=account_manage_account_settings, - account_manage_apikeys=account_manage_apikeys, - account_manage_ip_whitelist=account_manage_ip_whitelist, - account_manage_payment_methods=account_manage_payment_methods, - account_manage_plan=account_manage_plan, - account_manage_teams=account_manage_teams, - account_manage_users=account_manage_users, - account_view_activity_log=account_view_activity_log, - account_view_invoices=account_view_invoices, - data_manage_datafeeds=data_manage_datafeeds, - data_manage_datasources=data_manage_datasources, - data_push_to_datafeeds=data_push_to_datafeeds, - dhcp_manage_dhcp=dhcp_manage_dhcp, - dhcp_view_dhcp=dhcp_view_dhcp, - dns_manage_zones=dns_manage_zones, - dns_records_allows=dns_records_allows, - dns_records_denies=dns_records_denies, - dns_view_zones=dns_view_zones, - dns_zones_allow_by_default=dns_zones_allow_by_default, - dns_zones_allows=dns_zones_allows, - dns_zones_denies=dns_zones_denies, - email=email, - ip_whitelist_strict=ip_whitelist_strict, - ip_whitelists=ip_whitelists, - ipam_manage_ipam=ipam_manage_ipam, - ipam_view_ipam=ipam_view_ipam, - monitoring_manage_jobs=monitoring_manage_jobs, - monitoring_manage_lists=monitoring_manage_lists, - monitoring_view_jobs=monitoring_view_jobs, - name=name, - notify=notify, - security_manage_active_directory=security_manage_active_directory, - security_manage_global2fa=security_manage_global2fa, - teams=teams, - username=username, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - account_manage_account_settings: Optional[pulumi.Input[bool]] = None, - account_manage_apikeys: Optional[pulumi.Input[bool]] = None, - account_manage_ip_whitelist: Optional[pulumi.Input[bool]] = None, - account_manage_payment_methods: Optional[pulumi.Input[bool]] = None, - account_manage_plan: Optional[pulumi.Input[bool]] = None, - account_manage_teams: Optional[pulumi.Input[bool]] = None, - account_manage_users: Optional[pulumi.Input[bool]] = None, - account_view_activity_log: Optional[pulumi.Input[bool]] = None, - account_view_invoices: Optional[pulumi.Input[bool]] = None, - data_manage_datafeeds: Optional[pulumi.Input[bool]] = None, - data_manage_datasources: Optional[pulumi.Input[bool]] = None, - data_push_to_datafeeds: Optional[pulumi.Input[bool]] = None, - dhcp_manage_dhcp: Optional[pulumi.Input[bool]] = None, - dhcp_view_dhcp: Optional[pulumi.Input[bool]] = None, - dns_manage_zones: Optional[pulumi.Input[bool]] = None, - dns_records_allows: Optional[pulumi.Input[Sequence[pulumi.Input['UserDnsRecordsAllowArgs']]]] = None, - dns_records_denies: Optional[pulumi.Input[Sequence[pulumi.Input['UserDnsRecordsDenyArgs']]]] = None, - dns_view_zones: Optional[pulumi.Input[bool]] = None, - dns_zones_allow_by_default: Optional[pulumi.Input[bool]] = None, - dns_zones_allows: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - dns_zones_denies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - email: Optional[pulumi.Input[str]] = None, - ip_whitelist_strict: Optional[pulumi.Input[bool]] = None, - ip_whitelists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - ipam_manage_ipam: Optional[pulumi.Input[bool]] = None, - ipam_view_ipam: Optional[pulumi.Input[bool]] = None, - monitoring_manage_jobs: Optional[pulumi.Input[bool]] = None, - monitoring_manage_lists: Optional[pulumi.Input[bool]] = None, - monitoring_view_jobs: Optional[pulumi.Input[bool]] = None, - name: Optional[pulumi.Input[str]] = None, - notify: Optional[pulumi.Input[Mapping[str, Any]]] = None, - security_manage_active_directory: Optional[pulumi.Input[bool]] = None, - security_manage_global2fa: Optional[pulumi.Input[bool]] = None, - teams: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - username: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if account_manage_account_settings is None and 'accountManageAccountSettings' in kwargs: - account_manage_account_settings = kwargs['accountManageAccountSettings'] - if account_manage_apikeys is None and 'accountManageApikeys' in kwargs: - account_manage_apikeys = kwargs['accountManageApikeys'] - if account_manage_ip_whitelist is None and 'accountManageIpWhitelist' in kwargs: - account_manage_ip_whitelist = kwargs['accountManageIpWhitelist'] - if account_manage_payment_methods is None and 'accountManagePaymentMethods' in kwargs: - account_manage_payment_methods = kwargs['accountManagePaymentMethods'] - if account_manage_plan is None and 'accountManagePlan' in kwargs: - account_manage_plan = kwargs['accountManagePlan'] - if account_manage_teams is None and 'accountManageTeams' in kwargs: - account_manage_teams = kwargs['accountManageTeams'] - if account_manage_users is None and 'accountManageUsers' in kwargs: - account_manage_users = kwargs['accountManageUsers'] - if account_view_activity_log is None and 'accountViewActivityLog' in kwargs: - account_view_activity_log = kwargs['accountViewActivityLog'] - if account_view_invoices is None and 'accountViewInvoices' in kwargs: - account_view_invoices = kwargs['accountViewInvoices'] - if data_manage_datafeeds is None and 'dataManageDatafeeds' in kwargs: - data_manage_datafeeds = kwargs['dataManageDatafeeds'] - if data_manage_datasources is None and 'dataManageDatasources' in kwargs: - data_manage_datasources = kwargs['dataManageDatasources'] - if data_push_to_datafeeds is None and 'dataPushToDatafeeds' in kwargs: - data_push_to_datafeeds = kwargs['dataPushToDatafeeds'] - if dhcp_manage_dhcp is None and 'dhcpManageDhcp' in kwargs: - dhcp_manage_dhcp = kwargs['dhcpManageDhcp'] - if dhcp_view_dhcp is None and 'dhcpViewDhcp' in kwargs: - dhcp_view_dhcp = kwargs['dhcpViewDhcp'] - if dns_manage_zones is None and 'dnsManageZones' in kwargs: - dns_manage_zones = kwargs['dnsManageZones'] - if dns_records_allows is None and 'dnsRecordsAllows' in kwargs: - dns_records_allows = kwargs['dnsRecordsAllows'] - if dns_records_denies is None and 'dnsRecordsDenies' in kwargs: - dns_records_denies = kwargs['dnsRecordsDenies'] - if dns_view_zones is None and 'dnsViewZones' in kwargs: - dns_view_zones = kwargs['dnsViewZones'] - if dns_zones_allow_by_default is None and 'dnsZonesAllowByDefault' in kwargs: - dns_zones_allow_by_default = kwargs['dnsZonesAllowByDefault'] - if dns_zones_allows is None and 'dnsZonesAllows' in kwargs: - dns_zones_allows = kwargs['dnsZonesAllows'] - if dns_zones_denies is None and 'dnsZonesDenies' in kwargs: - dns_zones_denies = kwargs['dnsZonesDenies'] - if ip_whitelist_strict is None and 'ipWhitelistStrict' in kwargs: - ip_whitelist_strict = kwargs['ipWhitelistStrict'] - if ip_whitelists is None and 'ipWhitelists' in kwargs: - ip_whitelists = kwargs['ipWhitelists'] - if ipam_manage_ipam is None and 'ipamManageIpam' in kwargs: - ipam_manage_ipam = kwargs['ipamManageIpam'] - if ipam_view_ipam is None and 'ipamViewIpam' in kwargs: - ipam_view_ipam = kwargs['ipamViewIpam'] - if monitoring_manage_jobs is None and 'monitoringManageJobs' in kwargs: - monitoring_manage_jobs = kwargs['monitoringManageJobs'] - if monitoring_manage_lists is None and 'monitoringManageLists' in kwargs: - monitoring_manage_lists = kwargs['monitoringManageLists'] - if monitoring_view_jobs is None and 'monitoringViewJobs' in kwargs: - monitoring_view_jobs = kwargs['monitoringViewJobs'] - if security_manage_active_directory is None and 'securityManageActiveDirectory' in kwargs: - security_manage_active_directory = kwargs['securityManageActiveDirectory'] - if security_manage_global2fa is None and 'securityManageGlobal2fa' in kwargs: - security_manage_global2fa = kwargs['securityManageGlobal2fa'] - if account_manage_account_settings is not None: - _setter("account_manage_account_settings", account_manage_account_settings) + pulumi.set(__self__, "account_manage_account_settings", account_manage_account_settings) if account_manage_apikeys is not None: - _setter("account_manage_apikeys", account_manage_apikeys) + pulumi.set(__self__, "account_manage_apikeys", account_manage_apikeys) if account_manage_ip_whitelist is not None: - _setter("account_manage_ip_whitelist", account_manage_ip_whitelist) + pulumi.set(__self__, "account_manage_ip_whitelist", account_manage_ip_whitelist) if account_manage_payment_methods is not None: - _setter("account_manage_payment_methods", account_manage_payment_methods) + pulumi.set(__self__, "account_manage_payment_methods", account_manage_payment_methods) if account_manage_plan is not None: warnings.warn("""obsolete, should no longer be used""", DeprecationWarning) pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""") if account_manage_plan is not None: - _setter("account_manage_plan", account_manage_plan) + pulumi.set(__self__, "account_manage_plan", account_manage_plan) if account_manage_teams is not None: - _setter("account_manage_teams", account_manage_teams) + pulumi.set(__self__, "account_manage_teams", account_manage_teams) if account_manage_users is not None: - _setter("account_manage_users", account_manage_users) + pulumi.set(__self__, "account_manage_users", account_manage_users) if account_view_activity_log is not None: - _setter("account_view_activity_log", account_view_activity_log) + pulumi.set(__self__, "account_view_activity_log", account_view_activity_log) if account_view_invoices is not None: - _setter("account_view_invoices", account_view_invoices) + pulumi.set(__self__, "account_view_invoices", account_view_invoices) if data_manage_datafeeds is not None: - _setter("data_manage_datafeeds", data_manage_datafeeds) + pulumi.set(__self__, "data_manage_datafeeds", data_manage_datafeeds) if data_manage_datasources is not None: - _setter("data_manage_datasources", data_manage_datasources) + pulumi.set(__self__, "data_manage_datasources", data_manage_datasources) if data_push_to_datafeeds is not None: - _setter("data_push_to_datafeeds", data_push_to_datafeeds) + pulumi.set(__self__, "data_push_to_datafeeds", data_push_to_datafeeds) if dhcp_manage_dhcp is not None: - _setter("dhcp_manage_dhcp", dhcp_manage_dhcp) + pulumi.set(__self__, "dhcp_manage_dhcp", dhcp_manage_dhcp) if dhcp_view_dhcp is not None: - _setter("dhcp_view_dhcp", dhcp_view_dhcp) + pulumi.set(__self__, "dhcp_view_dhcp", dhcp_view_dhcp) if dns_manage_zones is not None: - _setter("dns_manage_zones", dns_manage_zones) + pulumi.set(__self__, "dns_manage_zones", dns_manage_zones) if dns_records_allows is not None: - _setter("dns_records_allows", dns_records_allows) + pulumi.set(__self__, "dns_records_allows", dns_records_allows) if dns_records_denies is not None: - _setter("dns_records_denies", dns_records_denies) + pulumi.set(__self__, "dns_records_denies", dns_records_denies) if dns_view_zones is not None: - _setter("dns_view_zones", dns_view_zones) + pulumi.set(__self__, "dns_view_zones", dns_view_zones) if dns_zones_allow_by_default is not None: - _setter("dns_zones_allow_by_default", dns_zones_allow_by_default) + pulumi.set(__self__, "dns_zones_allow_by_default", dns_zones_allow_by_default) if dns_zones_allows is not None: - _setter("dns_zones_allows", dns_zones_allows) + pulumi.set(__self__, "dns_zones_allows", dns_zones_allows) if dns_zones_denies is not None: - _setter("dns_zones_denies", dns_zones_denies) + pulumi.set(__self__, "dns_zones_denies", dns_zones_denies) if email is not None: - _setter("email", email) + pulumi.set(__self__, "email", email) if ip_whitelist_strict is not None: - _setter("ip_whitelist_strict", ip_whitelist_strict) + pulumi.set(__self__, "ip_whitelist_strict", ip_whitelist_strict) if ip_whitelists is not None: - _setter("ip_whitelists", ip_whitelists) + pulumi.set(__self__, "ip_whitelists", ip_whitelists) if ipam_manage_ipam is not None: - _setter("ipam_manage_ipam", ipam_manage_ipam) + pulumi.set(__self__, "ipam_manage_ipam", ipam_manage_ipam) if ipam_view_ipam is not None: - _setter("ipam_view_ipam", ipam_view_ipam) + pulumi.set(__self__, "ipam_view_ipam", ipam_view_ipam) if monitoring_manage_jobs is not None: - _setter("monitoring_manage_jobs", monitoring_manage_jobs) + pulumi.set(__self__, "monitoring_manage_jobs", monitoring_manage_jobs) if monitoring_manage_lists is not None: - _setter("monitoring_manage_lists", monitoring_manage_lists) + pulumi.set(__self__, "monitoring_manage_lists", monitoring_manage_lists) if monitoring_view_jobs is not None: - _setter("monitoring_view_jobs", monitoring_view_jobs) + pulumi.set(__self__, "monitoring_view_jobs", monitoring_view_jobs) if name is not None: - _setter("name", name) + pulumi.set(__self__, "name", name) if notify is not None: - _setter("notify", notify) + pulumi.set(__self__, "notify", notify) if security_manage_active_directory is not None: - _setter("security_manage_active_directory", security_manage_active_directory) + pulumi.set(__self__, "security_manage_active_directory", security_manage_active_directory) if security_manage_global2fa is not None: - _setter("security_manage_global2fa", security_manage_global2fa) + pulumi.set(__self__, "security_manage_global2fa", security_manage_global2fa) if teams is not None: - _setter("teams", teams) + pulumi.set(__self__, "teams", teams) if username is not None: - _setter("username", username) + pulumi.set(__self__, "username", username) @property @pulumi.getter(name="accountManageAccountSettings") @@ -1631,10 +1349,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - UserArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__, diff --git a/sdk/python/pulumi_ns1/zone.py b/sdk/python/pulumi_ns1/zone.py index f59ff4c3..86bca4a9 100644 --- a/sdk/python/pulumi_ns1/zone.py +++ b/sdk/python/pulumi_ns1/zone.py @@ -6,7 +6,7 @@ import warnings import pulumi import pulumi.runtime -from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload +from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * @@ -63,98 +63,41 @@ def __init__(__self__, *, :param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below :param pulumi.Input[int] ttl: The SOA TTL. """ - ZoneArgs._configure( - lambda key, value: pulumi.set(__self__, key, value), - zone=zone, - additional_ports=additional_ports, - additional_primaries=additional_primaries, - autogenerate_ns_record=autogenerate_ns_record, - dnssec=dnssec, - expiry=expiry, - hostmaster=hostmaster, - link=link, - networks=networks, - nx_ttl=nx_ttl, - primary=primary, - primary_port=primary_port, - refresh=refresh, - retry=retry, - secondaries=secondaries, - tags=tags, - tsig=tsig, - ttl=ttl, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - zone: Optional[pulumi.Input[str]] = None, - additional_ports: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, - additional_primaries: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - autogenerate_ns_record: Optional[pulumi.Input[bool]] = None, - dnssec: Optional[pulumi.Input[bool]] = None, - expiry: Optional[pulumi.Input[int]] = None, - hostmaster: Optional[pulumi.Input[str]] = None, - link: Optional[pulumi.Input[str]] = None, - networks: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, - nx_ttl: Optional[pulumi.Input[int]] = None, - primary: Optional[pulumi.Input[str]] = None, - primary_port: Optional[pulumi.Input[int]] = None, - refresh: Optional[pulumi.Input[int]] = None, - retry: Optional[pulumi.Input[int]] = None, - secondaries: Optional[pulumi.Input[Sequence[pulumi.Input['ZoneSecondaryArgs']]]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - tsig: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - ttl: Optional[pulumi.Input[int]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if zone is None: - raise TypeError("Missing 'zone' argument") - if additional_ports is None and 'additionalPorts' in kwargs: - additional_ports = kwargs['additionalPorts'] - if additional_primaries is None and 'additionalPrimaries' in kwargs: - additional_primaries = kwargs['additionalPrimaries'] - if autogenerate_ns_record is None and 'autogenerateNsRecord' in kwargs: - autogenerate_ns_record = kwargs['autogenerateNsRecord'] - if nx_ttl is None and 'nxTtl' in kwargs: - nx_ttl = kwargs['nxTtl'] - if primary_port is None and 'primaryPort' in kwargs: - primary_port = kwargs['primaryPort'] - - _setter("zone", zone) + pulumi.set(__self__, "zone", zone) if additional_ports is not None: - _setter("additional_ports", additional_ports) + pulumi.set(__self__, "additional_ports", additional_ports) if additional_primaries is not None: - _setter("additional_primaries", additional_primaries) + pulumi.set(__self__, "additional_primaries", additional_primaries) if autogenerate_ns_record is not None: - _setter("autogenerate_ns_record", autogenerate_ns_record) + pulumi.set(__self__, "autogenerate_ns_record", autogenerate_ns_record) if dnssec is not None: - _setter("dnssec", dnssec) + pulumi.set(__self__, "dnssec", dnssec) if expiry is not None: - _setter("expiry", expiry) + pulumi.set(__self__, "expiry", expiry) if hostmaster is not None: - _setter("hostmaster", hostmaster) + pulumi.set(__self__, "hostmaster", hostmaster) if link is not None: - _setter("link", link) + pulumi.set(__self__, "link", link) if networks is not None: - _setter("networks", networks) + pulumi.set(__self__, "networks", networks) if nx_ttl is not None: - _setter("nx_ttl", nx_ttl) + pulumi.set(__self__, "nx_ttl", nx_ttl) if primary is not None: - _setter("primary", primary) + pulumi.set(__self__, "primary", primary) if primary_port is not None: - _setter("primary_port", primary_port) + pulumi.set(__self__, "primary_port", primary_port) if refresh is not None: - _setter("refresh", refresh) + pulumi.set(__self__, "refresh", refresh) if retry is not None: - _setter("retry", retry) + pulumi.set(__self__, "retry", retry) if secondaries is not None: - _setter("secondaries", secondaries) + pulumi.set(__self__, "secondaries", secondaries) if tags is not None: - _setter("tags", tags) + pulumi.set(__self__, "tags", tags) if tsig is not None: - _setter("tsig", tsig) + pulumi.set(__self__, "tsig", tsig) if ttl is not None: - _setter("ttl", ttl) + pulumi.set(__self__, "ttl", ttl) @property @pulumi.getter @@ -425,103 +368,44 @@ def __init__(__self__, *, :param pulumi.Input[int] ttl: The SOA TTL. :param pulumi.Input[str] zone: The domain name of the zone. """ - _ZoneState._configure( - lambda key, value: pulumi.set(__self__, key, value), - additional_ports=additional_ports, - additional_primaries=additional_primaries, - autogenerate_ns_record=autogenerate_ns_record, - dns_servers=dns_servers, - dnssec=dnssec, - expiry=expiry, - hostmaster=hostmaster, - link=link, - networks=networks, - nx_ttl=nx_ttl, - primary=primary, - primary_port=primary_port, - refresh=refresh, - retry=retry, - secondaries=secondaries, - tags=tags, - tsig=tsig, - ttl=ttl, - zone=zone, - ) - @staticmethod - def _configure( - _setter: Callable[[Any, Any], None], - additional_ports: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, - additional_primaries: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, - autogenerate_ns_record: Optional[pulumi.Input[bool]] = None, - dns_servers: Optional[pulumi.Input[str]] = None, - dnssec: Optional[pulumi.Input[bool]] = None, - expiry: Optional[pulumi.Input[int]] = None, - hostmaster: Optional[pulumi.Input[str]] = None, - link: Optional[pulumi.Input[str]] = None, - networks: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None, - nx_ttl: Optional[pulumi.Input[int]] = None, - primary: Optional[pulumi.Input[str]] = None, - primary_port: Optional[pulumi.Input[int]] = None, - refresh: Optional[pulumi.Input[int]] = None, - retry: Optional[pulumi.Input[int]] = None, - secondaries: Optional[pulumi.Input[Sequence[pulumi.Input['ZoneSecondaryArgs']]]] = None, - tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - tsig: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None, - ttl: Optional[pulumi.Input[int]] = None, - zone: Optional[pulumi.Input[str]] = None, - opts: Optional[pulumi.ResourceOptions] = None, - **kwargs): - if additional_ports is None and 'additionalPorts' in kwargs: - additional_ports = kwargs['additionalPorts'] - if additional_primaries is None and 'additionalPrimaries' in kwargs: - additional_primaries = kwargs['additionalPrimaries'] - if autogenerate_ns_record is None and 'autogenerateNsRecord' in kwargs: - autogenerate_ns_record = kwargs['autogenerateNsRecord'] - if dns_servers is None and 'dnsServers' in kwargs: - dns_servers = kwargs['dnsServers'] - if nx_ttl is None and 'nxTtl' in kwargs: - nx_ttl = kwargs['nxTtl'] - if primary_port is None and 'primaryPort' in kwargs: - primary_port = kwargs['primaryPort'] - if additional_ports is not None: - _setter("additional_ports", additional_ports) + pulumi.set(__self__, "additional_ports", additional_ports) if additional_primaries is not None: - _setter("additional_primaries", additional_primaries) + pulumi.set(__self__, "additional_primaries", additional_primaries) if autogenerate_ns_record is not None: - _setter("autogenerate_ns_record", autogenerate_ns_record) + pulumi.set(__self__, "autogenerate_ns_record", autogenerate_ns_record) if dns_servers is not None: - _setter("dns_servers", dns_servers) + pulumi.set(__self__, "dns_servers", dns_servers) if dnssec is not None: - _setter("dnssec", dnssec) + pulumi.set(__self__, "dnssec", dnssec) if expiry is not None: - _setter("expiry", expiry) + pulumi.set(__self__, "expiry", expiry) if hostmaster is not None: - _setter("hostmaster", hostmaster) + pulumi.set(__self__, "hostmaster", hostmaster) if link is not None: - _setter("link", link) + pulumi.set(__self__, "link", link) if networks is not None: - _setter("networks", networks) + pulumi.set(__self__, "networks", networks) if nx_ttl is not None: - _setter("nx_ttl", nx_ttl) + pulumi.set(__self__, "nx_ttl", nx_ttl) if primary is not None: - _setter("primary", primary) + pulumi.set(__self__, "primary", primary) if primary_port is not None: - _setter("primary_port", primary_port) + pulumi.set(__self__, "primary_port", primary_port) if refresh is not None: - _setter("refresh", refresh) + pulumi.set(__self__, "refresh", refresh) if retry is not None: - _setter("retry", retry) + pulumi.set(__self__, "retry", retry) if secondaries is not None: - _setter("secondaries", secondaries) + pulumi.set(__self__, "secondaries", secondaries) if tags is not None: - _setter("tags", tags) + pulumi.set(__self__, "tags", tags) if tsig is not None: - _setter("tsig", tsig) + pulumi.set(__self__, "tsig", tsig) if ttl is not None: - _setter("ttl", ttl) + pulumi.set(__self__, "ttl", ttl) if zone is not None: - _setter("zone", zone) + pulumi.set(__self__, "zone", zone) @property @pulumi.getter(name="additionalPorts") @@ -847,10 +731,6 @@ def __init__(__self__, resource_name: str, *args, **kwargs): if resource_args is not None: __self__._internal_init(resource_name, opts, **resource_args.__dict__) else: - kwargs = kwargs or {} - def _setter(key, value): - kwargs[key] = value - ZoneArgs._configure(_setter, **kwargs) __self__._internal_init(resource_name, *args, **kwargs) def _internal_init(__self__,