Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
pulumi-bot committed Oct 14, 2023
1 parent 2ce8946 commit 1000f76
Show file tree
Hide file tree
Showing 84 changed files with 8,817 additions and 2,008 deletions.
2 changes: 1 addition & 1 deletion sdk/dotnet/Config/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Pulumi.DigitalOcean
{
public static class Config
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification =
[global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification =
"Double underscore prefix used to avoid conflicts with variable names.")]
private sealed class __Value<T>
{
Expand Down
2,651 changes: 2,189 additions & 462 deletions sdk/python/pulumi_digitalocean/_inputs.py

Large diffs are not rendered by default.

57 changes: 48 additions & 9 deletions sdk/python/pulumi_digitalocean/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
from . import _utilities
from . import outputs
from ._inputs import *
Expand All @@ -21,8 +21,17 @@ def __init__(__self__, *,
The set of arguments for constructing a App resource.
:param pulumi.Input['AppSpecArgs'] spec: A DigitalOcean App spec describing the app.
"""
AppArgs._configure(
lambda key, value: pulumi.set(__self__, key, value),
spec=spec,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
spec: Optional[pulumi.Input['AppSpecArgs']] = None,
opts: Optional[pulumi.ResourceOptions]=None):
if spec is not None:
pulumi.set(__self__, "spec", spec)
_setter("spec", spec)

@property
@pulumi.getter
Expand Down Expand Up @@ -57,20 +66,41 @@ def __init__(__self__, *,
:param pulumi.Input['AppSpecArgs'] spec: A DigitalOcean App spec describing the app.
:param pulumi.Input[str] updated_at: The date and time of when the app was last updated.
"""
_AppState._configure(
lambda key, value: pulumi.set(__self__, key, value),
active_deployment_id=active_deployment_id,
app_urn=app_urn,
created_at=created_at,
default_ingress=default_ingress,
live_url=live_url,
spec=spec,
updated_at=updated_at,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
active_deployment_id: Optional[pulumi.Input[str]] = None,
app_urn: Optional[pulumi.Input[str]] = None,
created_at: Optional[pulumi.Input[str]] = None,
default_ingress: Optional[pulumi.Input[str]] = None,
live_url: Optional[pulumi.Input[str]] = None,
spec: Optional[pulumi.Input['AppSpecArgs']] = None,
updated_at: Optional[pulumi.Input[str]] = None,
opts: Optional[pulumi.ResourceOptions]=None):
if active_deployment_id is not None:
pulumi.set(__self__, "active_deployment_id", active_deployment_id)
_setter("active_deployment_id", active_deployment_id)
if app_urn is not None:
pulumi.set(__self__, "app_urn", app_urn)
_setter("app_urn", app_urn)
if created_at is not None:
pulumi.set(__self__, "created_at", created_at)
_setter("created_at", created_at)
if default_ingress is not None:
pulumi.set(__self__, "default_ingress", default_ingress)
_setter("default_ingress", default_ingress)
if live_url is not None:
pulumi.set(__self__, "live_url", live_url)
_setter("live_url", live_url)
if spec is not None:
pulumi.set(__self__, "spec", spec)
_setter("spec", spec)
if updated_at is not None:
pulumi.set(__self__, "updated_at", updated_at)
_setter("updated_at", updated_at)

@property
@pulumi.getter(name="activeDeploymentId")
Expand Down Expand Up @@ -296,6 +326,10 @@ 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
AppArgs._configure(_setter, **kwargs)
__self__._internal_init(resource_name, *args, **kwargs)

def _internal_init(__self__,
Expand All @@ -311,6 +345,11 @@ def _internal_init(__self__,
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = AppArgs.__new__(AppArgs)

if spec is not None and not isinstance(spec, AppSpecArgs):
spec = spec or {}
def _setter(key, value):
spec[key] = value
AppSpecArgs._configure(_setter, **spec)
__props__.__dict__["spec"] = spec
__props__.__dict__["active_deployment_id"] = None
__props__.__dict__["app_urn"] = None
Expand Down
71 changes: 55 additions & 16 deletions sdk/python/pulumi_digitalocean/cdn.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
from . import _utilities

__all__ = ['CdnArgs', 'Cdn']
Expand All @@ -27,18 +27,35 @@ def __init__(__self__, *,
:param pulumi.Input[str] custom_domain: The fully qualified domain name (FQDN) of the custom subdomain used with the CDN Endpoint.
:param pulumi.Input[int] ttl: The time to live for the CDN Endpoint, in seconds. Default is 3600 seconds.
"""
pulumi.set(__self__, "origin", origin)
CdnArgs._configure(
lambda key, value: pulumi.set(__self__, key, value),
origin=origin,
certificate_id=certificate_id,
certificate_name=certificate_name,
custom_domain=custom_domain,
ttl=ttl,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
origin: pulumi.Input[str],
certificate_id: Optional[pulumi.Input[str]] = None,
certificate_name: Optional[pulumi.Input[str]] = None,
custom_domain: Optional[pulumi.Input[str]] = None,
ttl: Optional[pulumi.Input[int]] = None,
opts: Optional[pulumi.ResourceOptions]=None):
_setter("origin", origin)
if certificate_id is not None:
warnings.warn("""Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.""", DeprecationWarning)
pulumi.log.warn("""certificate_id is deprecated: Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.""")
if certificate_id is not None:
pulumi.set(__self__, "certificate_id", certificate_id)
_setter("certificate_id", certificate_id)
if certificate_name is not None:
pulumi.set(__self__, "certificate_name", certificate_name)
_setter("certificate_name", certificate_name)
if custom_domain is not None:
pulumi.set(__self__, "custom_domain", custom_domain)
_setter("custom_domain", custom_domain)
if ttl is not None:
pulumi.set(__self__, "ttl", ttl)
_setter("ttl", ttl)

@property
@pulumi.getter
Expand Down Expand Up @@ -124,23 +141,44 @@ def __init__(__self__, *,
:param pulumi.Input[str] origin: The fully qualified domain name, (FQDN) for a Space.
:param pulumi.Input[int] ttl: The time to live for the CDN Endpoint, in seconds. Default is 3600 seconds.
"""
_CdnState._configure(
lambda key, value: pulumi.set(__self__, key, value),
certificate_id=certificate_id,
certificate_name=certificate_name,
created_at=created_at,
custom_domain=custom_domain,
endpoint=endpoint,
origin=origin,
ttl=ttl,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
certificate_id: Optional[pulumi.Input[str]] = None,
certificate_name: Optional[pulumi.Input[str]] = None,
created_at: Optional[pulumi.Input[str]] = None,
custom_domain: Optional[pulumi.Input[str]] = None,
endpoint: Optional[pulumi.Input[str]] = None,
origin: Optional[pulumi.Input[str]] = None,
ttl: Optional[pulumi.Input[int]] = None,
opts: Optional[pulumi.ResourceOptions]=None):
if certificate_id is not None:
warnings.warn("""Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.""", DeprecationWarning)
pulumi.log.warn("""certificate_id is deprecated: Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.""")
if certificate_id is not None:
pulumi.set(__self__, "certificate_id", certificate_id)
_setter("certificate_id", certificate_id)
if certificate_name is not None:
pulumi.set(__self__, "certificate_name", certificate_name)
_setter("certificate_name", certificate_name)
if created_at is not None:
pulumi.set(__self__, "created_at", created_at)
_setter("created_at", created_at)
if custom_domain is not None:
pulumi.set(__self__, "custom_domain", custom_domain)
_setter("custom_domain", custom_domain)
if endpoint is not None:
pulumi.set(__self__, "endpoint", endpoint)
_setter("endpoint", endpoint)
if origin is not None:
pulumi.set(__self__, "origin", origin)
_setter("origin", origin)
if ttl is not None:
pulumi.set(__self__, "ttl", ttl)
_setter("ttl", ttl)

@property
@pulumi.getter(name="certificateId")
Expand Down Expand Up @@ -359,6 +397,10 @@ 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
CdnArgs._configure(_setter, **kwargs)
__self__._internal_init(resource_name, *args, **kwargs)

def _internal_init(__self__,
Expand All @@ -378,9 +420,6 @@ def _internal_init(__self__,
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = CdnArgs.__new__(CdnArgs)

if certificate_id is not None and not opts.urn:
warnings.warn("""Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.""", DeprecationWarning)
pulumi.log.warn("""certificate_id is deprecated: Certificate IDs may change, for example when a Let's Encrypt certificate is auto-renewed. Please specify 'certificate_name' instead.""")
__props__.__dict__["certificate_id"] = certificate_id
__props__.__dict__["certificate_name"] = certificate_name
__props__.__dict__["custom_domain"] = custom_domain
Expand Down
84 changes: 67 additions & 17 deletions sdk/python/pulumi_digitalocean/certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
from . import _utilities
from ._enums import *

Expand Down Expand Up @@ -37,18 +37,37 @@ def __init__(__self__, *,
:param pulumi.Input[Union[str, 'CertificateType']] type: The type of certificate to provision. Can be either
`custom` or `lets_encrypt`. Defaults to `custom`.
"""
CertificateArgs._configure(
lambda key, value: pulumi.set(__self__, key, value),
certificate_chain=certificate_chain,
domains=domains,
leaf_certificate=leaf_certificate,
name=name,
private_key=private_key,
type=type,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
certificate_chain: Optional[pulumi.Input[str]] = None,
domains: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
leaf_certificate: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
private_key: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[Union[str, 'CertificateType']]] = None,
opts: Optional[pulumi.ResourceOptions]=None):
if certificate_chain is not None:
pulumi.set(__self__, "certificate_chain", certificate_chain)
_setter("certificate_chain", certificate_chain)
if domains is not None:
pulumi.set(__self__, "domains", domains)
_setter("domains", domains)
if leaf_certificate is not None:
pulumi.set(__self__, "leaf_certificate", leaf_certificate)
_setter("leaf_certificate", leaf_certificate)
if name is not None:
pulumi.set(__self__, "name", name)
_setter("name", name)
if private_key is not None:
pulumi.set(__self__, "private_key", private_key)
_setter("private_key", private_key)
if type is not None:
pulumi.set(__self__, "type", type)
_setter("type", type)

@property
@pulumi.getter(name="certificateChain")
Expand Down Expand Up @@ -162,26 +181,53 @@ def __init__(__self__, *,
`custom` or `lets_encrypt`. Defaults to `custom`.
:param pulumi.Input[str] uuid: The UUID of the certificate
"""
_CertificateState._configure(
lambda key, value: pulumi.set(__self__, key, value),
certificate_chain=certificate_chain,
domains=domains,
leaf_certificate=leaf_certificate,
name=name,
not_after=not_after,
private_key=private_key,
sha1_fingerprint=sha1_fingerprint,
state=state,
type=type,
uuid=uuid,
)
@staticmethod
def _configure(
_setter: Callable[[Any, Any], None],
certificate_chain: Optional[pulumi.Input[str]] = None,
domains: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
leaf_certificate: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
not_after: Optional[pulumi.Input[str]] = None,
private_key: Optional[pulumi.Input[str]] = None,
sha1_fingerprint: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[Union[str, 'CertificateType']]] = None,
uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[pulumi.ResourceOptions]=None):
if certificate_chain is not None:
pulumi.set(__self__, "certificate_chain", certificate_chain)
_setter("certificate_chain", certificate_chain)
if domains is not None:
pulumi.set(__self__, "domains", domains)
_setter("domains", domains)
if leaf_certificate is not None:
pulumi.set(__self__, "leaf_certificate", leaf_certificate)
_setter("leaf_certificate", leaf_certificate)
if name is not None:
pulumi.set(__self__, "name", name)
_setter("name", name)
if not_after is not None:
pulumi.set(__self__, "not_after", not_after)
_setter("not_after", not_after)
if private_key is not None:
pulumi.set(__self__, "private_key", private_key)
_setter("private_key", private_key)
if sha1_fingerprint is not None:
pulumi.set(__self__, "sha1_fingerprint", sha1_fingerprint)
_setter("sha1_fingerprint", sha1_fingerprint)
if state is not None:
pulumi.set(__self__, "state", state)
_setter("state", state)
if type is not None:
pulumi.set(__self__, "type", type)
_setter("type", type)
if uuid is not None:
pulumi.set(__self__, "uuid", uuid)
_setter("uuid", uuid)

@property
@pulumi.getter(name="certificateChain")
Expand Down Expand Up @@ -480,6 +526,10 @@ 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
CertificateArgs._configure(_setter, **kwargs)
__self__._internal_init(resource_name, *args, **kwargs)

def _internal_init(__self__,
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/pulumi_digitalocean/config/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
from .. import _utilities

apiEndpoint: str
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/pulumi_digitalocean/config/vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from typing import Any, Callable, Mapping, Optional, Sequence, Union, overload
from .. import _utilities

import types
Expand Down
Loading

0 comments on commit 1000f76

Please sign in to comment.