pulumi-harness 0.9.0a1760076204__py3-none-any.whl → 0.10.0a1764049859__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_harness/__init__.py +24 -0
- pulumi_harness/autostopping/__init__.py +2 -0
- pulumi_harness/autostopping/_inputs.py +1698 -622
- pulumi_harness/autostopping/get_aws_alb.py +4 -0
- pulumi_harness/autostopping/get_aws_proxy.py +4 -0
- pulumi_harness/autostopping/get_azure_gateway.py +4 -0
- pulumi_harness/autostopping/get_azure_proxy.py +4 -0
- pulumi_harness/autostopping/get_gcp_proxy.py +4 -0
- pulumi_harness/autostopping/get_rule_ecs.py +4 -0
- pulumi_harness/autostopping/get_rule_rds.py +4 -0
- pulumi_harness/autostopping/get_rule_scale_group.py +254 -0
- pulumi_harness/autostopping/get_rule_vm.py +4 -0
- pulumi_harness/autostopping/outputs.py +727 -0
- pulumi_harness/autostopping/rule_ecs.py +58 -0
- pulumi_harness/autostopping/rule_scale_group.py +592 -0
- pulumi_harness/cluster/get_orchestrator.py +4 -0
- pulumi_harness/cluster/get_orchestrator_config.py +21 -1
- pulumi_harness/cluster/orchestrator.py +2 -28
- pulumi_harness/cluster/orchestrator_config.py +49 -0
- pulumi_harness/platform/__init__.py +5 -0
- pulumi_harness/platform/_inputs.py +5804 -371
- pulumi_harness/platform/connector_rancher.py +36 -0
- pulumi_harness/platform/db_instance.py +49 -49
- pulumi_harness/platform/db_schema.py +243 -0
- pulumi_harness/platform/environment.py +166 -0
- pulumi_harness/platform/environment_group.py +10 -10
- pulumi_harness/platform/gcp_secret_manager_connector.py +94 -0
- pulumi_harness/platform/get_db_instance.py +21 -21
- pulumi_harness/platform/get_db_schema.py +21 -1
- pulumi_harness/platform/get_default_notification_template_set.py +31 -1
- pulumi_harness/platform/get_gitops_agent_operator_yaml.py +4 -0
- pulumi_harness/platform/get_gitops_app_project_mapping.py +4 -0
- pulumi_harness/platform/get_gitops_applications.py +4 -0
- pulumi_harness/platform/get_gitops_repo_cert.py +4 -0
- pulumi_harness/platform/get_infra_module.py +192 -6
- pulumi_harness/platform/get_infra_module_testing.py +521 -0
- pulumi_harness/platform/get_infra_modules.py +103 -0
- pulumi_harness/platform/get_manual_freeze.py +4 -0
- pulumi_harness/platform/get_pipeline_central_notification_rule.py +2 -26
- pulumi_harness/platform/get_secret_winrm.py +263 -0
- pulumi_harness/platform/git_ops_applications.py +0 -4
- pulumi_harness/platform/gitops_applicationset.py +308 -6
- pulumi_harness/platform/infra_module_testing.py +1134 -0
- pulumi_harness/platform/infrastructure.py +82 -0
- pulumi_harness/platform/outputs.py +4467 -251
- pulumi_harness/platform/pipeline.py +2 -2
- pulumi_harness/platform/pipeline_central_notification_rule.py +187 -0
- pulumi_harness/platform/secret_winrm.py +1082 -0
- pulumi_harness/platform/service.py +150 -0
- pulumi_harness/platform/triggers.py +6 -4
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/METADATA +1 -1
- {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/RECORD +55 -48
- {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/WHEEL +0 -0
- {pulumi_harness-0.9.0a1760076204.dist-info → pulumi_harness-0.10.0a1764049859.dist-info}/top_level.txt +0 -0
|
@@ -26,6 +26,7 @@ class DbSchemaArgs:
|
|
|
26
26
|
project_id: pulumi.Input[_builtins.str],
|
|
27
27
|
changelog_script: Optional[pulumi.Input['DbSchemaChangelogScriptArgs']] = None,
|
|
28
28
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
migration_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
30
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
31
|
schema_source: Optional[pulumi.Input['DbSchemaSchemaSourceArgs']] = None,
|
|
31
32
|
service: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -38,6 +39,7 @@ class DbSchemaArgs:
|
|
|
38
39
|
:param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
|
|
39
40
|
:param pulumi.Input['DbSchemaChangelogScriptArgs'] changelog_script: Configuration to clone changeSets using script
|
|
40
41
|
:param pulumi.Input[_builtins.str] description: Description of the resource.
|
|
42
|
+
:param pulumi.Input[_builtins.str] migration_type: DB migration tool type. Valid values are any one of: Liquibase, Flyway
|
|
41
43
|
:param pulumi.Input[_builtins.str] name: Name of the resource.
|
|
42
44
|
:param pulumi.Input['DbSchemaSchemaSourceArgs'] schema_source: Provides a connector and path at which to find the database schema representation
|
|
43
45
|
:param pulumi.Input[_builtins.str] service: The service associated with schema
|
|
@@ -51,6 +53,8 @@ class DbSchemaArgs:
|
|
|
51
53
|
pulumi.set(__self__, "changelog_script", changelog_script)
|
|
52
54
|
if description is not None:
|
|
53
55
|
pulumi.set(__self__, "description", description)
|
|
56
|
+
if migration_type is not None:
|
|
57
|
+
pulumi.set(__self__, "migration_type", migration_type)
|
|
54
58
|
if name is not None:
|
|
55
59
|
pulumi.set(__self__, "name", name)
|
|
56
60
|
if schema_source is not None:
|
|
@@ -122,6 +126,18 @@ class DbSchemaArgs:
|
|
|
122
126
|
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
123
127
|
pulumi.set(self, "description", value)
|
|
124
128
|
|
|
129
|
+
@_builtins.property
|
|
130
|
+
@pulumi.getter(name="migrationType")
|
|
131
|
+
def migration_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
132
|
+
"""
|
|
133
|
+
DB migration tool type. Valid values are any one of: Liquibase, Flyway
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "migration_type")
|
|
136
|
+
|
|
137
|
+
@migration_type.setter
|
|
138
|
+
def migration_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
139
|
+
pulumi.set(self, "migration_type", value)
|
|
140
|
+
|
|
125
141
|
@_builtins.property
|
|
126
142
|
@pulumi.getter
|
|
127
143
|
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -189,6 +205,7 @@ class _DbSchemaState:
|
|
|
189
205
|
changelog_script: Optional[pulumi.Input['DbSchemaChangelogScriptArgs']] = None,
|
|
190
206
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
191
207
|
identifier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
208
|
+
migration_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
192
209
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
193
210
|
org_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
194
211
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -201,6 +218,7 @@ class _DbSchemaState:
|
|
|
201
218
|
:param pulumi.Input['DbSchemaChangelogScriptArgs'] changelog_script: Configuration to clone changeSets using script
|
|
202
219
|
:param pulumi.Input[_builtins.str] description: Description of the resource.
|
|
203
220
|
:param pulumi.Input[_builtins.str] identifier: Unique identifier of the resource.
|
|
221
|
+
:param pulumi.Input[_builtins.str] migration_type: DB migration tool type. Valid values are any one of: Liquibase, Flyway
|
|
204
222
|
:param pulumi.Input[_builtins.str] name: Name of the resource.
|
|
205
223
|
:param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
|
|
206
224
|
:param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
|
|
@@ -215,6 +233,8 @@ class _DbSchemaState:
|
|
|
215
233
|
pulumi.set(__self__, "description", description)
|
|
216
234
|
if identifier is not None:
|
|
217
235
|
pulumi.set(__self__, "identifier", identifier)
|
|
236
|
+
if migration_type is not None:
|
|
237
|
+
pulumi.set(__self__, "migration_type", migration_type)
|
|
218
238
|
if name is not None:
|
|
219
239
|
pulumi.set(__self__, "name", name)
|
|
220
240
|
if org_id is not None:
|
|
@@ -266,6 +286,18 @@ class _DbSchemaState:
|
|
|
266
286
|
def identifier(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
267
287
|
pulumi.set(self, "identifier", value)
|
|
268
288
|
|
|
289
|
+
@_builtins.property
|
|
290
|
+
@pulumi.getter(name="migrationType")
|
|
291
|
+
def migration_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
292
|
+
"""
|
|
293
|
+
DB migration tool type. Valid values are any one of: Liquibase, Flyway
|
|
294
|
+
"""
|
|
295
|
+
return pulumi.get(self, "migration_type")
|
|
296
|
+
|
|
297
|
+
@migration_type.setter
|
|
298
|
+
def migration_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
299
|
+
pulumi.set(self, "migration_type", value)
|
|
300
|
+
|
|
269
301
|
@_builtins.property
|
|
270
302
|
@pulumi.getter
|
|
271
303
|
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -360,6 +392,7 @@ class DbSchema(pulumi.CustomResource):
|
|
|
360
392
|
changelog_script: Optional[pulumi.Input[Union['DbSchemaChangelogScriptArgs', 'DbSchemaChangelogScriptArgsDict']]] = None,
|
|
361
393
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
362
394
|
identifier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
395
|
+
migration_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
363
396
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
364
397
|
org_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
365
398
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -371,6 +404,104 @@ class DbSchema(pulumi.CustomResource):
|
|
|
371
404
|
"""
|
|
372
405
|
Resource for creating a Harness DBDevOps Schema.
|
|
373
406
|
|
|
407
|
+
## Example Usage
|
|
408
|
+
|
|
409
|
+
```python
|
|
410
|
+
import pulumi
|
|
411
|
+
import pulumi_harness as harness
|
|
412
|
+
|
|
413
|
+
default_type_test = harness.platform.DbSchema("default_type_test",
|
|
414
|
+
identifier="identifier",
|
|
415
|
+
org_id="org_id",
|
|
416
|
+
project_id="project_id",
|
|
417
|
+
name="name",
|
|
418
|
+
service="service1",
|
|
419
|
+
tags=[
|
|
420
|
+
"foo:bar",
|
|
421
|
+
"bar:foo",
|
|
422
|
+
],
|
|
423
|
+
schema_source={
|
|
424
|
+
"connector": "gitConnector",
|
|
425
|
+
"repo": "TestRepo",
|
|
426
|
+
"location": "db/example-changelog.yaml",
|
|
427
|
+
"archive_path": "path/to/archive.zip",
|
|
428
|
+
})
|
|
429
|
+
liquibase_repository_test = harness.platform.DbSchema("liquibase_repository_test",
|
|
430
|
+
identifier="identifier",
|
|
431
|
+
org_id="org_id",
|
|
432
|
+
project_id="project_id",
|
|
433
|
+
name="name",
|
|
434
|
+
service="service1",
|
|
435
|
+
type="Repository",
|
|
436
|
+
migration_type="Liquibase",
|
|
437
|
+
tags=[
|
|
438
|
+
"foo:bar",
|
|
439
|
+
"bar:foo",
|
|
440
|
+
],
|
|
441
|
+
schema_source={
|
|
442
|
+
"connector": "gitConnector",
|
|
443
|
+
"repo": "TestRepo",
|
|
444
|
+
"location": "db/example-changelog.yaml",
|
|
445
|
+
"archive_path": "path/to/archive.zip",
|
|
446
|
+
})
|
|
447
|
+
liquibase_script_test = harness.platform.DbSchema("liquibase_script_test",
|
|
448
|
+
identifier="identifier",
|
|
449
|
+
org_id="org_id",
|
|
450
|
+
project_id="project_id",
|
|
451
|
+
name="name",
|
|
452
|
+
migration_type="Liquibase",
|
|
453
|
+
service="service1",
|
|
454
|
+
type="Script",
|
|
455
|
+
tags=[
|
|
456
|
+
"foo:bar",
|
|
457
|
+
"bar:foo",
|
|
458
|
+
],
|
|
459
|
+
changelog_script={
|
|
460
|
+
"image": "plugins/image",
|
|
461
|
+
"command": "echo \\\\\\"hello dbops\\\\\\"",
|
|
462
|
+
"shell": "sh/bash",
|
|
463
|
+
"location": "db/example-changelog.yaml",
|
|
464
|
+
})
|
|
465
|
+
flyway_repository_test = harness.platform.DbSchema("flyway_repository_test",
|
|
466
|
+
identifier="identifier",
|
|
467
|
+
org_id="org_id",
|
|
468
|
+
project_id="project_id",
|
|
469
|
+
name="name",
|
|
470
|
+
service="service1",
|
|
471
|
+
type="Repository",
|
|
472
|
+
migration_type="Flyway",
|
|
473
|
+
tags=[
|
|
474
|
+
"foo:bar",
|
|
475
|
+
"bar:foo",
|
|
476
|
+
],
|
|
477
|
+
schema_source={
|
|
478
|
+
"connector": "gitConnector",
|
|
479
|
+
"repo": "TestRepo",
|
|
480
|
+
"location": "db/flyway/migrations",
|
|
481
|
+
"toml": "db/flyway.toml",
|
|
482
|
+
"archive_path": "path/to/archive.zip",
|
|
483
|
+
})
|
|
484
|
+
flyway_script_test = harness.platform.DbSchema("flyway_script_test",
|
|
485
|
+
identifier="identifier",
|
|
486
|
+
org_id="org_id",
|
|
487
|
+
project_id="project_id",
|
|
488
|
+
name="name",
|
|
489
|
+
migration_type="Flyway",
|
|
490
|
+
service="service1",
|
|
491
|
+
type="Script",
|
|
492
|
+
tags=[
|
|
493
|
+
"foo:bar",
|
|
494
|
+
"bar:foo",
|
|
495
|
+
],
|
|
496
|
+
changelog_script={
|
|
497
|
+
"image": "plugins/image",
|
|
498
|
+
"command": "echo \\\\\\"hello dbops\\\\\\"",
|
|
499
|
+
"shell": "sh/bash",
|
|
500
|
+
"location": "db/flyway/migrations",
|
|
501
|
+
"toml": "db/flyway.toml",
|
|
502
|
+
})
|
|
503
|
+
```
|
|
504
|
+
|
|
374
505
|
## Import
|
|
375
506
|
|
|
376
507
|
The `pulumi import` command can be used, for example:
|
|
@@ -386,6 +517,7 @@ class DbSchema(pulumi.CustomResource):
|
|
|
386
517
|
:param pulumi.Input[Union['DbSchemaChangelogScriptArgs', 'DbSchemaChangelogScriptArgsDict']] changelog_script: Configuration to clone changeSets using script
|
|
387
518
|
:param pulumi.Input[_builtins.str] description: Description of the resource.
|
|
388
519
|
:param pulumi.Input[_builtins.str] identifier: Unique identifier of the resource.
|
|
520
|
+
:param pulumi.Input[_builtins.str] migration_type: DB migration tool type. Valid values are any one of: Liquibase, Flyway
|
|
389
521
|
:param pulumi.Input[_builtins.str] name: Name of the resource.
|
|
390
522
|
:param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
|
|
391
523
|
:param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
|
|
@@ -403,6 +535,104 @@ class DbSchema(pulumi.CustomResource):
|
|
|
403
535
|
"""
|
|
404
536
|
Resource for creating a Harness DBDevOps Schema.
|
|
405
537
|
|
|
538
|
+
## Example Usage
|
|
539
|
+
|
|
540
|
+
```python
|
|
541
|
+
import pulumi
|
|
542
|
+
import pulumi_harness as harness
|
|
543
|
+
|
|
544
|
+
default_type_test = harness.platform.DbSchema("default_type_test",
|
|
545
|
+
identifier="identifier",
|
|
546
|
+
org_id="org_id",
|
|
547
|
+
project_id="project_id",
|
|
548
|
+
name="name",
|
|
549
|
+
service="service1",
|
|
550
|
+
tags=[
|
|
551
|
+
"foo:bar",
|
|
552
|
+
"bar:foo",
|
|
553
|
+
],
|
|
554
|
+
schema_source={
|
|
555
|
+
"connector": "gitConnector",
|
|
556
|
+
"repo": "TestRepo",
|
|
557
|
+
"location": "db/example-changelog.yaml",
|
|
558
|
+
"archive_path": "path/to/archive.zip",
|
|
559
|
+
})
|
|
560
|
+
liquibase_repository_test = harness.platform.DbSchema("liquibase_repository_test",
|
|
561
|
+
identifier="identifier",
|
|
562
|
+
org_id="org_id",
|
|
563
|
+
project_id="project_id",
|
|
564
|
+
name="name",
|
|
565
|
+
service="service1",
|
|
566
|
+
type="Repository",
|
|
567
|
+
migration_type="Liquibase",
|
|
568
|
+
tags=[
|
|
569
|
+
"foo:bar",
|
|
570
|
+
"bar:foo",
|
|
571
|
+
],
|
|
572
|
+
schema_source={
|
|
573
|
+
"connector": "gitConnector",
|
|
574
|
+
"repo": "TestRepo",
|
|
575
|
+
"location": "db/example-changelog.yaml",
|
|
576
|
+
"archive_path": "path/to/archive.zip",
|
|
577
|
+
})
|
|
578
|
+
liquibase_script_test = harness.platform.DbSchema("liquibase_script_test",
|
|
579
|
+
identifier="identifier",
|
|
580
|
+
org_id="org_id",
|
|
581
|
+
project_id="project_id",
|
|
582
|
+
name="name",
|
|
583
|
+
migration_type="Liquibase",
|
|
584
|
+
service="service1",
|
|
585
|
+
type="Script",
|
|
586
|
+
tags=[
|
|
587
|
+
"foo:bar",
|
|
588
|
+
"bar:foo",
|
|
589
|
+
],
|
|
590
|
+
changelog_script={
|
|
591
|
+
"image": "plugins/image",
|
|
592
|
+
"command": "echo \\\\\\"hello dbops\\\\\\"",
|
|
593
|
+
"shell": "sh/bash",
|
|
594
|
+
"location": "db/example-changelog.yaml",
|
|
595
|
+
})
|
|
596
|
+
flyway_repository_test = harness.platform.DbSchema("flyway_repository_test",
|
|
597
|
+
identifier="identifier",
|
|
598
|
+
org_id="org_id",
|
|
599
|
+
project_id="project_id",
|
|
600
|
+
name="name",
|
|
601
|
+
service="service1",
|
|
602
|
+
type="Repository",
|
|
603
|
+
migration_type="Flyway",
|
|
604
|
+
tags=[
|
|
605
|
+
"foo:bar",
|
|
606
|
+
"bar:foo",
|
|
607
|
+
],
|
|
608
|
+
schema_source={
|
|
609
|
+
"connector": "gitConnector",
|
|
610
|
+
"repo": "TestRepo",
|
|
611
|
+
"location": "db/flyway/migrations",
|
|
612
|
+
"toml": "db/flyway.toml",
|
|
613
|
+
"archive_path": "path/to/archive.zip",
|
|
614
|
+
})
|
|
615
|
+
flyway_script_test = harness.platform.DbSchema("flyway_script_test",
|
|
616
|
+
identifier="identifier",
|
|
617
|
+
org_id="org_id",
|
|
618
|
+
project_id="project_id",
|
|
619
|
+
name="name",
|
|
620
|
+
migration_type="Flyway",
|
|
621
|
+
service="service1",
|
|
622
|
+
type="Script",
|
|
623
|
+
tags=[
|
|
624
|
+
"foo:bar",
|
|
625
|
+
"bar:foo",
|
|
626
|
+
],
|
|
627
|
+
changelog_script={
|
|
628
|
+
"image": "plugins/image",
|
|
629
|
+
"command": "echo \\\\\\"hello dbops\\\\\\"",
|
|
630
|
+
"shell": "sh/bash",
|
|
631
|
+
"location": "db/flyway/migrations",
|
|
632
|
+
"toml": "db/flyway.toml",
|
|
633
|
+
})
|
|
634
|
+
```
|
|
635
|
+
|
|
406
636
|
## Import
|
|
407
637
|
|
|
408
638
|
The `pulumi import` command can be used, for example:
|
|
@@ -431,6 +661,7 @@ class DbSchema(pulumi.CustomResource):
|
|
|
431
661
|
changelog_script: Optional[pulumi.Input[Union['DbSchemaChangelogScriptArgs', 'DbSchemaChangelogScriptArgsDict']]] = None,
|
|
432
662
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
433
663
|
identifier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
664
|
+
migration_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
434
665
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
435
666
|
org_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
436
667
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -452,6 +683,7 @@ class DbSchema(pulumi.CustomResource):
|
|
|
452
683
|
if identifier is None and not opts.urn:
|
|
453
684
|
raise TypeError("Missing required property 'identifier'")
|
|
454
685
|
__props__.__dict__["identifier"] = identifier
|
|
686
|
+
__props__.__dict__["migration_type"] = migration_type
|
|
455
687
|
__props__.__dict__["name"] = name
|
|
456
688
|
if org_id is None and not opts.urn:
|
|
457
689
|
raise TypeError("Missing required property 'org_id'")
|
|
@@ -476,6 +708,7 @@ class DbSchema(pulumi.CustomResource):
|
|
|
476
708
|
changelog_script: Optional[pulumi.Input[Union['DbSchemaChangelogScriptArgs', 'DbSchemaChangelogScriptArgsDict']]] = None,
|
|
477
709
|
description: Optional[pulumi.Input[_builtins.str]] = None,
|
|
478
710
|
identifier: Optional[pulumi.Input[_builtins.str]] = None,
|
|
711
|
+
migration_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
479
712
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
480
713
|
org_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
481
714
|
project_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
@@ -493,6 +726,7 @@ class DbSchema(pulumi.CustomResource):
|
|
|
493
726
|
:param pulumi.Input[Union['DbSchemaChangelogScriptArgs', 'DbSchemaChangelogScriptArgsDict']] changelog_script: Configuration to clone changeSets using script
|
|
494
727
|
:param pulumi.Input[_builtins.str] description: Description of the resource.
|
|
495
728
|
:param pulumi.Input[_builtins.str] identifier: Unique identifier of the resource.
|
|
729
|
+
:param pulumi.Input[_builtins.str] migration_type: DB migration tool type. Valid values are any one of: Liquibase, Flyway
|
|
496
730
|
:param pulumi.Input[_builtins.str] name: Name of the resource.
|
|
497
731
|
:param pulumi.Input[_builtins.str] org_id: Unique identifier of the organization.
|
|
498
732
|
:param pulumi.Input[_builtins.str] project_id: Unique identifier of the project.
|
|
@@ -508,6 +742,7 @@ class DbSchema(pulumi.CustomResource):
|
|
|
508
742
|
__props__.__dict__["changelog_script"] = changelog_script
|
|
509
743
|
__props__.__dict__["description"] = description
|
|
510
744
|
__props__.__dict__["identifier"] = identifier
|
|
745
|
+
__props__.__dict__["migration_type"] = migration_type
|
|
511
746
|
__props__.__dict__["name"] = name
|
|
512
747
|
__props__.__dict__["org_id"] = org_id
|
|
513
748
|
__props__.__dict__["project_id"] = project_id
|
|
@@ -541,6 +776,14 @@ class DbSchema(pulumi.CustomResource):
|
|
|
541
776
|
"""
|
|
542
777
|
return pulumi.get(self, "identifier")
|
|
543
778
|
|
|
779
|
+
@_builtins.property
|
|
780
|
+
@pulumi.getter(name="migrationType")
|
|
781
|
+
def migration_type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
782
|
+
"""
|
|
783
|
+
DB migration tool type. Valid values are any one of: Liquibase, Flyway
|
|
784
|
+
"""
|
|
785
|
+
return pulumi.get(self, "migration_type")
|
|
786
|
+
|
|
544
787
|
@_builtins.property
|
|
545
788
|
@pulumi.getter
|
|
546
789
|
def name(self) -> pulumi.Output[_builtins.str]:
|
|
@@ -405,6 +405,89 @@ class Environment(pulumi.CustomResource):
|
|
|
405
405
|
"""
|
|
406
406
|
Resource for creating a Harness environment.
|
|
407
407
|
|
|
408
|
+
## Example Usage
|
|
409
|
+
|
|
410
|
+
```python
|
|
411
|
+
import pulumi
|
|
412
|
+
import pulumi_harness as harness
|
|
413
|
+
|
|
414
|
+
example = harness.platform.Environment("example",
|
|
415
|
+
identifier="identifier",
|
|
416
|
+
name="name",
|
|
417
|
+
org_id="org_id",
|
|
418
|
+
project_id="project_id",
|
|
419
|
+
tags=[
|
|
420
|
+
"foo:bar",
|
|
421
|
+
"bar:foo",
|
|
422
|
+
],
|
|
423
|
+
type="PreProduction",
|
|
424
|
+
git_details={
|
|
425
|
+
"branch_name": "branchName",
|
|
426
|
+
"commit_message": "commitMessage",
|
|
427
|
+
"file_path": "filePath",
|
|
428
|
+
"connector_ref": "connectorRef",
|
|
429
|
+
"store_type": "REMOTE",
|
|
430
|
+
"repo_name": "repoName",
|
|
431
|
+
},
|
|
432
|
+
yaml=\"\"\"environment:
|
|
433
|
+
name: name
|
|
434
|
+
identifier: identifier
|
|
435
|
+
orgIdentifier: org_id
|
|
436
|
+
projectIdentifier: project_id
|
|
437
|
+
type: PreProduction
|
|
438
|
+
tags:
|
|
439
|
+
foo: bar
|
|
440
|
+
bar: foo
|
|
441
|
+
variables:
|
|
442
|
+
- name: envVar1
|
|
443
|
+
type: String
|
|
444
|
+
value: v1
|
|
445
|
+
description: \\"\\"
|
|
446
|
+
- name: envVar2
|
|
447
|
+
type: String
|
|
448
|
+
value: v2
|
|
449
|
+
description: \\"\\"
|
|
450
|
+
overrides:
|
|
451
|
+
manifests:
|
|
452
|
+
- manifest:
|
|
453
|
+
identifier: manifestEnv
|
|
454
|
+
type: Values
|
|
455
|
+
spec:
|
|
456
|
+
store:
|
|
457
|
+
type: Git
|
|
458
|
+
spec:
|
|
459
|
+
connectorRef: <+input>
|
|
460
|
+
gitFetchType: Branch
|
|
461
|
+
paths:
|
|
462
|
+
- file1
|
|
463
|
+
repoName: <+input>
|
|
464
|
+
branch: master
|
|
465
|
+
configFiles:
|
|
466
|
+
- configFile:
|
|
467
|
+
identifier: configFileEnv
|
|
468
|
+
spec:
|
|
469
|
+
store:
|
|
470
|
+
type: Harness
|
|
471
|
+
spec:
|
|
472
|
+
files:
|
|
473
|
+
- account:/Add-ons/svcOverrideTest
|
|
474
|
+
secretFiles: []
|
|
475
|
+
\"\"\")
|
|
476
|
+
### Importing Environment from Git
|
|
477
|
+
test = harness.platform.Environment("test",
|
|
478
|
+
identifier="accEnv",
|
|
479
|
+
name="accEnv",
|
|
480
|
+
type="PreProduction",
|
|
481
|
+
git_details={
|
|
482
|
+
"store_type": "REMOTE",
|
|
483
|
+
"connector_ref": "account.DoNotDeleteGitX",
|
|
484
|
+
"repo_name": "pcf_practice",
|
|
485
|
+
"file_path": ".harness/accountEnvironment.yaml",
|
|
486
|
+
"branch": "main",
|
|
487
|
+
"import_from_git": True,
|
|
488
|
+
})
|
|
489
|
+
```
|
|
490
|
+
|
|
408
491
|
## Import
|
|
409
492
|
|
|
410
493
|
The `pulumi import` command can be used, for example:
|
|
@@ -450,6 +533,89 @@ class Environment(pulumi.CustomResource):
|
|
|
450
533
|
"""
|
|
451
534
|
Resource for creating a Harness environment.
|
|
452
535
|
|
|
536
|
+
## Example Usage
|
|
537
|
+
|
|
538
|
+
```python
|
|
539
|
+
import pulumi
|
|
540
|
+
import pulumi_harness as harness
|
|
541
|
+
|
|
542
|
+
example = harness.platform.Environment("example",
|
|
543
|
+
identifier="identifier",
|
|
544
|
+
name="name",
|
|
545
|
+
org_id="org_id",
|
|
546
|
+
project_id="project_id",
|
|
547
|
+
tags=[
|
|
548
|
+
"foo:bar",
|
|
549
|
+
"bar:foo",
|
|
550
|
+
],
|
|
551
|
+
type="PreProduction",
|
|
552
|
+
git_details={
|
|
553
|
+
"branch_name": "branchName",
|
|
554
|
+
"commit_message": "commitMessage",
|
|
555
|
+
"file_path": "filePath",
|
|
556
|
+
"connector_ref": "connectorRef",
|
|
557
|
+
"store_type": "REMOTE",
|
|
558
|
+
"repo_name": "repoName",
|
|
559
|
+
},
|
|
560
|
+
yaml=\"\"\"environment:
|
|
561
|
+
name: name
|
|
562
|
+
identifier: identifier
|
|
563
|
+
orgIdentifier: org_id
|
|
564
|
+
projectIdentifier: project_id
|
|
565
|
+
type: PreProduction
|
|
566
|
+
tags:
|
|
567
|
+
foo: bar
|
|
568
|
+
bar: foo
|
|
569
|
+
variables:
|
|
570
|
+
- name: envVar1
|
|
571
|
+
type: String
|
|
572
|
+
value: v1
|
|
573
|
+
description: \\"\\"
|
|
574
|
+
- name: envVar2
|
|
575
|
+
type: String
|
|
576
|
+
value: v2
|
|
577
|
+
description: \\"\\"
|
|
578
|
+
overrides:
|
|
579
|
+
manifests:
|
|
580
|
+
- manifest:
|
|
581
|
+
identifier: manifestEnv
|
|
582
|
+
type: Values
|
|
583
|
+
spec:
|
|
584
|
+
store:
|
|
585
|
+
type: Git
|
|
586
|
+
spec:
|
|
587
|
+
connectorRef: <+input>
|
|
588
|
+
gitFetchType: Branch
|
|
589
|
+
paths:
|
|
590
|
+
- file1
|
|
591
|
+
repoName: <+input>
|
|
592
|
+
branch: master
|
|
593
|
+
configFiles:
|
|
594
|
+
- configFile:
|
|
595
|
+
identifier: configFileEnv
|
|
596
|
+
spec:
|
|
597
|
+
store:
|
|
598
|
+
type: Harness
|
|
599
|
+
spec:
|
|
600
|
+
files:
|
|
601
|
+
- account:/Add-ons/svcOverrideTest
|
|
602
|
+
secretFiles: []
|
|
603
|
+
\"\"\")
|
|
604
|
+
### Importing Environment from Git
|
|
605
|
+
test = harness.platform.Environment("test",
|
|
606
|
+
identifier="accEnv",
|
|
607
|
+
name="accEnv",
|
|
608
|
+
type="PreProduction",
|
|
609
|
+
git_details={
|
|
610
|
+
"store_type": "REMOTE",
|
|
611
|
+
"connector_ref": "account.DoNotDeleteGitX",
|
|
612
|
+
"repo_name": "pcf_practice",
|
|
613
|
+
"file_path": ".harness/accountEnvironment.yaml",
|
|
614
|
+
"branch": "main",
|
|
615
|
+
"import_from_git": True,
|
|
616
|
+
})
|
|
617
|
+
```
|
|
618
|
+
|
|
453
619
|
## Import
|
|
454
620
|
|
|
455
621
|
The `pulumi import` command can be used, for example:
|
|
@@ -250,11 +250,11 @@ class EnvironmentGroup(pulumi.CustomResource):
|
|
|
250
250
|
project_id="projectIdentifier",
|
|
251
251
|
color="#0063F7",
|
|
252
252
|
yaml=\"\"\"environmentGroup:
|
|
253
|
-
name: "name"
|
|
254
|
-
identifier: "identifier"
|
|
255
|
-
description: "temp"
|
|
256
|
-
orgIdentifier: "orgIdentifer"
|
|
257
|
-
projectIdentifier: "projectIdentifier"
|
|
253
|
+
name: \\"name\\"
|
|
254
|
+
identifier: \\"identifier\\"
|
|
255
|
+
description: \\"temp\\"
|
|
256
|
+
orgIdentifier: \\"orgIdentifer\\"
|
|
257
|
+
projectIdentifier: \\"projectIdentifier\\"
|
|
258
258
|
envIdentifiers: []
|
|
259
259
|
\"\"\")
|
|
260
260
|
```
|
|
@@ -311,11 +311,11 @@ class EnvironmentGroup(pulumi.CustomResource):
|
|
|
311
311
|
project_id="projectIdentifier",
|
|
312
312
|
color="#0063F7",
|
|
313
313
|
yaml=\"\"\"environmentGroup:
|
|
314
|
-
name: "name"
|
|
315
|
-
identifier: "identifier"
|
|
316
|
-
description: "temp"
|
|
317
|
-
orgIdentifier: "orgIdentifer"
|
|
318
|
-
projectIdentifier: "projectIdentifier"
|
|
314
|
+
name: \\"name\\"
|
|
315
|
+
identifier: \\"identifier\\"
|
|
316
|
+
description: \\"temp\\"
|
|
317
|
+
orgIdentifier: \\"orgIdentifer\\"
|
|
318
|
+
projectIdentifier: \\"projectIdentifier\\"
|
|
319
319
|
envIdentifiers: []
|
|
320
320
|
\"\"\")
|
|
321
321
|
```
|
|
@@ -439,6 +439,53 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
439
439
|
"""
|
|
440
440
|
Resource for creating a GCP Secret Manager connector.
|
|
441
441
|
|
|
442
|
+
## Example Usage
|
|
443
|
+
|
|
444
|
+
```python
|
|
445
|
+
import pulumi
|
|
446
|
+
import pulumi_harness as harness
|
|
447
|
+
|
|
448
|
+
gcp_sm_manual = harness.platform.GcpSecretManagerConnector("gcp_sm_manual",
|
|
449
|
+
identifier="identifier",
|
|
450
|
+
name="name",
|
|
451
|
+
description="test",
|
|
452
|
+
tags=["foo:bar"],
|
|
453
|
+
delegate_selectors=["harness-delegate"],
|
|
454
|
+
credentials_ref=f"account.{test['id']}")
|
|
455
|
+
gcp_sm_inherit = harness.platform.GcpSecretManagerConnector("gcp_sm_inherit",
|
|
456
|
+
identifier="identifier",
|
|
457
|
+
name="name",
|
|
458
|
+
description="test",
|
|
459
|
+
tags=["foo:bar"],
|
|
460
|
+
delegate_selectors=["harness-delegate"],
|
|
461
|
+
inherit_from_delegate=True)
|
|
462
|
+
gcp_sm_oidc_platform = harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_platform",
|
|
463
|
+
identifier="identifier",
|
|
464
|
+
name="name",
|
|
465
|
+
description="test",
|
|
466
|
+
tags=["foo:bar"],
|
|
467
|
+
execute_on_delegate=False,
|
|
468
|
+
oidc_authentications=[{
|
|
469
|
+
"workload_pool_id": "harness-pool-test",
|
|
470
|
+
"provider_id": "harness",
|
|
471
|
+
"gcp_project_id": "1234567",
|
|
472
|
+
"service_account_email": "harness.sample@iam.gserviceaccount.com",
|
|
473
|
+
}])
|
|
474
|
+
gcp_sm_oidc_delegate = harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_delegate",
|
|
475
|
+
identifier="identifier",
|
|
476
|
+
name="name",
|
|
477
|
+
description="test",
|
|
478
|
+
tags=["foo:bar"],
|
|
479
|
+
default=True,
|
|
480
|
+
delegate_selectors=["harness-delegate"],
|
|
481
|
+
oidc_authentications=[{
|
|
482
|
+
"workload_pool_id": "harness-pool-test",
|
|
483
|
+
"provider_id": "harness",
|
|
484
|
+
"gcp_project_id": "1234567",
|
|
485
|
+
"service_account_email": "harness.sample@iam.gserviceaccount.com",
|
|
486
|
+
}])
|
|
487
|
+
```
|
|
488
|
+
|
|
442
489
|
## Import
|
|
443
490
|
|
|
444
491
|
The `pulumi import` command can be used, for example:
|
|
@@ -485,6 +532,53 @@ class GcpSecretManagerConnector(pulumi.CustomResource):
|
|
|
485
532
|
"""
|
|
486
533
|
Resource for creating a GCP Secret Manager connector.
|
|
487
534
|
|
|
535
|
+
## Example Usage
|
|
536
|
+
|
|
537
|
+
```python
|
|
538
|
+
import pulumi
|
|
539
|
+
import pulumi_harness as harness
|
|
540
|
+
|
|
541
|
+
gcp_sm_manual = harness.platform.GcpSecretManagerConnector("gcp_sm_manual",
|
|
542
|
+
identifier="identifier",
|
|
543
|
+
name="name",
|
|
544
|
+
description="test",
|
|
545
|
+
tags=["foo:bar"],
|
|
546
|
+
delegate_selectors=["harness-delegate"],
|
|
547
|
+
credentials_ref=f"account.{test['id']}")
|
|
548
|
+
gcp_sm_inherit = harness.platform.GcpSecretManagerConnector("gcp_sm_inherit",
|
|
549
|
+
identifier="identifier",
|
|
550
|
+
name="name",
|
|
551
|
+
description="test",
|
|
552
|
+
tags=["foo:bar"],
|
|
553
|
+
delegate_selectors=["harness-delegate"],
|
|
554
|
+
inherit_from_delegate=True)
|
|
555
|
+
gcp_sm_oidc_platform = harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_platform",
|
|
556
|
+
identifier="identifier",
|
|
557
|
+
name="name",
|
|
558
|
+
description="test",
|
|
559
|
+
tags=["foo:bar"],
|
|
560
|
+
execute_on_delegate=False,
|
|
561
|
+
oidc_authentications=[{
|
|
562
|
+
"workload_pool_id": "harness-pool-test",
|
|
563
|
+
"provider_id": "harness",
|
|
564
|
+
"gcp_project_id": "1234567",
|
|
565
|
+
"service_account_email": "harness.sample@iam.gserviceaccount.com",
|
|
566
|
+
}])
|
|
567
|
+
gcp_sm_oidc_delegate = harness.platform.GcpSecretManagerConnector("gcp_sm_oidc_delegate",
|
|
568
|
+
identifier="identifier",
|
|
569
|
+
name="name",
|
|
570
|
+
description="test",
|
|
571
|
+
tags=["foo:bar"],
|
|
572
|
+
default=True,
|
|
573
|
+
delegate_selectors=["harness-delegate"],
|
|
574
|
+
oidc_authentications=[{
|
|
575
|
+
"workload_pool_id": "harness-pool-test",
|
|
576
|
+
"provider_id": "harness",
|
|
577
|
+
"gcp_project_id": "1234567",
|
|
578
|
+
"service_account_email": "harness.sample@iam.gserviceaccount.com",
|
|
579
|
+
}])
|
|
580
|
+
```
|
|
581
|
+
|
|
488
582
|
## Import
|
|
489
583
|
|
|
490
584
|
The `pulumi import` command can be used, for example:
|