pulumi-gcp 8.42.0a1758178363__py3-none-any.whl → 9.0.0__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_gcp/__init__.py +83 -48
- pulumi_gcp/activedirectory/peering.py +16 -0
- pulumi_gcp/alloydb/backup.py +8 -4
- pulumi_gcp/alloydb/cluster.py +56 -10
- pulumi_gcp/alloydb/get_cluster.py +12 -1
- pulumi_gcp/alloydb/instance.py +10 -4
- pulumi_gcp/alloydb/user.py +8 -4
- pulumi_gcp/apigateway/api_config_iam_binding.py +4 -4
- pulumi_gcp/apigateway/api_config_iam_member.py +4 -4
- pulumi_gcp/apigateway/api_config_iam_policy.py +4 -4
- pulumi_gcp/apigateway/api_iam_binding.py +4 -4
- pulumi_gcp/apigateway/api_iam_member.py +4 -4
- pulumi_gcp/apigateway/api_iam_policy.py +4 -4
- pulumi_gcp/apigateway/gateway_iam_binding.py +4 -4
- pulumi_gcp/apigateway/gateway_iam_member.py +4 -4
- pulumi_gcp/apigateway/gateway_iam_policy.py +4 -4
- pulumi_gcp/apigee/_inputs.py +151 -108
- pulumi_gcp/apigee/keystores_aliases_key_cert_file.py +52 -40
- pulumi_gcp/apigee/outputs.py +92 -88
- pulumi_gcp/artifactregistry/__init__.py +2 -0
- pulumi_gcp/artifactregistry/_inputs.py +0 -12
- pulumi_gcp/artifactregistry/get_npm_package.py +251 -0
- pulumi_gcp/artifactregistry/get_python_package.py +237 -0
- pulumi_gcp/artifactregistry/get_repository.py +12 -1
- pulumi_gcp/artifactregistry/outputs.py +8 -16
- pulumi_gcp/artifactregistry/repository.py +28 -0
- pulumi_gcp/backupdisasterrecovery/__init__.py +1 -0
- pulumi_gcp/backupdisasterrecovery/backup_plan.py +4 -4
- pulumi_gcp/backupdisasterrecovery/get_backup.py +12 -1
- pulumi_gcp/backupdisasterrecovery/get_backup_plan_association.py +4 -0
- pulumi_gcp/backupdisasterrecovery/get_data_source_references.py +135 -0
- pulumi_gcp/backupdisasterrecovery/get_management_server.py +4 -0
- pulumi_gcp/backupdisasterrecovery/outputs.py +103 -0
- pulumi_gcp/beyondcorp/__init__.py +0 -5
- pulumi_gcp/beyondcorp/_inputs.py +0 -312
- pulumi_gcp/beyondcorp/outputs.py +0 -200
- pulumi_gcp/bigquery/_inputs.py +114 -4
- pulumi_gcp/bigquery/app_profile.py +3 -5
- pulumi_gcp/bigquery/outputs.py +75 -5
- pulumi_gcp/bigqueryanalyticshub/data_exchange_subscription.py +20 -0
- pulumi_gcp/bigtable/app_profile.py +1 -1
- pulumi_gcp/bigtable/get_table_iam_policy.py +16 -18
- pulumi_gcp/bigtable/table_iam_binding.py +43 -43
- pulumi_gcp/bigtable/table_iam_member.py +43 -43
- pulumi_gcp/bigtable/table_iam_policy.py +43 -43
- pulumi_gcp/billing/_inputs.py +0 -6
- pulumi_gcp/billing/outputs.py +0 -4
- pulumi_gcp/certificatemanager/__init__.py +1 -0
- pulumi_gcp/certificatemanager/certificate_map_entry.py +7 -7
- pulumi_gcp/certificatemanager/get_dns_authorization.py +229 -0
- pulumi_gcp/certificatemanager/outputs.py +41 -0
- pulumi_gcp/chronicle/_inputs.py +6 -5
- pulumi_gcp/chronicle/outputs.py +4 -3
- pulumi_gcp/chronicle/reference_list.py +53 -5
- pulumi_gcp/cloudasset/get_resources_search_all.py +8 -0
- pulumi_gcp/cloudbuild/_inputs.py +309 -45
- pulumi_gcp/cloudbuild/bitbucket_server_config.py +2 -6
- pulumi_gcp/cloudbuild/get_trigger.py +12 -1
- pulumi_gcp/cloudbuild/outputs.py +380 -30
- pulumi_gcp/cloudbuild/trigger.py +160 -2
- pulumi_gcp/cloudbuild/worker_pool.py +2 -6
- pulumi_gcp/cloudfunctionsv2/_inputs.py +23 -21
- pulumi_gcp/cloudfunctionsv2/outputs.py +17 -16
- pulumi_gcp/cloudquota/s_quota_adjuster_settings.py +16 -0
- pulumi_gcp/cloudrunv2/_inputs.py +80 -26
- pulumi_gcp/cloudrunv2/get_service.py +12 -1
- pulumi_gcp/cloudrunv2/outputs.py +109 -30
- pulumi_gcp/cloudrunv2/service.py +72 -12
- pulumi_gcp/cloudrunv2/worker_pool.py +2 -2
- pulumi_gcp/cloudtasks/queue.py +98 -2
- pulumi_gcp/colab/_inputs.py +1 -114
- pulumi_gcp/colab/outputs.py +1 -106
- pulumi_gcp/compute/_inputs.py +884 -24
- pulumi_gcp/compute/backend_bucket.py +68 -0
- pulumi_gcp/compute/backend_bucket_iam_binding.py +236 -0
- pulumi_gcp/compute/backend_bucket_iam_member.py +236 -0
- pulumi_gcp/compute/backend_bucket_iam_policy.py +236 -0
- pulumi_gcp/compute/backend_service.py +54 -0
- pulumi_gcp/compute/backend_service_iam_binding.py +464 -0
- pulumi_gcp/compute/backend_service_iam_member.py +464 -0
- pulumi_gcp/compute/backend_service_iam_policy.py +464 -0
- pulumi_gcp/compute/cross_site_network.py +16 -0
- pulumi_gcp/compute/future_reservation.py +32 -0
- pulumi_gcp/compute/get_backend_bucket.py +12 -1
- pulumi_gcp/compute/get_backend_service.py +12 -1
- pulumi_gcp/compute/get_region_backend_service.py +12 -1
- pulumi_gcp/compute/get_resource_policy.py +2 -20
- pulumi_gcp/compute/machine_image_iam_binding.py +8 -4
- pulumi_gcp/compute/machine_image_iam_member.py +8 -4
- pulumi_gcp/compute/machine_image_iam_policy.py +8 -4
- pulumi_gcp/compute/network_edge_security_service.py +16 -0
- pulumi_gcp/compute/network_firewall_policy_packet_mirroring_rule.py +12 -0
- pulumi_gcp/compute/network_peering_routes_config.py +0 -100
- pulumi_gcp/compute/organization_security_policy.py +83 -51
- pulumi_gcp/compute/outputs.py +799 -16
- pulumi_gcp/compute/packet_mirroring.py +6 -0
- pulumi_gcp/compute/preview_feature.py +16 -0
- pulumi_gcp/compute/public_delegated_prefix.py +42 -0
- pulumi_gcp/compute/region_backend_service.py +54 -0
- pulumi_gcp/compute/region_backend_service_iam_binding.py +488 -0
- pulumi_gcp/compute/region_backend_service_iam_member.py +488 -0
- pulumi_gcp/compute/region_backend_service_iam_policy.py +488 -0
- pulumi_gcp/compute/region_network_endpoint_group.py +1 -3
- pulumi_gcp/compute/region_resize_request.py +24 -0
- pulumi_gcp/compute/region_url_map.py +75 -0
- pulumi_gcp/compute/subnetwork.py +0 -98
- pulumi_gcp/compute/wire_group.py +16 -0
- pulumi_gcp/config/__init__.pyi +2 -2
- pulumi_gcp/config/vars.py +4 -4
- pulumi_gcp/container/_inputs.py +466 -18
- pulumi_gcp/container/cluster.py +16 -7
- pulumi_gcp/container/outputs.py +448 -15
- pulumi_gcp/databasemigrationservice/connection_profile.py +4 -2
- pulumi_gcp/databasemigrationservice/migration_job.py +4 -2
- pulumi_gcp/dataflow/flex_template_job.py +10 -0
- pulumi_gcp/dataform/repository.py +16 -0
- pulumi_gcp/dataform/repository_release_config.py +16 -0
- pulumi_gcp/dataform/repository_workflow_config.py +16 -0
- pulumi_gcp/diagflow/_inputs.py +152 -0
- pulumi_gcp/diagflow/cx_agent.py +425 -0
- pulumi_gcp/diagflow/outputs.py +143 -0
- pulumi_gcp/discoveryengine/__init__.py +1 -0
- pulumi_gcp/discoveryengine/_inputs.py +94 -0
- pulumi_gcp/discoveryengine/acl_config.py +393 -0
- pulumi_gcp/discoveryengine/outputs.py +92 -0
- pulumi_gcp/firebase/android_app.py +16 -0
- pulumi_gcp/firebase/app_check_play_integrity_config.py +4 -8
- pulumi_gcp/firebase/app_check_recaptcha_enterprise_config.py +2 -4
- pulumi_gcp/firebase/app_check_service_config.py +6 -12
- pulumi_gcp/firebase/app_hosting_backend.py +4 -8
- pulumi_gcp/firebase/app_hosting_build.py +4 -8
- pulumi_gcp/firebase/app_hosting_traffic.py +6 -12
- pulumi_gcp/firebase/apple_app.py +16 -0
- pulumi_gcp/firebase/data_connect_service.py +4 -8
- pulumi_gcp/firebase/database_instance.py +20 -8
- pulumi_gcp/firebase/extensions_instance.py +12 -0
- pulumi_gcp/firebase/get_android_app.py +4 -2
- pulumi_gcp/firebase/get_apple_app.py +4 -2
- pulumi_gcp/firebase/get_apple_app_config.py +16 -2
- pulumi_gcp/firebase/get_hosting_channel.py +4 -2
- pulumi_gcp/firebase/hosting_channel.py +20 -0
- pulumi_gcp/firebase/hosting_custom_domain.py +20 -0
- pulumi_gcp/firebase/hosting_release.py +16 -0
- pulumi_gcp/firebase/hosting_site.py +16 -0
- pulumi_gcp/firebase/hosting_version.py +16 -0
- pulumi_gcp/firebase/storage_bucket.py +18 -0
- pulumi_gcp/firestore/index.py +118 -3
- pulumi_gcp/folder/service_identity.py +26 -0
- pulumi_gcp/gkehub/_inputs.py +0 -60
- pulumi_gcp/gkehub/get_membership.py +1 -12
- pulumi_gcp/gkehub/membership.py +0 -70
- pulumi_gcp/gkehub/membership_rbac_role_binding.py +16 -0
- pulumi_gcp/gkehub/outputs.py +0 -36
- pulumi_gcp/healthcare/_inputs.py +205 -0
- pulumi_gcp/healthcare/fhir_store.py +128 -0
- pulumi_gcp/healthcare/outputs.py +163 -0
- pulumi_gcp/iam/workload_identity_pool_iam_binding.py +464 -0
- pulumi_gcp/iam/workload_identity_pool_iam_member.py +464 -0
- pulumi_gcp/iam/workload_identity_pool_iam_policy.py +464 -0
- pulumi_gcp/iam/workload_identity_pool_managed_identity.py +18 -0
- pulumi_gcp/iam/workload_identity_pool_namespace.py +20 -0
- pulumi_gcp/iap/__init__.py +8 -0
- pulumi_gcp/iap/_inputs.py +260 -0
- pulumi_gcp/iap/get_web_forwarding_rule_service_iam_policy.py +159 -0
- pulumi_gcp/iap/get_web_region_forwarding_rule_service_iam_policy.py +182 -0
- pulumi_gcp/iap/outputs.py +152 -0
- pulumi_gcp/{beyondcorp/application_iam_binding.py → iap/web_forwarding_rule_service_iam_binding.py} +233 -315
- pulumi_gcp/{beyondcorp/application_iam_member.py → iap/web_forwarding_rule_service_iam_member.py} +233 -315
- pulumi_gcp/{beyondcorp/application_iam_policy.py → iap/web_forwarding_rule_service_iam_policy.py} +212 -294
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_binding.py +1091 -0
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_member.py +1091 -0
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_policy.py +910 -0
- pulumi_gcp/kms/autokey_config.py +0 -2
- pulumi_gcp/kms/get_kms_secret_asymmetric.py +22 -0
- pulumi_gcp/kms/key_handle.py +0 -2
- pulumi_gcp/logging/organization_sink.py +7 -7
- pulumi_gcp/managedkafka/connect_cluster.py +4 -0
- pulumi_gcp/managedkafka/connector.py +4 -0
- pulumi_gcp/memorystore/get_instance.py +1 -12
- pulumi_gcp/memorystore/instance.py +14 -84
- pulumi_gcp/netapp/storage_pool.py +91 -2
- pulumi_gcp/netapp/volume.py +47 -0
- pulumi_gcp/networkmanagement/__init__.py +1 -0
- pulumi_gcp/networkmanagement/organization_vpc_flow_logs_config.py +1028 -0
- pulumi_gcp/networksecurity/authorization_policy.py +12 -0
- pulumi_gcp/networkservices/gateway.py +7 -7
- pulumi_gcp/networkservices/lb_traffic_extension.py +24 -23
- pulumi_gcp/networkservices/service_lb_policies.py +12 -0
- pulumi_gcp/notebooks/__init__.py +0 -1
- pulumi_gcp/oracledatabase/autonomous_database.py +2 -2
- pulumi_gcp/oracledatabase/cloud_vm_cluster.py +3 -3
- pulumi_gcp/projects/service.py +2 -11
- pulumi_gcp/provider.py +20 -20
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/cluster.py +0 -70
- pulumi_gcp/redis/get_cluster.py +1 -12
- pulumi_gcp/resourcemanager/capability.py +16 -0
- pulumi_gcp/runtimeconfig/config.py +16 -0
- pulumi_gcp/runtimeconfig/config_iam_binding.py +236 -0
- pulumi_gcp/runtimeconfig/config_iam_member.py +236 -0
- pulumi_gcp/runtimeconfig/config_iam_policy.py +236 -0
- pulumi_gcp/runtimeconfig/variable.py +10 -0
- pulumi_gcp/saasruntime/__init__.py +12 -0
- pulumi_gcp/saasruntime/_inputs.py +513 -0
- pulumi_gcp/saasruntime/outputs.py +431 -0
- pulumi_gcp/saasruntime/saa_s.py +819 -0
- pulumi_gcp/saasruntime/unit_kind.py +1024 -0
- pulumi_gcp/securesourcemanager/_inputs.py +20 -19
- pulumi_gcp/securesourcemanager/instance.py +7 -7
- pulumi_gcp/securesourcemanager/outputs.py +15 -14
- pulumi_gcp/securesourcemanager/repository.py +7 -7
- pulumi_gcp/serviceaccount/get_account_key.py +1 -21
- pulumi_gcp/servicedirectory/namespace_iam_binding.py +4 -4
- pulumi_gcp/servicedirectory/namespace_iam_member.py +4 -4
- pulumi_gcp/servicedirectory/namespace_iam_policy.py +4 -4
- pulumi_gcp/servicedirectory/service_iam_binding.py +4 -4
- pulumi_gcp/servicedirectory/service_iam_member.py +4 -4
- pulumi_gcp/servicedirectory/service_iam_policy.py +4 -4
- pulumi_gcp/sql/_inputs.py +135 -1
- pulumi_gcp/sql/database_instance.py +94 -0
- pulumi_gcp/sql/get_database_instance.py +23 -1
- pulumi_gcp/sql/outputs.py +276 -3
- pulumi_gcp/sql/user.py +61 -0
- pulumi_gcp/storage/_inputs.py +253 -7
- pulumi_gcp/storage/bucket_object.py +0 -9
- pulumi_gcp/storage/outputs.py +198 -8
- pulumi_gcp/storage/transfer_job.py +47 -0
- pulumi_gcp/tpu/__init__.py +0 -2
- pulumi_gcp/tpu/_inputs.py +0 -93
- pulumi_gcp/tpu/outputs.py +0 -72
- pulumi_gcp/tpu/v2_queued_resource.py +16 -0
- pulumi_gcp/tpu/v2_vm.py +16 -0
- pulumi_gcp/vertex/_inputs.py +8 -9
- pulumi_gcp/vertex/ai_endpoint.py +2 -4
- pulumi_gcp/vertex/ai_feature_group_iam_binding.py +236 -0
- pulumi_gcp/vertex/ai_feature_group_iam_member.py +236 -0
- pulumi_gcp/vertex/ai_feature_group_iam_policy.py +236 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +0 -2
- pulumi_gcp/vertex/ai_feature_online_store_featureview_iam_binding.py +248 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview_iam_member.py +248 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview_iam_policy.py +248 -0
- pulumi_gcp/vertex/ai_feature_online_store_iam_binding.py +236 -0
- pulumi_gcp/vertex/ai_feature_online_store_iam_member.py +236 -0
- pulumi_gcp/vertex/ai_feature_online_store_iam_policy.py +236 -0
- pulumi_gcp/vertex/ai_feature_store_entity_type_iam_binding.py +238 -0
- pulumi_gcp/vertex/ai_feature_store_entity_type_iam_member.py +238 -0
- pulumi_gcp/vertex/ai_feature_store_entity_type_iam_policy.py +238 -0
- pulumi_gcp/vertex/ai_feature_store_iam_binding.py +248 -0
- pulumi_gcp/vertex/ai_feature_store_iam_member.py +248 -0
- pulumi_gcp/vertex/ai_feature_store_iam_policy.py +248 -0
- pulumi_gcp/vertex/ai_index.py +24 -23
- pulumi_gcp/vertex/ai_metadata_store.py +16 -0
- pulumi_gcp/vertex/outputs.py +7 -8
- pulumi_gcp/workstations/workstation.py +16 -0
- pulumi_gcp/workstations/workstation_cluster.py +16 -0
- pulumi_gcp/workstations/workstation_config.py +16 -0
- pulumi_gcp/workstations/workstation_config_iam_binding.py +260 -0
- pulumi_gcp/workstations/workstation_config_iam_member.py +260 -0
- pulumi_gcp/workstations/workstation_config_iam_policy.py +260 -0
- pulumi_gcp/workstations/workstation_iam_binding.py +272 -0
- pulumi_gcp/workstations/workstation_iam_member.py +272 -0
- pulumi_gcp/workstations/workstation_iam_policy.py +272 -0
- {pulumi_gcp-8.42.0a1758178363.dist-info → pulumi_gcp-9.0.0.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.42.0a1758178363.dist-info → pulumi_gcp-9.0.0.dist-info}/RECORD +266 -255
- pulumi_gcp/beyondcorp/application.py +0 -746
- pulumi_gcp/beyondcorp/get_application_iam_policy.py +0 -182
- pulumi_gcp/notebooks/location.py +0 -285
- pulumi_gcp/tpu/get_tensorflow_versions.py +0 -184
- pulumi_gcp/tpu/node.py +0 -1062
- {pulumi_gcp-8.42.0a1758178363.dist-info → pulumi_gcp-9.0.0.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.42.0a1758178363.dist-info → pulumi_gcp-9.0.0.dist-info}/top_level.txt +0 -0
@@ -928,7 +928,6 @@ if not MYPY:
|
|
928
928
|
public_repository: NotRequired[pulumi.Input[_builtins.str]]
|
929
929
|
"""
|
930
930
|
Address of the remote repository.
|
931
|
-
Default value is `DOCKER_HUB`.
|
932
931
|
Possible values are: `DOCKER_HUB`.
|
933
932
|
"""
|
934
933
|
elif False:
|
@@ -943,7 +942,6 @@ class RepositoryRemoteRepositoryConfigDockerRepositoryArgs:
|
|
943
942
|
:param pulumi.Input['RepositoryRemoteRepositoryConfigDockerRepositoryCustomRepositoryArgs'] custom_repository: [Deprecated, please use commonRepository instead] Settings for a remote repository with a custom uri.
|
944
943
|
Structure is documented below.
|
945
944
|
:param pulumi.Input[_builtins.str] public_repository: Address of the remote repository.
|
946
|
-
Default value is `DOCKER_HUB`.
|
947
945
|
Possible values are: `DOCKER_HUB`.
|
948
946
|
"""
|
949
947
|
if custom_repository is not None:
|
@@ -969,7 +967,6 @@ class RepositoryRemoteRepositoryConfigDockerRepositoryArgs:
|
|
969
967
|
def public_repository(self) -> Optional[pulumi.Input[_builtins.str]]:
|
970
968
|
"""
|
971
969
|
Address of the remote repository.
|
972
|
-
Default value is `DOCKER_HUB`.
|
973
970
|
Possible values are: `DOCKER_HUB`.
|
974
971
|
"""
|
975
972
|
return pulumi.get(self, "public_repository")
|
@@ -1021,7 +1018,6 @@ if not MYPY:
|
|
1021
1018
|
public_repository: NotRequired[pulumi.Input[_builtins.str]]
|
1022
1019
|
"""
|
1023
1020
|
Address of the remote repository.
|
1024
|
-
Default value is `MAVEN_CENTRAL`.
|
1025
1021
|
Possible values are: `MAVEN_CENTRAL`.
|
1026
1022
|
"""
|
1027
1023
|
elif False:
|
@@ -1036,7 +1032,6 @@ class RepositoryRemoteRepositoryConfigMavenRepositoryArgs:
|
|
1036
1032
|
:param pulumi.Input['RepositoryRemoteRepositoryConfigMavenRepositoryCustomRepositoryArgs'] custom_repository: [Deprecated, please use commonRepository instead] Settings for a remote repository with a custom uri.
|
1037
1033
|
Structure is documented below.
|
1038
1034
|
:param pulumi.Input[_builtins.str] public_repository: Address of the remote repository.
|
1039
|
-
Default value is `MAVEN_CENTRAL`.
|
1040
1035
|
Possible values are: `MAVEN_CENTRAL`.
|
1041
1036
|
"""
|
1042
1037
|
if custom_repository is not None:
|
@@ -1062,7 +1057,6 @@ class RepositoryRemoteRepositoryConfigMavenRepositoryArgs:
|
|
1062
1057
|
def public_repository(self) -> Optional[pulumi.Input[_builtins.str]]:
|
1063
1058
|
"""
|
1064
1059
|
Address of the remote repository.
|
1065
|
-
Default value is `MAVEN_CENTRAL`.
|
1066
1060
|
Possible values are: `MAVEN_CENTRAL`.
|
1067
1061
|
"""
|
1068
1062
|
return pulumi.get(self, "public_repository")
|
@@ -1114,7 +1108,6 @@ if not MYPY:
|
|
1114
1108
|
public_repository: NotRequired[pulumi.Input[_builtins.str]]
|
1115
1109
|
"""
|
1116
1110
|
Address of the remote repository.
|
1117
|
-
Default value is `NPMJS`.
|
1118
1111
|
Possible values are: `NPMJS`.
|
1119
1112
|
"""
|
1120
1113
|
elif False:
|
@@ -1129,7 +1122,6 @@ class RepositoryRemoteRepositoryConfigNpmRepositoryArgs:
|
|
1129
1122
|
:param pulumi.Input['RepositoryRemoteRepositoryConfigNpmRepositoryCustomRepositoryArgs'] custom_repository: [Deprecated, please use commonRepository instead] Settings for a remote repository with a custom uri.
|
1130
1123
|
Structure is documented below.
|
1131
1124
|
:param pulumi.Input[_builtins.str] public_repository: Address of the remote repository.
|
1132
|
-
Default value is `NPMJS`.
|
1133
1125
|
Possible values are: `NPMJS`.
|
1134
1126
|
"""
|
1135
1127
|
if custom_repository is not None:
|
@@ -1155,7 +1147,6 @@ class RepositoryRemoteRepositoryConfigNpmRepositoryArgs:
|
|
1155
1147
|
def public_repository(self) -> Optional[pulumi.Input[_builtins.str]]:
|
1156
1148
|
"""
|
1157
1149
|
Address of the remote repository.
|
1158
|
-
Default value is `NPMJS`.
|
1159
1150
|
Possible values are: `NPMJS`.
|
1160
1151
|
"""
|
1161
1152
|
return pulumi.get(self, "public_repository")
|
@@ -1207,7 +1198,6 @@ if not MYPY:
|
|
1207
1198
|
public_repository: NotRequired[pulumi.Input[_builtins.str]]
|
1208
1199
|
"""
|
1209
1200
|
Address of the remote repository.
|
1210
|
-
Default value is `PYPI`.
|
1211
1201
|
Possible values are: `PYPI`.
|
1212
1202
|
"""
|
1213
1203
|
elif False:
|
@@ -1222,7 +1212,6 @@ class RepositoryRemoteRepositoryConfigPythonRepositoryArgs:
|
|
1222
1212
|
:param pulumi.Input['RepositoryRemoteRepositoryConfigPythonRepositoryCustomRepositoryArgs'] custom_repository: [Deprecated, please use commonRepository instead] Settings for a remote repository with a custom uri.
|
1223
1213
|
Structure is documented below.
|
1224
1214
|
:param pulumi.Input[_builtins.str] public_repository: Address of the remote repository.
|
1225
|
-
Default value is `PYPI`.
|
1226
1215
|
Possible values are: `PYPI`.
|
1227
1216
|
"""
|
1228
1217
|
if custom_repository is not None:
|
@@ -1248,7 +1237,6 @@ class RepositoryRemoteRepositoryConfigPythonRepositoryArgs:
|
|
1248
1237
|
def public_repository(self) -> Optional[pulumi.Input[_builtins.str]]:
|
1249
1238
|
"""
|
1250
1239
|
Address of the remote repository.
|
1251
|
-
Default value is `PYPI`.
|
1252
1240
|
Possible values are: `PYPI`.
|
1253
1241
|
"""
|
1254
1242
|
return pulumi.get(self, "public_repository")
|
@@ -0,0 +1,251 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins as _builtins
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
|
17
|
+
__all__ = [
|
18
|
+
'GetNpmPackageResult',
|
19
|
+
'AwaitableGetNpmPackageResult',
|
20
|
+
'get_npm_package',
|
21
|
+
'get_npm_package_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetNpmPackageResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getNpmPackage.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, create_time=None, id=None, location=None, name=None, package_name=None, project=None, repository_id=None, tags=None, update_time=None, version=None):
|
30
|
+
if create_time and not isinstance(create_time, str):
|
31
|
+
raise TypeError("Expected argument 'create_time' to be a str")
|
32
|
+
pulumi.set(__self__, "create_time", create_time)
|
33
|
+
if id and not isinstance(id, str):
|
34
|
+
raise TypeError("Expected argument 'id' to be a str")
|
35
|
+
pulumi.set(__self__, "id", id)
|
36
|
+
if location and not isinstance(location, str):
|
37
|
+
raise TypeError("Expected argument 'location' to be a str")
|
38
|
+
pulumi.set(__self__, "location", location)
|
39
|
+
if name and not isinstance(name, str):
|
40
|
+
raise TypeError("Expected argument 'name' to be a str")
|
41
|
+
pulumi.set(__self__, "name", name)
|
42
|
+
if package_name and not isinstance(package_name, str):
|
43
|
+
raise TypeError("Expected argument 'package_name' to be a str")
|
44
|
+
pulumi.set(__self__, "package_name", package_name)
|
45
|
+
if project and not isinstance(project, str):
|
46
|
+
raise TypeError("Expected argument 'project' to be a str")
|
47
|
+
pulumi.set(__self__, "project", project)
|
48
|
+
if repository_id and not isinstance(repository_id, str):
|
49
|
+
raise TypeError("Expected argument 'repository_id' to be a str")
|
50
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
51
|
+
if tags and not isinstance(tags, list):
|
52
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
53
|
+
pulumi.set(__self__, "tags", tags)
|
54
|
+
if update_time and not isinstance(update_time, str):
|
55
|
+
raise TypeError("Expected argument 'update_time' to be a str")
|
56
|
+
pulumi.set(__self__, "update_time", update_time)
|
57
|
+
if version and not isinstance(version, str):
|
58
|
+
raise TypeError("Expected argument 'version' to be a str")
|
59
|
+
pulumi.set(__self__, "version", version)
|
60
|
+
|
61
|
+
@_builtins.property
|
62
|
+
@pulumi.getter(name="createTime")
|
63
|
+
def create_time(self) -> _builtins.str:
|
64
|
+
"""
|
65
|
+
The time the package was created.
|
66
|
+
"""
|
67
|
+
return pulumi.get(self, "create_time")
|
68
|
+
|
69
|
+
@_builtins.property
|
70
|
+
@pulumi.getter
|
71
|
+
def id(self) -> _builtins.str:
|
72
|
+
"""
|
73
|
+
The provider-assigned unique ID for this managed resource.
|
74
|
+
"""
|
75
|
+
return pulumi.get(self, "id")
|
76
|
+
|
77
|
+
@_builtins.property
|
78
|
+
@pulumi.getter
|
79
|
+
def location(self) -> _builtins.str:
|
80
|
+
return pulumi.get(self, "location")
|
81
|
+
|
82
|
+
@_builtins.property
|
83
|
+
@pulumi.getter
|
84
|
+
def name(self) -> _builtins.str:
|
85
|
+
"""
|
86
|
+
The fully qualified name of the fetched package. Format:
|
87
|
+
```
|
88
|
+
projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/npmPackages/{{package}}:{{version}}
|
89
|
+
```
|
90
|
+
"""
|
91
|
+
return pulumi.get(self, "name")
|
92
|
+
|
93
|
+
@_builtins.property
|
94
|
+
@pulumi.getter(name="packageName")
|
95
|
+
def package_name(self) -> _builtins.str:
|
96
|
+
return pulumi.get(self, "package_name")
|
97
|
+
|
98
|
+
@_builtins.property
|
99
|
+
@pulumi.getter
|
100
|
+
def project(self) -> Optional[_builtins.str]:
|
101
|
+
return pulumi.get(self, "project")
|
102
|
+
|
103
|
+
@_builtins.property
|
104
|
+
@pulumi.getter(name="repositoryId")
|
105
|
+
def repository_id(self) -> _builtins.str:
|
106
|
+
return pulumi.get(self, "repository_id")
|
107
|
+
|
108
|
+
@_builtins.property
|
109
|
+
@pulumi.getter
|
110
|
+
def tags(self) -> Sequence[_builtins.str]:
|
111
|
+
"""
|
112
|
+
A list of all Tags attached to this package.
|
113
|
+
"""
|
114
|
+
return pulumi.get(self, "tags")
|
115
|
+
|
116
|
+
@_builtins.property
|
117
|
+
@pulumi.getter(name="updateTime")
|
118
|
+
def update_time(self) -> _builtins.str:
|
119
|
+
"""
|
120
|
+
The time the package was last updated.
|
121
|
+
"""
|
122
|
+
return pulumi.get(self, "update_time")
|
123
|
+
|
124
|
+
@_builtins.property
|
125
|
+
@pulumi.getter
|
126
|
+
def version(self) -> _builtins.str:
|
127
|
+
"""
|
128
|
+
The version of the NPM package.
|
129
|
+
"""
|
130
|
+
return pulumi.get(self, "version")
|
131
|
+
|
132
|
+
|
133
|
+
class AwaitableGetNpmPackageResult(GetNpmPackageResult):
|
134
|
+
# pylint: disable=using-constant-test
|
135
|
+
def __await__(self):
|
136
|
+
if False:
|
137
|
+
yield self
|
138
|
+
return GetNpmPackageResult(
|
139
|
+
create_time=self.create_time,
|
140
|
+
id=self.id,
|
141
|
+
location=self.location,
|
142
|
+
name=self.name,
|
143
|
+
package_name=self.package_name,
|
144
|
+
project=self.project,
|
145
|
+
repository_id=self.repository_id,
|
146
|
+
tags=self.tags,
|
147
|
+
update_time=self.update_time,
|
148
|
+
version=self.version)
|
149
|
+
|
150
|
+
|
151
|
+
def get_npm_package(location: Optional[_builtins.str] = None,
|
152
|
+
package_name: Optional[_builtins.str] = None,
|
153
|
+
project: Optional[_builtins.str] = None,
|
154
|
+
repository_id: Optional[_builtins.str] = None,
|
155
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNpmPackageResult:
|
156
|
+
"""
|
157
|
+
This data source fetches information from a provided Artifact Registry repository, based on a the latest version of the package and optional version.
|
158
|
+
|
159
|
+
## Example Usage
|
160
|
+
|
161
|
+
```python
|
162
|
+
import pulumi
|
163
|
+
import pulumi_gcp as gcp
|
164
|
+
|
165
|
+
npm_repo = gcp.artifactregistry.Repository("npm_repo",
|
166
|
+
location="us-central1",
|
167
|
+
repository_id="my-npm-repo",
|
168
|
+
format="NPM")
|
169
|
+
latest = gcp.artifactregistry.get_npm_package_output(location=npm_repo.location,
|
170
|
+
repository_id=npm_repo.repository_id,
|
171
|
+
package_name="example-pkg")
|
172
|
+
with_version = gcp.artifactregistry.get_npm_package_output(location=npm_repo.location,
|
173
|
+
repository_id=npm_repo.repository_id,
|
174
|
+
package_name="example-pkg:1.0.0")
|
175
|
+
```
|
176
|
+
|
177
|
+
|
178
|
+
:param _builtins.str location: The location of the Artifact Registry repository.
|
179
|
+
:param _builtins.str package_name: The name of the package to fetch. Can optionally include a specific version (e.g., `my_pkg:1.2.3`). If no version is provided, the latest version is used.
|
180
|
+
:param _builtins.str project: The ID of the project that owns the repository. If not provided, the provider-level project is used.
|
181
|
+
:param _builtins.str repository_id: The ID of the repository containing the NPM package.
|
182
|
+
"""
|
183
|
+
__args__ = dict()
|
184
|
+
__args__['location'] = location
|
185
|
+
__args__['packageName'] = package_name
|
186
|
+
__args__['project'] = project
|
187
|
+
__args__['repositoryId'] = repository_id
|
188
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
189
|
+
__ret__ = pulumi.runtime.invoke('gcp:artifactregistry/getNpmPackage:getNpmPackage', __args__, opts=opts, typ=GetNpmPackageResult).value
|
190
|
+
|
191
|
+
return AwaitableGetNpmPackageResult(
|
192
|
+
create_time=pulumi.get(__ret__, 'create_time'),
|
193
|
+
id=pulumi.get(__ret__, 'id'),
|
194
|
+
location=pulumi.get(__ret__, 'location'),
|
195
|
+
name=pulumi.get(__ret__, 'name'),
|
196
|
+
package_name=pulumi.get(__ret__, 'package_name'),
|
197
|
+
project=pulumi.get(__ret__, 'project'),
|
198
|
+
repository_id=pulumi.get(__ret__, 'repository_id'),
|
199
|
+
tags=pulumi.get(__ret__, 'tags'),
|
200
|
+
update_time=pulumi.get(__ret__, 'update_time'),
|
201
|
+
version=pulumi.get(__ret__, 'version'))
|
202
|
+
def get_npm_package_output(location: Optional[pulumi.Input[_builtins.str]] = None,
|
203
|
+
package_name: Optional[pulumi.Input[_builtins.str]] = None,
|
204
|
+
project: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
205
|
+
repository_id: Optional[pulumi.Input[_builtins.str]] = None,
|
206
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNpmPackageResult]:
|
207
|
+
"""
|
208
|
+
This data source fetches information from a provided Artifact Registry repository, based on a the latest version of the package and optional version.
|
209
|
+
|
210
|
+
## Example Usage
|
211
|
+
|
212
|
+
```python
|
213
|
+
import pulumi
|
214
|
+
import pulumi_gcp as gcp
|
215
|
+
|
216
|
+
npm_repo = gcp.artifactregistry.Repository("npm_repo",
|
217
|
+
location="us-central1",
|
218
|
+
repository_id="my-npm-repo",
|
219
|
+
format="NPM")
|
220
|
+
latest = gcp.artifactregistry.get_npm_package_output(location=npm_repo.location,
|
221
|
+
repository_id=npm_repo.repository_id,
|
222
|
+
package_name="example-pkg")
|
223
|
+
with_version = gcp.artifactregistry.get_npm_package_output(location=npm_repo.location,
|
224
|
+
repository_id=npm_repo.repository_id,
|
225
|
+
package_name="example-pkg:1.0.0")
|
226
|
+
```
|
227
|
+
|
228
|
+
|
229
|
+
:param _builtins.str location: The location of the Artifact Registry repository.
|
230
|
+
:param _builtins.str package_name: The name of the package to fetch. Can optionally include a specific version (e.g., `my_pkg:1.2.3`). If no version is provided, the latest version is used.
|
231
|
+
:param _builtins.str project: The ID of the project that owns the repository. If not provided, the provider-level project is used.
|
232
|
+
:param _builtins.str repository_id: The ID of the repository containing the NPM package.
|
233
|
+
"""
|
234
|
+
__args__ = dict()
|
235
|
+
__args__['location'] = location
|
236
|
+
__args__['packageName'] = package_name
|
237
|
+
__args__['project'] = project
|
238
|
+
__args__['repositoryId'] = repository_id
|
239
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
240
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:artifactregistry/getNpmPackage:getNpmPackage', __args__, opts=opts, typ=GetNpmPackageResult)
|
241
|
+
return __ret__.apply(lambda __response__: GetNpmPackageResult(
|
242
|
+
create_time=pulumi.get(__response__, 'create_time'),
|
243
|
+
id=pulumi.get(__response__, 'id'),
|
244
|
+
location=pulumi.get(__response__, 'location'),
|
245
|
+
name=pulumi.get(__response__, 'name'),
|
246
|
+
package_name=pulumi.get(__response__, 'package_name'),
|
247
|
+
project=pulumi.get(__response__, 'project'),
|
248
|
+
repository_id=pulumi.get(__response__, 'repository_id'),
|
249
|
+
tags=pulumi.get(__response__, 'tags'),
|
250
|
+
update_time=pulumi.get(__response__, 'update_time'),
|
251
|
+
version=pulumi.get(__response__, 'version')))
|
@@ -0,0 +1,237 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins as _builtins
|
6
|
+
import warnings
|
7
|
+
import sys
|
8
|
+
import pulumi
|
9
|
+
import pulumi.runtime
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
15
|
+
from .. import _utilities
|
16
|
+
|
17
|
+
__all__ = [
|
18
|
+
'GetPythonPackageResult',
|
19
|
+
'AwaitableGetPythonPackageResult',
|
20
|
+
'get_python_package',
|
21
|
+
'get_python_package_output',
|
22
|
+
]
|
23
|
+
|
24
|
+
@pulumi.output_type
|
25
|
+
class GetPythonPackageResult:
|
26
|
+
"""
|
27
|
+
A collection of values returned by getPythonPackage.
|
28
|
+
"""
|
29
|
+
def __init__(__self__, create_time=None, id=None, location=None, name=None, package_name=None, project=None, repository_id=None, update_time=None, version=None):
|
30
|
+
if create_time and not isinstance(create_time, str):
|
31
|
+
raise TypeError("Expected argument 'create_time' to be a str")
|
32
|
+
pulumi.set(__self__, "create_time", create_time)
|
33
|
+
if id and not isinstance(id, str):
|
34
|
+
raise TypeError("Expected argument 'id' to be a str")
|
35
|
+
pulumi.set(__self__, "id", id)
|
36
|
+
if location and not isinstance(location, str):
|
37
|
+
raise TypeError("Expected argument 'location' to be a str")
|
38
|
+
pulumi.set(__self__, "location", location)
|
39
|
+
if name and not isinstance(name, str):
|
40
|
+
raise TypeError("Expected argument 'name' to be a str")
|
41
|
+
pulumi.set(__self__, "name", name)
|
42
|
+
if package_name and not isinstance(package_name, str):
|
43
|
+
raise TypeError("Expected argument 'package_name' to be a str")
|
44
|
+
pulumi.set(__self__, "package_name", package_name)
|
45
|
+
if project and not isinstance(project, str):
|
46
|
+
raise TypeError("Expected argument 'project' to be a str")
|
47
|
+
pulumi.set(__self__, "project", project)
|
48
|
+
if repository_id and not isinstance(repository_id, str):
|
49
|
+
raise TypeError("Expected argument 'repository_id' to be a str")
|
50
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
51
|
+
if update_time and not isinstance(update_time, str):
|
52
|
+
raise TypeError("Expected argument 'update_time' to be a str")
|
53
|
+
pulumi.set(__self__, "update_time", update_time)
|
54
|
+
if version and not isinstance(version, str):
|
55
|
+
raise TypeError("Expected argument 'version' to be a str")
|
56
|
+
pulumi.set(__self__, "version", version)
|
57
|
+
|
58
|
+
@_builtins.property
|
59
|
+
@pulumi.getter(name="createTime")
|
60
|
+
def create_time(self) -> _builtins.str:
|
61
|
+
"""
|
62
|
+
The time the package was created.
|
63
|
+
"""
|
64
|
+
return pulumi.get(self, "create_time")
|
65
|
+
|
66
|
+
@_builtins.property
|
67
|
+
@pulumi.getter
|
68
|
+
def id(self) -> _builtins.str:
|
69
|
+
"""
|
70
|
+
The provider-assigned unique ID for this managed resource.
|
71
|
+
"""
|
72
|
+
return pulumi.get(self, "id")
|
73
|
+
|
74
|
+
@_builtins.property
|
75
|
+
@pulumi.getter
|
76
|
+
def location(self) -> _builtins.str:
|
77
|
+
return pulumi.get(self, "location")
|
78
|
+
|
79
|
+
@_builtins.property
|
80
|
+
@pulumi.getter
|
81
|
+
def name(self) -> _builtins.str:
|
82
|
+
"""
|
83
|
+
The fully qualified name of the fetched package. Format:
|
84
|
+
```
|
85
|
+
projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/pythonPackages/{{package}}:{{version}}
|
86
|
+
```
|
87
|
+
"""
|
88
|
+
return pulumi.get(self, "name")
|
89
|
+
|
90
|
+
@_builtins.property
|
91
|
+
@pulumi.getter(name="packageName")
|
92
|
+
def package_name(self) -> _builtins.str:
|
93
|
+
return pulumi.get(self, "package_name")
|
94
|
+
|
95
|
+
@_builtins.property
|
96
|
+
@pulumi.getter
|
97
|
+
def project(self) -> Optional[_builtins.str]:
|
98
|
+
return pulumi.get(self, "project")
|
99
|
+
|
100
|
+
@_builtins.property
|
101
|
+
@pulumi.getter(name="repositoryId")
|
102
|
+
def repository_id(self) -> _builtins.str:
|
103
|
+
return pulumi.get(self, "repository_id")
|
104
|
+
|
105
|
+
@_builtins.property
|
106
|
+
@pulumi.getter(name="updateTime")
|
107
|
+
def update_time(self) -> _builtins.str:
|
108
|
+
"""
|
109
|
+
The time the package was last updated.
|
110
|
+
"""
|
111
|
+
return pulumi.get(self, "update_time")
|
112
|
+
|
113
|
+
@_builtins.property
|
114
|
+
@pulumi.getter
|
115
|
+
def version(self) -> _builtins.str:
|
116
|
+
"""
|
117
|
+
The version of the Python package.
|
118
|
+
"""
|
119
|
+
return pulumi.get(self, "version")
|
120
|
+
|
121
|
+
|
122
|
+
class AwaitableGetPythonPackageResult(GetPythonPackageResult):
|
123
|
+
# pylint: disable=using-constant-test
|
124
|
+
def __await__(self):
|
125
|
+
if False:
|
126
|
+
yield self
|
127
|
+
return GetPythonPackageResult(
|
128
|
+
create_time=self.create_time,
|
129
|
+
id=self.id,
|
130
|
+
location=self.location,
|
131
|
+
name=self.name,
|
132
|
+
package_name=self.package_name,
|
133
|
+
project=self.project,
|
134
|
+
repository_id=self.repository_id,
|
135
|
+
update_time=self.update_time,
|
136
|
+
version=self.version)
|
137
|
+
|
138
|
+
|
139
|
+
def get_python_package(location: Optional[_builtins.str] = None,
|
140
|
+
package_name: Optional[_builtins.str] = None,
|
141
|
+
project: Optional[_builtins.str] = None,
|
142
|
+
repository_id: Optional[_builtins.str] = None,
|
143
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPythonPackageResult:
|
144
|
+
"""
|
145
|
+
This data source fetches information from a provided Artifact Registry repository, based on a the latest version of the package and optional version.
|
146
|
+
|
147
|
+
## Example Usage
|
148
|
+
|
149
|
+
```python
|
150
|
+
import pulumi
|
151
|
+
import pulumi_gcp as gcp
|
152
|
+
|
153
|
+
python_repo = gcp.artifactregistry.Repository("python_repo",
|
154
|
+
location="us-central1",
|
155
|
+
repository_id="my-python-repo",
|
156
|
+
format="PYTHON")
|
157
|
+
latest = gcp.artifactregistry.get_python_package_output(location=python_repo.location,
|
158
|
+
repository_id=python_repo.repository_id,
|
159
|
+
package_name="example_pkg")
|
160
|
+
with_version = gcp.artifactregistry.get_python_package_output(location=python_repo.location,
|
161
|
+
repository_id=python_repo.repository_id,
|
162
|
+
package_name="example_pkg:1.0.0")
|
163
|
+
```
|
164
|
+
|
165
|
+
|
166
|
+
:param _builtins.str location: The location of the Artifact Registry repository.
|
167
|
+
:param _builtins.str package_name: The name of the package to fetch. Can optionally include a specific version (e.g., `my_pkg:1.2.3`). If no version is provided, the latest version is used.
|
168
|
+
:param _builtins.str project: The ID of the project that owns the repository. If not provided, the provider-level project is used.
|
169
|
+
:param _builtins.str repository_id: The ID of the repository containing the Python package.
|
170
|
+
"""
|
171
|
+
__args__ = dict()
|
172
|
+
__args__['location'] = location
|
173
|
+
__args__['packageName'] = package_name
|
174
|
+
__args__['project'] = project
|
175
|
+
__args__['repositoryId'] = repository_id
|
176
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
177
|
+
__ret__ = pulumi.runtime.invoke('gcp:artifactregistry/getPythonPackage:getPythonPackage', __args__, opts=opts, typ=GetPythonPackageResult).value
|
178
|
+
|
179
|
+
return AwaitableGetPythonPackageResult(
|
180
|
+
create_time=pulumi.get(__ret__, 'create_time'),
|
181
|
+
id=pulumi.get(__ret__, 'id'),
|
182
|
+
location=pulumi.get(__ret__, 'location'),
|
183
|
+
name=pulumi.get(__ret__, 'name'),
|
184
|
+
package_name=pulumi.get(__ret__, 'package_name'),
|
185
|
+
project=pulumi.get(__ret__, 'project'),
|
186
|
+
repository_id=pulumi.get(__ret__, 'repository_id'),
|
187
|
+
update_time=pulumi.get(__ret__, 'update_time'),
|
188
|
+
version=pulumi.get(__ret__, 'version'))
|
189
|
+
def get_python_package_output(location: Optional[pulumi.Input[_builtins.str]] = None,
|
190
|
+
package_name: Optional[pulumi.Input[_builtins.str]] = None,
|
191
|
+
project: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
192
|
+
repository_id: Optional[pulumi.Input[_builtins.str]] = None,
|
193
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPythonPackageResult]:
|
194
|
+
"""
|
195
|
+
This data source fetches information from a provided Artifact Registry repository, based on a the latest version of the package and optional version.
|
196
|
+
|
197
|
+
## Example Usage
|
198
|
+
|
199
|
+
```python
|
200
|
+
import pulumi
|
201
|
+
import pulumi_gcp as gcp
|
202
|
+
|
203
|
+
python_repo = gcp.artifactregistry.Repository("python_repo",
|
204
|
+
location="us-central1",
|
205
|
+
repository_id="my-python-repo",
|
206
|
+
format="PYTHON")
|
207
|
+
latest = gcp.artifactregistry.get_python_package_output(location=python_repo.location,
|
208
|
+
repository_id=python_repo.repository_id,
|
209
|
+
package_name="example_pkg")
|
210
|
+
with_version = gcp.artifactregistry.get_python_package_output(location=python_repo.location,
|
211
|
+
repository_id=python_repo.repository_id,
|
212
|
+
package_name="example_pkg:1.0.0")
|
213
|
+
```
|
214
|
+
|
215
|
+
|
216
|
+
:param _builtins.str location: The location of the Artifact Registry repository.
|
217
|
+
:param _builtins.str package_name: The name of the package to fetch. Can optionally include a specific version (e.g., `my_pkg:1.2.3`). If no version is provided, the latest version is used.
|
218
|
+
:param _builtins.str project: The ID of the project that owns the repository. If not provided, the provider-level project is used.
|
219
|
+
:param _builtins.str repository_id: The ID of the repository containing the Python package.
|
220
|
+
"""
|
221
|
+
__args__ = dict()
|
222
|
+
__args__['location'] = location
|
223
|
+
__args__['packageName'] = package_name
|
224
|
+
__args__['project'] = project
|
225
|
+
__args__['repositoryId'] = repository_id
|
226
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
227
|
+
__ret__ = pulumi.runtime.invoke_output('gcp:artifactregistry/getPythonPackage:getPythonPackage', __args__, opts=opts, typ=GetPythonPackageResult)
|
228
|
+
return __ret__.apply(lambda __response__: GetPythonPackageResult(
|
229
|
+
create_time=pulumi.get(__response__, 'create_time'),
|
230
|
+
id=pulumi.get(__response__, 'id'),
|
231
|
+
location=pulumi.get(__response__, 'location'),
|
232
|
+
name=pulumi.get(__response__, 'name'),
|
233
|
+
package_name=pulumi.get(__response__, 'package_name'),
|
234
|
+
project=pulumi.get(__response__, 'project'),
|
235
|
+
repository_id=pulumi.get(__response__, 'repository_id'),
|
236
|
+
update_time=pulumi.get(__response__, 'update_time'),
|
237
|
+
version=pulumi.get(__response__, 'version')))
|
@@ -27,7 +27,7 @@ class GetRepositoryResult:
|
|
27
27
|
"""
|
28
28
|
A collection of values returned by getRepository.
|
29
29
|
"""
|
30
|
-
def __init__(__self__, cleanup_policies=None, cleanup_policy_dry_run=None, create_time=None, description=None, docker_configs=None, effective_labels=None, format=None, id=None, kms_key_name=None, labels=None, location=None, maven_configs=None, mode=None, name=None, project=None, pulumi_labels=None, remote_repository_configs=None, repository_id=None, update_time=None, virtual_repository_configs=None, vulnerability_scanning_configs=None):
|
30
|
+
def __init__(__self__, cleanup_policies=None, cleanup_policy_dry_run=None, create_time=None, description=None, docker_configs=None, effective_labels=None, format=None, id=None, kms_key_name=None, labels=None, location=None, maven_configs=None, mode=None, name=None, project=None, pulumi_labels=None, registry_uri=None, remote_repository_configs=None, repository_id=None, update_time=None, virtual_repository_configs=None, vulnerability_scanning_configs=None):
|
31
31
|
if cleanup_policies and not isinstance(cleanup_policies, list):
|
32
32
|
raise TypeError("Expected argument 'cleanup_policies' to be a list")
|
33
33
|
pulumi.set(__self__, "cleanup_policies", cleanup_policies)
|
@@ -76,6 +76,9 @@ class GetRepositoryResult:
|
|
76
76
|
if pulumi_labels and not isinstance(pulumi_labels, dict):
|
77
77
|
raise TypeError("Expected argument 'pulumi_labels' to be a dict")
|
78
78
|
pulumi.set(__self__, "pulumi_labels", pulumi_labels)
|
79
|
+
if registry_uri and not isinstance(registry_uri, str):
|
80
|
+
raise TypeError("Expected argument 'registry_uri' to be a str")
|
81
|
+
pulumi.set(__self__, "registry_uri", registry_uri)
|
79
82
|
if remote_repository_configs and not isinstance(remote_repository_configs, list):
|
80
83
|
raise TypeError("Expected argument 'remote_repository_configs' to be a list")
|
81
84
|
pulumi.set(__self__, "remote_repository_configs", remote_repository_configs)
|
@@ -175,6 +178,11 @@ class GetRepositoryResult:
|
|
175
178
|
def pulumi_labels(self) -> Mapping[str, _builtins.str]:
|
176
179
|
return pulumi.get(self, "pulumi_labels")
|
177
180
|
|
181
|
+
@_builtins.property
|
182
|
+
@pulumi.getter(name="registryUri")
|
183
|
+
def registry_uri(self) -> _builtins.str:
|
184
|
+
return pulumi.get(self, "registry_uri")
|
185
|
+
|
178
186
|
@_builtins.property
|
179
187
|
@pulumi.getter(name="remoteRepositoryConfigs")
|
180
188
|
def remote_repository_configs(self) -> Sequence['outputs.GetRepositoryRemoteRepositoryConfigResult']:
|
@@ -223,6 +231,7 @@ class AwaitableGetRepositoryResult(GetRepositoryResult):
|
|
223
231
|
name=self.name,
|
224
232
|
project=self.project,
|
225
233
|
pulumi_labels=self.pulumi_labels,
|
234
|
+
registry_uri=self.registry_uri,
|
226
235
|
remote_repository_configs=self.remote_repository_configs,
|
227
236
|
repository_id=self.repository_id,
|
228
237
|
update_time=self.update_time,
|
@@ -281,6 +290,7 @@ def get_repository(location: Optional[_builtins.str] = None,
|
|
281
290
|
name=pulumi.get(__ret__, 'name'),
|
282
291
|
project=pulumi.get(__ret__, 'project'),
|
283
292
|
pulumi_labels=pulumi.get(__ret__, 'pulumi_labels'),
|
293
|
+
registry_uri=pulumi.get(__ret__, 'registry_uri'),
|
284
294
|
remote_repository_configs=pulumi.get(__ret__, 'remote_repository_configs'),
|
285
295
|
repository_id=pulumi.get(__ret__, 'repository_id'),
|
286
296
|
update_time=pulumi.get(__ret__, 'update_time'),
|
@@ -336,6 +346,7 @@ def get_repository_output(location: Optional[pulumi.Input[_builtins.str]] = None
|
|
336
346
|
name=pulumi.get(__response__, 'name'),
|
337
347
|
project=pulumi.get(__response__, 'project'),
|
338
348
|
pulumi_labels=pulumi.get(__response__, 'pulumi_labels'),
|
349
|
+
registry_uri=pulumi.get(__response__, 'registry_uri'),
|
339
350
|
remote_repository_configs=pulumi.get(__response__, 'remote_repository_configs'),
|
340
351
|
repository_id=pulumi.get(__response__, 'repository_id'),
|
341
352
|
update_time=pulumi.get(__response__, 'update_time'),
|