pulumi-gcp 9.1.0a1758696393__py3-none-any.whl → 9.1.0a1758939336__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 +56 -0
- pulumi_gcp/accesscontextmanager/access_policy_iam_binding.py +7 -0
- pulumi_gcp/accesscontextmanager/access_policy_iam_member.py +7 -0
- pulumi_gcp/apigateway/api_config_iam_binding.py +7 -0
- pulumi_gcp/apigateway/api_config_iam_member.py +7 -0
- pulumi_gcp/apigateway/api_iam_binding.py +7 -0
- pulumi_gcp/apigateway/api_iam_member.py +7 -0
- pulumi_gcp/apigateway/gateway_iam_binding.py +7 -0
- pulumi_gcp/apigateway/gateway_iam_member.py +7 -0
- pulumi_gcp/apigee/environment_iam_binding.py +7 -0
- pulumi_gcp/apigee/environment_iam_member.py +7 -0
- pulumi_gcp/artifactregistry/__init__.py +1 -0
- pulumi_gcp/artifactregistry/get_maven_artifact.py +232 -0
- pulumi_gcp/artifactregistry/repository_iam_binding.py +7 -0
- pulumi_gcp/artifactregistry/repository_iam_member.py +7 -0
- pulumi_gcp/backupdisasterrecovery/__init__.py +2 -0
- pulumi_gcp/backupdisasterrecovery/get_backup_plan_associations.py +127 -0
- pulumi_gcp/backupdisasterrecovery/get_data_source_reference.py +211 -0
- pulumi_gcp/backupdisasterrecovery/outputs.py +34 -0
- pulumi_gcp/beyondcorp/security_gateway_application_iam_binding.py +7 -0
- pulumi_gcp/beyondcorp/security_gateway_application_iam_member.py +7 -0
- pulumi_gcp/beyondcorp/security_gateway_iam_binding.py +7 -0
- pulumi_gcp/beyondcorp/security_gateway_iam_member.py +7 -0
- pulumi_gcp/bigquery/__init__.py +5 -0
- pulumi_gcp/bigquery/_inputs.py +185 -0
- pulumi_gcp/bigquery/connection_iam_binding.py +7 -0
- pulumi_gcp/bigquery/connection_iam_member.py +7 -0
- pulumi_gcp/bigquery/datapolicyv2_data_policy.py +870 -0
- pulumi_gcp/bigquery/datapolicyv2_data_policy_iam_binding.py +838 -0
- pulumi_gcp/bigquery/datapolicyv2_data_policy_iam_member.py +838 -0
- pulumi_gcp/bigquery/datapolicyv2_data_policy_iam_policy.py +670 -0
- pulumi_gcp/bigquery/get_datapolicyv2_data_policy_iam_policy.py +182 -0
- pulumi_gcp/bigquery/iam_binding.py +7 -0
- pulumi_gcp/bigquery/iam_member.py +7 -0
- pulumi_gcp/bigquery/outputs.py +127 -0
- pulumi_gcp/bigqueryanalyticshub/data_exchange_iam_binding.py +7 -0
- pulumi_gcp/bigqueryanalyticshub/data_exchange_iam_member.py +7 -0
- pulumi_gcp/bigqueryanalyticshub/listing_iam_binding.py +7 -0
- pulumi_gcp/bigqueryanalyticshub/listing_iam_member.py +7 -0
- pulumi_gcp/bigquerydatapolicy/data_policy_iam_binding.py +7 -0
- pulumi_gcp/bigquerydatapolicy/data_policy_iam_member.py +7 -0
- pulumi_gcp/binaryauthorization/attestor_iam_binding.py +7 -0
- pulumi_gcp/binaryauthorization/attestor_iam_member.py +7 -0
- pulumi_gcp/certificateauthority/_inputs.py +37 -0
- pulumi_gcp/certificateauthority/ca_pool.py +90 -4
- pulumi_gcp/certificateauthority/ca_pool_iam_binding.py +7 -0
- pulumi_gcp/certificateauthority/ca_pool_iam_member.py +7 -0
- pulumi_gcp/certificateauthority/certificate_template_iam_binding.py +7 -0
- pulumi_gcp/certificateauthority/certificate_template_iam_member.py +7 -0
- pulumi_gcp/certificateauthority/outputs.py +39 -0
- pulumi_gcp/cloudbuildv2/connection_iam_binding.py +7 -0
- pulumi_gcp/cloudbuildv2/connection_iam_member.py +7 -0
- pulumi_gcp/cloudfunctions/function_iam_binding.py +7 -0
- pulumi_gcp/cloudfunctions/function_iam_member.py +7 -0
- pulumi_gcp/cloudfunctionsv2/function_iam_binding.py +7 -0
- pulumi_gcp/cloudfunctionsv2/function_iam_member.py +7 -0
- pulumi_gcp/cloudrun/_inputs.py +21 -1
- pulumi_gcp/cloudrun/iam_binding.py +7 -0
- pulumi_gcp/cloudrun/iam_member.py +7 -0
- pulumi_gcp/cloudrun/outputs.py +27 -2
- pulumi_gcp/cloudrunv2/_inputs.py +83 -3
- pulumi_gcp/cloudrunv2/job_iam_binding.py +7 -0
- pulumi_gcp/cloudrunv2/job_iam_member.py +7 -0
- pulumi_gcp/cloudrunv2/outputs.py +104 -6
- pulumi_gcp/cloudrunv2/service_iam_binding.py +7 -0
- pulumi_gcp/cloudrunv2/service_iam_member.py +7 -0
- pulumi_gcp/cloudrunv2/worker_pool_iam_binding.py +7 -0
- pulumi_gcp/cloudrunv2/worker_pool_iam_member.py +7 -0
- pulumi_gcp/cloudtasks/queue_iam_binding.py +7 -0
- pulumi_gcp/cloudtasks/queue_iam_member.py +7 -0
- pulumi_gcp/colab/runtime_template_iam_binding.py +7 -0
- pulumi_gcp/colab/runtime_template_iam_member.py +7 -0
- pulumi_gcp/compute/__init__.py +2 -0
- pulumi_gcp/compute/_inputs.py +214 -0
- pulumi_gcp/compute/backend_bucket_iam_binding.py +7 -0
- pulumi_gcp/compute/backend_bucket_iam_member.py +7 -0
- pulumi_gcp/compute/backend_service_iam_binding.py +7 -0
- pulumi_gcp/compute/backend_service_iam_member.py +7 -0
- pulumi_gcp/compute/disk_iam_binding.py +7 -0
- pulumi_gcp/compute/disk_iam_member.py +7 -0
- pulumi_gcp/compute/get_interconnect_location.py +278 -0
- pulumi_gcp/compute/get_interconnect_locations.py +130 -0
- pulumi_gcp/compute/get_security_policy.py +45 -1
- pulumi_gcp/compute/image_iam_binding.py +7 -0
- pulumi_gcp/compute/image_iam_member.py +7 -0
- pulumi_gcp/compute/instance_iam_binding.py +7 -0
- pulumi_gcp/compute/instance_iam_member.py +7 -0
- pulumi_gcp/compute/instance_template_iam_binding.py +7 -0
- pulumi_gcp/compute/instance_template_iam_member.py +7 -0
- pulumi_gcp/compute/instant_snapshot_iam_binding.py +7 -0
- pulumi_gcp/compute/instant_snapshot_iam_member.py +7 -0
- pulumi_gcp/compute/machine_image_iam_binding.py +7 -0
- pulumi_gcp/compute/machine_image_iam_member.py +7 -0
- pulumi_gcp/compute/outputs.py +348 -0
- pulumi_gcp/compute/region_backend_service.py +21 -7
- pulumi_gcp/compute/region_backend_service_iam_binding.py +7 -0
- pulumi_gcp/compute/region_backend_service_iam_member.py +7 -0
- pulumi_gcp/compute/region_disk_iam_binding.py +7 -0
- pulumi_gcp/compute/region_disk_iam_member.py +7 -0
- pulumi_gcp/compute/security_policy.py +147 -0
- pulumi_gcp/compute/service_attachment.py +193 -3
- pulumi_gcp/compute/snapshot_iam_binding.py +7 -0
- pulumi_gcp/compute/snapshot_iam_member.py +7 -0
- pulumi_gcp/compute/storage_pool_iam_binding.py +7 -0
- pulumi_gcp/compute/storage_pool_iam_member.py +7 -0
- pulumi_gcp/compute/subnetwork_iam_binding.py +7 -0
- pulumi_gcp/compute/subnetwork_iam_member.py +7 -0
- pulumi_gcp/config/__init__.pyi +2 -0
- pulumi_gcp/config/vars.py +4 -0
- pulumi_gcp/container/_inputs.py +59 -0
- pulumi_gcp/container/outputs.py +67 -0
- pulumi_gcp/containeranalysis/note_iam_binding.py +7 -0
- pulumi_gcp/containeranalysis/note_iam_member.py +7 -0
- pulumi_gcp/datacatalog/entry_group_iam_binding.py +7 -0
- pulumi_gcp/datacatalog/entry_group_iam_member.py +7 -0
- pulumi_gcp/datacatalog/policy_tag_iam_binding.py +7 -0
- pulumi_gcp/datacatalog/policy_tag_iam_member.py +7 -0
- pulumi_gcp/datacatalog/tag_template_iam_binding.py +7 -0
- pulumi_gcp/datacatalog/tag_template_iam_member.py +7 -0
- pulumi_gcp/datacatalog/taxonomy_iam_binding.py +7 -0
- pulumi_gcp/datacatalog/taxonomy_iam_member.py +7 -0
- pulumi_gcp/dataplex/aspect_type_iam_binding.py +7 -0
- pulumi_gcp/dataplex/aspect_type_iam_member.py +7 -0
- pulumi_gcp/dataplex/asset_iam_binding.py +7 -0
- pulumi_gcp/dataplex/asset_iam_member.py +7 -0
- pulumi_gcp/dataplex/datascan_iam_binding.py +7 -0
- pulumi_gcp/dataplex/datascan_iam_member.py +7 -0
- pulumi_gcp/dataplex/entry_group_iam_binding.py +7 -0
- pulumi_gcp/dataplex/entry_group_iam_member.py +7 -0
- pulumi_gcp/dataplex/entry_type_iam_binding.py +7 -0
- pulumi_gcp/dataplex/entry_type_iam_member.py +7 -0
- pulumi_gcp/dataplex/glossary_iam_binding.py +7 -0
- pulumi_gcp/dataplex/glossary_iam_member.py +7 -0
- pulumi_gcp/dataplex/lake_iam_binding.py +7 -0
- pulumi_gcp/dataplex/lake_iam_member.py +7 -0
- pulumi_gcp/dataplex/task_iam_binding.py +7 -0
- pulumi_gcp/dataplex/task_iam_member.py +7 -0
- pulumi_gcp/dataplex/zone_iam_binding.py +7 -0
- pulumi_gcp/dataplex/zone_iam_member.py +7 -0
- pulumi_gcp/dataproc/autoscaling_policy_iam_binding.py +7 -0
- pulumi_gcp/dataproc/autoscaling_policy_iam_member.py +7 -0
- pulumi_gcp/dataproc/metastore_database_iam_binding.py +7 -0
- pulumi_gcp/dataproc/metastore_database_iam_member.py +7 -0
- pulumi_gcp/dataproc/metastore_federation_iam_binding.py +7 -0
- pulumi_gcp/dataproc/metastore_federation_iam_member.py +7 -0
- pulumi_gcp/dataproc/metastore_service_iam_binding.py +7 -0
- pulumi_gcp/dataproc/metastore_service_iam_member.py +7 -0
- pulumi_gcp/dataproc/metastore_table_iam_binding.py +7 -0
- pulumi_gcp/dataproc/metastore_table_iam_member.py +7 -0
- pulumi_gcp/datastream/_inputs.py +21 -1
- pulumi_gcp/datastream/outputs.py +15 -1
- pulumi_gcp/datastream/stream.py +208 -0
- pulumi_gcp/discoveryengine/search_engine.py +100 -0
- pulumi_gcp/dns/dns_managed_zone_iam_binding.py +7 -0
- pulumi_gcp/dns/dns_managed_zone_iam_member.py +7 -0
- pulumi_gcp/endpoints/consumers_iam_binding.py +7 -0
- pulumi_gcp/endpoints/consumers_iam_member.py +7 -0
- pulumi_gcp/endpoints/service_iam_binding.py +7 -0
- pulumi_gcp/endpoints/service_iam_member.py +7 -0
- pulumi_gcp/firestore/field.py +6 -6
- pulumi_gcp/gemini/repository_group_iam_binding.py +7 -0
- pulumi_gcp/gemini/repository_group_iam_member.py +7 -0
- pulumi_gcp/gkebackup/backup_plan_iam_binding.py +7 -0
- pulumi_gcp/gkebackup/backup_plan_iam_member.py +7 -0
- pulumi_gcp/gkebackup/restore_plan_iam_binding.py +7 -0
- pulumi_gcp/gkebackup/restore_plan_iam_member.py +7 -0
- pulumi_gcp/gkehub/feature_iam_binding.py +7 -0
- pulumi_gcp/gkehub/feature_iam_member.py +7 -0
- pulumi_gcp/gkehub/membership_binding.py +6 -6
- pulumi_gcp/gkehub/membership_iam_binding.py +7 -0
- pulumi_gcp/gkehub/membership_iam_member.py +7 -0
- pulumi_gcp/gkehub/membership_rbac_role_binding.py +4 -4
- pulumi_gcp/gkehub/namespace.py +4 -4
- pulumi_gcp/gkehub/scope_iam_binding.py +7 -0
- pulumi_gcp/gkehub/scope_iam_member.py +7 -0
- pulumi_gcp/gkehub/scope_rbac_role_binding.py +8 -8
- pulumi_gcp/gkeonprem/_inputs.py +56 -0
- pulumi_gcp/gkeonprem/outputs.py +50 -0
- pulumi_gcp/gkeonprem/vmware_admin_cluster.py +70 -0
- pulumi_gcp/healthcare/_inputs.py +144 -0
- pulumi_gcp/healthcare/consent_store_iam_binding.py +7 -0
- pulumi_gcp/healthcare/consent_store_iam_member.py +7 -0
- pulumi_gcp/healthcare/fhir_store.py +122 -0
- pulumi_gcp/healthcare/outputs.py +113 -0
- pulumi_gcp/iam/_inputs.py +270 -3
- pulumi_gcp/iam/outputs.py +203 -2
- pulumi_gcp/iam/workforce_pool_iam_binding.py +7 -0
- pulumi_gcp/iam/workforce_pool_iam_member.py +7 -0
- pulumi_gcp/iam/workforce_pool_provider.py +287 -0
- pulumi_gcp/iam/workload_identity_pool_iam_binding.py +7 -0
- pulumi_gcp/iam/workload_identity_pool_iam_member.py +7 -0
- pulumi_gcp/iap/app_engine_service_iam_binding.py +7 -0
- pulumi_gcp/iap/app_engine_service_iam_member.py +7 -0
- pulumi_gcp/iap/app_engine_version_iam_binding.py +7 -0
- pulumi_gcp/iap/app_engine_version_iam_member.py +7 -0
- pulumi_gcp/iap/tunnel_dest_group.py +2 -2
- pulumi_gcp/iap/tunnel_dest_group_iam_binding.py +7 -0
- pulumi_gcp/iap/tunnel_dest_group_iam_member.py +7 -0
- pulumi_gcp/iap/tunnel_iam_binding.py +7 -0
- pulumi_gcp/iap/tunnel_iam_member.py +7 -0
- pulumi_gcp/iap/tunnel_instance_iam_binding.py +7 -0
- pulumi_gcp/iap/tunnel_instance_iam_member.py +7 -0
- pulumi_gcp/iap/web_backend_service_iam_binding.py +7 -0
- pulumi_gcp/iap/web_backend_service_iam_member.py +7 -0
- pulumi_gcp/iap/web_cloud_run_service_iam_binding.py +7 -0
- pulumi_gcp/iap/web_cloud_run_service_iam_member.py +7 -0
- pulumi_gcp/iap/web_forwarding_rule_service_iam_binding.py +7 -0
- pulumi_gcp/iap/web_forwarding_rule_service_iam_member.py +7 -0
- pulumi_gcp/iap/web_iam_binding.py +7 -0
- pulumi_gcp/iap/web_iam_member.py +7 -0
- pulumi_gcp/iap/web_region_backend_service_iam_binding.py +7 -0
- pulumi_gcp/iap/web_region_backend_service_iam_member.py +7 -0
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_binding.py +7 -0
- pulumi_gcp/iap/web_region_forwarding_rule_service_iam_member.py +7 -0
- pulumi_gcp/iap/web_type_app_enging_iam_binding.py +7 -0
- pulumi_gcp/iap/web_type_app_enging_iam_member.py +7 -0
- pulumi_gcp/iap/web_type_compute_iam_binding.py +7 -0
- pulumi_gcp/iap/web_type_compute_iam_member.py +7 -0
- pulumi_gcp/integrationconnectors/managed_zone.py +8 -8
- pulumi_gcp/kms/ekm_connection_iam_binding.py +7 -0
- pulumi_gcp/kms/ekm_connection_iam_member.py +7 -0
- pulumi_gcp/logging/log_view_iam_binding.py +7 -0
- pulumi_gcp/logging/log_view_iam_member.py +7 -0
- pulumi_gcp/managedkafka/connect_cluster.py +4 -4
- pulumi_gcp/managedkafka/connector.py +4 -4
- pulumi_gcp/netapp/_inputs.py +44 -1
- pulumi_gcp/netapp/outputs.py +31 -1
- pulumi_gcp/netapp/storage_pool.py +1 -1
- pulumi_gcp/networkconnectivity/spoke.py +14 -14
- pulumi_gcp/networksecurity/address_group_iam_binding.py +7 -0
- pulumi_gcp/networksecurity/address_group_iam_member.py +7 -0
- pulumi_gcp/networkservices/__init__.py +1 -0
- pulumi_gcp/networkservices/_inputs.py +393 -6
- pulumi_gcp/networkservices/outputs.py +289 -4
- pulumi_gcp/networkservices/wasm_plugin.py +740 -0
- pulumi_gcp/notebooks/instance_iam_binding.py +7 -0
- pulumi_gcp/notebooks/instance_iam_member.py +7 -0
- pulumi_gcp/notebooks/runtime_iam_binding.py +7 -0
- pulumi_gcp/notebooks/runtime_iam_member.py +7 -0
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/privilegedaccessmanager/_inputs.py +24 -1
- pulumi_gcp/privilegedaccessmanager/outputs.py +26 -1
- pulumi_gcp/provider.py +20 -0
- pulumi_gcp/pubsub/schema_iam_binding.py +7 -0
- pulumi_gcp/pubsub/schema_iam_member.py +7 -0
- pulumi_gcp/pubsub/subscription.py +6 -6
- pulumi_gcp/pubsub/topic_iam_binding.py +7 -0
- pulumi_gcp/pubsub/topic_iam_member.py +7 -0
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/runtimeconfig/config_iam_binding.py +7 -0
- pulumi_gcp/runtimeconfig/config_iam_member.py +7 -0
- pulumi_gcp/saasruntime/__init__.py +1 -0
- pulumi_gcp/saasruntime/_inputs.py +344 -0
- pulumi_gcp/saasruntime/outputs.py +222 -0
- pulumi_gcp/saasruntime/release.py +1063 -0
- pulumi_gcp/secretmanager/regional_secret_iam_binding.py +7 -0
- pulumi_gcp/secretmanager/regional_secret_iam_member.py +7 -0
- pulumi_gcp/secretmanager/secret_iam_binding.py +7 -0
- pulumi_gcp/secretmanager/secret_iam_member.py +7 -0
- pulumi_gcp/securesourcemanager/__init__.py +1 -0
- pulumi_gcp/securesourcemanager/_inputs.py +43 -0
- pulumi_gcp/securesourcemanager/hook.py +758 -0
- pulumi_gcp/securesourcemanager/outputs.py +43 -0
- pulumi_gcp/securesourcemanager/repository_iam_binding.py +7 -0
- pulumi_gcp/securesourcemanager/repository_iam_member.py +7 -0
- pulumi_gcp/securitycenter/v2_organization_source_iam_binding.py +7 -0
- pulumi_gcp/securitycenter/v2_organization_source_iam_member.py +7 -0
- pulumi_gcp/servicedirectory/namespace_iam_binding.py +7 -0
- pulumi_gcp/servicedirectory/namespace_iam_member.py +7 -0
- pulumi_gcp/servicedirectory/service_iam_binding.py +7 -0
- pulumi_gcp/servicedirectory/service_iam_member.py +7 -0
- pulumi_gcp/sourcerepo/repository_iam_binding.py +7 -0
- pulumi_gcp/sourcerepo/repository_iam_member.py +7 -0
- pulumi_gcp/sql/database_instance.py +44 -0
- pulumi_gcp/tags/tag_key.py +7 -7
- pulumi_gcp/tags/tag_key_iam_binding.py +7 -0
- pulumi_gcp/tags/tag_key_iam_member.py +7 -0
- pulumi_gcp/tags/tag_value_iam_binding.py +7 -0
- pulumi_gcp/tags/tag_value_iam_member.py +7 -0
- pulumi_gcp/vertex/ai_endpoint.py +4 -4
- pulumi_gcp/vertex/ai_feature_group_iam_binding.py +7 -0
- pulumi_gcp/vertex/ai_feature_group_iam_member.py +7 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
- pulumi_gcp/vertex/ai_feature_online_store_featureview_iam_binding.py +7 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview_iam_member.py +7 -0
- pulumi_gcp/vertex/ai_feature_online_store_iam_binding.py +7 -0
- pulumi_gcp/vertex/ai_feature_online_store_iam_member.py +7 -0
- pulumi_gcp/vertex/ai_feature_store_entity_type_iam_binding.py +7 -0
- pulumi_gcp/vertex/ai_feature_store_entity_type_iam_member.py +7 -0
- pulumi_gcp/vertex/ai_feature_store_iam_binding.py +7 -0
- pulumi_gcp/vertex/ai_feature_store_iam_member.py +7 -0
- pulumi_gcp/workstations/workstation_config_iam_binding.py +7 -0
- pulumi_gcp/workstations/workstation_config_iam_member.py +7 -0
- pulumi_gcp/workstations/workstation_iam_binding.py +7 -0
- pulumi_gcp/workstations/workstation_iam_member.py +7 -0
- {pulumi_gcp-9.1.0a1758696393.dist-info → pulumi_gcp-9.1.0a1758939336.dist-info}/METADATA +1 -1
- {pulumi_gcp-9.1.0a1758696393.dist-info → pulumi_gcp-9.1.0a1758939336.dist-info}/RECORD +299 -286
- {pulumi_gcp-9.1.0a1758696393.dist-info → pulumi_gcp-9.1.0a1758939336.dist-info}/WHEEL +0 -0
- {pulumi_gcp-9.1.0a1758696393.dist-info → pulumi_gcp-9.1.0a1758939336.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,758 @@
|
|
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
|
+
from . import outputs
|
17
|
+
from ._inputs import *
|
18
|
+
|
19
|
+
__all__ = ['HookArgs', 'Hook']
|
20
|
+
|
21
|
+
@pulumi.input_type
|
22
|
+
class HookArgs:
|
23
|
+
def __init__(__self__, *,
|
24
|
+
hook_id: pulumi.Input[_builtins.str],
|
25
|
+
location: pulumi.Input[_builtins.str],
|
26
|
+
repository_id: pulumi.Input[_builtins.str],
|
27
|
+
target_uri: pulumi.Input[_builtins.str],
|
28
|
+
disabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
29
|
+
events: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
30
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
31
|
+
push_option: Optional[pulumi.Input['HookPushOptionArgs']] = None,
|
32
|
+
sensitive_query_string: Optional[pulumi.Input[_builtins.str]] = None):
|
33
|
+
"""
|
34
|
+
The set of arguments for constructing a Hook resource.
|
35
|
+
:param pulumi.Input[_builtins.str] hook_id: The ID for the Hook.
|
36
|
+
:param pulumi.Input[_builtins.str] location: The location for the Repository.
|
37
|
+
:param pulumi.Input[_builtins.str] repository_id: The ID for the Repository.
|
38
|
+
:param pulumi.Input[_builtins.str] target_uri: The target URI to which the payloads will be delivered.
|
39
|
+
:param pulumi.Input[_builtins.bool] disabled: Determines if the hook disabled or not.
|
40
|
+
Set to true to stop sending traffic.
|
41
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] events: The events that trigger hook on.
|
42
|
+
Each value may be one of: `PUSH`, `PULL_REQUEST`.
|
43
|
+
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
44
|
+
If it is not provided, the provider project is used.
|
45
|
+
:param pulumi.Input['HookPushOptionArgs'] push_option: The trigger option for push events.
|
46
|
+
Structure is documented below.
|
47
|
+
:param pulumi.Input[_builtins.str] sensitive_query_string: The sensitive query string to be appended to the target URI.
|
48
|
+
**Note**: This property is sensitive and will not be displayed in the plan.
|
49
|
+
"""
|
50
|
+
pulumi.set(__self__, "hook_id", hook_id)
|
51
|
+
pulumi.set(__self__, "location", location)
|
52
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
53
|
+
pulumi.set(__self__, "target_uri", target_uri)
|
54
|
+
if disabled is not None:
|
55
|
+
pulumi.set(__self__, "disabled", disabled)
|
56
|
+
if events is not None:
|
57
|
+
pulumi.set(__self__, "events", events)
|
58
|
+
if project is not None:
|
59
|
+
pulumi.set(__self__, "project", project)
|
60
|
+
if push_option is not None:
|
61
|
+
pulumi.set(__self__, "push_option", push_option)
|
62
|
+
if sensitive_query_string is not None:
|
63
|
+
pulumi.set(__self__, "sensitive_query_string", sensitive_query_string)
|
64
|
+
|
65
|
+
@_builtins.property
|
66
|
+
@pulumi.getter(name="hookId")
|
67
|
+
def hook_id(self) -> pulumi.Input[_builtins.str]:
|
68
|
+
"""
|
69
|
+
The ID for the Hook.
|
70
|
+
"""
|
71
|
+
return pulumi.get(self, "hook_id")
|
72
|
+
|
73
|
+
@hook_id.setter
|
74
|
+
def hook_id(self, value: pulumi.Input[_builtins.str]):
|
75
|
+
pulumi.set(self, "hook_id", value)
|
76
|
+
|
77
|
+
@_builtins.property
|
78
|
+
@pulumi.getter
|
79
|
+
def location(self) -> pulumi.Input[_builtins.str]:
|
80
|
+
"""
|
81
|
+
The location for the Repository.
|
82
|
+
"""
|
83
|
+
return pulumi.get(self, "location")
|
84
|
+
|
85
|
+
@location.setter
|
86
|
+
def location(self, value: pulumi.Input[_builtins.str]):
|
87
|
+
pulumi.set(self, "location", value)
|
88
|
+
|
89
|
+
@_builtins.property
|
90
|
+
@pulumi.getter(name="repositoryId")
|
91
|
+
def repository_id(self) -> pulumi.Input[_builtins.str]:
|
92
|
+
"""
|
93
|
+
The ID for the Repository.
|
94
|
+
"""
|
95
|
+
return pulumi.get(self, "repository_id")
|
96
|
+
|
97
|
+
@repository_id.setter
|
98
|
+
def repository_id(self, value: pulumi.Input[_builtins.str]):
|
99
|
+
pulumi.set(self, "repository_id", value)
|
100
|
+
|
101
|
+
@_builtins.property
|
102
|
+
@pulumi.getter(name="targetUri")
|
103
|
+
def target_uri(self) -> pulumi.Input[_builtins.str]:
|
104
|
+
"""
|
105
|
+
The target URI to which the payloads will be delivered.
|
106
|
+
"""
|
107
|
+
return pulumi.get(self, "target_uri")
|
108
|
+
|
109
|
+
@target_uri.setter
|
110
|
+
def target_uri(self, value: pulumi.Input[_builtins.str]):
|
111
|
+
pulumi.set(self, "target_uri", value)
|
112
|
+
|
113
|
+
@_builtins.property
|
114
|
+
@pulumi.getter
|
115
|
+
def disabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
116
|
+
"""
|
117
|
+
Determines if the hook disabled or not.
|
118
|
+
Set to true to stop sending traffic.
|
119
|
+
"""
|
120
|
+
return pulumi.get(self, "disabled")
|
121
|
+
|
122
|
+
@disabled.setter
|
123
|
+
def disabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
124
|
+
pulumi.set(self, "disabled", value)
|
125
|
+
|
126
|
+
@_builtins.property
|
127
|
+
@pulumi.getter
|
128
|
+
def events(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
129
|
+
"""
|
130
|
+
The events that trigger hook on.
|
131
|
+
Each value may be one of: `PUSH`, `PULL_REQUEST`.
|
132
|
+
"""
|
133
|
+
return pulumi.get(self, "events")
|
134
|
+
|
135
|
+
@events.setter
|
136
|
+
def events(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
137
|
+
pulumi.set(self, "events", value)
|
138
|
+
|
139
|
+
@_builtins.property
|
140
|
+
@pulumi.getter
|
141
|
+
def project(self) -> Optional[pulumi.Input[_builtins.str]]:
|
142
|
+
"""
|
143
|
+
The ID of the project in which the resource belongs.
|
144
|
+
If it is not provided, the provider project is used.
|
145
|
+
"""
|
146
|
+
return pulumi.get(self, "project")
|
147
|
+
|
148
|
+
@project.setter
|
149
|
+
def project(self, value: Optional[pulumi.Input[_builtins.str]]):
|
150
|
+
pulumi.set(self, "project", value)
|
151
|
+
|
152
|
+
@_builtins.property
|
153
|
+
@pulumi.getter(name="pushOption")
|
154
|
+
def push_option(self) -> Optional[pulumi.Input['HookPushOptionArgs']]:
|
155
|
+
"""
|
156
|
+
The trigger option for push events.
|
157
|
+
Structure is documented below.
|
158
|
+
"""
|
159
|
+
return pulumi.get(self, "push_option")
|
160
|
+
|
161
|
+
@push_option.setter
|
162
|
+
def push_option(self, value: Optional[pulumi.Input['HookPushOptionArgs']]):
|
163
|
+
pulumi.set(self, "push_option", value)
|
164
|
+
|
165
|
+
@_builtins.property
|
166
|
+
@pulumi.getter(name="sensitiveQueryString")
|
167
|
+
def sensitive_query_string(self) -> Optional[pulumi.Input[_builtins.str]]:
|
168
|
+
"""
|
169
|
+
The sensitive query string to be appended to the target URI.
|
170
|
+
**Note**: This property is sensitive and will not be displayed in the plan.
|
171
|
+
"""
|
172
|
+
return pulumi.get(self, "sensitive_query_string")
|
173
|
+
|
174
|
+
@sensitive_query_string.setter
|
175
|
+
def sensitive_query_string(self, value: Optional[pulumi.Input[_builtins.str]]):
|
176
|
+
pulumi.set(self, "sensitive_query_string", value)
|
177
|
+
|
178
|
+
|
179
|
+
@pulumi.input_type
|
180
|
+
class _HookState:
|
181
|
+
def __init__(__self__, *,
|
182
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
183
|
+
disabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
184
|
+
events: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
185
|
+
hook_id: Optional[pulumi.Input[_builtins.str]] = None,
|
186
|
+
location: Optional[pulumi.Input[_builtins.str]] = None,
|
187
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
188
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
189
|
+
push_option: Optional[pulumi.Input['HookPushOptionArgs']] = None,
|
190
|
+
repository_id: Optional[pulumi.Input[_builtins.str]] = None,
|
191
|
+
sensitive_query_string: Optional[pulumi.Input[_builtins.str]] = None,
|
192
|
+
target_uri: Optional[pulumi.Input[_builtins.str]] = None,
|
193
|
+
uid: Optional[pulumi.Input[_builtins.str]] = None,
|
194
|
+
update_time: Optional[pulumi.Input[_builtins.str]] = None):
|
195
|
+
"""
|
196
|
+
Input properties used for looking up and filtering Hook resources.
|
197
|
+
:param pulumi.Input[_builtins.str] create_time: Create timestamp.
|
198
|
+
:param pulumi.Input[_builtins.bool] disabled: Determines if the hook disabled or not.
|
199
|
+
Set to true to stop sending traffic.
|
200
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] events: The events that trigger hook on.
|
201
|
+
Each value may be one of: `PUSH`, `PULL_REQUEST`.
|
202
|
+
:param pulumi.Input[_builtins.str] hook_id: The ID for the Hook.
|
203
|
+
:param pulumi.Input[_builtins.str] location: The location for the Repository.
|
204
|
+
:param pulumi.Input[_builtins.str] name: A unique identifier for a Hook. The name should be of the format:
|
205
|
+
`projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`
|
206
|
+
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
207
|
+
If it is not provided, the provider project is used.
|
208
|
+
:param pulumi.Input['HookPushOptionArgs'] push_option: The trigger option for push events.
|
209
|
+
Structure is documented below.
|
210
|
+
:param pulumi.Input[_builtins.str] repository_id: The ID for the Repository.
|
211
|
+
:param pulumi.Input[_builtins.str] sensitive_query_string: The sensitive query string to be appended to the target URI.
|
212
|
+
**Note**: This property is sensitive and will not be displayed in the plan.
|
213
|
+
:param pulumi.Input[_builtins.str] target_uri: The target URI to which the payloads will be delivered.
|
214
|
+
:param pulumi.Input[_builtins.str] uid: Unique identifier of the hook.
|
215
|
+
:param pulumi.Input[_builtins.str] update_time: Update timestamp.
|
216
|
+
"""
|
217
|
+
if create_time is not None:
|
218
|
+
pulumi.set(__self__, "create_time", create_time)
|
219
|
+
if disabled is not None:
|
220
|
+
pulumi.set(__self__, "disabled", disabled)
|
221
|
+
if events is not None:
|
222
|
+
pulumi.set(__self__, "events", events)
|
223
|
+
if hook_id is not None:
|
224
|
+
pulumi.set(__self__, "hook_id", hook_id)
|
225
|
+
if location is not None:
|
226
|
+
pulumi.set(__self__, "location", location)
|
227
|
+
if name is not None:
|
228
|
+
pulumi.set(__self__, "name", name)
|
229
|
+
if project is not None:
|
230
|
+
pulumi.set(__self__, "project", project)
|
231
|
+
if push_option is not None:
|
232
|
+
pulumi.set(__self__, "push_option", push_option)
|
233
|
+
if repository_id is not None:
|
234
|
+
pulumi.set(__self__, "repository_id", repository_id)
|
235
|
+
if sensitive_query_string is not None:
|
236
|
+
pulumi.set(__self__, "sensitive_query_string", sensitive_query_string)
|
237
|
+
if target_uri is not None:
|
238
|
+
pulumi.set(__self__, "target_uri", target_uri)
|
239
|
+
if uid is not None:
|
240
|
+
pulumi.set(__self__, "uid", uid)
|
241
|
+
if update_time is not None:
|
242
|
+
pulumi.set(__self__, "update_time", update_time)
|
243
|
+
|
244
|
+
@_builtins.property
|
245
|
+
@pulumi.getter(name="createTime")
|
246
|
+
def create_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
247
|
+
"""
|
248
|
+
Create timestamp.
|
249
|
+
"""
|
250
|
+
return pulumi.get(self, "create_time")
|
251
|
+
|
252
|
+
@create_time.setter
|
253
|
+
def create_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
254
|
+
pulumi.set(self, "create_time", value)
|
255
|
+
|
256
|
+
@_builtins.property
|
257
|
+
@pulumi.getter
|
258
|
+
def disabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
259
|
+
"""
|
260
|
+
Determines if the hook disabled or not.
|
261
|
+
Set to true to stop sending traffic.
|
262
|
+
"""
|
263
|
+
return pulumi.get(self, "disabled")
|
264
|
+
|
265
|
+
@disabled.setter
|
266
|
+
def disabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
267
|
+
pulumi.set(self, "disabled", value)
|
268
|
+
|
269
|
+
@_builtins.property
|
270
|
+
@pulumi.getter
|
271
|
+
def events(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
272
|
+
"""
|
273
|
+
The events that trigger hook on.
|
274
|
+
Each value may be one of: `PUSH`, `PULL_REQUEST`.
|
275
|
+
"""
|
276
|
+
return pulumi.get(self, "events")
|
277
|
+
|
278
|
+
@events.setter
|
279
|
+
def events(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
280
|
+
pulumi.set(self, "events", value)
|
281
|
+
|
282
|
+
@_builtins.property
|
283
|
+
@pulumi.getter(name="hookId")
|
284
|
+
def hook_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
285
|
+
"""
|
286
|
+
The ID for the Hook.
|
287
|
+
"""
|
288
|
+
return pulumi.get(self, "hook_id")
|
289
|
+
|
290
|
+
@hook_id.setter
|
291
|
+
def hook_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
292
|
+
pulumi.set(self, "hook_id", value)
|
293
|
+
|
294
|
+
@_builtins.property
|
295
|
+
@pulumi.getter
|
296
|
+
def location(self) -> Optional[pulumi.Input[_builtins.str]]:
|
297
|
+
"""
|
298
|
+
The location for the Repository.
|
299
|
+
"""
|
300
|
+
return pulumi.get(self, "location")
|
301
|
+
|
302
|
+
@location.setter
|
303
|
+
def location(self, value: Optional[pulumi.Input[_builtins.str]]):
|
304
|
+
pulumi.set(self, "location", value)
|
305
|
+
|
306
|
+
@_builtins.property
|
307
|
+
@pulumi.getter
|
308
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
309
|
+
"""
|
310
|
+
A unique identifier for a Hook. The name should be of the format:
|
311
|
+
`projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`
|
312
|
+
"""
|
313
|
+
return pulumi.get(self, "name")
|
314
|
+
|
315
|
+
@name.setter
|
316
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
317
|
+
pulumi.set(self, "name", value)
|
318
|
+
|
319
|
+
@_builtins.property
|
320
|
+
@pulumi.getter
|
321
|
+
def project(self) -> Optional[pulumi.Input[_builtins.str]]:
|
322
|
+
"""
|
323
|
+
The ID of the project in which the resource belongs.
|
324
|
+
If it is not provided, the provider project is used.
|
325
|
+
"""
|
326
|
+
return pulumi.get(self, "project")
|
327
|
+
|
328
|
+
@project.setter
|
329
|
+
def project(self, value: Optional[pulumi.Input[_builtins.str]]):
|
330
|
+
pulumi.set(self, "project", value)
|
331
|
+
|
332
|
+
@_builtins.property
|
333
|
+
@pulumi.getter(name="pushOption")
|
334
|
+
def push_option(self) -> Optional[pulumi.Input['HookPushOptionArgs']]:
|
335
|
+
"""
|
336
|
+
The trigger option for push events.
|
337
|
+
Structure is documented below.
|
338
|
+
"""
|
339
|
+
return pulumi.get(self, "push_option")
|
340
|
+
|
341
|
+
@push_option.setter
|
342
|
+
def push_option(self, value: Optional[pulumi.Input['HookPushOptionArgs']]):
|
343
|
+
pulumi.set(self, "push_option", value)
|
344
|
+
|
345
|
+
@_builtins.property
|
346
|
+
@pulumi.getter(name="repositoryId")
|
347
|
+
def repository_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
348
|
+
"""
|
349
|
+
The ID for the Repository.
|
350
|
+
"""
|
351
|
+
return pulumi.get(self, "repository_id")
|
352
|
+
|
353
|
+
@repository_id.setter
|
354
|
+
def repository_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
355
|
+
pulumi.set(self, "repository_id", value)
|
356
|
+
|
357
|
+
@_builtins.property
|
358
|
+
@pulumi.getter(name="sensitiveQueryString")
|
359
|
+
def sensitive_query_string(self) -> Optional[pulumi.Input[_builtins.str]]:
|
360
|
+
"""
|
361
|
+
The sensitive query string to be appended to the target URI.
|
362
|
+
**Note**: This property is sensitive and will not be displayed in the plan.
|
363
|
+
"""
|
364
|
+
return pulumi.get(self, "sensitive_query_string")
|
365
|
+
|
366
|
+
@sensitive_query_string.setter
|
367
|
+
def sensitive_query_string(self, value: Optional[pulumi.Input[_builtins.str]]):
|
368
|
+
pulumi.set(self, "sensitive_query_string", value)
|
369
|
+
|
370
|
+
@_builtins.property
|
371
|
+
@pulumi.getter(name="targetUri")
|
372
|
+
def target_uri(self) -> Optional[pulumi.Input[_builtins.str]]:
|
373
|
+
"""
|
374
|
+
The target URI to which the payloads will be delivered.
|
375
|
+
"""
|
376
|
+
return pulumi.get(self, "target_uri")
|
377
|
+
|
378
|
+
@target_uri.setter
|
379
|
+
def target_uri(self, value: Optional[pulumi.Input[_builtins.str]]):
|
380
|
+
pulumi.set(self, "target_uri", value)
|
381
|
+
|
382
|
+
@_builtins.property
|
383
|
+
@pulumi.getter
|
384
|
+
def uid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
385
|
+
"""
|
386
|
+
Unique identifier of the hook.
|
387
|
+
"""
|
388
|
+
return pulumi.get(self, "uid")
|
389
|
+
|
390
|
+
@uid.setter
|
391
|
+
def uid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
392
|
+
pulumi.set(self, "uid", value)
|
393
|
+
|
394
|
+
@_builtins.property
|
395
|
+
@pulumi.getter(name="updateTime")
|
396
|
+
def update_time(self) -> Optional[pulumi.Input[_builtins.str]]:
|
397
|
+
"""
|
398
|
+
Update timestamp.
|
399
|
+
"""
|
400
|
+
return pulumi.get(self, "update_time")
|
401
|
+
|
402
|
+
@update_time.setter
|
403
|
+
def update_time(self, value: Optional[pulumi.Input[_builtins.str]]):
|
404
|
+
pulumi.set(self, "update_time", value)
|
405
|
+
|
406
|
+
|
407
|
+
@pulumi.type_token("gcp:securesourcemanager/hook:Hook")
|
408
|
+
class Hook(pulumi.CustomResource):
|
409
|
+
@overload
|
410
|
+
def __init__(__self__,
|
411
|
+
resource_name: str,
|
412
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
413
|
+
disabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
414
|
+
events: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
415
|
+
hook_id: Optional[pulumi.Input[_builtins.str]] = None,
|
416
|
+
location: Optional[pulumi.Input[_builtins.str]] = None,
|
417
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
418
|
+
push_option: Optional[pulumi.Input[Union['HookPushOptionArgs', 'HookPushOptionArgsDict']]] = None,
|
419
|
+
repository_id: Optional[pulumi.Input[_builtins.str]] = None,
|
420
|
+
sensitive_query_string: Optional[pulumi.Input[_builtins.str]] = None,
|
421
|
+
target_uri: Optional[pulumi.Input[_builtins.str]] = None,
|
422
|
+
__props__=None):
|
423
|
+
"""
|
424
|
+
Hook is a user-defined HTTP callback triggered by an event.
|
425
|
+
|
426
|
+
To get more information about Hook, see:
|
427
|
+
* How-to Guides
|
428
|
+
* [Official Documentation](https://cloud.google.com/secure-source-manager/docs/overview)
|
429
|
+
|
430
|
+
## Example Usage
|
431
|
+
|
432
|
+
## Import
|
433
|
+
|
434
|
+
Hook can be imported using any of these accepted formats:
|
435
|
+
|
436
|
+
* `projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/hooks/{{hook_id}}`
|
437
|
+
|
438
|
+
* `{{project}}/{{location}}/{{repository_id}}/{{hook_id}}`
|
439
|
+
|
440
|
+
* `{{location}}/{{repository_id}}/{{hook_id}}`
|
441
|
+
|
442
|
+
* `{{hook_id}}`
|
443
|
+
|
444
|
+
When using the `pulumi import` command, Hook can be imported using one of the formats above. For example:
|
445
|
+
|
446
|
+
```sh
|
447
|
+
$ pulumi import gcp:securesourcemanager/hook:Hook default projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/hooks/{{hook_id}}
|
448
|
+
```
|
449
|
+
|
450
|
+
```sh
|
451
|
+
$ pulumi import gcp:securesourcemanager/hook:Hook default {{project}}/{{location}}/{{repository_id}}/{{hook_id}}
|
452
|
+
```
|
453
|
+
|
454
|
+
```sh
|
455
|
+
$ pulumi import gcp:securesourcemanager/hook:Hook default {{location}}/{{repository_id}}/{{hook_id}}
|
456
|
+
```
|
457
|
+
|
458
|
+
```sh
|
459
|
+
$ pulumi import gcp:securesourcemanager/hook:Hook default {{hook_id}}
|
460
|
+
```
|
461
|
+
|
462
|
+
:param str resource_name: The name of the resource.
|
463
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
464
|
+
:param pulumi.Input[_builtins.bool] disabled: Determines if the hook disabled or not.
|
465
|
+
Set to true to stop sending traffic.
|
466
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] events: The events that trigger hook on.
|
467
|
+
Each value may be one of: `PUSH`, `PULL_REQUEST`.
|
468
|
+
:param pulumi.Input[_builtins.str] hook_id: The ID for the Hook.
|
469
|
+
:param pulumi.Input[_builtins.str] location: The location for the Repository.
|
470
|
+
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
471
|
+
If it is not provided, the provider project is used.
|
472
|
+
:param pulumi.Input[Union['HookPushOptionArgs', 'HookPushOptionArgsDict']] push_option: The trigger option for push events.
|
473
|
+
Structure is documented below.
|
474
|
+
:param pulumi.Input[_builtins.str] repository_id: The ID for the Repository.
|
475
|
+
:param pulumi.Input[_builtins.str] sensitive_query_string: The sensitive query string to be appended to the target URI.
|
476
|
+
**Note**: This property is sensitive and will not be displayed in the plan.
|
477
|
+
:param pulumi.Input[_builtins.str] target_uri: The target URI to which the payloads will be delivered.
|
478
|
+
"""
|
479
|
+
...
|
480
|
+
@overload
|
481
|
+
def __init__(__self__,
|
482
|
+
resource_name: str,
|
483
|
+
args: HookArgs,
|
484
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
485
|
+
"""
|
486
|
+
Hook is a user-defined HTTP callback triggered by an event.
|
487
|
+
|
488
|
+
To get more information about Hook, see:
|
489
|
+
* How-to Guides
|
490
|
+
* [Official Documentation](https://cloud.google.com/secure-source-manager/docs/overview)
|
491
|
+
|
492
|
+
## Example Usage
|
493
|
+
|
494
|
+
## Import
|
495
|
+
|
496
|
+
Hook can be imported using any of these accepted formats:
|
497
|
+
|
498
|
+
* `projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/hooks/{{hook_id}}`
|
499
|
+
|
500
|
+
* `{{project}}/{{location}}/{{repository_id}}/{{hook_id}}`
|
501
|
+
|
502
|
+
* `{{location}}/{{repository_id}}/{{hook_id}}`
|
503
|
+
|
504
|
+
* `{{hook_id}}`
|
505
|
+
|
506
|
+
When using the `pulumi import` command, Hook can be imported using one of the formats above. For example:
|
507
|
+
|
508
|
+
```sh
|
509
|
+
$ pulumi import gcp:securesourcemanager/hook:Hook default projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/hooks/{{hook_id}}
|
510
|
+
```
|
511
|
+
|
512
|
+
```sh
|
513
|
+
$ pulumi import gcp:securesourcemanager/hook:Hook default {{project}}/{{location}}/{{repository_id}}/{{hook_id}}
|
514
|
+
```
|
515
|
+
|
516
|
+
```sh
|
517
|
+
$ pulumi import gcp:securesourcemanager/hook:Hook default {{location}}/{{repository_id}}/{{hook_id}}
|
518
|
+
```
|
519
|
+
|
520
|
+
```sh
|
521
|
+
$ pulumi import gcp:securesourcemanager/hook:Hook default {{hook_id}}
|
522
|
+
```
|
523
|
+
|
524
|
+
:param str resource_name: The name of the resource.
|
525
|
+
:param HookArgs args: The arguments to use to populate this resource's properties.
|
526
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
527
|
+
"""
|
528
|
+
...
|
529
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
530
|
+
resource_args, opts = _utilities.get_resource_args_opts(HookArgs, pulumi.ResourceOptions, *args, **kwargs)
|
531
|
+
if resource_args is not None:
|
532
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
533
|
+
else:
|
534
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
535
|
+
|
536
|
+
def _internal_init(__self__,
|
537
|
+
resource_name: str,
|
538
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
539
|
+
disabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
540
|
+
events: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
541
|
+
hook_id: Optional[pulumi.Input[_builtins.str]] = None,
|
542
|
+
location: Optional[pulumi.Input[_builtins.str]] = None,
|
543
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
544
|
+
push_option: Optional[pulumi.Input[Union['HookPushOptionArgs', 'HookPushOptionArgsDict']]] = None,
|
545
|
+
repository_id: Optional[pulumi.Input[_builtins.str]] = None,
|
546
|
+
sensitive_query_string: Optional[pulumi.Input[_builtins.str]] = None,
|
547
|
+
target_uri: Optional[pulumi.Input[_builtins.str]] = None,
|
548
|
+
__props__=None):
|
549
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
550
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
551
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
552
|
+
if opts.id is None:
|
553
|
+
if __props__ is not None:
|
554
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
555
|
+
__props__ = HookArgs.__new__(HookArgs)
|
556
|
+
|
557
|
+
__props__.__dict__["disabled"] = disabled
|
558
|
+
__props__.__dict__["events"] = events
|
559
|
+
if hook_id is None and not opts.urn:
|
560
|
+
raise TypeError("Missing required property 'hook_id'")
|
561
|
+
__props__.__dict__["hook_id"] = hook_id
|
562
|
+
if location is None and not opts.urn:
|
563
|
+
raise TypeError("Missing required property 'location'")
|
564
|
+
__props__.__dict__["location"] = location
|
565
|
+
__props__.__dict__["project"] = project
|
566
|
+
__props__.__dict__["push_option"] = push_option
|
567
|
+
if repository_id is None and not opts.urn:
|
568
|
+
raise TypeError("Missing required property 'repository_id'")
|
569
|
+
__props__.__dict__["repository_id"] = repository_id
|
570
|
+
__props__.__dict__["sensitive_query_string"] = None if sensitive_query_string is None else pulumi.Output.secret(sensitive_query_string)
|
571
|
+
if target_uri is None and not opts.urn:
|
572
|
+
raise TypeError("Missing required property 'target_uri'")
|
573
|
+
__props__.__dict__["target_uri"] = target_uri
|
574
|
+
__props__.__dict__["create_time"] = None
|
575
|
+
__props__.__dict__["name"] = None
|
576
|
+
__props__.__dict__["uid"] = None
|
577
|
+
__props__.__dict__["update_time"] = None
|
578
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["sensitiveQueryString"])
|
579
|
+
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
580
|
+
super(Hook, __self__).__init__(
|
581
|
+
'gcp:securesourcemanager/hook:Hook',
|
582
|
+
resource_name,
|
583
|
+
__props__,
|
584
|
+
opts)
|
585
|
+
|
586
|
+
@staticmethod
|
587
|
+
def get(resource_name: str,
|
588
|
+
id: pulumi.Input[str],
|
589
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
590
|
+
create_time: Optional[pulumi.Input[_builtins.str]] = None,
|
591
|
+
disabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
592
|
+
events: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
593
|
+
hook_id: Optional[pulumi.Input[_builtins.str]] = None,
|
594
|
+
location: Optional[pulumi.Input[_builtins.str]] = None,
|
595
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
596
|
+
project: Optional[pulumi.Input[_builtins.str]] = None,
|
597
|
+
push_option: Optional[pulumi.Input[Union['HookPushOptionArgs', 'HookPushOptionArgsDict']]] = None,
|
598
|
+
repository_id: Optional[pulumi.Input[_builtins.str]] = None,
|
599
|
+
sensitive_query_string: Optional[pulumi.Input[_builtins.str]] = None,
|
600
|
+
target_uri: Optional[pulumi.Input[_builtins.str]] = None,
|
601
|
+
uid: Optional[pulumi.Input[_builtins.str]] = None,
|
602
|
+
update_time: Optional[pulumi.Input[_builtins.str]] = None) -> 'Hook':
|
603
|
+
"""
|
604
|
+
Get an existing Hook resource's state with the given name, id, and optional extra
|
605
|
+
properties used to qualify the lookup.
|
606
|
+
|
607
|
+
:param str resource_name: The unique name of the resulting resource.
|
608
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
609
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
610
|
+
:param pulumi.Input[_builtins.str] create_time: Create timestamp.
|
611
|
+
:param pulumi.Input[_builtins.bool] disabled: Determines if the hook disabled or not.
|
612
|
+
Set to true to stop sending traffic.
|
613
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] events: The events that trigger hook on.
|
614
|
+
Each value may be one of: `PUSH`, `PULL_REQUEST`.
|
615
|
+
:param pulumi.Input[_builtins.str] hook_id: The ID for the Hook.
|
616
|
+
:param pulumi.Input[_builtins.str] location: The location for the Repository.
|
617
|
+
:param pulumi.Input[_builtins.str] name: A unique identifier for a Hook. The name should be of the format:
|
618
|
+
`projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`
|
619
|
+
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
620
|
+
If it is not provided, the provider project is used.
|
621
|
+
:param pulumi.Input[Union['HookPushOptionArgs', 'HookPushOptionArgsDict']] push_option: The trigger option for push events.
|
622
|
+
Structure is documented below.
|
623
|
+
:param pulumi.Input[_builtins.str] repository_id: The ID for the Repository.
|
624
|
+
:param pulumi.Input[_builtins.str] sensitive_query_string: The sensitive query string to be appended to the target URI.
|
625
|
+
**Note**: This property is sensitive and will not be displayed in the plan.
|
626
|
+
:param pulumi.Input[_builtins.str] target_uri: The target URI to which the payloads will be delivered.
|
627
|
+
:param pulumi.Input[_builtins.str] uid: Unique identifier of the hook.
|
628
|
+
:param pulumi.Input[_builtins.str] update_time: Update timestamp.
|
629
|
+
"""
|
630
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
631
|
+
|
632
|
+
__props__ = _HookState.__new__(_HookState)
|
633
|
+
|
634
|
+
__props__.__dict__["create_time"] = create_time
|
635
|
+
__props__.__dict__["disabled"] = disabled
|
636
|
+
__props__.__dict__["events"] = events
|
637
|
+
__props__.__dict__["hook_id"] = hook_id
|
638
|
+
__props__.__dict__["location"] = location
|
639
|
+
__props__.__dict__["name"] = name
|
640
|
+
__props__.__dict__["project"] = project
|
641
|
+
__props__.__dict__["push_option"] = push_option
|
642
|
+
__props__.__dict__["repository_id"] = repository_id
|
643
|
+
__props__.__dict__["sensitive_query_string"] = sensitive_query_string
|
644
|
+
__props__.__dict__["target_uri"] = target_uri
|
645
|
+
__props__.__dict__["uid"] = uid
|
646
|
+
__props__.__dict__["update_time"] = update_time
|
647
|
+
return Hook(resource_name, opts=opts, __props__=__props__)
|
648
|
+
|
649
|
+
@_builtins.property
|
650
|
+
@pulumi.getter(name="createTime")
|
651
|
+
def create_time(self) -> pulumi.Output[_builtins.str]:
|
652
|
+
"""
|
653
|
+
Create timestamp.
|
654
|
+
"""
|
655
|
+
return pulumi.get(self, "create_time")
|
656
|
+
|
657
|
+
@_builtins.property
|
658
|
+
@pulumi.getter
|
659
|
+
def disabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
660
|
+
"""
|
661
|
+
Determines if the hook disabled or not.
|
662
|
+
Set to true to stop sending traffic.
|
663
|
+
"""
|
664
|
+
return pulumi.get(self, "disabled")
|
665
|
+
|
666
|
+
@_builtins.property
|
667
|
+
@pulumi.getter
|
668
|
+
def events(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
669
|
+
"""
|
670
|
+
The events that trigger hook on.
|
671
|
+
Each value may be one of: `PUSH`, `PULL_REQUEST`.
|
672
|
+
"""
|
673
|
+
return pulumi.get(self, "events")
|
674
|
+
|
675
|
+
@_builtins.property
|
676
|
+
@pulumi.getter(name="hookId")
|
677
|
+
def hook_id(self) -> pulumi.Output[_builtins.str]:
|
678
|
+
"""
|
679
|
+
The ID for the Hook.
|
680
|
+
"""
|
681
|
+
return pulumi.get(self, "hook_id")
|
682
|
+
|
683
|
+
@_builtins.property
|
684
|
+
@pulumi.getter
|
685
|
+
def location(self) -> pulumi.Output[_builtins.str]:
|
686
|
+
"""
|
687
|
+
The location for the Repository.
|
688
|
+
"""
|
689
|
+
return pulumi.get(self, "location")
|
690
|
+
|
691
|
+
@_builtins.property
|
692
|
+
@pulumi.getter
|
693
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
694
|
+
"""
|
695
|
+
A unique identifier for a Hook. The name should be of the format:
|
696
|
+
`projects/{project}/locations/{location_id}/repositories/{repository_id}/hooks/{hook_id}`
|
697
|
+
"""
|
698
|
+
return pulumi.get(self, "name")
|
699
|
+
|
700
|
+
@_builtins.property
|
701
|
+
@pulumi.getter
|
702
|
+
def project(self) -> pulumi.Output[_builtins.str]:
|
703
|
+
"""
|
704
|
+
The ID of the project in which the resource belongs.
|
705
|
+
If it is not provided, the provider project is used.
|
706
|
+
"""
|
707
|
+
return pulumi.get(self, "project")
|
708
|
+
|
709
|
+
@_builtins.property
|
710
|
+
@pulumi.getter(name="pushOption")
|
711
|
+
def push_option(self) -> pulumi.Output['outputs.HookPushOption']:
|
712
|
+
"""
|
713
|
+
The trigger option for push events.
|
714
|
+
Structure is documented below.
|
715
|
+
"""
|
716
|
+
return pulumi.get(self, "push_option")
|
717
|
+
|
718
|
+
@_builtins.property
|
719
|
+
@pulumi.getter(name="repositoryId")
|
720
|
+
def repository_id(self) -> pulumi.Output[_builtins.str]:
|
721
|
+
"""
|
722
|
+
The ID for the Repository.
|
723
|
+
"""
|
724
|
+
return pulumi.get(self, "repository_id")
|
725
|
+
|
726
|
+
@_builtins.property
|
727
|
+
@pulumi.getter(name="sensitiveQueryString")
|
728
|
+
def sensitive_query_string(self) -> pulumi.Output[Optional[_builtins.str]]:
|
729
|
+
"""
|
730
|
+
The sensitive query string to be appended to the target URI.
|
731
|
+
**Note**: This property is sensitive and will not be displayed in the plan.
|
732
|
+
"""
|
733
|
+
return pulumi.get(self, "sensitive_query_string")
|
734
|
+
|
735
|
+
@_builtins.property
|
736
|
+
@pulumi.getter(name="targetUri")
|
737
|
+
def target_uri(self) -> pulumi.Output[_builtins.str]:
|
738
|
+
"""
|
739
|
+
The target URI to which the payloads will be delivered.
|
740
|
+
"""
|
741
|
+
return pulumi.get(self, "target_uri")
|
742
|
+
|
743
|
+
@_builtins.property
|
744
|
+
@pulumi.getter
|
745
|
+
def uid(self) -> pulumi.Output[_builtins.str]:
|
746
|
+
"""
|
747
|
+
Unique identifier of the hook.
|
748
|
+
"""
|
749
|
+
return pulumi.get(self, "uid")
|
750
|
+
|
751
|
+
@_builtins.property
|
752
|
+
@pulumi.getter(name="updateTime")
|
753
|
+
def update_time(self) -> pulumi.Output[_builtins.str]:
|
754
|
+
"""
|
755
|
+
Update timestamp.
|
756
|
+
"""
|
757
|
+
return pulumi.get(self, "update_time")
|
758
|
+
|