pulumi-gcp 7.19.0a1713292926__py3-none-any.whl → 7.19.0a1713444144__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.
Files changed (41) hide show
  1. pulumi_gcp/__init__.py +11 -0
  2. pulumi_gcp/accesscontextmanager/access_policy.py +4 -4
  3. pulumi_gcp/apigee/sync_authorization.py +4 -4
  4. pulumi_gcp/compute/_inputs.py +24 -0
  5. pulumi_gcp/compute/get_router_nat.py +11 -1
  6. pulumi_gcp/compute/instance_settings.py +16 -0
  7. pulumi_gcp/compute/outputs.py +41 -0
  8. pulumi_gcp/compute/router_interface.py +47 -0
  9. pulumi_gcp/compute/router_nat.py +68 -0
  10. pulumi_gcp/compute/router_peer.py +141 -0
  11. pulumi_gcp/config/__init__.pyi +2 -0
  12. pulumi_gcp/config/vars.py +4 -0
  13. pulumi_gcp/container/_inputs.py +48 -7
  14. pulumi_gcp/container/outputs.py +67 -8
  15. pulumi_gcp/datastore/data_store_index.py +14 -0
  16. pulumi_gcp/dns/_inputs.py +22 -22
  17. pulumi_gcp/dns/outputs.py +22 -22
  18. pulumi_gcp/firestore/_inputs.py +80 -11
  19. pulumi_gcp/firestore/document.py +0 -4
  20. pulumi_gcp/firestore/index.py +116 -42
  21. pulumi_gcp/firestore/outputs.py +70 -11
  22. pulumi_gcp/gkebackup/_inputs.py +358 -3
  23. pulumi_gcp/gkebackup/backup_plan.py +294 -0
  24. pulumi_gcp/gkebackup/outputs.py +353 -3
  25. pulumi_gcp/networksecurity/firewall_endpoint.py +2 -0
  26. pulumi_gcp/networksecurity/firewall_endpoint_association.py +61 -0
  27. pulumi_gcp/parallelstore/__init__.py +8 -0
  28. pulumi_gcp/parallelstore/instance.py +1128 -0
  29. pulumi_gcp/provider.py +20 -0
  30. pulumi_gcp/sql/_inputs.py +16 -0
  31. pulumi_gcp/sql/outputs.py +36 -0
  32. pulumi_gcp/tags/__init__.py +2 -0
  33. pulumi_gcp/tags/get_tag_keys.py +101 -0
  34. pulumi_gcp/tags/get_tag_values.py +101 -0
  35. pulumi_gcp/tags/outputs.py +200 -0
  36. pulumi_gcp/vmwareengine/get_private_cloud.py +21 -1
  37. pulumi_gcp/vmwareengine/private_cloud.py +101 -7
  38. {pulumi_gcp-7.19.0a1713292926.dist-info → pulumi_gcp-7.19.0a1713444144.dist-info}/METADATA +1 -1
  39. {pulumi_gcp-7.19.0a1713292926.dist-info → pulumi_gcp-7.19.0a1713444144.dist-info}/RECORD +41 -37
  40. {pulumi_gcp-7.19.0a1713292926.dist-info → pulumi_gcp-7.19.0a1713444144.dist-info}/WHEEL +0 -0
  41. {pulumi_gcp-7.19.0a1713292926.dist-info → pulumi_gcp-7.19.0a1713444144.dist-info}/top_level.txt +0 -0
pulumi_gcp/provider.py CHANGED
@@ -138,6 +138,7 @@ class ProviderArgs:
138
138
  org_policy_custom_endpoint: Optional[pulumi.Input[str]] = None,
139
139
  os_config_custom_endpoint: Optional[pulumi.Input[str]] = None,
140
140
  os_login_custom_endpoint: Optional[pulumi.Input[str]] = None,
141
+ parallelstore_custom_endpoint: Optional[pulumi.Input[str]] = None,
141
142
  privateca_custom_endpoint: Optional[pulumi.Input[str]] = None,
142
143
  project: Optional[pulumi.Input[str]] = None,
143
144
  public_ca_custom_endpoint: Optional[pulumi.Input[str]] = None,
@@ -431,6 +432,8 @@ class ProviderArgs:
431
432
  pulumi.set(__self__, "os_config_custom_endpoint", os_config_custom_endpoint)
432
433
  if os_login_custom_endpoint is not None:
433
434
  pulumi.set(__self__, "os_login_custom_endpoint", os_login_custom_endpoint)
435
+ if parallelstore_custom_endpoint is not None:
436
+ pulumi.set(__self__, "parallelstore_custom_endpoint", parallelstore_custom_endpoint)
434
437
  if privateca_custom_endpoint is not None:
435
438
  pulumi.set(__self__, "privateca_custom_endpoint", privateca_custom_endpoint)
436
439
  if project is None:
@@ -1633,6 +1636,15 @@ class ProviderArgs:
1633
1636
  def os_login_custom_endpoint(self, value: Optional[pulumi.Input[str]]):
1634
1637
  pulumi.set(self, "os_login_custom_endpoint", value)
1635
1638
 
1639
+ @property
1640
+ @pulumi.getter(name="parallelstoreCustomEndpoint")
1641
+ def parallelstore_custom_endpoint(self) -> Optional[pulumi.Input[str]]:
1642
+ return pulumi.get(self, "parallelstore_custom_endpoint")
1643
+
1644
+ @parallelstore_custom_endpoint.setter
1645
+ def parallelstore_custom_endpoint(self, value: Optional[pulumi.Input[str]]):
1646
+ pulumi.set(self, "parallelstore_custom_endpoint", value)
1647
+
1636
1648
  @property
1637
1649
  @pulumi.getter(name="privatecaCustomEndpoint")
1638
1650
  def privateca_custom_endpoint(self) -> Optional[pulumi.Input[str]]:
@@ -2158,6 +2170,7 @@ class Provider(pulumi.ProviderResource):
2158
2170
  org_policy_custom_endpoint: Optional[pulumi.Input[str]] = None,
2159
2171
  os_config_custom_endpoint: Optional[pulumi.Input[str]] = None,
2160
2172
  os_login_custom_endpoint: Optional[pulumi.Input[str]] = None,
2173
+ parallelstore_custom_endpoint: Optional[pulumi.Input[str]] = None,
2161
2174
  privateca_custom_endpoint: Optional[pulumi.Input[str]] = None,
2162
2175
  project: Optional[pulumi.Input[str]] = None,
2163
2176
  public_ca_custom_endpoint: Optional[pulumi.Input[str]] = None,
@@ -2362,6 +2375,7 @@ class Provider(pulumi.ProviderResource):
2362
2375
  org_policy_custom_endpoint: Optional[pulumi.Input[str]] = None,
2363
2376
  os_config_custom_endpoint: Optional[pulumi.Input[str]] = None,
2364
2377
  os_login_custom_endpoint: Optional[pulumi.Input[str]] = None,
2378
+ parallelstore_custom_endpoint: Optional[pulumi.Input[str]] = None,
2365
2379
  privateca_custom_endpoint: Optional[pulumi.Input[str]] = None,
2366
2380
  project: Optional[pulumi.Input[str]] = None,
2367
2381
  public_ca_custom_endpoint: Optional[pulumi.Input[str]] = None,
@@ -2538,6 +2552,7 @@ class Provider(pulumi.ProviderResource):
2538
2552
  __props__.__dict__["org_policy_custom_endpoint"] = org_policy_custom_endpoint
2539
2553
  __props__.__dict__["os_config_custom_endpoint"] = os_config_custom_endpoint
2540
2554
  __props__.__dict__["os_login_custom_endpoint"] = os_login_custom_endpoint
2555
+ __props__.__dict__["parallelstore_custom_endpoint"] = parallelstore_custom_endpoint
2541
2556
  __props__.__dict__["privateca_custom_endpoint"] = privateca_custom_endpoint
2542
2557
  if project is None:
2543
2558
  project = _utilities.get_env('GOOGLE_PROJECT', 'GOOGLE_CLOUD_PROJECT', 'GCLOUD_PROJECT', 'CLOUDSDK_CORE_PROJECT')
@@ -3184,6 +3199,11 @@ class Provider(pulumi.ProviderResource):
3184
3199
  def os_login_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
3185
3200
  return pulumi.get(self, "os_login_custom_endpoint")
3186
3201
 
3202
+ @property
3203
+ @pulumi.getter(name="parallelstoreCustomEndpoint")
3204
+ def parallelstore_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
3205
+ return pulumi.get(self, "parallelstore_custom_endpoint")
3206
+
3187
3207
  @property
3188
3208
  @pulumi.getter(name="privatecaCustomEndpoint")
3189
3209
  def privateca_custom_endpoint(self) -> pulumi.Output[Optional[str]]:
pulumi_gcp/sql/_inputs.py CHANGED
@@ -553,6 +553,7 @@ class DatabaseInstanceSettingsArgs:
553
553
  disk_size: Optional[pulumi.Input[int]] = None,
554
554
  disk_type: Optional[pulumi.Input[str]] = None,
555
555
  edition: Optional[pulumi.Input[str]] = None,
556
+ enable_google_ml_integration: Optional[pulumi.Input[bool]] = None,
556
557
  insights_config: Optional[pulumi.Input['DatabaseInstanceSettingsInsightsConfigArgs']] = None,
557
558
  ip_configuration: Optional[pulumi.Input['DatabaseInstanceSettingsIpConfigurationArgs']] = None,
558
559
  location_preference: Optional[pulumi.Input['DatabaseInstanceSettingsLocationPreferenceArgs']] = None,
@@ -584,6 +585,7 @@ class DatabaseInstanceSettingsArgs:
584
585
  :param pulumi.Input[int] disk_size: The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.
585
586
  :param pulumi.Input[str] disk_type: The type of data disk: PD_SSD or PD_HDD. Defaults to `PD_SSD`.
586
587
  :param pulumi.Input[str] edition: The edition of the instance, can be `ENTERPRISE` or `ENTERPRISE_PLUS`.
588
+ :param pulumi.Input[bool] enable_google_ml_integration: Enables [Cloud SQL instances to connect to Vertex AI](https://cloud.google.com/sql/docs/postgres/integrate-cloud-sql-with-vertex-ai) and pass requests for real-time predictions and insights. Defaults to `false`.
587
589
  :param pulumi.Input['DatabaseInstanceSettingsInsightsConfigArgs'] insights_config: Configuration of Query Insights.
588
590
  :param pulumi.Input['DatabaseInstanceSettingsMaintenanceWindowArgs'] maintenance_window: Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time.
589
591
  :param pulumi.Input[str] pricing_plan: Pricing plan for this instance, can only be `PER_USE`.
@@ -625,6 +627,8 @@ class DatabaseInstanceSettingsArgs:
625
627
  pulumi.set(__self__, "disk_type", disk_type)
626
628
  if edition is not None:
627
629
  pulumi.set(__self__, "edition", edition)
630
+ if enable_google_ml_integration is not None:
631
+ pulumi.set(__self__, "enable_google_ml_integration", enable_google_ml_integration)
628
632
  if insights_config is not None:
629
633
  pulumi.set(__self__, "insights_config", insights_config)
630
634
  if ip_configuration is not None:
@@ -843,6 +847,18 @@ class DatabaseInstanceSettingsArgs:
843
847
  def edition(self, value: Optional[pulumi.Input[str]]):
844
848
  pulumi.set(self, "edition", value)
845
849
 
850
+ @property
851
+ @pulumi.getter(name="enableGoogleMlIntegration")
852
+ def enable_google_ml_integration(self) -> Optional[pulumi.Input[bool]]:
853
+ """
854
+ Enables [Cloud SQL instances to connect to Vertex AI](https://cloud.google.com/sql/docs/postgres/integrate-cloud-sql-with-vertex-ai) and pass requests for real-time predictions and insights. Defaults to `false`.
855
+ """
856
+ return pulumi.get(self, "enable_google_ml_integration")
857
+
858
+ @enable_google_ml_integration.setter
859
+ def enable_google_ml_integration(self, value: Optional[pulumi.Input[bool]]):
860
+ pulumi.set(self, "enable_google_ml_integration", value)
861
+
846
862
  @property
847
863
  @pulumi.getter(name="insightsConfig")
848
864
  def insights_config(self) -> Optional[pulumi.Input['DatabaseInstanceSettingsInsightsConfigArgs']]:
pulumi_gcp/sql/outputs.py CHANGED
@@ -624,6 +624,8 @@ class DatabaseInstanceSettings(dict):
624
624
  suggest = "disk_size"
625
625
  elif key == "diskType":
626
626
  suggest = "disk_type"
627
+ elif key == "enableGoogleMlIntegration":
628
+ suggest = "enable_google_ml_integration"
627
629
  elif key == "insightsConfig":
628
630
  suggest = "insights_config"
629
631
  elif key == "ipConfiguration":
@@ -672,6 +674,7 @@ class DatabaseInstanceSettings(dict):
672
674
  disk_size: Optional[int] = None,
673
675
  disk_type: Optional[str] = None,
674
676
  edition: Optional[str] = None,
677
+ enable_google_ml_integration: Optional[bool] = None,
675
678
  insights_config: Optional['outputs.DatabaseInstanceSettingsInsightsConfig'] = None,
676
679
  ip_configuration: Optional['outputs.DatabaseInstanceSettingsIpConfiguration'] = None,
677
680
  location_preference: Optional['outputs.DatabaseInstanceSettingsLocationPreference'] = None,
@@ -703,6 +706,7 @@ class DatabaseInstanceSettings(dict):
703
706
  :param int disk_size: The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.
704
707
  :param str disk_type: The type of data disk: PD_SSD or PD_HDD. Defaults to `PD_SSD`.
705
708
  :param str edition: The edition of the instance, can be `ENTERPRISE` or `ENTERPRISE_PLUS`.
709
+ :param bool enable_google_ml_integration: Enables [Cloud SQL instances to connect to Vertex AI](https://cloud.google.com/sql/docs/postgres/integrate-cloud-sql-with-vertex-ai) and pass requests for real-time predictions and insights. Defaults to `false`.
706
710
  :param 'DatabaseInstanceSettingsInsightsConfigArgs' insights_config: Configuration of Query Insights.
707
711
  :param 'DatabaseInstanceSettingsMaintenanceWindowArgs' maintenance_window: Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time.
708
712
  :param str pricing_plan: Pricing plan for this instance, can only be `PER_USE`.
@@ -744,6 +748,8 @@ class DatabaseInstanceSettings(dict):
744
748
  pulumi.set(__self__, "disk_type", disk_type)
745
749
  if edition is not None:
746
750
  pulumi.set(__self__, "edition", edition)
751
+ if enable_google_ml_integration is not None:
752
+ pulumi.set(__self__, "enable_google_ml_integration", enable_google_ml_integration)
747
753
  if insights_config is not None:
748
754
  pulumi.set(__self__, "insights_config", insights_config)
749
755
  if ip_configuration is not None:
@@ -894,6 +900,14 @@ class DatabaseInstanceSettings(dict):
894
900
  """
895
901
  return pulumi.get(self, "edition")
896
902
 
903
+ @property
904
+ @pulumi.getter(name="enableGoogleMlIntegration")
905
+ def enable_google_ml_integration(self) -> Optional[bool]:
906
+ """
907
+ Enables [Cloud SQL instances to connect to Vertex AI](https://cloud.google.com/sql/docs/postgres/integrate-cloud-sql-with-vertex-ai) and pass requests for real-time predictions and insights. Defaults to `false`.
908
+ """
909
+ return pulumi.get(self, "enable_google_ml_integration")
910
+
897
911
  @property
898
912
  @pulumi.getter(name="insightsConfig")
899
913
  def insights_config(self) -> Optional['outputs.DatabaseInstanceSettingsInsightsConfig']:
@@ -2566,6 +2580,7 @@ class GetDatabaseInstanceSettingResult(dict):
2566
2580
  disk_size: int,
2567
2581
  disk_type: str,
2568
2582
  edition: str,
2583
+ enable_google_ml_integration: bool,
2569
2584
  insights_configs: Sequence['outputs.GetDatabaseInstanceSettingInsightsConfigResult'],
2570
2585
  ip_configurations: Sequence['outputs.GetDatabaseInstanceSettingIpConfigurationResult'],
2571
2586
  location_preferences: Sequence['outputs.GetDatabaseInstanceSettingLocationPreferenceResult'],
@@ -2594,6 +2609,7 @@ class GetDatabaseInstanceSettingResult(dict):
2594
2609
  :param int disk_size: The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.
2595
2610
  :param str disk_type: The type of data disk: PD_SSD or PD_HDD. Defaults to PD_SSD.
2596
2611
  :param str edition: The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.
2612
+ :param bool enable_google_ml_integration: Enables Vertex AI Integration.
2597
2613
  :param Sequence['GetDatabaseInstanceSettingInsightsConfigArgs'] insights_configs: Configuration of Query Insights.
2598
2614
  :param Sequence['GetDatabaseInstanceSettingMaintenanceWindowArgs'] maintenance_windows: Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time.
2599
2615
  :param str pricing_plan: Pricing plan for this instance, can only be PER_USE.
@@ -2618,6 +2634,7 @@ class GetDatabaseInstanceSettingResult(dict):
2618
2634
  pulumi.set(__self__, "disk_size", disk_size)
2619
2635
  pulumi.set(__self__, "disk_type", disk_type)
2620
2636
  pulumi.set(__self__, "edition", edition)
2637
+ pulumi.set(__self__, "enable_google_ml_integration", enable_google_ml_integration)
2621
2638
  pulumi.set(__self__, "insights_configs", insights_configs)
2622
2639
  pulumi.set(__self__, "ip_configurations", ip_configurations)
2623
2640
  pulumi.set(__self__, "location_preferences", location_preferences)
@@ -2748,6 +2765,14 @@ class GetDatabaseInstanceSettingResult(dict):
2748
2765
  """
2749
2766
  return pulumi.get(self, "edition")
2750
2767
 
2768
+ @property
2769
+ @pulumi.getter(name="enableGoogleMlIntegration")
2770
+ def enable_google_ml_integration(self) -> bool:
2771
+ """
2772
+ Enables Vertex AI Integration.
2773
+ """
2774
+ return pulumi.get(self, "enable_google_ml_integration")
2775
+
2751
2776
  @property
2752
2777
  @pulumi.getter(name="insightsConfigs")
2753
2778
  def insights_configs(self) -> Sequence['outputs.GetDatabaseInstanceSettingInsightsConfigResult']:
@@ -4047,6 +4072,7 @@ class GetDatabaseInstancesInstanceSettingResult(dict):
4047
4072
  disk_size: int,
4048
4073
  disk_type: str,
4049
4074
  edition: str,
4075
+ enable_google_ml_integration: bool,
4050
4076
  insights_configs: Sequence['outputs.GetDatabaseInstancesInstanceSettingInsightsConfigResult'],
4051
4077
  ip_configurations: Sequence['outputs.GetDatabaseInstancesInstanceSettingIpConfigurationResult'],
4052
4078
  location_preferences: Sequence['outputs.GetDatabaseInstancesInstanceSettingLocationPreferenceResult'],
@@ -4075,6 +4101,7 @@ class GetDatabaseInstancesInstanceSettingResult(dict):
4075
4101
  :param int disk_size: The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.
4076
4102
  :param str disk_type: The type of data disk: PD_SSD or PD_HDD. Defaults to PD_SSD.
4077
4103
  :param str edition: The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.
4104
+ :param bool enable_google_ml_integration: Enables Vertex AI Integration.
4078
4105
  :param Sequence['GetDatabaseInstancesInstanceSettingInsightsConfigArgs'] insights_configs: Configuration of Query Insights.
4079
4106
  :param Sequence['GetDatabaseInstancesInstanceSettingMaintenanceWindowArgs'] maintenance_windows: Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time.
4080
4107
  :param str pricing_plan: Pricing plan for this instance, can only be PER_USE.
@@ -4099,6 +4126,7 @@ class GetDatabaseInstancesInstanceSettingResult(dict):
4099
4126
  pulumi.set(__self__, "disk_size", disk_size)
4100
4127
  pulumi.set(__self__, "disk_type", disk_type)
4101
4128
  pulumi.set(__self__, "edition", edition)
4129
+ pulumi.set(__self__, "enable_google_ml_integration", enable_google_ml_integration)
4102
4130
  pulumi.set(__self__, "insights_configs", insights_configs)
4103
4131
  pulumi.set(__self__, "ip_configurations", ip_configurations)
4104
4132
  pulumi.set(__self__, "location_preferences", location_preferences)
@@ -4229,6 +4257,14 @@ class GetDatabaseInstancesInstanceSettingResult(dict):
4229
4257
  """
4230
4258
  return pulumi.get(self, "edition")
4231
4259
 
4260
+ @property
4261
+ @pulumi.getter(name="enableGoogleMlIntegration")
4262
+ def enable_google_ml_integration(self) -> bool:
4263
+ """
4264
+ Enables Vertex AI Integration.
4265
+ """
4266
+ return pulumi.get(self, "enable_google_ml_integration")
4267
+
4232
4268
  @property
4233
4269
  @pulumi.getter(name="insightsConfigs")
4234
4270
  def insights_configs(self) -> Sequence['outputs.GetDatabaseInstancesInstanceSettingInsightsConfigResult']:
@@ -7,8 +7,10 @@ import typing
7
7
  # Export this package's modules as members:
8
8
  from .get_tag_key import *
9
9
  from .get_tag_key_iam_policy import *
10
+ from .get_tag_keys import *
10
11
  from .get_tag_value import *
11
12
  from .get_tag_value_iam_policy import *
13
+ from .get_tag_values import *
12
14
  from .location_tag_binding import *
13
15
  from .tag_binding import *
14
16
  from .tag_key import *
@@ -0,0 +1,101 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from .. import _utilities
11
+ from . import outputs
12
+
13
+ __all__ = [
14
+ 'GetTagKeysResult',
15
+ 'AwaitableGetTagKeysResult',
16
+ 'get_tag_keys',
17
+ 'get_tag_keys_output',
18
+ ]
19
+
20
+ @pulumi.output_type
21
+ class GetTagKeysResult:
22
+ """
23
+ A collection of values returned by getTagKeys.
24
+ """
25
+ def __init__(__self__, id=None, keys=None, parent=None):
26
+ if id and not isinstance(id, str):
27
+ raise TypeError("Expected argument 'id' to be a str")
28
+ pulumi.set(__self__, "id", id)
29
+ if keys and not isinstance(keys, list):
30
+ raise TypeError("Expected argument 'keys' to be a list")
31
+ pulumi.set(__self__, "keys", keys)
32
+ if parent and not isinstance(parent, str):
33
+ raise TypeError("Expected argument 'parent' to be a str")
34
+ pulumi.set(__self__, "parent", parent)
35
+
36
+ @property
37
+ @pulumi.getter
38
+ def id(self) -> str:
39
+ """
40
+ The provider-assigned unique ID for this managed resource.
41
+ """
42
+ return pulumi.get(self, "id")
43
+
44
+ @property
45
+ @pulumi.getter
46
+ def keys(self) -> Sequence['outputs.GetTagKeysKeyResult']:
47
+ return pulumi.get(self, "keys")
48
+
49
+ @property
50
+ @pulumi.getter
51
+ def parent(self) -> str:
52
+ """
53
+ The resource name of the TagKey's parent. A TagKey can be parented by an Orgination or a Project.
54
+ """
55
+ return pulumi.get(self, "parent")
56
+
57
+
58
+ class AwaitableGetTagKeysResult(GetTagKeysResult):
59
+ # pylint: disable=using-constant-test
60
+ def __await__(self):
61
+ if False:
62
+ yield self
63
+ return GetTagKeysResult(
64
+ id=self.id,
65
+ keys=self.keys,
66
+ parent=self.parent)
67
+
68
+
69
+ def get_tag_keys(parent: Optional[str] = None,
70
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTagKeysResult:
71
+ """
72
+ Get tag keys by org or project `parent`.
73
+
74
+ ## Example Usage
75
+
76
+
77
+ :param str parent: The resource name of the parent organization or project. It can be in format `organizations/{org_id}` or `projects/{project_id_or_number}`.
78
+ """
79
+ __args__ = dict()
80
+ __args__['parent'] = parent
81
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
82
+ __ret__ = pulumi.runtime.invoke('gcp:tags/getTagKeys:getTagKeys', __args__, opts=opts, typ=GetTagKeysResult).value
83
+
84
+ return AwaitableGetTagKeysResult(
85
+ id=pulumi.get(__ret__, 'id'),
86
+ keys=pulumi.get(__ret__, 'keys'),
87
+ parent=pulumi.get(__ret__, 'parent'))
88
+
89
+
90
+ @_utilities.lift_output_func(get_tag_keys)
91
+ def get_tag_keys_output(parent: Optional[pulumi.Input[str]] = None,
92
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTagKeysResult]:
93
+ """
94
+ Get tag keys by org or project `parent`.
95
+
96
+ ## Example Usage
97
+
98
+
99
+ :param str parent: The resource name of the parent organization or project. It can be in format `organizations/{org_id}` or `projects/{project_id_or_number}`.
100
+ """
101
+ ...
@@ -0,0 +1,101 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from .. import _utilities
11
+ from . import outputs
12
+
13
+ __all__ = [
14
+ 'GetTagValuesResult',
15
+ 'AwaitableGetTagValuesResult',
16
+ 'get_tag_values',
17
+ 'get_tag_values_output',
18
+ ]
19
+
20
+ @pulumi.output_type
21
+ class GetTagValuesResult:
22
+ """
23
+ A collection of values returned by getTagValues.
24
+ """
25
+ def __init__(__self__, id=None, parent=None, values=None):
26
+ if id and not isinstance(id, str):
27
+ raise TypeError("Expected argument 'id' to be a str")
28
+ pulumi.set(__self__, "id", id)
29
+ if parent and not isinstance(parent, str):
30
+ raise TypeError("Expected argument 'parent' to be a str")
31
+ pulumi.set(__self__, "parent", parent)
32
+ if values and not isinstance(values, list):
33
+ raise TypeError("Expected argument 'values' to be a list")
34
+ pulumi.set(__self__, "values", values)
35
+
36
+ @property
37
+ @pulumi.getter
38
+ def id(self) -> str:
39
+ """
40
+ The provider-assigned unique ID for this managed resource.
41
+ """
42
+ return pulumi.get(self, "id")
43
+
44
+ @property
45
+ @pulumi.getter
46
+ def parent(self) -> str:
47
+ """
48
+ The resource name of the new TagValue's parent TagKey. Must be of the form tagKeys/{tag_key_id}.
49
+ """
50
+ return pulumi.get(self, "parent")
51
+
52
+ @property
53
+ @pulumi.getter
54
+ def values(self) -> Sequence['outputs.GetTagValuesValueResult']:
55
+ return pulumi.get(self, "values")
56
+
57
+
58
+ class AwaitableGetTagValuesResult(GetTagValuesResult):
59
+ # pylint: disable=using-constant-test
60
+ def __await__(self):
61
+ if False:
62
+ yield self
63
+ return GetTagValuesResult(
64
+ id=self.id,
65
+ parent=self.parent,
66
+ values=self.values)
67
+
68
+
69
+ def get_tag_values(parent: Optional[str] = None,
70
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTagValuesResult:
71
+ """
72
+ Get tag values from a `parent` key.
73
+
74
+ ## Example Usage
75
+
76
+
77
+ :param str parent: The resource name of the parent tagKey in format `tagKey/{name}`.
78
+ """
79
+ __args__ = dict()
80
+ __args__['parent'] = parent
81
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
82
+ __ret__ = pulumi.runtime.invoke('gcp:tags/getTagValues:getTagValues', __args__, opts=opts, typ=GetTagValuesResult).value
83
+
84
+ return AwaitableGetTagValuesResult(
85
+ id=pulumi.get(__ret__, 'id'),
86
+ parent=pulumi.get(__ret__, 'parent'),
87
+ values=pulumi.get(__ret__, 'values'))
88
+
89
+
90
+ @_utilities.lift_output_func(get_tag_values)
91
+ def get_tag_values_output(parent: Optional[pulumi.Input[str]] = None,
92
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTagValuesResult]:
93
+ """
94
+ Get tag values from a `parent` key.
95
+
96
+ ## Example Usage
97
+
98
+
99
+ :param str parent: The resource name of the parent tagKey in format `tagKey/{name}`.
100
+ """
101
+ ...
@@ -14,6 +14,8 @@ __all__ = [
14
14
  'TagKeyIamMemberCondition',
15
15
  'TagValueIamBindingCondition',
16
16
  'TagValueIamMemberCondition',
17
+ 'GetTagKeysKeyResult',
18
+ 'GetTagValuesValueResult',
17
19
  ]
18
20
 
19
21
  @pulumi.output_type
@@ -124,3 +126,201 @@ class TagValueIamMemberCondition(dict):
124
126
  return pulumi.get(self, "description")
125
127
 
126
128
 
129
+ @pulumi.output_type
130
+ class GetTagKeysKeyResult(dict):
131
+ def __init__(__self__, *,
132
+ create_time: str,
133
+ description: str,
134
+ name: str,
135
+ namespaced_name: str,
136
+ parent: str,
137
+ purpose: str,
138
+ purpose_data: Mapping[str, str],
139
+ short_name: str,
140
+ update_time: str):
141
+ """
142
+ :param str create_time: Creation time.
143
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
144
+ :param str description: User-assigned description of the TagKey.
145
+ :param str name: an identifier for the resource with format `tagKeys/{{name}}`
146
+ :param str namespaced_name: Namespaced name of the TagKey which is in the format `{parentNamespace}/{shortName}`.
147
+ :param str parent: The resource name of the parent organization or project. It can be in format `organizations/{org_id}` or `projects/{project_id_or_number}`.
148
+ :param str purpose: A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this Tag. A purpose does not grant a policy engine exclusive rights to the Tag, and it may be referenced by other policy engines.
149
+ :param Mapping[str, str] purpose_data: Purpose data corresponds to the policy system that the tag is intended for. See documentation for Purpose for formatting of this field.
150
+ :param str short_name: The user friendly name for a TagKey. The short name should be unique for TagKeys wihting the same tag namespace.
151
+ :param str update_time: Update time.
152
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
153
+ """
154
+ pulumi.set(__self__, "create_time", create_time)
155
+ pulumi.set(__self__, "description", description)
156
+ pulumi.set(__self__, "name", name)
157
+ pulumi.set(__self__, "namespaced_name", namespaced_name)
158
+ pulumi.set(__self__, "parent", parent)
159
+ pulumi.set(__self__, "purpose", purpose)
160
+ pulumi.set(__self__, "purpose_data", purpose_data)
161
+ pulumi.set(__self__, "short_name", short_name)
162
+ pulumi.set(__self__, "update_time", update_time)
163
+
164
+ @property
165
+ @pulumi.getter(name="createTime")
166
+ def create_time(self) -> str:
167
+ """
168
+ Creation time.
169
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
170
+ """
171
+ return pulumi.get(self, "create_time")
172
+
173
+ @property
174
+ @pulumi.getter
175
+ def description(self) -> str:
176
+ """
177
+ User-assigned description of the TagKey.
178
+ """
179
+ return pulumi.get(self, "description")
180
+
181
+ @property
182
+ @pulumi.getter
183
+ def name(self) -> str:
184
+ """
185
+ an identifier for the resource with format `tagKeys/{{name}}`
186
+ """
187
+ return pulumi.get(self, "name")
188
+
189
+ @property
190
+ @pulumi.getter(name="namespacedName")
191
+ def namespaced_name(self) -> str:
192
+ """
193
+ Namespaced name of the TagKey which is in the format `{parentNamespace}/{shortName}`.
194
+ """
195
+ return pulumi.get(self, "namespaced_name")
196
+
197
+ @property
198
+ @pulumi.getter
199
+ def parent(self) -> str:
200
+ """
201
+ The resource name of the parent organization or project. It can be in format `organizations/{org_id}` or `projects/{project_id_or_number}`.
202
+ """
203
+ return pulumi.get(self, "parent")
204
+
205
+ @property
206
+ @pulumi.getter
207
+ def purpose(self) -> str:
208
+ """
209
+ A purpose denotes that this Tag is intended for use in policies of a specific policy engine, and will involve that policy engine in management operations involving this Tag. A purpose does not grant a policy engine exclusive rights to the Tag, and it may be referenced by other policy engines.
210
+ """
211
+ return pulumi.get(self, "purpose")
212
+
213
+ @property
214
+ @pulumi.getter(name="purposeData")
215
+ def purpose_data(self) -> Mapping[str, str]:
216
+ """
217
+ Purpose data corresponds to the policy system that the tag is intended for. See documentation for Purpose for formatting of this field.
218
+ """
219
+ return pulumi.get(self, "purpose_data")
220
+
221
+ @property
222
+ @pulumi.getter(name="shortName")
223
+ def short_name(self) -> str:
224
+ """
225
+ The user friendly name for a TagKey. The short name should be unique for TagKeys wihting the same tag namespace.
226
+ """
227
+ return pulumi.get(self, "short_name")
228
+
229
+ @property
230
+ @pulumi.getter(name="updateTime")
231
+ def update_time(self) -> str:
232
+ """
233
+ Update time.
234
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
235
+ """
236
+ return pulumi.get(self, "update_time")
237
+
238
+
239
+ @pulumi.output_type
240
+ class GetTagValuesValueResult(dict):
241
+ def __init__(__self__, *,
242
+ create_time: str,
243
+ description: str,
244
+ name: str,
245
+ namespaced_name: str,
246
+ parent: str,
247
+ short_name: str,
248
+ update_time: str):
249
+ """
250
+ :param str create_time: Creation time.
251
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
252
+ :param str description: User-assigned description of the TagValue.
253
+ :param str name: an identifier for the resource with format `tagValues/{{name}}`
254
+ :param str namespaced_name: Namespaced name of the TagValue.
255
+ :param str parent: The resource name of the parent tagKey in format `tagKey/{name}`.
256
+ :param str short_name: User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
257
+ :param str update_time: Update time.
258
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
259
+ """
260
+ pulumi.set(__self__, "create_time", create_time)
261
+ pulumi.set(__self__, "description", description)
262
+ pulumi.set(__self__, "name", name)
263
+ pulumi.set(__self__, "namespaced_name", namespaced_name)
264
+ pulumi.set(__self__, "parent", parent)
265
+ pulumi.set(__self__, "short_name", short_name)
266
+ pulumi.set(__self__, "update_time", update_time)
267
+
268
+ @property
269
+ @pulumi.getter(name="createTime")
270
+ def create_time(self) -> str:
271
+ """
272
+ Creation time.
273
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
274
+ """
275
+ return pulumi.get(self, "create_time")
276
+
277
+ @property
278
+ @pulumi.getter
279
+ def description(self) -> str:
280
+ """
281
+ User-assigned description of the TagValue.
282
+ """
283
+ return pulumi.get(self, "description")
284
+
285
+ @property
286
+ @pulumi.getter
287
+ def name(self) -> str:
288
+ """
289
+ an identifier for the resource with format `tagValues/{{name}}`
290
+ """
291
+ return pulumi.get(self, "name")
292
+
293
+ @property
294
+ @pulumi.getter(name="namespacedName")
295
+ def namespaced_name(self) -> str:
296
+ """
297
+ Namespaced name of the TagValue.
298
+ """
299
+ return pulumi.get(self, "namespaced_name")
300
+
301
+ @property
302
+ @pulumi.getter
303
+ def parent(self) -> str:
304
+ """
305
+ The resource name of the parent tagKey in format `tagKey/{name}`.
306
+ """
307
+ return pulumi.get(self, "parent")
308
+
309
+ @property
310
+ @pulumi.getter(name="shortName")
311
+ def short_name(self) -> str:
312
+ """
313
+ User-assigned short name for TagValue. The short name should be unique for TagValues within the same parent TagKey.
314
+ """
315
+ return pulumi.get(self, "short_name")
316
+
317
+ @property
318
+ @pulumi.getter(name="updateTime")
319
+ def update_time(self) -> str:
320
+ """
321
+ Update time.
322
+ A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".
323
+ """
324
+ return pulumi.get(self, "update_time")
325
+
326
+