pulumi-gcp 8.40.0a1754721948__py3-none-any.whl → 8.40.0a1754951145__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 +128 -0
- pulumi_gcp/accesscontextmanager/_inputs.py +24 -4
- pulumi_gcp/accesscontextmanager/outputs.py +15 -3
- pulumi_gcp/apigee/__init__.py +2 -0
- pulumi_gcp/apigee/_inputs.py +1435 -0
- pulumi_gcp/apigee/api_product.py +1698 -0
- pulumi_gcp/apigee/outputs.py +1081 -0
- pulumi_gcp/apigee/security_action.py +1010 -0
- pulumi_gcp/artifactregistry/__init__.py +1 -0
- pulumi_gcp/artifactregistry/get_docker_images.py +164 -0
- pulumi_gcp/artifactregistry/outputs.py +109 -2
- pulumi_gcp/artifactregistry/repository.py +6 -6
- pulumi_gcp/backupdisasterrecovery/backup_vault.py +56 -0
- pulumi_gcp/backupdisasterrecovery/get_backup_vault.py +12 -1
- pulumi_gcp/bigquery/_inputs.py +6 -0
- pulumi_gcp/bigquery/get_table.py +23 -1
- pulumi_gcp/bigquery/outputs.py +4 -0
- pulumi_gcp/bigquery/table.py +62 -0
- pulumi_gcp/bigqueryanalyticshub/_inputs.py +180 -0
- pulumi_gcp/bigqueryanalyticshub/data_exchange.py +80 -0
- pulumi_gcp/bigqueryanalyticshub/listing.py +322 -2
- pulumi_gcp/bigqueryanalyticshub/listing_subscription.py +32 -0
- pulumi_gcp/bigqueryanalyticshub/outputs.py +159 -0
- pulumi_gcp/bigtable/__init__.py +1 -0
- pulumi_gcp/bigtable/_inputs.py +33 -0
- pulumi_gcp/bigtable/outputs.py +36 -0
- pulumi_gcp/bigtable/schema_bundle.py +568 -0
- pulumi_gcp/cloudfunctions/_inputs.py +48 -0
- pulumi_gcp/cloudfunctions/function.py +94 -0
- pulumi_gcp/cloudfunctions/get_function.py +23 -1
- pulumi_gcp/cloudfunctions/outputs.py +70 -0
- pulumi_gcp/cloudrunv2/_inputs.py +20 -0
- pulumi_gcp/cloudrunv2/job.py +2 -0
- pulumi_gcp/cloudrunv2/outputs.py +25 -0
- pulumi_gcp/cloudrunv2/worker_pool.py +2 -0
- pulumi_gcp/compute/__init__.py +1 -0
- pulumi_gcp/compute/_inputs.py +713 -22
- pulumi_gcp/compute/firewall_policy_with_rules.py +66 -0
- pulumi_gcp/compute/forwarding_rule.py +0 -21
- pulumi_gcp/compute/get_router.py +12 -1
- pulumi_gcp/compute/outputs.py +562 -22
- pulumi_gcp/compute/preview_feature.py +396 -0
- pulumi_gcp/compute/region_url_map.py +392 -0
- pulumi_gcp/compute/reservation.py +4 -4
- pulumi_gcp/compute/router.py +54 -0
- pulumi_gcp/compute/storage_pool.py +154 -0
- pulumi_gcp/compute/subnetwork.py +54 -0
- pulumi_gcp/config/__init__.pyi +2 -0
- pulumi_gcp/config/vars.py +4 -0
- pulumi_gcp/container/_inputs.py +278 -8
- pulumi_gcp/container/cluster.py +61 -21
- pulumi_gcp/container/get_cluster.py +12 -1
- pulumi_gcp/container/outputs.py +352 -8
- pulumi_gcp/dataproc/_inputs.py +249 -14
- pulumi_gcp/dataproc/batch.py +6 -0
- pulumi_gcp/dataproc/cluster.py +2 -0
- pulumi_gcp/dataproc/outputs.py +215 -12
- pulumi_gcp/dataproc/session_template.py +14 -2
- pulumi_gcp/developerconnect/__init__.py +1 -0
- pulumi_gcp/developerconnect/_inputs.py +583 -0
- pulumi_gcp/developerconnect/insights_config.py +895 -0
- pulumi_gcp/developerconnect/outputs.py +442 -0
- pulumi_gcp/diagflow/__init__.py +1 -0
- pulumi_gcp/diagflow/_inputs.py +1165 -58
- pulumi_gcp/diagflow/cx_generator.py +636 -0
- pulumi_gcp/diagflow/cx_tool.py +2 -2
- pulumi_gcp/diagflow/cx_webhook.py +380 -36
- pulumi_gcp/diagflow/outputs.py +848 -25
- pulumi_gcp/discoveryengine/__init__.py +2 -0
- pulumi_gcp/discoveryengine/_inputs.py +465 -0
- pulumi_gcp/discoveryengine/cmek_config.py +707 -0
- pulumi_gcp/discoveryengine/outputs.py +412 -0
- pulumi_gcp/discoveryengine/recommendation_engine.py +813 -0
- pulumi_gcp/firestore/field.py +6 -6
- pulumi_gcp/gemini/gemini_gcp_enablement_setting.py +107 -9
- pulumi_gcp/gemini/gemini_gcp_enablement_setting_binding.py +2 -2
- 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/iam/__init__.py +4 -0
- pulumi_gcp/iam/_inputs.py +98 -0
- pulumi_gcp/iam/get_workforce_pool_iam_policy.py +161 -0
- pulumi_gcp/iam/outputs.py +56 -0
- pulumi_gcp/iam/workforce_pool_iam_binding.py +761 -0
- pulumi_gcp/iam/workforce_pool_iam_member.py +761 -0
- pulumi_gcp/iam/workforce_pool_iam_policy.py +600 -0
- pulumi_gcp/iap/tunnel_dest_group.py +2 -2
- pulumi_gcp/integrationconnectors/managed_zone.py +8 -8
- pulumi_gcp/looker/instance.py +28 -7
- pulumi_gcp/managedkafka/_inputs.py +127 -0
- pulumi_gcp/managedkafka/cluster.py +131 -1
- pulumi_gcp/managedkafka/connect_cluster.py +4 -4
- pulumi_gcp/managedkafka/connector.py +4 -4
- pulumi_gcp/managedkafka/outputs.py +128 -0
- pulumi_gcp/memorystore/instance.py +8 -12
- pulumi_gcp/modelarmor/__init__.py +1 -0
- pulumi_gcp/modelarmor/_inputs.py +683 -0
- pulumi_gcp/modelarmor/floorsetting.py +736 -0
- pulumi_gcp/modelarmor/outputs.py +618 -0
- pulumi_gcp/networkconnectivity/_inputs.py +60 -0
- pulumi_gcp/networkconnectivity/internal_range.py +136 -0
- pulumi_gcp/networkconnectivity/outputs.py +55 -0
- pulumi_gcp/networkconnectivity/spoke.py +14 -14
- pulumi_gcp/oracledatabase/__init__.py +2 -0
- pulumi_gcp/oracledatabase/autonomous_database.py +262 -38
- pulumi_gcp/oracledatabase/cloud_vm_cluster.py +314 -50
- pulumi_gcp/oracledatabase/get_autonomous_database.py +23 -1
- pulumi_gcp/oracledatabase/get_cloud_vm_cluster.py +34 -1
- pulumi_gcp/oracledatabase/odb_network.py +721 -0
- pulumi_gcp/oracledatabase/odb_subnet.py +803 -0
- pulumi_gcp/oracledatabase/outputs.py +83 -0
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/parametermanager/parameter_version.py +62 -0
- pulumi_gcp/parametermanager/regional_parameter_version.py +64 -0
- pulumi_gcp/provider.py +20 -0
- pulumi_gcp/pubsub/subscription.py +46 -6
- pulumi_gcp/pubsub/topic.py +36 -0
- pulumi_gcp/pulumi-plugin.json +1 -1
- pulumi_gcp/redis/cluster.py +70 -0
- pulumi_gcp/redis/get_cluster.py +12 -1
- pulumi_gcp/redis/instance.py +8 -12
- pulumi_gcp/secretmanager/get_regional_secret.py +12 -1
- pulumi_gcp/secretmanager/get_secret.py +12 -1
- pulumi_gcp/secretmanager/outputs.py +30 -0
- pulumi_gcp/secretmanager/regional_secret.py +61 -0
- pulumi_gcp/secretmanager/secret.py +61 -0
- pulumi_gcp/securesourcemanager/branch_rule.py +16 -8
- pulumi_gcp/securesourcemanager/instance.py +112 -4
- pulumi_gcp/securesourcemanager/repository.py +112 -8
- pulumi_gcp/serviceaccount/get_account_key.py +1 -0
- pulumi_gcp/sql/_inputs.py +6 -6
- pulumi_gcp/sql/database.py +0 -12
- pulumi_gcp/sql/outputs.py +4 -4
- pulumi_gcp/storage/__init__.py +2 -0
- pulumi_gcp/storage/_inputs.py +451 -0
- pulumi_gcp/storage/bucket.py +7 -7
- pulumi_gcp/storage/bucket_object.py +34 -0
- pulumi_gcp/storage/get_bucket_object.py +12 -1
- pulumi_gcp/storage/get_bucket_object_content.py +12 -1
- pulumi_gcp/storage/get_insights_dataset_config.py +363 -0
- pulumi_gcp/storage/insights_dataset_config.py +1280 -0
- pulumi_gcp/storage/outputs.py +619 -0
- pulumi_gcp/vertex/__init__.py +1 -0
- pulumi_gcp/vertex/_inputs.py +3646 -3
- pulumi_gcp/vertex/ai_endpoint.py +4 -4
- pulumi_gcp/vertex/ai_endpoint_with_model_garden_deployment.py +940 -0
- pulumi_gcp/vertex/ai_feature_online_store_featureview.py +4 -4
- pulumi_gcp/vertex/outputs.py +2609 -2
- pulumi_gcp/vmwareengine/network_peering.py +7 -7
- pulumi_gcp/workbench/_inputs.py +118 -0
- pulumi_gcp/workbench/instance.py +171 -2
- pulumi_gcp/workbench/outputs.py +91 -0
- {pulumi_gcp-8.40.0a1754721948.dist-info → pulumi_gcp-8.40.0a1754951145.dist-info}/METADATA +1 -1
- {pulumi_gcp-8.40.0a1754721948.dist-info → pulumi_gcp-8.40.0a1754951145.dist-info}/RECORD +157 -138
- {pulumi_gcp-8.40.0a1754721948.dist-info → pulumi_gcp-8.40.0a1754951145.dist-info}/WHEEL +0 -0
- {pulumi_gcp-8.40.0a1754721948.dist-info → pulumi_gcp-8.40.0a1754951145.dist-info}/top_level.txt +0 -0
@@ -1312,6 +1312,202 @@ class RegionUrlMap(pulumi.CustomResource):
|
|
1312
1312
|
"path": "/home",
|
1313
1313
|
}])
|
1314
1314
|
```
|
1315
|
+
### Region Url Map Default Mirror Percent
|
1316
|
+
|
1317
|
+
```python
|
1318
|
+
import pulumi
|
1319
|
+
import pulumi_gcp as gcp
|
1320
|
+
|
1321
|
+
default = gcp.compute.RegionHealthCheck("default",
|
1322
|
+
region="us-central1",
|
1323
|
+
name="health-check",
|
1324
|
+
http_health_check={
|
1325
|
+
"port": 80,
|
1326
|
+
})
|
1327
|
+
home = gcp.compute.RegionBackendService("home",
|
1328
|
+
region="us-central1",
|
1329
|
+
name="home",
|
1330
|
+
port_name="http",
|
1331
|
+
protocol="HTTP",
|
1332
|
+
timeout_sec=10,
|
1333
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
1334
|
+
health_checks=default.id)
|
1335
|
+
mirror = gcp.compute.RegionBackendService("mirror",
|
1336
|
+
region="us-central1",
|
1337
|
+
name="mirror",
|
1338
|
+
port_name="http",
|
1339
|
+
protocol="HTTP",
|
1340
|
+
timeout_sec=10,
|
1341
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
1342
|
+
health_checks=default.id)
|
1343
|
+
regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
|
1344
|
+
region="us-central1",
|
1345
|
+
name="regionurlmap",
|
1346
|
+
description="Test for default route action mirror percent",
|
1347
|
+
default_service=home.id,
|
1348
|
+
default_route_action={
|
1349
|
+
"request_mirror_policy": {
|
1350
|
+
"backend_service": mirror.id,
|
1351
|
+
"mirror_percent": 50,
|
1352
|
+
},
|
1353
|
+
},
|
1354
|
+
host_rules=[{
|
1355
|
+
"hosts": ["mysite.com"],
|
1356
|
+
"path_matcher": "allpaths",
|
1357
|
+
}],
|
1358
|
+
path_matchers=[{
|
1359
|
+
"name": "allpaths",
|
1360
|
+
"default_service": home.id,
|
1361
|
+
}])
|
1362
|
+
```
|
1363
|
+
### Region Url Map Path Matcher Default Mirror Percent
|
1364
|
+
|
1365
|
+
```python
|
1366
|
+
import pulumi
|
1367
|
+
import pulumi_gcp as gcp
|
1368
|
+
|
1369
|
+
default = gcp.compute.RegionHealthCheck("default",
|
1370
|
+
region="us-central1",
|
1371
|
+
name="health-check",
|
1372
|
+
http_health_check={
|
1373
|
+
"port": 80,
|
1374
|
+
})
|
1375
|
+
home = gcp.compute.RegionBackendService("home",
|
1376
|
+
region="us-central1",
|
1377
|
+
name="home",
|
1378
|
+
port_name="http",
|
1379
|
+
protocol="HTTP",
|
1380
|
+
timeout_sec=10,
|
1381
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
1382
|
+
health_checks=default.id)
|
1383
|
+
mirror = gcp.compute.RegionBackendService("mirror",
|
1384
|
+
region="us-central1",
|
1385
|
+
name="mirror",
|
1386
|
+
port_name="http",
|
1387
|
+
protocol="HTTP",
|
1388
|
+
timeout_sec=10,
|
1389
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
1390
|
+
health_checks=default.id)
|
1391
|
+
regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
|
1392
|
+
region="us-central1",
|
1393
|
+
name="regionurlmap",
|
1394
|
+
description="Test for default route action mirror percent",
|
1395
|
+
default_service=home.id,
|
1396
|
+
default_route_action={
|
1397
|
+
"request_mirror_policy": {
|
1398
|
+
"backend_service": mirror.id,
|
1399
|
+
"mirror_percent": 50,
|
1400
|
+
},
|
1401
|
+
},
|
1402
|
+
host_rules=[{
|
1403
|
+
"hosts": ["mysite.com"],
|
1404
|
+
"path_matcher": "allpaths",
|
1405
|
+
}],
|
1406
|
+
path_matchers=[{
|
1407
|
+
"name": "allpaths",
|
1408
|
+
"default_service": home.id,
|
1409
|
+
}])
|
1410
|
+
```
|
1411
|
+
### Region Url Map Path Rule Mirror Percent
|
1412
|
+
|
1413
|
+
```python
|
1414
|
+
import pulumi
|
1415
|
+
import pulumi_gcp as gcp
|
1416
|
+
|
1417
|
+
default = gcp.compute.RegionHealthCheck("default",
|
1418
|
+
region="us-central1",
|
1419
|
+
name="health-check",
|
1420
|
+
http_health_check={
|
1421
|
+
"port": 80,
|
1422
|
+
})
|
1423
|
+
home = gcp.compute.RegionBackendService("home",
|
1424
|
+
region="us-central1",
|
1425
|
+
name="home",
|
1426
|
+
port_name="http",
|
1427
|
+
protocol="HTTP",
|
1428
|
+
timeout_sec=10,
|
1429
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
1430
|
+
health_checks=default.id)
|
1431
|
+
mirror = gcp.compute.RegionBackendService("mirror",
|
1432
|
+
region="us-central1",
|
1433
|
+
name="mirror",
|
1434
|
+
port_name="http",
|
1435
|
+
protocol="HTTP",
|
1436
|
+
timeout_sec=10,
|
1437
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
1438
|
+
health_checks=default.id)
|
1439
|
+
regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
|
1440
|
+
region="us-central1",
|
1441
|
+
name="regionurlmap",
|
1442
|
+
description="Test for path matcher default route action mirror percent",
|
1443
|
+
default_service=home.id,
|
1444
|
+
host_rules=[{
|
1445
|
+
"hosts": ["mysite.com"],
|
1446
|
+
"path_matcher": "allpaths",
|
1447
|
+
}],
|
1448
|
+
path_matchers=[{
|
1449
|
+
"name": "allpaths",
|
1450
|
+
"default_service": home.id,
|
1451
|
+
"default_route_action": {
|
1452
|
+
"request_mirror_policy": {
|
1453
|
+
"backend_service": mirror.id,
|
1454
|
+
"mirror_percent": 75,
|
1455
|
+
},
|
1456
|
+
},
|
1457
|
+
}])
|
1458
|
+
```
|
1459
|
+
### Region Url Map Route Rule Mirror Percent
|
1460
|
+
|
1461
|
+
```python
|
1462
|
+
import pulumi
|
1463
|
+
import pulumi_gcp as gcp
|
1464
|
+
|
1465
|
+
default = gcp.compute.RegionHealthCheck("default",
|
1466
|
+
region="us-central1",
|
1467
|
+
name="health-check",
|
1468
|
+
http_health_check={
|
1469
|
+
"port": 80,
|
1470
|
+
})
|
1471
|
+
home = gcp.compute.RegionBackendService("home",
|
1472
|
+
region="us-central1",
|
1473
|
+
name="home",
|
1474
|
+
port_name="http",
|
1475
|
+
protocol="HTTP",
|
1476
|
+
timeout_sec=10,
|
1477
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
1478
|
+
health_checks=default.id)
|
1479
|
+
mirror = gcp.compute.RegionBackendService("mirror",
|
1480
|
+
region="us-central1",
|
1481
|
+
name="mirror",
|
1482
|
+
port_name="http",
|
1483
|
+
protocol="HTTP",
|
1484
|
+
timeout_sec=10,
|
1485
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
1486
|
+
health_checks=default.id)
|
1487
|
+
regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
|
1488
|
+
region="us-central1",
|
1489
|
+
name="regionurlmap",
|
1490
|
+
description="Test for path rule route action mirror percent",
|
1491
|
+
default_service=home.id,
|
1492
|
+
host_rules=[{
|
1493
|
+
"hosts": ["mysite.com"],
|
1494
|
+
"path_matcher": "allpaths",
|
1495
|
+
}],
|
1496
|
+
path_matchers=[{
|
1497
|
+
"name": "allpaths",
|
1498
|
+
"default_service": home.id,
|
1499
|
+
"path_rules": [{
|
1500
|
+
"paths": ["/home"],
|
1501
|
+
"service": home.id,
|
1502
|
+
"route_action": {
|
1503
|
+
"request_mirror_policy": {
|
1504
|
+
"backend_service": mirror.id,
|
1505
|
+
"mirror_percent": 25,
|
1506
|
+
},
|
1507
|
+
},
|
1508
|
+
}],
|
1509
|
+
}])
|
1510
|
+
```
|
1315
1511
|
|
1316
1512
|
## Import
|
1317
1513
|
|
@@ -2159,6 +2355,202 @@ class RegionUrlMap(pulumi.CustomResource):
|
|
2159
2355
|
"path": "/home",
|
2160
2356
|
}])
|
2161
2357
|
```
|
2358
|
+
### Region Url Map Default Mirror Percent
|
2359
|
+
|
2360
|
+
```python
|
2361
|
+
import pulumi
|
2362
|
+
import pulumi_gcp as gcp
|
2363
|
+
|
2364
|
+
default = gcp.compute.RegionHealthCheck("default",
|
2365
|
+
region="us-central1",
|
2366
|
+
name="health-check",
|
2367
|
+
http_health_check={
|
2368
|
+
"port": 80,
|
2369
|
+
})
|
2370
|
+
home = gcp.compute.RegionBackendService("home",
|
2371
|
+
region="us-central1",
|
2372
|
+
name="home",
|
2373
|
+
port_name="http",
|
2374
|
+
protocol="HTTP",
|
2375
|
+
timeout_sec=10,
|
2376
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
2377
|
+
health_checks=default.id)
|
2378
|
+
mirror = gcp.compute.RegionBackendService("mirror",
|
2379
|
+
region="us-central1",
|
2380
|
+
name="mirror",
|
2381
|
+
port_name="http",
|
2382
|
+
protocol="HTTP",
|
2383
|
+
timeout_sec=10,
|
2384
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
2385
|
+
health_checks=default.id)
|
2386
|
+
regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
|
2387
|
+
region="us-central1",
|
2388
|
+
name="regionurlmap",
|
2389
|
+
description="Test for default route action mirror percent",
|
2390
|
+
default_service=home.id,
|
2391
|
+
default_route_action={
|
2392
|
+
"request_mirror_policy": {
|
2393
|
+
"backend_service": mirror.id,
|
2394
|
+
"mirror_percent": 50,
|
2395
|
+
},
|
2396
|
+
},
|
2397
|
+
host_rules=[{
|
2398
|
+
"hosts": ["mysite.com"],
|
2399
|
+
"path_matcher": "allpaths",
|
2400
|
+
}],
|
2401
|
+
path_matchers=[{
|
2402
|
+
"name": "allpaths",
|
2403
|
+
"default_service": home.id,
|
2404
|
+
}])
|
2405
|
+
```
|
2406
|
+
### Region Url Map Path Matcher Default Mirror Percent
|
2407
|
+
|
2408
|
+
```python
|
2409
|
+
import pulumi
|
2410
|
+
import pulumi_gcp as gcp
|
2411
|
+
|
2412
|
+
default = gcp.compute.RegionHealthCheck("default",
|
2413
|
+
region="us-central1",
|
2414
|
+
name="health-check",
|
2415
|
+
http_health_check={
|
2416
|
+
"port": 80,
|
2417
|
+
})
|
2418
|
+
home = gcp.compute.RegionBackendService("home",
|
2419
|
+
region="us-central1",
|
2420
|
+
name="home",
|
2421
|
+
port_name="http",
|
2422
|
+
protocol="HTTP",
|
2423
|
+
timeout_sec=10,
|
2424
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
2425
|
+
health_checks=default.id)
|
2426
|
+
mirror = gcp.compute.RegionBackendService("mirror",
|
2427
|
+
region="us-central1",
|
2428
|
+
name="mirror",
|
2429
|
+
port_name="http",
|
2430
|
+
protocol="HTTP",
|
2431
|
+
timeout_sec=10,
|
2432
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
2433
|
+
health_checks=default.id)
|
2434
|
+
regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
|
2435
|
+
region="us-central1",
|
2436
|
+
name="regionurlmap",
|
2437
|
+
description="Test for default route action mirror percent",
|
2438
|
+
default_service=home.id,
|
2439
|
+
default_route_action={
|
2440
|
+
"request_mirror_policy": {
|
2441
|
+
"backend_service": mirror.id,
|
2442
|
+
"mirror_percent": 50,
|
2443
|
+
},
|
2444
|
+
},
|
2445
|
+
host_rules=[{
|
2446
|
+
"hosts": ["mysite.com"],
|
2447
|
+
"path_matcher": "allpaths",
|
2448
|
+
}],
|
2449
|
+
path_matchers=[{
|
2450
|
+
"name": "allpaths",
|
2451
|
+
"default_service": home.id,
|
2452
|
+
}])
|
2453
|
+
```
|
2454
|
+
### Region Url Map Path Rule Mirror Percent
|
2455
|
+
|
2456
|
+
```python
|
2457
|
+
import pulumi
|
2458
|
+
import pulumi_gcp as gcp
|
2459
|
+
|
2460
|
+
default = gcp.compute.RegionHealthCheck("default",
|
2461
|
+
region="us-central1",
|
2462
|
+
name="health-check",
|
2463
|
+
http_health_check={
|
2464
|
+
"port": 80,
|
2465
|
+
})
|
2466
|
+
home = gcp.compute.RegionBackendService("home",
|
2467
|
+
region="us-central1",
|
2468
|
+
name="home",
|
2469
|
+
port_name="http",
|
2470
|
+
protocol="HTTP",
|
2471
|
+
timeout_sec=10,
|
2472
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
2473
|
+
health_checks=default.id)
|
2474
|
+
mirror = gcp.compute.RegionBackendService("mirror",
|
2475
|
+
region="us-central1",
|
2476
|
+
name="mirror",
|
2477
|
+
port_name="http",
|
2478
|
+
protocol="HTTP",
|
2479
|
+
timeout_sec=10,
|
2480
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
2481
|
+
health_checks=default.id)
|
2482
|
+
regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
|
2483
|
+
region="us-central1",
|
2484
|
+
name="regionurlmap",
|
2485
|
+
description="Test for path matcher default route action mirror percent",
|
2486
|
+
default_service=home.id,
|
2487
|
+
host_rules=[{
|
2488
|
+
"hosts": ["mysite.com"],
|
2489
|
+
"path_matcher": "allpaths",
|
2490
|
+
}],
|
2491
|
+
path_matchers=[{
|
2492
|
+
"name": "allpaths",
|
2493
|
+
"default_service": home.id,
|
2494
|
+
"default_route_action": {
|
2495
|
+
"request_mirror_policy": {
|
2496
|
+
"backend_service": mirror.id,
|
2497
|
+
"mirror_percent": 75,
|
2498
|
+
},
|
2499
|
+
},
|
2500
|
+
}])
|
2501
|
+
```
|
2502
|
+
### Region Url Map Route Rule Mirror Percent
|
2503
|
+
|
2504
|
+
```python
|
2505
|
+
import pulumi
|
2506
|
+
import pulumi_gcp as gcp
|
2507
|
+
|
2508
|
+
default = gcp.compute.RegionHealthCheck("default",
|
2509
|
+
region="us-central1",
|
2510
|
+
name="health-check",
|
2511
|
+
http_health_check={
|
2512
|
+
"port": 80,
|
2513
|
+
})
|
2514
|
+
home = gcp.compute.RegionBackendService("home",
|
2515
|
+
region="us-central1",
|
2516
|
+
name="home",
|
2517
|
+
port_name="http",
|
2518
|
+
protocol="HTTP",
|
2519
|
+
timeout_sec=10,
|
2520
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
2521
|
+
health_checks=default.id)
|
2522
|
+
mirror = gcp.compute.RegionBackendService("mirror",
|
2523
|
+
region="us-central1",
|
2524
|
+
name="mirror",
|
2525
|
+
port_name="http",
|
2526
|
+
protocol="HTTP",
|
2527
|
+
timeout_sec=10,
|
2528
|
+
load_balancing_scheme="INTERNAL_MANAGED",
|
2529
|
+
health_checks=default.id)
|
2530
|
+
regionurlmap = gcp.compute.RegionUrlMap("regionurlmap",
|
2531
|
+
region="us-central1",
|
2532
|
+
name="regionurlmap",
|
2533
|
+
description="Test for path rule route action mirror percent",
|
2534
|
+
default_service=home.id,
|
2535
|
+
host_rules=[{
|
2536
|
+
"hosts": ["mysite.com"],
|
2537
|
+
"path_matcher": "allpaths",
|
2538
|
+
}],
|
2539
|
+
path_matchers=[{
|
2540
|
+
"name": "allpaths",
|
2541
|
+
"default_service": home.id,
|
2542
|
+
"path_rules": [{
|
2543
|
+
"paths": ["/home"],
|
2544
|
+
"service": home.id,
|
2545
|
+
"route_action": {
|
2546
|
+
"request_mirror_policy": {
|
2547
|
+
"backend_service": mirror.id,
|
2548
|
+
"mirror_percent": 25,
|
2549
|
+
},
|
2550
|
+
},
|
2551
|
+
}],
|
2552
|
+
}])
|
2553
|
+
```
|
2162
2554
|
|
2163
2555
|
## Import
|
2164
2556
|
|
@@ -587,7 +587,7 @@ class Reservation(pulumi.CustomResource):
|
|
587
587
|
my_image = gcp.compute.get_image(family="debian-11",
|
588
588
|
project="debian-cloud")
|
589
589
|
foobar = gcp.compute.InstanceTemplate("foobar",
|
590
|
-
name="
|
590
|
+
name="instance-template",
|
591
591
|
machine_type="n2-standard-2",
|
592
592
|
can_ip_forward=False,
|
593
593
|
tags=[
|
@@ -636,7 +636,7 @@ class Reservation(pulumi.CustomResource):
|
|
636
636
|
my_image = gcp.compute.get_image(family="debian-11",
|
637
637
|
project="debian-cloud")
|
638
638
|
foobar = gcp.compute.InstanceTemplate("foobar",
|
639
|
-
name="
|
639
|
+
name="instance-template",
|
640
640
|
machine_type="g2-standard-4",
|
641
641
|
can_ip_forward=False,
|
642
642
|
tags=[
|
@@ -807,7 +807,7 @@ class Reservation(pulumi.CustomResource):
|
|
807
807
|
my_image = gcp.compute.get_image(family="debian-11",
|
808
808
|
project="debian-cloud")
|
809
809
|
foobar = gcp.compute.InstanceTemplate("foobar",
|
810
|
-
name="
|
810
|
+
name="instance-template",
|
811
811
|
machine_type="n2-standard-2",
|
812
812
|
can_ip_forward=False,
|
813
813
|
tags=[
|
@@ -856,7 +856,7 @@ class Reservation(pulumi.CustomResource):
|
|
856
856
|
my_image = gcp.compute.get_image(family="debian-11",
|
857
857
|
project="debian-cloud")
|
858
858
|
foobar = gcp.compute.InstanceTemplate("foobar",
|
859
|
-
name="
|
859
|
+
name="instance-template",
|
860
860
|
machine_type="g2-standard-4",
|
861
861
|
can_ip_forward=False,
|
862
862
|
tags=[
|
pulumi_gcp/compute/router.py
CHANGED
@@ -27,6 +27,7 @@ class RouterArgs:
|
|
27
27
|
encrypted_interconnect_router: Optional[pulumi.Input[_builtins.bool]] = None,
|
28
28
|
md5_authentication_keys: Optional[pulumi.Input['RouterMd5AuthenticationKeysArgs']] = None,
|
29
29
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
30
|
+
params: Optional[pulumi.Input['RouterParamsArgs']] = None,
|
30
31
|
project: Optional[pulumi.Input[_builtins.str]] = None,
|
31
32
|
region: Optional[pulumi.Input[_builtins.str]] = None):
|
32
33
|
"""
|
@@ -45,6 +46,8 @@ class RouterArgs:
|
|
45
46
|
which means the first character must be a lowercase letter, and all
|
46
47
|
following characters must be a dash, lowercase letter, or digit,
|
47
48
|
except the last character, which cannot be a dash.
|
49
|
+
:param pulumi.Input['RouterParamsArgs'] params: Additional params passed with the request, but not persisted as part of resource payload
|
50
|
+
Structure is documented below.
|
48
51
|
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
49
52
|
If it is not provided, the provider project is used.
|
50
53
|
:param pulumi.Input[_builtins.str] region: Region where the router resides.
|
@@ -60,6 +63,8 @@ class RouterArgs:
|
|
60
63
|
pulumi.set(__self__, "md5_authentication_keys", md5_authentication_keys)
|
61
64
|
if name is not None:
|
62
65
|
pulumi.set(__self__, "name", name)
|
66
|
+
if params is not None:
|
67
|
+
pulumi.set(__self__, "params", params)
|
63
68
|
if project is not None:
|
64
69
|
pulumi.set(__self__, "project", project)
|
65
70
|
if region is not None:
|
@@ -145,6 +150,19 @@ class RouterArgs:
|
|
145
150
|
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
146
151
|
pulumi.set(self, "name", value)
|
147
152
|
|
153
|
+
@_builtins.property
|
154
|
+
@pulumi.getter
|
155
|
+
def params(self) -> Optional[pulumi.Input['RouterParamsArgs']]:
|
156
|
+
"""
|
157
|
+
Additional params passed with the request, but not persisted as part of resource payload
|
158
|
+
Structure is documented below.
|
159
|
+
"""
|
160
|
+
return pulumi.get(self, "params")
|
161
|
+
|
162
|
+
@params.setter
|
163
|
+
def params(self, value: Optional[pulumi.Input['RouterParamsArgs']]):
|
164
|
+
pulumi.set(self, "params", value)
|
165
|
+
|
148
166
|
@_builtins.property
|
149
167
|
@pulumi.getter
|
150
168
|
def project(self) -> Optional[pulumi.Input[_builtins.str]]:
|
@@ -181,6 +199,7 @@ class _RouterState:
|
|
181
199
|
md5_authentication_keys: Optional[pulumi.Input['RouterMd5AuthenticationKeysArgs']] = None,
|
182
200
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
183
201
|
network: Optional[pulumi.Input[_builtins.str]] = None,
|
202
|
+
params: Optional[pulumi.Input['RouterParamsArgs']] = None,
|
184
203
|
project: Optional[pulumi.Input[_builtins.str]] = None,
|
185
204
|
region: Optional[pulumi.Input[_builtins.str]] = None,
|
186
205
|
self_link: Optional[pulumi.Input[_builtins.str]] = None):
|
@@ -201,6 +220,8 @@ class _RouterState:
|
|
201
220
|
following characters must be a dash, lowercase letter, or digit,
|
202
221
|
except the last character, which cannot be a dash.
|
203
222
|
:param pulumi.Input[_builtins.str] network: A reference to the network to which this router belongs.
|
223
|
+
:param pulumi.Input['RouterParamsArgs'] params: Additional params passed with the request, but not persisted as part of resource payload
|
224
|
+
Structure is documented below.
|
204
225
|
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
205
226
|
If it is not provided, the provider project is used.
|
206
227
|
:param pulumi.Input[_builtins.str] region: Region where the router resides.
|
@@ -220,6 +241,8 @@ class _RouterState:
|
|
220
241
|
pulumi.set(__self__, "name", name)
|
221
242
|
if network is not None:
|
222
243
|
pulumi.set(__self__, "network", network)
|
244
|
+
if params is not None:
|
245
|
+
pulumi.set(__self__, "params", params)
|
223
246
|
if project is not None:
|
224
247
|
pulumi.set(__self__, "project", project)
|
225
248
|
if region is not None:
|
@@ -319,6 +342,19 @@ class _RouterState:
|
|
319
342
|
def network(self, value: Optional[pulumi.Input[_builtins.str]]):
|
320
343
|
pulumi.set(self, "network", value)
|
321
344
|
|
345
|
+
@_builtins.property
|
346
|
+
@pulumi.getter
|
347
|
+
def params(self) -> Optional[pulumi.Input['RouterParamsArgs']]:
|
348
|
+
"""
|
349
|
+
Additional params passed with the request, but not persisted as part of resource payload
|
350
|
+
Structure is documented below.
|
351
|
+
"""
|
352
|
+
return pulumi.get(self, "params")
|
353
|
+
|
354
|
+
@params.setter
|
355
|
+
def params(self, value: Optional[pulumi.Input['RouterParamsArgs']]):
|
356
|
+
pulumi.set(self, "params", value)
|
357
|
+
|
322
358
|
@_builtins.property
|
323
359
|
@pulumi.getter
|
324
360
|
def project(self) -> Optional[pulumi.Input[_builtins.str]]:
|
@@ -369,6 +405,7 @@ class Router(pulumi.CustomResource):
|
|
369
405
|
md5_authentication_keys: Optional[pulumi.Input[Union['RouterMd5AuthenticationKeysArgs', 'RouterMd5AuthenticationKeysArgsDict']]] = None,
|
370
406
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
371
407
|
network: Optional[pulumi.Input[_builtins.str]] = None,
|
408
|
+
params: Optional[pulumi.Input[Union['RouterParamsArgs', 'RouterParamsArgsDict']]] = None,
|
372
409
|
project: Optional[pulumi.Input[_builtins.str]] = None,
|
373
410
|
region: Optional[pulumi.Input[_builtins.str]] = None,
|
374
411
|
__props__=None):
|
@@ -473,6 +510,8 @@ class Router(pulumi.CustomResource):
|
|
473
510
|
following characters must be a dash, lowercase letter, or digit,
|
474
511
|
except the last character, which cannot be a dash.
|
475
512
|
:param pulumi.Input[_builtins.str] network: A reference to the network to which this router belongs.
|
513
|
+
:param pulumi.Input[Union['RouterParamsArgs', 'RouterParamsArgsDict']] params: Additional params passed with the request, but not persisted as part of resource payload
|
514
|
+
Structure is documented below.
|
476
515
|
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
477
516
|
If it is not provided, the provider project is used.
|
478
517
|
:param pulumi.Input[_builtins.str] region: Region where the router resides.
|
@@ -589,6 +628,7 @@ class Router(pulumi.CustomResource):
|
|
589
628
|
md5_authentication_keys: Optional[pulumi.Input[Union['RouterMd5AuthenticationKeysArgs', 'RouterMd5AuthenticationKeysArgsDict']]] = None,
|
590
629
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
591
630
|
network: Optional[pulumi.Input[_builtins.str]] = None,
|
631
|
+
params: Optional[pulumi.Input[Union['RouterParamsArgs', 'RouterParamsArgsDict']]] = None,
|
592
632
|
project: Optional[pulumi.Input[_builtins.str]] = None,
|
593
633
|
region: Optional[pulumi.Input[_builtins.str]] = None,
|
594
634
|
__props__=None):
|
@@ -608,6 +648,7 @@ class Router(pulumi.CustomResource):
|
|
608
648
|
if network is None and not opts.urn:
|
609
649
|
raise TypeError("Missing required property 'network'")
|
610
650
|
__props__.__dict__["network"] = network
|
651
|
+
__props__.__dict__["params"] = params
|
611
652
|
__props__.__dict__["project"] = project
|
612
653
|
__props__.__dict__["region"] = region
|
613
654
|
__props__.__dict__["creation_timestamp"] = None
|
@@ -629,6 +670,7 @@ class Router(pulumi.CustomResource):
|
|
629
670
|
md5_authentication_keys: Optional[pulumi.Input[Union['RouterMd5AuthenticationKeysArgs', 'RouterMd5AuthenticationKeysArgsDict']]] = None,
|
630
671
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
631
672
|
network: Optional[pulumi.Input[_builtins.str]] = None,
|
673
|
+
params: Optional[pulumi.Input[Union['RouterParamsArgs', 'RouterParamsArgsDict']]] = None,
|
632
674
|
project: Optional[pulumi.Input[_builtins.str]] = None,
|
633
675
|
region: Optional[pulumi.Input[_builtins.str]] = None,
|
634
676
|
self_link: Optional[pulumi.Input[_builtins.str]] = None) -> 'Router':
|
@@ -654,6 +696,8 @@ class Router(pulumi.CustomResource):
|
|
654
696
|
following characters must be a dash, lowercase letter, or digit,
|
655
697
|
except the last character, which cannot be a dash.
|
656
698
|
:param pulumi.Input[_builtins.str] network: A reference to the network to which this router belongs.
|
699
|
+
:param pulumi.Input[Union['RouterParamsArgs', 'RouterParamsArgsDict']] params: Additional params passed with the request, but not persisted as part of resource payload
|
700
|
+
Structure is documented below.
|
657
701
|
:param pulumi.Input[_builtins.str] project: The ID of the project in which the resource belongs.
|
658
702
|
If it is not provided, the provider project is used.
|
659
703
|
:param pulumi.Input[_builtins.str] region: Region where the router resides.
|
@@ -670,6 +714,7 @@ class Router(pulumi.CustomResource):
|
|
670
714
|
__props__.__dict__["md5_authentication_keys"] = md5_authentication_keys
|
671
715
|
__props__.__dict__["name"] = name
|
672
716
|
__props__.__dict__["network"] = network
|
717
|
+
__props__.__dict__["params"] = params
|
673
718
|
__props__.__dict__["project"] = project
|
674
719
|
__props__.__dict__["region"] = region
|
675
720
|
__props__.__dict__["self_link"] = self_link
|
@@ -739,6 +784,15 @@ class Router(pulumi.CustomResource):
|
|
739
784
|
"""
|
740
785
|
return pulumi.get(self, "network")
|
741
786
|
|
787
|
+
@_builtins.property
|
788
|
+
@pulumi.getter
|
789
|
+
def params(self) -> pulumi.Output[Optional['outputs.RouterParams']]:
|
790
|
+
"""
|
791
|
+
Additional params passed with the request, but not persisted as part of resource payload
|
792
|
+
Structure is documented below.
|
793
|
+
"""
|
794
|
+
return pulumi.get(self, "params")
|
795
|
+
|
742
796
|
@_builtins.property
|
743
797
|
@pulumi.getter
|
744
798
|
def project(self) -> pulumi.Output[_builtins.str]:
|