pulumi-docker 4.7.0a1747201669__py3-none-any.whl → 4.7.0a1747851171__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.
pulumi_docker/network.py CHANGED
@@ -51,6 +51,9 @@ class NetworkArgs:
51
51
  """
52
52
  if attachable is not None:
53
53
  pulumi.set(__self__, "attachable", attachable)
54
+ if check_duplicate is not None:
55
+ warnings.warn("""This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks.""", DeprecationWarning)
56
+ pulumi.log.warn("""check_duplicate is deprecated: This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks.""")
54
57
  if check_duplicate is not None:
55
58
  pulumi.set(__self__, "check_duplicate", check_duplicate)
56
59
  if driver is not None:
@@ -88,6 +91,7 @@ class NetworkArgs:
88
91
 
89
92
  @property
90
93
  @pulumi.getter(name="checkDuplicate")
94
+ @_utilities.deprecated("""This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks.""")
91
95
  def check_duplicate(self) -> Optional[pulumi.Input[builtins.bool]]:
92
96
  """
93
97
  Requests daemon to check for networks with same name.
@@ -253,6 +257,9 @@ class _NetworkState:
253
257
  """
254
258
  if attachable is not None:
255
259
  pulumi.set(__self__, "attachable", attachable)
260
+ if check_duplicate is not None:
261
+ warnings.warn("""This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks.""", DeprecationWarning)
262
+ pulumi.log.warn("""check_duplicate is deprecated: This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks.""")
256
263
  if check_duplicate is not None:
257
264
  pulumi.set(__self__, "check_duplicate", check_duplicate)
258
265
  if driver is not None:
@@ -292,6 +299,7 @@ class _NetworkState:
292
299
 
293
300
  @property
294
301
  @pulumi.getter(name="checkDuplicate")
302
+ @_utilities.deprecated("""This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks.""")
295
303
  def check_duplicate(self) -> Optional[pulumi.Input[builtins.bool]]:
296
304
  """
297
305
  Requests daemon to check for networks with same name.
@@ -687,6 +695,7 @@ class Network(pulumi.CustomResource):
687
695
 
688
696
  @property
689
697
  @pulumi.getter(name="checkDuplicate")
698
+ @_utilities.deprecated("""This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks.""")
690
699
  def check_duplicate(self) -> pulumi.Output[Optional[builtins.bool]]:
691
700
  """
692
701
  Requests daemon to check for networks with same name.
pulumi_docker/outputs.py CHANGED
@@ -37,8 +37,10 @@ __all__ = [
37
37
  'NetworkIpamConfig',
38
38
  'NetworkLabel',
39
39
  'PluginGrantPermission',
40
+ 'RegistryImageAuthConfig',
40
41
  'RemoteImageBuild',
41
42
  'RemoteImageBuildAuthConfig',
43
+ 'RemoteImageBuildSecret',
42
44
  'RemoteImageBuildUlimit',
43
45
  'SecretLabel',
44
46
  'ServiceAuth',
@@ -77,6 +79,8 @@ __all__ = [
77
79
  'ServiceUpdateConfig',
78
80
  'VolumeLabel',
79
81
  'GetNetworkIpamConfigResult',
82
+ 'GetRegistryImageManifestsAuthConfigResult',
83
+ 'GetRegistryImageManifestsManifestResult',
80
84
  ]
81
85
 
82
86
  @pulumi.output_type
@@ -176,7 +180,9 @@ class ContainerHealthcheck(dict):
176
180
  @staticmethod
177
181
  def __key_warning(key: str):
178
182
  suggest = None
179
- if key == "startPeriod":
183
+ if key == "startInterval":
184
+ suggest = "start_interval"
185
+ elif key == "startPeriod":
180
186
  suggest = "start_period"
181
187
 
182
188
  if suggest:
@@ -194,12 +200,14 @@ class ContainerHealthcheck(dict):
194
200
  tests: Sequence[builtins.str],
195
201
  interval: Optional[builtins.str] = None,
196
202
  retries: Optional[builtins.int] = None,
203
+ start_interval: Optional[builtins.str] = None,
197
204
  start_period: Optional[builtins.str] = None,
198
205
  timeout: Optional[builtins.str] = None):
199
206
  """
200
207
  :param Sequence[builtins.str] tests: Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`.
201
208
  :param builtins.str interval: Time between running the check (ms|s|m|h). Defaults to `0s`.
202
209
  :param builtins.int retries: Consecutive failures needed to report unhealthy. Defaults to `0`.
210
+ :param builtins.str start_interval: Interval before the healthcheck starts (ms|s|m|h). Defaults to `0s`.
203
211
  :param builtins.str start_period: Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`.
204
212
  :param builtins.str timeout: Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`.
205
213
  """
@@ -208,6 +216,8 @@ class ContainerHealthcheck(dict):
208
216
  pulumi.set(__self__, "interval", interval)
209
217
  if retries is not None:
210
218
  pulumi.set(__self__, "retries", retries)
219
+ if start_interval is not None:
220
+ pulumi.set(__self__, "start_interval", start_interval)
211
221
  if start_period is not None:
212
222
  pulumi.set(__self__, "start_period", start_period)
213
223
  if timeout is not None:
@@ -237,6 +247,14 @@ class ContainerHealthcheck(dict):
237
247
  """
238
248
  return pulumi.get(self, "retries")
239
249
 
250
+ @property
251
+ @pulumi.getter(name="startInterval")
252
+ def start_interval(self) -> Optional[builtins.str]:
253
+ """
254
+ Interval before the healthcheck starts (ms|s|m|h). Defaults to `0s`.
255
+ """
256
+ return pulumi.get(self, "start_interval")
257
+
240
258
  @property
241
259
  @pulumi.getter(name="startPeriod")
242
260
  def start_period(self) -> Optional[builtins.str]:
@@ -518,12 +536,14 @@ class ContainerMountVolumeOptions(dict):
518
536
  driver_name: Optional[builtins.str] = None,
519
537
  driver_options: Optional[Mapping[str, builtins.str]] = None,
520
538
  labels: Optional[Sequence['outputs.ContainerMountVolumeOptionsLabel']] = None,
521
- no_copy: Optional[builtins.bool] = None):
539
+ no_copy: Optional[builtins.bool] = None,
540
+ subpath: Optional[builtins.str] = None):
522
541
  """
523
542
  :param builtins.str driver_name: Name of the driver to use to create the volume.
524
543
  :param Mapping[str, builtins.str] driver_options: key/value map of driver specific options.
525
544
  :param Sequence['ContainerMountVolumeOptionsLabelArgs'] labels: User-defined key/value metadata.
526
545
  :param builtins.bool no_copy: Populate volume with data from the target.
546
+ :param builtins.str subpath: Path within the volume to mount. Requires docker server version 1.45 or higher.
527
547
  """
528
548
  if driver_name is not None:
529
549
  pulumi.set(__self__, "driver_name", driver_name)
@@ -533,6 +553,8 @@ class ContainerMountVolumeOptions(dict):
533
553
  pulumi.set(__self__, "labels", labels)
534
554
  if no_copy is not None:
535
555
  pulumi.set(__self__, "no_copy", no_copy)
556
+ if subpath is not None:
557
+ pulumi.set(__self__, "subpath", subpath)
536
558
 
537
559
  @property
538
560
  @pulumi.getter(name="driverName")
@@ -566,6 +588,14 @@ class ContainerMountVolumeOptions(dict):
566
588
  """
567
589
  return pulumi.get(self, "no_copy")
568
590
 
591
+ @property
592
+ @pulumi.getter
593
+ def subpath(self) -> Optional[builtins.str]:
594
+ """
595
+ Path within the volume to mount. Requires docker server version 1.45 or higher.
596
+ """
597
+ return pulumi.get(self, "subpath")
598
+
569
599
 
570
600
  @pulumi.output_type
571
601
  class ContainerMountVolumeOptionsLabel(dict):
@@ -921,6 +951,7 @@ class ContainerUpload(dict):
921
951
  content: Optional[builtins.str] = None,
922
952
  content_base64: Optional[builtins.str] = None,
923
953
  executable: Optional[builtins.bool] = None,
954
+ permissions: Optional[builtins.str] = None,
924
955
  source: Optional[builtins.str] = None,
925
956
  source_hash: Optional[builtins.str] = None):
926
957
  """
@@ -928,6 +959,7 @@ class ContainerUpload(dict):
928
959
  :param builtins.str content: Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `content_base64` & `source`
929
960
  :param builtins.str content_base64: Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source`
930
961
  :param builtins.bool executable: If `true`, the file will be uploaded with user executable permission. Defaults to `false`.
962
+ :param builtins.str permissions: The permission mode for the file in the container. Has precedence over `executable`.
931
963
  :param builtins.str source: A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with `content` & `content_base64`
932
964
  :param builtins.str source_hash: If using `source`, this will force an update if the file content has updated but the filename has not.
933
965
  """
@@ -938,6 +970,8 @@ class ContainerUpload(dict):
938
970
  pulumi.set(__self__, "content_base64", content_base64)
939
971
  if executable is not None:
940
972
  pulumi.set(__self__, "executable", executable)
973
+ if permissions is not None:
974
+ pulumi.set(__self__, "permissions", permissions)
941
975
  if source is not None:
942
976
  pulumi.set(__self__, "source", source)
943
977
  if source_hash is not None:
@@ -975,6 +1009,14 @@ class ContainerUpload(dict):
975
1009
  """
976
1010
  return pulumi.get(self, "executable")
977
1011
 
1012
+ @property
1013
+ @pulumi.getter
1014
+ def permissions(self) -> Optional[builtins.str]:
1015
+ """
1016
+ The permission mode for the file in the container. Has precedence over `executable`.
1017
+ """
1018
+ return pulumi.get(self, "permissions")
1019
+
978
1020
  @property
979
1021
  @pulumi.getter
980
1022
  def source(self) -> Optional[builtins.str]:
@@ -1216,6 +1258,46 @@ class PluginGrantPermission(dict):
1216
1258
  return pulumi.get(self, "values")
1217
1259
 
1218
1260
 
1261
+ @pulumi.output_type
1262
+ class RegistryImageAuthConfig(dict):
1263
+ def __init__(__self__, *,
1264
+ address: builtins.str,
1265
+ password: builtins.str,
1266
+ username: builtins.str):
1267
+ """
1268
+ :param builtins.str address: The address of the Docker registry.
1269
+ :param builtins.str password: The password for the Docker registry.
1270
+ :param builtins.str username: The username for the Docker registry.
1271
+ """
1272
+ pulumi.set(__self__, "address", address)
1273
+ pulumi.set(__self__, "password", password)
1274
+ pulumi.set(__self__, "username", username)
1275
+
1276
+ @property
1277
+ @pulumi.getter
1278
+ def address(self) -> builtins.str:
1279
+ """
1280
+ The address of the Docker registry.
1281
+ """
1282
+ return pulumi.get(self, "address")
1283
+
1284
+ @property
1285
+ @pulumi.getter
1286
+ def password(self) -> builtins.str:
1287
+ """
1288
+ The password for the Docker registry.
1289
+ """
1290
+ return pulumi.get(self, "password")
1291
+
1292
+ @property
1293
+ @pulumi.getter
1294
+ def username(self) -> builtins.str:
1295
+ """
1296
+ The username for the Docker registry.
1297
+ """
1298
+ return pulumi.get(self, "username")
1299
+
1300
+
1219
1301
  @pulumi.output_type
1220
1302
  class RemoteImageBuild(dict):
1221
1303
  @staticmethod
@@ -1223,12 +1305,12 @@ class RemoteImageBuild(dict):
1223
1305
  suggest = None
1224
1306
  if key == "authConfigs":
1225
1307
  suggest = "auth_configs"
1226
- elif key == "buildArg":
1227
- suggest = "build_arg"
1228
1308
  elif key == "buildArgs":
1229
1309
  suggest = "build_args"
1230
1310
  elif key == "buildId":
1231
1311
  suggest = "build_id"
1312
+ elif key == "buildLogFile":
1313
+ suggest = "build_log_file"
1232
1314
  elif key == "cacheFroms":
1233
1315
  suggest = "cache_froms"
1234
1316
  elif key == "cgroupParent":
@@ -1280,9 +1362,10 @@ class RemoteImageBuild(dict):
1280
1362
  def __init__(__self__, *,
1281
1363
  context: builtins.str,
1282
1364
  auth_configs: Optional[Sequence['outputs.RemoteImageBuildAuthConfig']] = None,
1283
- build_arg: Optional[Mapping[str, builtins.str]] = None,
1284
1365
  build_args: Optional[Mapping[str, builtins.str]] = None,
1285
1366
  build_id: Optional[builtins.str] = None,
1367
+ build_log_file: Optional[builtins.str] = None,
1368
+ builder: Optional[builtins.str] = None,
1286
1369
  cache_froms: Optional[Sequence[builtins.str]] = None,
1287
1370
  cgroup_parent: Optional[builtins.str] = None,
1288
1371
  cpu_period: Optional[builtins.int] = None,
@@ -1304,6 +1387,7 @@ class RemoteImageBuild(dict):
1304
1387
  pull_parent: Optional[builtins.bool] = None,
1305
1388
  remote_context: Optional[builtins.str] = None,
1306
1389
  remove: Optional[builtins.bool] = None,
1390
+ secrets: Optional[Sequence['outputs.RemoteImageBuildSecret']] = None,
1307
1391
  security_opts: Optional[Sequence[builtins.str]] = None,
1308
1392
  session_id: Optional[builtins.str] = None,
1309
1393
  shm_size: Optional[builtins.int] = None,
@@ -1314,11 +1398,12 @@ class RemoteImageBuild(dict):
1314
1398
  ulimits: Optional[Sequence['outputs.RemoteImageBuildUlimit']] = None,
1315
1399
  version: Optional[builtins.str] = None):
1316
1400
  """
1317
- :param builtins.str context: Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. Please see https://docs.docker.com/build/building/context/ for more information about build contexts.
1401
+ :param builtins.str context: Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts.
1318
1402
  :param Sequence['RemoteImageBuildAuthConfigArgs'] auth_configs: The configuration for the authentication
1319
- :param Mapping[str, builtins.str] build_arg: Set build-time variables
1320
- :param Mapping[str, builtins.str] build_args: Pairs for build-time variables in the form TODO
1403
+ :param Mapping[str, builtins.str] build_args: Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"`
1321
1404
  :param builtins.str build_id: BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request.
1405
+ :param builtins.str build_log_file: Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available.
1406
+ :param builtins.str builder: Set the name of the buildx builder to use. If not set or empty, the legacy builder will be used.
1322
1407
  :param Sequence[builtins.str] cache_froms: Images to consider as cache sources
1323
1408
  :param builtins.str cgroup_parent: Optional parent cgroup for the container
1324
1409
  :param builtins.int cpu_period: The length of a CPU period in microseconds
@@ -1338,8 +1423,9 @@ class RemoteImageBuild(dict):
1338
1423
  :param builtins.bool no_cache: Do not use the cache when building the image
1339
1424
  :param builtins.str platform: Set platform if server is multi-platform capable
1340
1425
  :param builtins.bool pull_parent: Attempt to pull the image even if an older image exists locally
1341
- :param builtins.str remote_context: A Git repository URI or HTTP/HTTPS context URI
1426
+ :param builtins.str remote_context: A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set.
1342
1427
  :param builtins.bool remove: Remove intermediate containers after a successful build. Defaults to `true`.
1428
+ :param Sequence['RemoteImageBuildSecretArgs'] secrets: Set build-time secrets. Only available when you use a buildx builder.
1343
1429
  :param Sequence[builtins.str] security_opts: The security options
1344
1430
  :param builtins.str session_id: Set an ID for the build session
1345
1431
  :param builtins.int shm_size: Size of /dev/shm in bytes. The size must be greater than 0
@@ -1353,12 +1439,14 @@ class RemoteImageBuild(dict):
1353
1439
  pulumi.set(__self__, "context", context)
1354
1440
  if auth_configs is not None:
1355
1441
  pulumi.set(__self__, "auth_configs", auth_configs)
1356
- if build_arg is not None:
1357
- pulumi.set(__self__, "build_arg", build_arg)
1358
1442
  if build_args is not None:
1359
1443
  pulumi.set(__self__, "build_args", build_args)
1360
1444
  if build_id is not None:
1361
1445
  pulumi.set(__self__, "build_id", build_id)
1446
+ if build_log_file is not None:
1447
+ pulumi.set(__self__, "build_log_file", build_log_file)
1448
+ if builder is not None:
1449
+ pulumi.set(__self__, "builder", builder)
1362
1450
  if cache_froms is not None:
1363
1451
  pulumi.set(__self__, "cache_froms", cache_froms)
1364
1452
  if cgroup_parent is not None:
@@ -1401,6 +1489,8 @@ class RemoteImageBuild(dict):
1401
1489
  pulumi.set(__self__, "remote_context", remote_context)
1402
1490
  if remove is not None:
1403
1491
  pulumi.set(__self__, "remove", remove)
1492
+ if secrets is not None:
1493
+ pulumi.set(__self__, "secrets", secrets)
1404
1494
  if security_opts is not None:
1405
1495
  pulumi.set(__self__, "security_opts", security_opts)
1406
1496
  if session_id is not None:
@@ -1424,7 +1514,7 @@ class RemoteImageBuild(dict):
1424
1514
  @pulumi.getter
1425
1515
  def context(self) -> builtins.str:
1426
1516
  """
1427
- Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. Please see https://docs.docker.com/build/building/context/ for more information about build contexts.
1517
+ Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts.
1428
1518
  """
1429
1519
  return pulumi.get(self, "context")
1430
1520
 
@@ -1436,19 +1526,11 @@ class RemoteImageBuild(dict):
1436
1526
  """
1437
1527
  return pulumi.get(self, "auth_configs")
1438
1528
 
1439
- @property
1440
- @pulumi.getter(name="buildArg")
1441
- def build_arg(self) -> Optional[Mapping[str, builtins.str]]:
1442
- """
1443
- Set build-time variables
1444
- """
1445
- return pulumi.get(self, "build_arg")
1446
-
1447
1529
  @property
1448
1530
  @pulumi.getter(name="buildArgs")
1449
1531
  def build_args(self) -> Optional[Mapping[str, builtins.str]]:
1450
1532
  """
1451
- Pairs for build-time variables in the form TODO
1533
+ Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"`
1452
1534
  """
1453
1535
  return pulumi.get(self, "build_args")
1454
1536
 
@@ -1460,6 +1542,22 @@ class RemoteImageBuild(dict):
1460
1542
  """
1461
1543
  return pulumi.get(self, "build_id")
1462
1544
 
1545
+ @property
1546
+ @pulumi.getter(name="buildLogFile")
1547
+ def build_log_file(self) -> Optional[builtins.str]:
1548
+ """
1549
+ Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available.
1550
+ """
1551
+ return pulumi.get(self, "build_log_file")
1552
+
1553
+ @property
1554
+ @pulumi.getter
1555
+ def builder(self) -> Optional[builtins.str]:
1556
+ """
1557
+ Set the name of the buildx builder to use. If not set or empty, the legacy builder will be used.
1558
+ """
1559
+ return pulumi.get(self, "builder")
1560
+
1463
1561
  @property
1464
1562
  @pulumi.getter(name="cacheFroms")
1465
1563
  def cache_froms(self) -> Optional[Sequence[builtins.str]]:
@@ -1616,7 +1714,7 @@ class RemoteImageBuild(dict):
1616
1714
  @pulumi.getter(name="remoteContext")
1617
1715
  def remote_context(self) -> Optional[builtins.str]:
1618
1716
  """
1619
- A Git repository URI or HTTP/HTTPS context URI
1717
+ A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set.
1620
1718
  """
1621
1719
  return pulumi.get(self, "remote_context")
1622
1720
 
@@ -1628,6 +1726,14 @@ class RemoteImageBuild(dict):
1628
1726
  """
1629
1727
  return pulumi.get(self, "remove")
1630
1728
 
1729
+ @property
1730
+ @pulumi.getter
1731
+ def secrets(self) -> Optional[Sequence['outputs.RemoteImageBuildSecret']]:
1732
+ """
1733
+ Set build-time secrets. Only available when you use a buildx builder.
1734
+ """
1735
+ return pulumi.get(self, "secrets")
1736
+
1631
1737
  @property
1632
1738
  @pulumi.getter(name="securityOpts")
1633
1739
  def security_opts(self) -> Optional[Sequence[builtins.str]]:
@@ -1828,6 +1934,48 @@ class RemoteImageBuildAuthConfig(dict):
1828
1934
  return pulumi.get(self, "user_name")
1829
1935
 
1830
1936
 
1937
+ @pulumi.output_type
1938
+ class RemoteImageBuildSecret(dict):
1939
+ def __init__(__self__, *,
1940
+ id: builtins.str,
1941
+ env: Optional[builtins.str] = None,
1942
+ src: Optional[builtins.str] = None):
1943
+ """
1944
+ :param builtins.str id: ID of the secret. By default, secrets are mounted to /run/secrets/\\n\\n
1945
+ :param builtins.str env: Environment variable source of the secret
1946
+ :param builtins.str src: File source of the secret. Takes precedence over `env`
1947
+ """
1948
+ pulumi.set(__self__, "id", id)
1949
+ if env is not None:
1950
+ pulumi.set(__self__, "env", env)
1951
+ if src is not None:
1952
+ pulumi.set(__self__, "src", src)
1953
+
1954
+ @property
1955
+ @pulumi.getter
1956
+ def id(self) -> builtins.str:
1957
+ """
1958
+ ID of the secret. By default, secrets are mounted to /run/secrets/\\n\\n
1959
+ """
1960
+ return pulumi.get(self, "id")
1961
+
1962
+ @property
1963
+ @pulumi.getter
1964
+ def env(self) -> Optional[builtins.str]:
1965
+ """
1966
+ Environment variable source of the secret
1967
+ """
1968
+ return pulumi.get(self, "env")
1969
+
1970
+ @property
1971
+ @pulumi.getter
1972
+ def src(self) -> Optional[builtins.str]:
1973
+ """
1974
+ File source of the secret. Takes precedence over `env`
1975
+ """
1976
+ return pulumi.get(self, "src")
1977
+
1978
+
1831
1979
  @pulumi.output_type
1832
1980
  class RemoteImageBuildUlimit(dict):
1833
1981
  def __init__(__self__, *,
@@ -4169,3 +4317,94 @@ class GetNetworkIpamConfigResult(dict):
4169
4317
  return pulumi.get(self, "subnet")
4170
4318
 
4171
4319
 
4320
+ @pulumi.output_type
4321
+ class GetRegistryImageManifestsAuthConfigResult(dict):
4322
+ def __init__(__self__, *,
4323
+ address: builtins.str,
4324
+ password: builtins.str,
4325
+ username: builtins.str):
4326
+ """
4327
+ :param builtins.str address: The address of the Docker registry.
4328
+ :param builtins.str password: The password for the Docker registry.
4329
+ :param builtins.str username: The username for the Docker registry.
4330
+ """
4331
+ pulumi.set(__self__, "address", address)
4332
+ pulumi.set(__self__, "password", password)
4333
+ pulumi.set(__self__, "username", username)
4334
+
4335
+ @property
4336
+ @pulumi.getter
4337
+ def address(self) -> builtins.str:
4338
+ """
4339
+ The address of the Docker registry.
4340
+ """
4341
+ return pulumi.get(self, "address")
4342
+
4343
+ @property
4344
+ @pulumi.getter
4345
+ def password(self) -> builtins.str:
4346
+ """
4347
+ The password for the Docker registry.
4348
+ """
4349
+ return pulumi.get(self, "password")
4350
+
4351
+ @property
4352
+ @pulumi.getter
4353
+ def username(self) -> builtins.str:
4354
+ """
4355
+ The username for the Docker registry.
4356
+ """
4357
+ return pulumi.get(self, "username")
4358
+
4359
+
4360
+ @pulumi.output_type
4361
+ class GetRegistryImageManifestsManifestResult(dict):
4362
+ def __init__(__self__, *,
4363
+ architecture: builtins.str,
4364
+ media_type: builtins.str,
4365
+ os: builtins.str,
4366
+ sha256_digest: builtins.str):
4367
+ """
4368
+ :param builtins.str architecture: The platform architecture supported by the manifest.
4369
+ :param builtins.str media_type: The media type of the manifest.
4370
+ :param builtins.str os: The operating system supported by the manifest.
4371
+ :param builtins.str sha256_digest: The content digest of the manifest, as stored in the registry.
4372
+ """
4373
+ pulumi.set(__self__, "architecture", architecture)
4374
+ pulumi.set(__self__, "media_type", media_type)
4375
+ pulumi.set(__self__, "os", os)
4376
+ pulumi.set(__self__, "sha256_digest", sha256_digest)
4377
+
4378
+ @property
4379
+ @pulumi.getter
4380
+ def architecture(self) -> builtins.str:
4381
+ """
4382
+ The platform architecture supported by the manifest.
4383
+ """
4384
+ return pulumi.get(self, "architecture")
4385
+
4386
+ @property
4387
+ @pulumi.getter(name="mediaType")
4388
+ def media_type(self) -> builtins.str:
4389
+ """
4390
+ The media type of the manifest.
4391
+ """
4392
+ return pulumi.get(self, "media_type")
4393
+
4394
+ @property
4395
+ @pulumi.getter
4396
+ def os(self) -> builtins.str:
4397
+ """
4398
+ The operating system supported by the manifest.
4399
+ """
4400
+ return pulumi.get(self, "os")
4401
+
4402
+ @property
4403
+ @pulumi.getter(name="sha256Digest")
4404
+ def sha256_digest(self) -> builtins.str:
4405
+ """
4406
+ The content digest of the manifest, as stored in the registry.
4407
+ """
4408
+ return pulumi.get(self, "sha256_digest")
4409
+
4410
+
pulumi_docker/provider.py CHANGED
@@ -24,6 +24,8 @@ class ProviderArgs:
24
24
  ca_material: Optional[pulumi.Input[builtins.str]] = None,
25
25
  cert_material: Optional[pulumi.Input[builtins.str]] = None,
26
26
  cert_path: Optional[pulumi.Input[builtins.str]] = None,
27
+ context: Optional[pulumi.Input[builtins.str]] = None,
28
+ disable_docker_daemon_check: Optional[pulumi.Input[builtins.bool]] = None,
27
29
  host: Optional[pulumi.Input[builtins.str]] = None,
28
30
  key_material: Optional[pulumi.Input[builtins.str]] = None,
29
31
  registry_auth: Optional[pulumi.Input[Sequence[pulumi.Input['ProviderRegistryAuthArgs']]]] = None,
@@ -33,6 +35,10 @@ class ProviderArgs:
33
35
  :param pulumi.Input[builtins.str] ca_material: PEM-encoded content of Docker host CA certificate
34
36
  :param pulumi.Input[builtins.str] cert_material: PEM-encoded content of Docker client certificate
35
37
  :param pulumi.Input[builtins.str] cert_path: Path to directory with Docker TLS config
38
+ :param pulumi.Input[builtins.str] context: The name of the Docker context to use. Can also be set via `DOCKER_CONTEXT` environment variable. Overrides the `host`
39
+ if set.
40
+ :param pulumi.Input[builtins.bool] disable_docker_daemon_check: If set to `true`, the provider will not check if the Docker daemon is running. This is useful for
41
+ resources/data_sourcess that do not require a running Docker daemon, such as the data source `RegistryImage`.
36
42
  :param pulumi.Input[builtins.str] host: The Docker daemon address
37
43
  :param pulumi.Input[builtins.str] key_material: PEM-encoded content of Docker client private key
38
44
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] ssh_opts: Additional SSH option flags to be appended when using `ssh://` protocol
@@ -43,6 +49,10 @@ class ProviderArgs:
43
49
  pulumi.set(__self__, "cert_material", cert_material)
44
50
  if cert_path is not None:
45
51
  pulumi.set(__self__, "cert_path", cert_path)
52
+ if context is not None:
53
+ pulumi.set(__self__, "context", context)
54
+ if disable_docker_daemon_check is not None:
55
+ pulumi.set(__self__, "disable_docker_daemon_check", disable_docker_daemon_check)
46
56
  if host is None:
47
57
  host = _utilities.get_env('DOCKER_HOST')
48
58
  if host is not None:
@@ -90,6 +100,32 @@ class ProviderArgs:
90
100
  def cert_path(self, value: Optional[pulumi.Input[builtins.str]]):
91
101
  pulumi.set(self, "cert_path", value)
92
102
 
103
+ @property
104
+ @pulumi.getter
105
+ def context(self) -> Optional[pulumi.Input[builtins.str]]:
106
+ """
107
+ The name of the Docker context to use. Can also be set via `DOCKER_CONTEXT` environment variable. Overrides the `host`
108
+ if set.
109
+ """
110
+ return pulumi.get(self, "context")
111
+
112
+ @context.setter
113
+ def context(self, value: Optional[pulumi.Input[builtins.str]]):
114
+ pulumi.set(self, "context", value)
115
+
116
+ @property
117
+ @pulumi.getter(name="disableDockerDaemonCheck")
118
+ def disable_docker_daemon_check(self) -> Optional[pulumi.Input[builtins.bool]]:
119
+ """
120
+ If set to `true`, the provider will not check if the Docker daemon is running. This is useful for
121
+ resources/data_sourcess that do not require a running Docker daemon, such as the data source `RegistryImage`.
122
+ """
123
+ return pulumi.get(self, "disable_docker_daemon_check")
124
+
125
+ @disable_docker_daemon_check.setter
126
+ def disable_docker_daemon_check(self, value: Optional[pulumi.Input[builtins.bool]]):
127
+ pulumi.set(self, "disable_docker_daemon_check", value)
128
+
93
129
  @property
94
130
  @pulumi.getter
95
131
  def host(self) -> Optional[pulumi.Input[builtins.str]]:
@@ -145,6 +181,8 @@ class Provider(pulumi.ProviderResource):
145
181
  ca_material: Optional[pulumi.Input[builtins.str]] = None,
146
182
  cert_material: Optional[pulumi.Input[builtins.str]] = None,
147
183
  cert_path: Optional[pulumi.Input[builtins.str]] = None,
184
+ context: Optional[pulumi.Input[builtins.str]] = None,
185
+ disable_docker_daemon_check: Optional[pulumi.Input[builtins.bool]] = None,
148
186
  host: Optional[pulumi.Input[builtins.str]] = None,
149
187
  key_material: Optional[pulumi.Input[builtins.str]] = None,
150
188
  registry_auth: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProviderRegistryAuthArgs', 'ProviderRegistryAuthArgsDict']]]]] = None,
@@ -161,6 +199,10 @@ class Provider(pulumi.ProviderResource):
161
199
  :param pulumi.Input[builtins.str] ca_material: PEM-encoded content of Docker host CA certificate
162
200
  :param pulumi.Input[builtins.str] cert_material: PEM-encoded content of Docker client certificate
163
201
  :param pulumi.Input[builtins.str] cert_path: Path to directory with Docker TLS config
202
+ :param pulumi.Input[builtins.str] context: The name of the Docker context to use. Can also be set via `DOCKER_CONTEXT` environment variable. Overrides the `host`
203
+ if set.
204
+ :param pulumi.Input[builtins.bool] disable_docker_daemon_check: If set to `true`, the provider will not check if the Docker daemon is running. This is useful for
205
+ resources/data_sourcess that do not require a running Docker daemon, such as the data source `RegistryImage`.
164
206
  :param pulumi.Input[builtins.str] host: The Docker daemon address
165
207
  :param pulumi.Input[builtins.str] key_material: PEM-encoded content of Docker client private key
166
208
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] ssh_opts: Additional SSH option flags to be appended when using `ssh://` protocol
@@ -195,6 +237,8 @@ class Provider(pulumi.ProviderResource):
195
237
  ca_material: Optional[pulumi.Input[builtins.str]] = None,
196
238
  cert_material: Optional[pulumi.Input[builtins.str]] = None,
197
239
  cert_path: Optional[pulumi.Input[builtins.str]] = None,
240
+ context: Optional[pulumi.Input[builtins.str]] = None,
241
+ disable_docker_daemon_check: Optional[pulumi.Input[builtins.bool]] = None,
198
242
  host: Optional[pulumi.Input[builtins.str]] = None,
199
243
  key_material: Optional[pulumi.Input[builtins.str]] = None,
200
244
  registry_auth: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ProviderRegistryAuthArgs', 'ProviderRegistryAuthArgsDict']]]]] = None,
@@ -211,6 +255,8 @@ class Provider(pulumi.ProviderResource):
211
255
  __props__.__dict__["ca_material"] = ca_material
212
256
  __props__.__dict__["cert_material"] = cert_material
213
257
  __props__.__dict__["cert_path"] = cert_path
258
+ __props__.__dict__["context"] = context
259
+ __props__.__dict__["disable_docker_daemon_check"] = pulumi.Output.from_input(disable_docker_daemon_check).apply(pulumi.runtime.to_json) if disable_docker_daemon_check is not None else None
214
260
  if host is None:
215
261
  host = _utilities.get_env('DOCKER_HOST')
216
262
  __props__.__dict__["host"] = host
@@ -247,6 +293,15 @@ class Provider(pulumi.ProviderResource):
247
293
  """
248
294
  return pulumi.get(self, "cert_path")
249
295
 
296
+ @property
297
+ @pulumi.getter
298
+ def context(self) -> pulumi.Output[Optional[builtins.str]]:
299
+ """
300
+ The name of the Docker context to use. Can also be set via `DOCKER_CONTEXT` environment variable. Overrides the `host`
301
+ if set.
302
+ """
303
+ return pulumi.get(self, "context")
304
+
250
305
  @property
251
306
  @pulumi.getter
252
307
  def host(self) -> pulumi.Output[Optional[builtins.str]]:
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "docker",
4
- "version": "4.7.0-alpha.1747201669"
4
+ "version": "4.7.0-alpha.1747851171"
5
5
  }