pulumi-cloudinit 1.4.0a1704400702__py3-none-any.whl → 1.4.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-cloudinit might be problematic. Click here for more details.

@@ -88,7 +88,7 @@ class ConfigPartArgs:
88
88
  class GetConfigPartArgs:
89
89
  def __init__(__self__, *,
90
90
  content: str,
91
- content_type: str,
91
+ content_type: Optional[str] = None,
92
92
  filename: Optional[str] = None,
93
93
  merge_type: Optional[str] = None):
94
94
  """
@@ -98,7 +98,10 @@ class GetConfigPartArgs:
98
98
  :param str merge_type: A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html).
99
99
  """
100
100
  pulumi.set(__self__, "content", content)
101
- pulumi.set(__self__, "content_type", content_type)
101
+ if content_type is None:
102
+ content_type = 'text/plain'
103
+ if content_type is not None:
104
+ pulumi.set(__self__, "content_type", content_type)
102
105
  if filename is not None:
103
106
  pulumi.set(__self__, "filename", filename)
104
107
  if merge_type is not None:
@@ -118,14 +121,14 @@ class GetConfigPartArgs:
118
121
 
119
122
  @property
120
123
  @pulumi.getter(name="contentType")
121
- def content_type(self) -> str:
124
+ def content_type(self) -> Optional[str]:
122
125
  """
123
126
  A MIME-style content type to report in the header for the part. Defaults to `text/plain`
124
127
  """
125
128
  return pulumi.get(self, "content_type")
126
129
 
127
130
  @content_type.setter
128
- def content_type(self, value: str):
131
+ def content_type(self, value: Optional[str]):
129
132
  pulumi.set(self, "content_type", value)
130
133
 
131
134
  @property
@@ -4,11 +4,11 @@
4
4
 
5
5
 
6
6
  import asyncio
7
+ import importlib.metadata
7
8
  import importlib.util
8
9
  import inspect
9
10
  import json
10
11
  import os
11
- import pkg_resources
12
12
  import sys
13
13
  import typing
14
14
 
@@ -72,7 +72,7 @@ def _get_semver_version():
72
72
  # to receive a valid semver string when receiving requests from the language host, so it's our
73
73
  # responsibility as the library to convert our own PEP440 version into a valid semver string.
74
74
 
75
- pep440_version_string = pkg_resources.require(root_package)[0].version
75
+ pep440_version_string = importlib.metadata.version(root_package)
76
76
  pep440_version = PEP440Version.parse(pep440_version_string)
77
77
  (major, minor, patch) = pep440_version.release
78
78
  prerelease = None
@@ -91,7 +91,7 @@ class ConfigPart(dict):
91
91
  class GetConfigPartResult(dict):
92
92
  def __init__(__self__, *,
93
93
  content: str,
94
- content_type: str,
94
+ content_type: Optional[str] = None,
95
95
  filename: Optional[str] = None,
96
96
  merge_type: Optional[str] = None):
97
97
  """
@@ -101,7 +101,10 @@ class GetConfigPartResult(dict):
101
101
  :param str merge_type: A value for the `X-Merge-Type` header of the part, to control [cloud-init merging behavior](https://cloudinit.readthedocs.io/en/latest/reference/merging.html).
102
102
  """
103
103
  pulumi.set(__self__, "content", content)
104
- pulumi.set(__self__, "content_type", content_type)
104
+ if content_type is None:
105
+ content_type = 'text/plain'
106
+ if content_type is not None:
107
+ pulumi.set(__self__, "content_type", content_type)
105
108
  if filename is not None:
106
109
  pulumi.set(__self__, "filename", filename)
107
110
  if merge_type is not None:
@@ -117,7 +120,7 @@ class GetConfigPartResult(dict):
117
120
 
118
121
  @property
119
122
  @pulumi.getter(name="contentType")
120
- def content_type(self) -> str:
123
+ def content_type(self) -> Optional[str]:
121
124
  """
122
125
  A MIME-style content type to report in the header for the part. Defaults to `text/plain`
123
126
  """
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_cloudinit
3
- Version: 1.4.0a1704400702
3
+ Version: 1.4.2
4
4
  Summary: A Pulumi package for creating and managing cloudinit cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
7
7
  Project-URL: Repository, https://github.com/pulumi/pulumi-cloudinit
8
8
  Keywords: pulumi,cloudinit
9
- Requires-Python: >=3.7
9
+ Requires-Python: >=3.8
10
10
  Description-Content-Type: text/markdown
11
11
  Requires-Dist: parver >=0.2.1
12
12
  Requires-Dist: pulumi <4.0.0,>=3.0.0
@@ -0,0 +1,13 @@
1
+ pulumi_cloudinit/__init__.py,sha256=ZUoQnlEisLLi4mXn2olbTSvLgktNDKJO5WAmhtnkF2o,742
2
+ pulumi_cloudinit/_inputs.py,sha256=VPTZqOyZX1gpF-K1YO_92rG8BhGacN1wn715BIdCfWc,5664
3
+ pulumi_cloudinit/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
4
+ pulumi_cloudinit/config.py,sha256=iLwjKQpi_Ck1eNnY8ub09hmbo4pwW3r4k5OgQDYquK8,16889
5
+ pulumi_cloudinit/get_config.py,sha256=LVR_IHBf00GDUD_6EBVXZHbWv27PBg9g8uu08sYHsuY,8475
6
+ pulumi_cloudinit/outputs.py,sha256=dJjV0MZt_2WQ9JzW2cK717aGR9tUtLXXJ04ZYH3MX9k,5164
7
+ pulumi_cloudinit/provider.py,sha256=kxpTmaKzB_SnaSlNKTBEAeyoo_sKz4vipRY3G00Js_0,3429
8
+ pulumi_cloudinit/pulumi-plugin.json,sha256=f1L05qN3IdrE47swUPv878naQdq3kUSauEF2fUYKy34,46
9
+ pulumi_cloudinit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
+ pulumi_cloudinit-1.4.2.dist-info/METADATA,sha256=1bw9n8ay7Ok1hWUvRn_FvYv08kErzBEHRb6TD_A0omc,2292
11
+ pulumi_cloudinit-1.4.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
12
+ pulumi_cloudinit-1.4.2.dist-info/top_level.txt,sha256=r4QYaTIAq7VhHfjPgOmRvtkrHwZffd3a78VTmuaWcg8,17
13
+ pulumi_cloudinit-1.4.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,13 +0,0 @@
1
- pulumi_cloudinit/__init__.py,sha256=ZUoQnlEisLLi4mXn2olbTSvLgktNDKJO5WAmhtnkF2o,742
2
- pulumi_cloudinit/_inputs.py,sha256=GL0gvB5h0f1KZtZ31ozFFYe-BToAU3fwiuziTQcWqiI,5513
3
- pulumi_cloudinit/_utilities.py,sha256=nNKRJyG0bkCleVzIGnszB5TSQOVUqAHks2baneWhujg,9249
4
- pulumi_cloudinit/config.py,sha256=iLwjKQpi_Ck1eNnY8ub09hmbo4pwW3r4k5OgQDYquK8,16889
5
- pulumi_cloudinit/get_config.py,sha256=LVR_IHBf00GDUD_6EBVXZHbWv27PBg9g8uu08sYHsuY,8475
6
- pulumi_cloudinit/outputs.py,sha256=ne_sKf_Unai_Ryf69xDxuS5oTPNMqknDdIsFb4qIsA0,5023
7
- pulumi_cloudinit/provider.py,sha256=kxpTmaKzB_SnaSlNKTBEAeyoo_sKz4vipRY3G00Js_0,3429
8
- pulumi_cloudinit/pulumi-plugin.json,sha256=f1L05qN3IdrE47swUPv878naQdq3kUSauEF2fUYKy34,46
9
- pulumi_cloudinit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- pulumi_cloudinit-1.4.0a1704400702.dist-info/METADATA,sha256=dm01SsauBltT-jrKwakCXTdVpz6oHhHkY4B4moJneOY,2303
11
- pulumi_cloudinit-1.4.0a1704400702.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
12
- pulumi_cloudinit-1.4.0a1704400702.dist-info/top_level.txt,sha256=r4QYaTIAq7VhHfjPgOmRvtkrHwZffd3a78VTmuaWcg8,17
13
- pulumi_cloudinit-1.4.0a1704400702.dist-info/RECORD,,