pulumi-gcp 8.35.0a1750142992__py3-none-any.whl → 8.35.0a1750225231__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 +8 -0
- pulumi_gcp/backupdisasterrecovery/backup_plan.py +100 -7
- pulumi_gcp/backupdisasterrecovery/backup_plan_association.py +35 -7
- pulumi_gcp/backupdisasterrecovery/get_backup_plan.py +12 -1
- pulumi_gcp/bigqueryanalyticshub/listing.py +108 -0
- pulumi_gcp/compute/_inputs.py +2028 -175
- pulumi_gcp/compute/disk.py +7 -7
- pulumi_gcp/compute/outputs.py +1483 -110
- pulumi_gcp/compute/region_url_map.py +344 -0
- pulumi_gcp/compute/target_http_proxy.py +118 -0
- pulumi_gcp/compute/target_https_proxy.py +132 -0
- pulumi_gcp/compute/url_map.py +344 -0
- pulumi_gcp/compute/vpn_tunnel.py +178 -0
- pulumi_gcp/dataplex/__init__.py +1 -0
- pulumi_gcp/dataplex/get_data_quality_rules.py +169 -0
- pulumi_gcp/dataplex/outputs.py +420 -0
- pulumi_gcp/diagflow/__init__.py +1 -0
- pulumi_gcp/diagflow/_inputs.py +939 -0
- pulumi_gcp/diagflow/cx_agent.py +34 -0
- pulumi_gcp/diagflow/cx_tool.py +899 -0
- pulumi_gcp/diagflow/outputs.py +780 -0
- pulumi_gcp/firestore/field.py +6 -6
- pulumi_gcp/gkehub/membership_binding.py +6 -6
- pulumi_gcp/gkehub/membership_rbac_role_binding.py +4 -4
- pulumi_gcp/gkehub/namespace.py +4 -4
- pulumi_gcp/gkehub/scope_rbac_role_binding.py +8 -8
- pulumi_gcp/iap/tunnel_dest_group.py +2 -2
- pulumi_gcp/integrationconnectors/_inputs.py +24 -1
- pulumi_gcp/integrationconnectors/managed_zone.py +8 -8
- pulumi_gcp/integrationconnectors/outputs.py +15 -1
- pulumi_gcp/managedkafka/connect_cluster.py +4 -4
- pulumi_gcp/managedkafka/connector.py +4 -4
- pulumi_gcp/netapp/_inputs.py +23 -0
- pulumi_gcp/netapp/outputs.py +16 -0
- pulumi_gcp/netapp/storage_pool.py +108 -0
- pulumi_gcp/networkconnectivity/_inputs.py +71 -1
- pulumi_gcp/networkconnectivity/outputs.py +64 -1
- pulumi_gcp/networkconnectivity/spoke.py +14 -14
- pulumi_gcp/notebooks/runtime.py +4 -0
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/pubsub/subscription.py +6 -6
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/_inputs.py +77 -0
- pulumi_gcp/redis/cluster.py +32 -0
- pulumi_gcp/redis/outputs.py +63 -0
- pulumi_gcp/vertex/ai_endpoint.py +4 -4
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
- pulumi_gcp/vertex/ai_index_endpoint_deployed_index.py +99 -64
- {pulumi_gcp-8.35.0a1750142992.dist-info → pulumi_gcp-8.35.0a1750225231.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.35.0a1750142992.dist-info → pulumi_gcp-8.35.0a1750225231.dist-info}/RECORD +52 -50
- {pulumi_gcp-8.35.0a1750142992.dist-info → pulumi_gcp-8.35.0a1750225231.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.35.0a1750142992.dist-info → pulumi_gcp-8.35.0a1750225231.dist-info}/top_level.txt +0 -0
@@ -31,6 +31,7 @@ class AiIndexEndpointDeployedIndexArgs:
|
|
31
31
|
deployment_group: Optional[pulumi.Input[builtins.str]] = None,
|
32
32
|
display_name: Optional[pulumi.Input[builtins.str]] = None,
|
33
33
|
enable_access_logging: Optional[pulumi.Input[builtins.bool]] = None,
|
34
|
+
region: Optional[pulumi.Input[builtins.str]] = None,
|
34
35
|
reserved_ip_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None):
|
35
36
|
"""
|
36
37
|
The set of arguments for constructing a AiIndexEndpointDeployedIndex resource.
|
@@ -56,6 +57,7 @@ class AiIndexEndpointDeployedIndexArgs:
|
|
56
57
|
Note: we only support up to 5 deployment groups (not including 'default').
|
57
58
|
:param pulumi.Input[builtins.str] display_name: The display name of the Index. The name can be up to 128 characters long and can consist of any UTF-8 characters.
|
58
59
|
:param pulumi.Input[builtins.bool] enable_access_logging: If true, private endpoint's access logs are sent to Cloud Logging.
|
60
|
+
:param pulumi.Input[builtins.str] region: The region of the index endpoint deployment. eg us-central1
|
59
61
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] reserved_ip_ranges: A list of reserved ip ranges under the VPC network that can be used for this DeployedIndex.
|
60
62
|
If set, we will deploy the index within the provided ip ranges. Otherwise, the index might be deployed to any ip ranges under the provided VPC network.
|
61
63
|
The value should be the name of the address (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) Example: ['vertex-ai-ip-range'].
|
@@ -76,6 +78,8 @@ class AiIndexEndpointDeployedIndexArgs:
|
|
76
78
|
pulumi.set(__self__, "display_name", display_name)
|
77
79
|
if enable_access_logging is not None:
|
78
80
|
pulumi.set(__self__, "enable_access_logging", enable_access_logging)
|
81
|
+
if region is not None:
|
82
|
+
pulumi.set(__self__, "region", region)
|
79
83
|
if reserved_ip_ranges is not None:
|
80
84
|
pulumi.set(__self__, "reserved_ip_ranges", reserved_ip_ranges)
|
81
85
|
|
@@ -200,6 +204,18 @@ class AiIndexEndpointDeployedIndexArgs:
|
|
200
204
|
def enable_access_logging(self, value: Optional[pulumi.Input[builtins.bool]]):
|
201
205
|
pulumi.set(self, "enable_access_logging", value)
|
202
206
|
|
207
|
+
@property
|
208
|
+
@pulumi.getter
|
209
|
+
def region(self) -> Optional[pulumi.Input[builtins.str]]:
|
210
|
+
"""
|
211
|
+
The region of the index endpoint deployment. eg us-central1
|
212
|
+
"""
|
213
|
+
return pulumi.get(self, "region")
|
214
|
+
|
215
|
+
@region.setter
|
216
|
+
def region(self, value: Optional[pulumi.Input[builtins.str]]):
|
217
|
+
pulumi.set(self, "region", value)
|
218
|
+
|
203
219
|
@property
|
204
220
|
@pulumi.getter(name="reservedIpRanges")
|
205
221
|
def reserved_ip_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
@@ -232,6 +248,7 @@ class _AiIndexEndpointDeployedIndexState:
|
|
232
248
|
index_sync_time: Optional[pulumi.Input[builtins.str]] = None,
|
233
249
|
name: Optional[pulumi.Input[builtins.str]] = None,
|
234
250
|
private_endpoints: Optional[pulumi.Input[Sequence[pulumi.Input['AiIndexEndpointDeployedIndexPrivateEndpointArgs']]]] = None,
|
251
|
+
region: Optional[pulumi.Input[builtins.str]] = None,
|
235
252
|
reserved_ip_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None):
|
236
253
|
"""
|
237
254
|
Input properties used for looking up and filtering AiIndexEndpointDeployedIndex resources.
|
@@ -263,6 +280,7 @@ class _AiIndexEndpointDeployedIndexState:
|
|
263
280
|
:param pulumi.Input[builtins.str] name: The name of the DeployedIndex resource.
|
264
281
|
:param pulumi.Input[Sequence[pulumi.Input['AiIndexEndpointDeployedIndexPrivateEndpointArgs']]] private_endpoints: Provides paths for users to send requests directly to the deployed index services running on Cloud via private services access. This field is populated if [network](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.indexEndpoints#IndexEndpoint.FIELDS.network) is configured.
|
265
282
|
Structure is documented below.
|
283
|
+
:param pulumi.Input[builtins.str] region: The region of the index endpoint deployment. eg us-central1
|
266
284
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] reserved_ip_ranges: A list of reserved ip ranges under the VPC network that can be used for this DeployedIndex.
|
267
285
|
If set, we will deploy the index within the provided ip ranges. Otherwise, the index might be deployed to any ip ranges under the provided VPC network.
|
268
286
|
The value should be the name of the address (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) Example: ['vertex-ai-ip-range'].
|
@@ -294,6 +312,8 @@ class _AiIndexEndpointDeployedIndexState:
|
|
294
312
|
pulumi.set(__self__, "name", name)
|
295
313
|
if private_endpoints is not None:
|
296
314
|
pulumi.set(__self__, "private_endpoints", private_endpoints)
|
315
|
+
if region is not None:
|
316
|
+
pulumi.set(__self__, "region", region)
|
297
317
|
if reserved_ip_ranges is not None:
|
298
318
|
pulumi.set(__self__, "reserved_ip_ranges", reserved_ip_ranges)
|
299
319
|
|
@@ -468,6 +488,18 @@ class _AiIndexEndpointDeployedIndexState:
|
|
468
488
|
def private_endpoints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AiIndexEndpointDeployedIndexPrivateEndpointArgs']]]]):
|
469
489
|
pulumi.set(self, "private_endpoints", value)
|
470
490
|
|
491
|
+
@property
|
492
|
+
@pulumi.getter
|
493
|
+
def region(self) -> Optional[pulumi.Input[builtins.str]]:
|
494
|
+
"""
|
495
|
+
The region of the index endpoint deployment. eg us-central1
|
496
|
+
"""
|
497
|
+
return pulumi.get(self, "region")
|
498
|
+
|
499
|
+
@region.setter
|
500
|
+
def region(self, value: Optional[pulumi.Input[builtins.str]]):
|
501
|
+
pulumi.set(self, "region", value)
|
502
|
+
|
471
503
|
@property
|
472
504
|
@pulumi.getter(name="reservedIpRanges")
|
473
505
|
def reserved_ip_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
@@ -499,6 +531,7 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
499
531
|
enable_access_logging: Optional[pulumi.Input[builtins.bool]] = None,
|
500
532
|
index: Optional[pulumi.Input[builtins.str]] = None,
|
501
533
|
index_endpoint: Optional[pulumi.Input[builtins.str]] = None,
|
534
|
+
region: Optional[pulumi.Input[builtins.str]] = None,
|
502
535
|
reserved_ip_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
503
536
|
__props__=None):
|
504
537
|
"""
|
@@ -516,18 +549,18 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
516
549
|
import pulumi
|
517
550
|
import pulumi_gcp as gcp
|
518
551
|
|
519
|
-
sa = gcp.serviceaccount.Account("sa", account_id="vertex-sa")
|
520
552
|
bucket = gcp.storage.Bucket("bucket",
|
521
553
|
name="bucket-name",
|
522
554
|
location="us-central1",
|
523
555
|
uniform_bucket_level_access=True)
|
524
556
|
index = gcp.vertex.AiIndex("index",
|
525
|
-
labels={
|
526
|
-
"foo": "bar",
|
527
|
-
},
|
528
557
|
region="us-central1",
|
529
558
|
display_name="test-index",
|
530
559
|
description="index for test",
|
560
|
+
index_update_method="BATCH_UPDATE",
|
561
|
+
labels={
|
562
|
+
"foo": "bar",
|
563
|
+
},
|
531
564
|
metadata={
|
532
565
|
"contents_delta_uri": bucket.name.apply(lambda name: f"gs://{name}/contents"),
|
533
566
|
"config": {
|
@@ -542,35 +575,32 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
542
575
|
},
|
543
576
|
},
|
544
577
|
},
|
545
|
-
}
|
546
|
-
index_update_method="BATCH_UPDATE")
|
578
|
+
})
|
547
579
|
vertex_network = gcp.compute.get_network(name="network-name")
|
548
580
|
project = gcp.organizations.get_project()
|
549
581
|
vertex_index_endpoint_deployed = gcp.vertex.AiIndexEndpoint("vertex_index_endpoint_deployed",
|
550
582
|
display_name="sample-endpoint",
|
551
583
|
description="A sample vertex endpoint",
|
552
584
|
region="us-central1",
|
585
|
+
network=f"projects/{project.number}/global/networks/{vertex_network.name}",
|
553
586
|
labels={
|
554
587
|
"label-one": "value-one",
|
555
|
-
}
|
556
|
-
|
588
|
+
})
|
589
|
+
sa = gcp.serviceaccount.Account("sa", account_id="vertex-sa")
|
557
590
|
basic_deployed_index = gcp.vertex.AiIndexEndpointDeployedIndex("basic_deployed_index",
|
558
|
-
index_endpoint=vertex_index_endpoint_deployed.id,
|
559
|
-
index=index.id,
|
560
591
|
deployed_index_id="deployed_index_id",
|
561
|
-
reserved_ip_ranges=["vertex-ai-range"],
|
562
|
-
enable_access_logging=False,
|
563
592
|
display_name="vertex-deployed-index",
|
593
|
+
region="us-central1",
|
594
|
+
index=index.id,
|
595
|
+
index_endpoint=vertex_index_endpoint_deployed.id,
|
596
|
+
enable_access_logging=False,
|
597
|
+
reserved_ip_ranges=["vertex-ai-range"],
|
564
598
|
deployed_index_auth_config={
|
565
599
|
"auth_provider": {
|
566
600
|
"audiences": ["123456-my-app"],
|
567
601
|
"allowed_issuers": [sa.email],
|
568
602
|
},
|
569
|
-
}
|
570
|
-
opts = pulumi.ResourceOptions(depends_on=[
|
571
|
-
vertex_index_endpoint_deployed,
|
572
|
-
sa,
|
573
|
-
]))
|
603
|
+
})
|
574
604
|
# The sample data comes from the following link:
|
575
605
|
# https://cloud.google.com/vertex-ai/docs/matching-engine/filtering#specify-namespaces-tokens
|
576
606
|
data = gcp.storage.BucketObject("data",
|
@@ -592,12 +622,13 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
592
622
|
location="us-central1",
|
593
623
|
uniform_bucket_level_access=True)
|
594
624
|
index = gcp.vertex.AiIndex("index",
|
595
|
-
labels={
|
596
|
-
"foo": "bar",
|
597
|
-
},
|
598
625
|
region="us-central1",
|
599
626
|
display_name="test-index",
|
600
627
|
description="index for test",
|
628
|
+
index_update_method="BATCH_UPDATE",
|
629
|
+
labels={
|
630
|
+
"foo": "bar",
|
631
|
+
},
|
601
632
|
metadata={
|
602
633
|
"contents_delta_uri": bucket.name.apply(lambda name: f"gs://{name}/contents"),
|
603
634
|
"config": {
|
@@ -612,25 +643,25 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
612
643
|
},
|
613
644
|
},
|
614
645
|
},
|
615
|
-
}
|
616
|
-
index_update_method="BATCH_UPDATE")
|
646
|
+
})
|
617
647
|
vertex_network = gcp.compute.get_network(name="network-name")
|
618
648
|
project = gcp.organizations.get_project()
|
619
649
|
vertex_index_endpoint_deployed = gcp.vertex.AiIndexEndpoint("vertex_index_endpoint_deployed",
|
620
650
|
display_name="sample-endpoint",
|
621
651
|
description="A sample vertex endpoint",
|
622
652
|
region="us-central1",
|
653
|
+
network=f"projects/{project.number}/global/networks/{vertex_network.name}",
|
623
654
|
labels={
|
624
655
|
"label-one": "value-one",
|
625
|
-
}
|
626
|
-
network=f"projects/{project.number}/global/networks/{vertex_network.name}")
|
656
|
+
})
|
627
657
|
basic_deployed_index = gcp.vertex.AiIndexEndpointDeployedIndex("basic_deployed_index",
|
628
|
-
index_endpoint=vertex_index_endpoint_deployed.id,
|
629
|
-
index=index.id,
|
630
658
|
deployed_index_id="deployed_index_id",
|
659
|
+
display_name="vertex-deployed-index",
|
660
|
+
region="us-central1",
|
661
|
+
index=index.id,
|
662
|
+
index_endpoint=vertex_index_endpoint_deployed.id,
|
631
663
|
reserved_ip_ranges=["vertex-ai-range"],
|
632
664
|
enable_access_logging=False,
|
633
|
-
display_name="vertex-deployed-index",
|
634
665
|
deployed_index_auth_config={
|
635
666
|
"auth_provider": {
|
636
667
|
"audiences": ["123456-my-app"],
|
@@ -639,11 +670,7 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
639
670
|
},
|
640
671
|
automatic_resources={
|
641
672
|
"max_replica_count": 4,
|
642
|
-
}
|
643
|
-
opts = pulumi.ResourceOptions(depends_on=[
|
644
|
-
vertex_index_endpoint_deployed,
|
645
|
-
sa,
|
646
|
-
]))
|
673
|
+
})
|
647
674
|
# The sample data comes from the following link:
|
648
675
|
# https://cloud.google.com/vertex-ai/docs/matching-engine/filtering#specify-namespaces-tokens
|
649
676
|
data = gcp.storage.BucketObject("data",
|
@@ -708,6 +735,7 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
708
735
|
|
709
736
|
|
710
737
|
- - -
|
738
|
+
:param pulumi.Input[builtins.str] region: The region of the index endpoint deployment. eg us-central1
|
711
739
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] reserved_ip_ranges: A list of reserved ip ranges under the VPC network that can be used for this DeployedIndex.
|
712
740
|
If set, we will deploy the index within the provided ip ranges. Otherwise, the index might be deployed to any ip ranges under the provided VPC network.
|
713
741
|
The value should be the name of the address (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) Example: ['vertex-ai-ip-range'].
|
@@ -734,18 +762,18 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
734
762
|
import pulumi
|
735
763
|
import pulumi_gcp as gcp
|
736
764
|
|
737
|
-
sa = gcp.serviceaccount.Account("sa", account_id="vertex-sa")
|
738
765
|
bucket = gcp.storage.Bucket("bucket",
|
739
766
|
name="bucket-name",
|
740
767
|
location="us-central1",
|
741
768
|
uniform_bucket_level_access=True)
|
742
769
|
index = gcp.vertex.AiIndex("index",
|
743
|
-
labels={
|
744
|
-
"foo": "bar",
|
745
|
-
},
|
746
770
|
region="us-central1",
|
747
771
|
display_name="test-index",
|
748
772
|
description="index for test",
|
773
|
+
index_update_method="BATCH_UPDATE",
|
774
|
+
labels={
|
775
|
+
"foo": "bar",
|
776
|
+
},
|
749
777
|
metadata={
|
750
778
|
"contents_delta_uri": bucket.name.apply(lambda name: f"gs://{name}/contents"),
|
751
779
|
"config": {
|
@@ -760,35 +788,32 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
760
788
|
},
|
761
789
|
},
|
762
790
|
},
|
763
|
-
}
|
764
|
-
index_update_method="BATCH_UPDATE")
|
791
|
+
})
|
765
792
|
vertex_network = gcp.compute.get_network(name="network-name")
|
766
793
|
project = gcp.organizations.get_project()
|
767
794
|
vertex_index_endpoint_deployed = gcp.vertex.AiIndexEndpoint("vertex_index_endpoint_deployed",
|
768
795
|
display_name="sample-endpoint",
|
769
796
|
description="A sample vertex endpoint",
|
770
797
|
region="us-central1",
|
798
|
+
network=f"projects/{project.number}/global/networks/{vertex_network.name}",
|
771
799
|
labels={
|
772
800
|
"label-one": "value-one",
|
773
|
-
}
|
774
|
-
|
801
|
+
})
|
802
|
+
sa = gcp.serviceaccount.Account("sa", account_id="vertex-sa")
|
775
803
|
basic_deployed_index = gcp.vertex.AiIndexEndpointDeployedIndex("basic_deployed_index",
|
776
|
-
index_endpoint=vertex_index_endpoint_deployed.id,
|
777
|
-
index=index.id,
|
778
804
|
deployed_index_id="deployed_index_id",
|
779
|
-
reserved_ip_ranges=["vertex-ai-range"],
|
780
|
-
enable_access_logging=False,
|
781
805
|
display_name="vertex-deployed-index",
|
806
|
+
region="us-central1",
|
807
|
+
index=index.id,
|
808
|
+
index_endpoint=vertex_index_endpoint_deployed.id,
|
809
|
+
enable_access_logging=False,
|
810
|
+
reserved_ip_ranges=["vertex-ai-range"],
|
782
811
|
deployed_index_auth_config={
|
783
812
|
"auth_provider": {
|
784
813
|
"audiences": ["123456-my-app"],
|
785
814
|
"allowed_issuers": [sa.email],
|
786
815
|
},
|
787
|
-
}
|
788
|
-
opts = pulumi.ResourceOptions(depends_on=[
|
789
|
-
vertex_index_endpoint_deployed,
|
790
|
-
sa,
|
791
|
-
]))
|
816
|
+
})
|
792
817
|
# The sample data comes from the following link:
|
793
818
|
# https://cloud.google.com/vertex-ai/docs/matching-engine/filtering#specify-namespaces-tokens
|
794
819
|
data = gcp.storage.BucketObject("data",
|
@@ -810,12 +835,13 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
810
835
|
location="us-central1",
|
811
836
|
uniform_bucket_level_access=True)
|
812
837
|
index = gcp.vertex.AiIndex("index",
|
813
|
-
labels={
|
814
|
-
"foo": "bar",
|
815
|
-
},
|
816
838
|
region="us-central1",
|
817
839
|
display_name="test-index",
|
818
840
|
description="index for test",
|
841
|
+
index_update_method="BATCH_UPDATE",
|
842
|
+
labels={
|
843
|
+
"foo": "bar",
|
844
|
+
},
|
819
845
|
metadata={
|
820
846
|
"contents_delta_uri": bucket.name.apply(lambda name: f"gs://{name}/contents"),
|
821
847
|
"config": {
|
@@ -830,25 +856,25 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
830
856
|
},
|
831
857
|
},
|
832
858
|
},
|
833
|
-
}
|
834
|
-
index_update_method="BATCH_UPDATE")
|
859
|
+
})
|
835
860
|
vertex_network = gcp.compute.get_network(name="network-name")
|
836
861
|
project = gcp.organizations.get_project()
|
837
862
|
vertex_index_endpoint_deployed = gcp.vertex.AiIndexEndpoint("vertex_index_endpoint_deployed",
|
838
863
|
display_name="sample-endpoint",
|
839
864
|
description="A sample vertex endpoint",
|
840
865
|
region="us-central1",
|
866
|
+
network=f"projects/{project.number}/global/networks/{vertex_network.name}",
|
841
867
|
labels={
|
842
868
|
"label-one": "value-one",
|
843
|
-
}
|
844
|
-
network=f"projects/{project.number}/global/networks/{vertex_network.name}")
|
869
|
+
})
|
845
870
|
basic_deployed_index = gcp.vertex.AiIndexEndpointDeployedIndex("basic_deployed_index",
|
846
|
-
index_endpoint=vertex_index_endpoint_deployed.id,
|
847
|
-
index=index.id,
|
848
871
|
deployed_index_id="deployed_index_id",
|
872
|
+
display_name="vertex-deployed-index",
|
873
|
+
region="us-central1",
|
874
|
+
index=index.id,
|
875
|
+
index_endpoint=vertex_index_endpoint_deployed.id,
|
849
876
|
reserved_ip_ranges=["vertex-ai-range"],
|
850
877
|
enable_access_logging=False,
|
851
|
-
display_name="vertex-deployed-index",
|
852
878
|
deployed_index_auth_config={
|
853
879
|
"auth_provider": {
|
854
880
|
"audiences": ["123456-my-app"],
|
@@ -857,11 +883,7 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
857
883
|
},
|
858
884
|
automatic_resources={
|
859
885
|
"max_replica_count": 4,
|
860
|
-
}
|
861
|
-
opts = pulumi.ResourceOptions(depends_on=[
|
862
|
-
vertex_index_endpoint_deployed,
|
863
|
-
sa,
|
864
|
-
]))
|
886
|
+
})
|
865
887
|
# The sample data comes from the following link:
|
866
888
|
# https://cloud.google.com/vertex-ai/docs/matching-engine/filtering#specify-namespaces-tokens
|
867
889
|
data = gcp.storage.BucketObject("data",
|
@@ -926,6 +948,7 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
926
948
|
enable_access_logging: Optional[pulumi.Input[builtins.bool]] = None,
|
927
949
|
index: Optional[pulumi.Input[builtins.str]] = None,
|
928
950
|
index_endpoint: Optional[pulumi.Input[builtins.str]] = None,
|
951
|
+
region: Optional[pulumi.Input[builtins.str]] = None,
|
929
952
|
reserved_ip_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
930
953
|
__props__=None):
|
931
954
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
@@ -951,6 +974,7 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
951
974
|
if index_endpoint is None and not opts.urn:
|
952
975
|
raise TypeError("Missing required property 'index_endpoint'")
|
953
976
|
__props__.__dict__["index_endpoint"] = index_endpoint
|
977
|
+
__props__.__dict__["region"] = region
|
954
978
|
__props__.__dict__["reserved_ip_ranges"] = reserved_ip_ranges
|
955
979
|
__props__.__dict__["create_time"] = None
|
956
980
|
__props__.__dict__["index_sync_time"] = None
|
@@ -979,6 +1003,7 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
979
1003
|
index_sync_time: Optional[pulumi.Input[builtins.str]] = None,
|
980
1004
|
name: Optional[pulumi.Input[builtins.str]] = None,
|
981
1005
|
private_endpoints: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AiIndexEndpointDeployedIndexPrivateEndpointArgs', 'AiIndexEndpointDeployedIndexPrivateEndpointArgsDict']]]]] = None,
|
1006
|
+
region: Optional[pulumi.Input[builtins.str]] = None,
|
982
1007
|
reserved_ip_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None) -> 'AiIndexEndpointDeployedIndex':
|
983
1008
|
"""
|
984
1009
|
Get an existing AiIndexEndpointDeployedIndex resource's state with the given name, id, and optional extra
|
@@ -1015,6 +1040,7 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
1015
1040
|
:param pulumi.Input[builtins.str] name: The name of the DeployedIndex resource.
|
1016
1041
|
:param pulumi.Input[Sequence[pulumi.Input[Union['AiIndexEndpointDeployedIndexPrivateEndpointArgs', 'AiIndexEndpointDeployedIndexPrivateEndpointArgsDict']]]] private_endpoints: Provides paths for users to send requests directly to the deployed index services running on Cloud via private services access. This field is populated if [network](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.indexEndpoints#IndexEndpoint.FIELDS.network) is configured.
|
1017
1042
|
Structure is documented below.
|
1043
|
+
:param pulumi.Input[builtins.str] region: The region of the index endpoint deployment. eg us-central1
|
1018
1044
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] reserved_ip_ranges: A list of reserved ip ranges under the VPC network that can be used for this DeployedIndex.
|
1019
1045
|
If set, we will deploy the index within the provided ip ranges. Otherwise, the index might be deployed to any ip ranges under the provided VPC network.
|
1020
1046
|
The value should be the name of the address (https://cloud.google.com/compute/docs/reference/rest/v1/addresses) Example: ['vertex-ai-ip-range'].
|
@@ -1037,6 +1063,7 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
1037
1063
|
__props__.__dict__["index_sync_time"] = index_sync_time
|
1038
1064
|
__props__.__dict__["name"] = name
|
1039
1065
|
__props__.__dict__["private_endpoints"] = private_endpoints
|
1066
|
+
__props__.__dict__["region"] = region
|
1040
1067
|
__props__.__dict__["reserved_ip_ranges"] = reserved_ip_ranges
|
1041
1068
|
return AiIndexEndpointDeployedIndex(resource_name, opts=opts, __props__=__props__)
|
1042
1069
|
|
@@ -1159,6 +1186,14 @@ class AiIndexEndpointDeployedIndex(pulumi.CustomResource):
|
|
1159
1186
|
"""
|
1160
1187
|
return pulumi.get(self, "private_endpoints")
|
1161
1188
|
|
1189
|
+
@property
|
1190
|
+
@pulumi.getter
|
1191
|
+
def region(self) -> pulumi.Output[Optional[builtins.str]]:
|
1192
|
+
"""
|
1193
|
+
The region of the index endpoint deployment. eg us-central1
|
1194
|
+
"""
|
1195
|
+
return pulumi.get(self, "region")
|
1196
|
+
|
1162
1197
|
@property
|
1163
1198
|
@pulumi.getter(name="reservedIpRanges")
|
1164
1199
|
def reserved_ip_ranges(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|