pulumi-harness 0.8.0a1744436953__py3-none-any.whl → 0.8.0a1744782628__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.

Potentially problematic release.


This version of pulumi-harness might be problematic. Click here for more details.

@@ -25,34 +25,43 @@ class DbSchemaArgs:
25
25
  identifier: pulumi.Input[builtins.str],
26
26
  org_id: pulumi.Input[builtins.str],
27
27
  project_id: pulumi.Input[builtins.str],
28
- schema_source: pulumi.Input['DbSchemaSchemaSourceArgs'],
28
+ changelog_script: Optional[pulumi.Input['DbSchemaChangelogScriptArgs']] = None,
29
29
  description: Optional[pulumi.Input[builtins.str]] = None,
30
30
  name: Optional[pulumi.Input[builtins.str]] = None,
31
+ schema_source: Optional[pulumi.Input['DbSchemaSchemaSourceArgs']] = None,
31
32
  service: Optional[pulumi.Input[builtins.str]] = None,
32
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None):
33
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
34
+ type: Optional[pulumi.Input[builtins.str]] = None):
33
35
  """
34
36
  The set of arguments for constructing a DbSchema resource.
35
37
  :param pulumi.Input[builtins.str] identifier: Unique identifier of the resource.
36
38
  :param pulumi.Input[builtins.str] org_id: Unique identifier of the organization.
37
39
  :param pulumi.Input[builtins.str] project_id: Unique identifier of the project.
38
- :param pulumi.Input['DbSchemaSchemaSourceArgs'] schema_source: Provides a connector and path at which to find the database schema representation
40
+ :param pulumi.Input['DbSchemaChangelogScriptArgs'] changelog_script: Changelog script details
39
41
  :param pulumi.Input[builtins.str] description: Description of the resource.
40
42
  :param pulumi.Input[builtins.str] name: Name of the resource.
41
- :param pulumi.Input[builtins.str] service: The service associated with schema
43
+ :param pulumi.Input['DbSchemaSchemaSourceArgs'] schema_source: Provides a connector and path at which to find the database schema representation
44
+ :param pulumi.Input[builtins.str] service: The service associated with schema.
42
45
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tags: Tags to associate with the resource.
46
+ :param pulumi.Input[builtins.str] type: Type of the database schema (repository/script).
43
47
  """
44
48
  pulumi.set(__self__, "identifier", identifier)
45
49
  pulumi.set(__self__, "org_id", org_id)
46
50
  pulumi.set(__self__, "project_id", project_id)
47
- pulumi.set(__self__, "schema_source", schema_source)
51
+ if changelog_script is not None:
52
+ pulumi.set(__self__, "changelog_script", changelog_script)
48
53
  if description is not None:
49
54
  pulumi.set(__self__, "description", description)
50
55
  if name is not None:
51
56
  pulumi.set(__self__, "name", name)
57
+ if schema_source is not None:
58
+ pulumi.set(__self__, "schema_source", schema_source)
52
59
  if service is not None:
53
60
  pulumi.set(__self__, "service", service)
54
61
  if tags is not None:
55
62
  pulumi.set(__self__, "tags", tags)
63
+ if type is not None:
64
+ pulumi.set(__self__, "type", type)
56
65
 
57
66
  @property
58
67
  @pulumi.getter
@@ -91,16 +100,16 @@ class DbSchemaArgs:
91
100
  pulumi.set(self, "project_id", value)
92
101
 
93
102
  @property
94
- @pulumi.getter(name="schemaSource")
95
- def schema_source(self) -> pulumi.Input['DbSchemaSchemaSourceArgs']:
103
+ @pulumi.getter(name="changelogScript")
104
+ def changelog_script(self) -> Optional[pulumi.Input['DbSchemaChangelogScriptArgs']]:
96
105
  """
97
- Provides a connector and path at which to find the database schema representation
106
+ Changelog script details
98
107
  """
99
- return pulumi.get(self, "schema_source")
108
+ return pulumi.get(self, "changelog_script")
100
109
 
101
- @schema_source.setter
102
- def schema_source(self, value: pulumi.Input['DbSchemaSchemaSourceArgs']):
103
- pulumi.set(self, "schema_source", value)
110
+ @changelog_script.setter
111
+ def changelog_script(self, value: Optional[pulumi.Input['DbSchemaChangelogScriptArgs']]):
112
+ pulumi.set(self, "changelog_script", value)
104
113
 
105
114
  @property
106
115
  @pulumi.getter
@@ -126,11 +135,23 @@ class DbSchemaArgs:
126
135
  def name(self, value: Optional[pulumi.Input[builtins.str]]):
127
136
  pulumi.set(self, "name", value)
128
137
 
138
+ @property
139
+ @pulumi.getter(name="schemaSource")
140
+ def schema_source(self) -> Optional[pulumi.Input['DbSchemaSchemaSourceArgs']]:
141
+ """
142
+ Provides a connector and path at which to find the database schema representation
143
+ """
144
+ return pulumi.get(self, "schema_source")
145
+
146
+ @schema_source.setter
147
+ def schema_source(self, value: Optional[pulumi.Input['DbSchemaSchemaSourceArgs']]):
148
+ pulumi.set(self, "schema_source", value)
149
+
129
150
  @property
130
151
  @pulumi.getter
131
152
  def service(self) -> Optional[pulumi.Input[builtins.str]]:
132
153
  """
133
- The service associated with schema
154
+ The service associated with schema.
134
155
  """
135
156
  return pulumi.get(self, "service")
136
157
 
@@ -150,10 +171,23 @@ class DbSchemaArgs:
150
171
  def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
151
172
  pulumi.set(self, "tags", value)
152
173
 
174
+ @property
175
+ @pulumi.getter
176
+ def type(self) -> Optional[pulumi.Input[builtins.str]]:
177
+ """
178
+ Type of the database schema (repository/script).
179
+ """
180
+ return pulumi.get(self, "type")
181
+
182
+ @type.setter
183
+ def type(self, value: Optional[pulumi.Input[builtins.str]]):
184
+ pulumi.set(self, "type", value)
185
+
153
186
 
154
187
  @pulumi.input_type
155
188
  class _DbSchemaState:
156
189
  def __init__(__self__, *,
190
+ changelog_script: Optional[pulumi.Input['DbSchemaChangelogScriptArgs']] = None,
157
191
  description: Optional[pulumi.Input[builtins.str]] = None,
158
192
  identifier: Optional[pulumi.Input[builtins.str]] = None,
159
193
  name: Optional[pulumi.Input[builtins.str]] = None,
@@ -161,18 +195,23 @@ class _DbSchemaState:
161
195
  project_id: Optional[pulumi.Input[builtins.str]] = None,
162
196
  schema_source: Optional[pulumi.Input['DbSchemaSchemaSourceArgs']] = None,
163
197
  service: Optional[pulumi.Input[builtins.str]] = None,
164
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None):
198
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
199
+ type: Optional[pulumi.Input[builtins.str]] = None):
165
200
  """
166
201
  Input properties used for looking up and filtering DbSchema resources.
202
+ :param pulumi.Input['DbSchemaChangelogScriptArgs'] changelog_script: Changelog script details
167
203
  :param pulumi.Input[builtins.str] description: Description of the resource.
168
204
  :param pulumi.Input[builtins.str] identifier: Unique identifier of the resource.
169
205
  :param pulumi.Input[builtins.str] name: Name of the resource.
170
206
  :param pulumi.Input[builtins.str] org_id: Unique identifier of the organization.
171
207
  :param pulumi.Input[builtins.str] project_id: Unique identifier of the project.
172
208
  :param pulumi.Input['DbSchemaSchemaSourceArgs'] schema_source: Provides a connector and path at which to find the database schema representation
173
- :param pulumi.Input[builtins.str] service: The service associated with schema
209
+ :param pulumi.Input[builtins.str] service: The service associated with schema.
174
210
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tags: Tags to associate with the resource.
211
+ :param pulumi.Input[builtins.str] type: Type of the database schema (repository/script).
175
212
  """
213
+ if changelog_script is not None:
214
+ pulumi.set(__self__, "changelog_script", changelog_script)
176
215
  if description is not None:
177
216
  pulumi.set(__self__, "description", description)
178
217
  if identifier is not None:
@@ -189,6 +228,20 @@ class _DbSchemaState:
189
228
  pulumi.set(__self__, "service", service)
190
229
  if tags is not None:
191
230
  pulumi.set(__self__, "tags", tags)
231
+ if type is not None:
232
+ pulumi.set(__self__, "type", type)
233
+
234
+ @property
235
+ @pulumi.getter(name="changelogScript")
236
+ def changelog_script(self) -> Optional[pulumi.Input['DbSchemaChangelogScriptArgs']]:
237
+ """
238
+ Changelog script details
239
+ """
240
+ return pulumi.get(self, "changelog_script")
241
+
242
+ @changelog_script.setter
243
+ def changelog_script(self, value: Optional[pulumi.Input['DbSchemaChangelogScriptArgs']]):
244
+ pulumi.set(self, "changelog_script", value)
192
245
 
193
246
  @property
194
247
  @pulumi.getter
@@ -266,7 +319,7 @@ class _DbSchemaState:
266
319
  @pulumi.getter
267
320
  def service(self) -> Optional[pulumi.Input[builtins.str]]:
268
321
  """
269
- The service associated with schema
322
+ The service associated with schema.
270
323
  """
271
324
  return pulumi.get(self, "service")
272
325
 
@@ -286,12 +339,25 @@ class _DbSchemaState:
286
339
  def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
287
340
  pulumi.set(self, "tags", value)
288
341
 
342
+ @property
343
+ @pulumi.getter
344
+ def type(self) -> Optional[pulumi.Input[builtins.str]]:
345
+ """
346
+ Type of the database schema (repository/script).
347
+ """
348
+ return pulumi.get(self, "type")
349
+
350
+ @type.setter
351
+ def type(self, value: Optional[pulumi.Input[builtins.str]]):
352
+ pulumi.set(self, "type", value)
353
+
289
354
 
290
355
  class DbSchema(pulumi.CustomResource):
291
356
  @overload
292
357
  def __init__(__self__,
293
358
  resource_name: str,
294
359
  opts: Optional[pulumi.ResourceOptions] = None,
360
+ changelog_script: Optional[pulumi.Input[Union['DbSchemaChangelogScriptArgs', 'DbSchemaChangelogScriptArgsDict']]] = None,
295
361
  description: Optional[pulumi.Input[builtins.str]] = None,
296
362
  identifier: Optional[pulumi.Input[builtins.str]] = None,
297
363
  name: Optional[pulumi.Input[builtins.str]] = None,
@@ -300,33 +366,11 @@ class DbSchema(pulumi.CustomResource):
300
366
  schema_source: Optional[pulumi.Input[Union['DbSchemaSchemaSourceArgs', 'DbSchemaSchemaSourceArgsDict']]] = None,
301
367
  service: Optional[pulumi.Input[builtins.str]] = None,
302
368
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
369
+ type: Optional[pulumi.Input[builtins.str]] = None,
303
370
  __props__=None):
304
371
  """
305
372
  Resource for creating a Harness DBDevOps Schema.
306
373
 
307
- ## Example Usage
308
-
309
- ```python
310
- import pulumi
311
- import pulumi_harness as harness
312
-
313
- test = harness.platform.DbSchema("test",
314
- identifier="identifier",
315
- org_id="org_id",
316
- project_id="project_id",
317
- name="name",
318
- service="service1",
319
- tags=[
320
- "foo:bar",
321
- "bar:foo",
322
- ],
323
- schema_source={
324
- "connector": "gitConnector",
325
- "repo": "TestRepo",
326
- "location": "db/example-changelog.yaml",
327
- })
328
- ```
329
-
330
374
  ## Import
331
375
 
332
376
  Import project level db schema
@@ -337,14 +381,16 @@ class DbSchema(pulumi.CustomResource):
337
381
 
338
382
  :param str resource_name: The name of the resource.
339
383
  :param pulumi.ResourceOptions opts: Options for the resource.
384
+ :param pulumi.Input[Union['DbSchemaChangelogScriptArgs', 'DbSchemaChangelogScriptArgsDict']] changelog_script: Changelog script details
340
385
  :param pulumi.Input[builtins.str] description: Description of the resource.
341
386
  :param pulumi.Input[builtins.str] identifier: Unique identifier of the resource.
342
387
  :param pulumi.Input[builtins.str] name: Name of the resource.
343
388
  :param pulumi.Input[builtins.str] org_id: Unique identifier of the organization.
344
389
  :param pulumi.Input[builtins.str] project_id: Unique identifier of the project.
345
390
  :param pulumi.Input[Union['DbSchemaSchemaSourceArgs', 'DbSchemaSchemaSourceArgsDict']] schema_source: Provides a connector and path at which to find the database schema representation
346
- :param pulumi.Input[builtins.str] service: The service associated with schema
391
+ :param pulumi.Input[builtins.str] service: The service associated with schema.
347
392
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tags: Tags to associate with the resource.
393
+ :param pulumi.Input[builtins.str] type: Type of the database schema (repository/script).
348
394
  """
349
395
  ...
350
396
  @overload
@@ -355,29 +401,6 @@ class DbSchema(pulumi.CustomResource):
355
401
  """
356
402
  Resource for creating a Harness DBDevOps Schema.
357
403
 
358
- ## Example Usage
359
-
360
- ```python
361
- import pulumi
362
- import pulumi_harness as harness
363
-
364
- test = harness.platform.DbSchema("test",
365
- identifier="identifier",
366
- org_id="org_id",
367
- project_id="project_id",
368
- name="name",
369
- service="service1",
370
- tags=[
371
- "foo:bar",
372
- "bar:foo",
373
- ],
374
- schema_source={
375
- "connector": "gitConnector",
376
- "repo": "TestRepo",
377
- "location": "db/example-changelog.yaml",
378
- })
379
- ```
380
-
381
404
  ## Import
382
405
 
383
406
  Import project level db schema
@@ -401,6 +424,7 @@ class DbSchema(pulumi.CustomResource):
401
424
  def _internal_init(__self__,
402
425
  resource_name: str,
403
426
  opts: Optional[pulumi.ResourceOptions] = None,
427
+ changelog_script: Optional[pulumi.Input[Union['DbSchemaChangelogScriptArgs', 'DbSchemaChangelogScriptArgsDict']]] = None,
404
428
  description: Optional[pulumi.Input[builtins.str]] = None,
405
429
  identifier: Optional[pulumi.Input[builtins.str]] = None,
406
430
  name: Optional[pulumi.Input[builtins.str]] = None,
@@ -409,6 +433,7 @@ class DbSchema(pulumi.CustomResource):
409
433
  schema_source: Optional[pulumi.Input[Union['DbSchemaSchemaSourceArgs', 'DbSchemaSchemaSourceArgsDict']]] = None,
410
434
  service: Optional[pulumi.Input[builtins.str]] = None,
411
435
  tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
436
+ type: Optional[pulumi.Input[builtins.str]] = None,
412
437
  __props__=None):
413
438
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
414
439
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -418,6 +443,7 @@ class DbSchema(pulumi.CustomResource):
418
443
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
419
444
  __props__ = DbSchemaArgs.__new__(DbSchemaArgs)
420
445
 
446
+ __props__.__dict__["changelog_script"] = changelog_script
421
447
  __props__.__dict__["description"] = description
422
448
  if identifier is None and not opts.urn:
423
449
  raise TypeError("Missing required property 'identifier'")
@@ -429,11 +455,10 @@ class DbSchema(pulumi.CustomResource):
429
455
  if project_id is None and not opts.urn:
430
456
  raise TypeError("Missing required property 'project_id'")
431
457
  __props__.__dict__["project_id"] = project_id
432
- if schema_source is None and not opts.urn:
433
- raise TypeError("Missing required property 'schema_source'")
434
458
  __props__.__dict__["schema_source"] = schema_source
435
459
  __props__.__dict__["service"] = service
436
460
  __props__.__dict__["tags"] = tags
461
+ __props__.__dict__["type"] = type
437
462
  super(DbSchema, __self__).__init__(
438
463
  'harness:platform/dbSchema:DbSchema',
439
464
  resource_name,
@@ -444,6 +469,7 @@ class DbSchema(pulumi.CustomResource):
444
469
  def get(resource_name: str,
445
470
  id: pulumi.Input[str],
446
471
  opts: Optional[pulumi.ResourceOptions] = None,
472
+ changelog_script: Optional[pulumi.Input[Union['DbSchemaChangelogScriptArgs', 'DbSchemaChangelogScriptArgsDict']]] = None,
447
473
  description: Optional[pulumi.Input[builtins.str]] = None,
448
474
  identifier: Optional[pulumi.Input[builtins.str]] = None,
449
475
  name: Optional[pulumi.Input[builtins.str]] = None,
@@ -451,7 +477,8 @@ class DbSchema(pulumi.CustomResource):
451
477
  project_id: Optional[pulumi.Input[builtins.str]] = None,
452
478
  schema_source: Optional[pulumi.Input[Union['DbSchemaSchemaSourceArgs', 'DbSchemaSchemaSourceArgsDict']]] = None,
453
479
  service: Optional[pulumi.Input[builtins.str]] = None,
454
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None) -> 'DbSchema':
480
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
481
+ type: Optional[pulumi.Input[builtins.str]] = None) -> 'DbSchema':
455
482
  """
456
483
  Get an existing DbSchema resource's state with the given name, id, and optional extra
457
484
  properties used to qualify the lookup.
@@ -459,19 +486,22 @@ class DbSchema(pulumi.CustomResource):
459
486
  :param str resource_name: The unique name of the resulting resource.
460
487
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
461
488
  :param pulumi.ResourceOptions opts: Options for the resource.
489
+ :param pulumi.Input[Union['DbSchemaChangelogScriptArgs', 'DbSchemaChangelogScriptArgsDict']] changelog_script: Changelog script details
462
490
  :param pulumi.Input[builtins.str] description: Description of the resource.
463
491
  :param pulumi.Input[builtins.str] identifier: Unique identifier of the resource.
464
492
  :param pulumi.Input[builtins.str] name: Name of the resource.
465
493
  :param pulumi.Input[builtins.str] org_id: Unique identifier of the organization.
466
494
  :param pulumi.Input[builtins.str] project_id: Unique identifier of the project.
467
495
  :param pulumi.Input[Union['DbSchemaSchemaSourceArgs', 'DbSchemaSchemaSourceArgsDict']] schema_source: Provides a connector and path at which to find the database schema representation
468
- :param pulumi.Input[builtins.str] service: The service associated with schema
496
+ :param pulumi.Input[builtins.str] service: The service associated with schema.
469
497
  :param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] tags: Tags to associate with the resource.
498
+ :param pulumi.Input[builtins.str] type: Type of the database schema (repository/script).
470
499
  """
471
500
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
472
501
 
473
502
  __props__ = _DbSchemaState.__new__(_DbSchemaState)
474
503
 
504
+ __props__.__dict__["changelog_script"] = changelog_script
475
505
  __props__.__dict__["description"] = description
476
506
  __props__.__dict__["identifier"] = identifier
477
507
  __props__.__dict__["name"] = name
@@ -480,8 +510,17 @@ class DbSchema(pulumi.CustomResource):
480
510
  __props__.__dict__["schema_source"] = schema_source
481
511
  __props__.__dict__["service"] = service
482
512
  __props__.__dict__["tags"] = tags
513
+ __props__.__dict__["type"] = type
483
514
  return DbSchema(resource_name, opts=opts, __props__=__props__)
484
515
 
516
+ @property
517
+ @pulumi.getter(name="changelogScript")
518
+ def changelog_script(self) -> pulumi.Output[Optional['outputs.DbSchemaChangelogScript']]:
519
+ """
520
+ Changelog script details
521
+ """
522
+ return pulumi.get(self, "changelog_script")
523
+
485
524
  @property
486
525
  @pulumi.getter
487
526
  def description(self) -> pulumi.Output[Optional[builtins.str]]:
@@ -524,7 +563,7 @@ class DbSchema(pulumi.CustomResource):
524
563
 
525
564
  @property
526
565
  @pulumi.getter(name="schemaSource")
527
- def schema_source(self) -> pulumi.Output['outputs.DbSchemaSchemaSource']:
566
+ def schema_source(self) -> pulumi.Output[Optional['outputs.DbSchemaSchemaSource']]:
528
567
  """
529
568
  Provides a connector and path at which to find the database schema representation
530
569
  """
@@ -534,7 +573,7 @@ class DbSchema(pulumi.CustomResource):
534
573
  @pulumi.getter
535
574
  def service(self) -> pulumi.Output[Optional[builtins.str]]:
536
575
  """
537
- The service associated with schema
576
+ The service associated with schema.
538
577
  """
539
578
  return pulumi.get(self, "service")
540
579
 
@@ -546,3 +585,11 @@ class DbSchema(pulumi.CustomResource):
546
585
  """
547
586
  return pulumi.get(self, "tags")
548
587
 
588
+ @property
589
+ @pulumi.getter
590
+ def type(self) -> pulumi.Output[Optional[builtins.str]]:
591
+ """
592
+ Type of the database schema (repository/script).
593
+ """
594
+ return pulumi.get(self, "type")
595
+
@@ -15,6 +15,7 @@ else:
15
15
  from typing_extensions import NotRequired, TypedDict, TypeAlias
16
16
  from .. import _utilities
17
17
  from . import outputs
18
+ from ._inputs import *
18
19
 
19
20
  __all__ = [
20
21
  'GetDbSchemaResult',
@@ -28,7 +29,10 @@ class GetDbSchemaResult:
28
29
  """
29
30
  A collection of values returned by getDbSchema.
30
31
  """
31
- def __init__(__self__, description=None, id=None, identifier=None, name=None, org_id=None, project_id=None, schema_sources=None, service=None, tags=None):
32
+ def __init__(__self__, changelog_script=None, description=None, id=None, identifier=None, name=None, org_id=None, project_id=None, schema_sources=None, service=None, tags=None, type=None):
33
+ if changelog_script and not isinstance(changelog_script, dict):
34
+ raise TypeError("Expected argument 'changelog_script' to be a dict")
35
+ pulumi.set(__self__, "changelog_script", changelog_script)
32
36
  if description and not isinstance(description, str):
33
37
  raise TypeError("Expected argument 'description' to be a str")
34
38
  pulumi.set(__self__, "description", description)
@@ -56,6 +60,14 @@ class GetDbSchemaResult:
56
60
  if tags and not isinstance(tags, list):
57
61
  raise TypeError("Expected argument 'tags' to be a list")
58
62
  pulumi.set(__self__, "tags", tags)
63
+ if type and not isinstance(type, str):
64
+ raise TypeError("Expected argument 'type' to be a str")
65
+ pulumi.set(__self__, "type", type)
66
+
67
+ @property
68
+ @pulumi.getter(name="changelogScript")
69
+ def changelog_script(self) -> Optional['outputs.GetDbSchemaChangelogScriptResult']:
70
+ return pulumi.get(self, "changelog_script")
59
71
 
60
72
  @property
61
73
  @pulumi.getter
@@ -107,7 +119,7 @@ class GetDbSchemaResult:
107
119
 
108
120
  @property
109
121
  @pulumi.getter(name="schemaSources")
110
- def schema_sources(self) -> Sequence['outputs.GetDbSchemaSchemaSourceResult']:
122
+ def schema_sources(self) -> Optional[Sequence['outputs.GetDbSchemaSchemaSourceResult']]:
111
123
  """
112
124
  Provides a connector and path at which to find the database schema representation
113
125
  """
@@ -129,6 +141,11 @@ class GetDbSchemaResult:
129
141
  """
130
142
  return pulumi.get(self, "tags")
131
143
 
144
+ @property
145
+ @pulumi.getter
146
+ def type(self) -> Optional[builtins.str]:
147
+ return pulumi.get(self, "type")
148
+
132
149
 
133
150
  class AwaitableGetDbSchemaResult(GetDbSchemaResult):
134
151
  # pylint: disable=using-constant-test
@@ -136,6 +153,7 @@ class AwaitableGetDbSchemaResult(GetDbSchemaResult):
136
153
  if False:
137
154
  yield self
138
155
  return GetDbSchemaResult(
156
+ changelog_script=self.changelog_script,
139
157
  description=self.description,
140
158
  id=self.id,
141
159
  identifier=self.identifier,
@@ -144,13 +162,17 @@ class AwaitableGetDbSchemaResult(GetDbSchemaResult):
144
162
  project_id=self.project_id,
145
163
  schema_sources=self.schema_sources,
146
164
  service=self.service,
147
- tags=self.tags)
165
+ tags=self.tags,
166
+ type=self.type)
148
167
 
149
168
 
150
- def get_db_schema(identifier: Optional[builtins.str] = None,
169
+ def get_db_schema(changelog_script: Optional[Union['GetDbSchemaChangelogScriptArgs', 'GetDbSchemaChangelogScriptArgsDict']] = None,
170
+ identifier: Optional[builtins.str] = None,
151
171
  name: Optional[builtins.str] = None,
152
172
  org_id: Optional[builtins.str] = None,
153
173
  project_id: Optional[builtins.str] = None,
174
+ schema_sources: Optional[Sequence[Union['GetDbSchemaSchemaSourceArgs', 'GetDbSchemaSchemaSourceArgsDict']]] = None,
175
+ type: Optional[builtins.str] = None,
154
176
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDbSchemaResult:
155
177
  """
156
178
  Data source for retrieving a Harness DBDevOps Schema.
@@ -171,16 +193,21 @@ def get_db_schema(identifier: Optional[builtins.str] = None,
171
193
  :param builtins.str name: Name of the resource.
172
194
  :param builtins.str org_id: Unique identifier of the organization.
173
195
  :param builtins.str project_id: Unique identifier of the project.
196
+ :param Sequence[Union['GetDbSchemaSchemaSourceArgs', 'GetDbSchemaSchemaSourceArgsDict']] schema_sources: Provides a connector and path at which to find the database schema representation
174
197
  """
175
198
  __args__ = dict()
199
+ __args__['changelogScript'] = changelog_script
176
200
  __args__['identifier'] = identifier
177
201
  __args__['name'] = name
178
202
  __args__['orgId'] = org_id
179
203
  __args__['projectId'] = project_id
204
+ __args__['schemaSources'] = schema_sources
205
+ __args__['type'] = type
180
206
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
181
207
  __ret__ = pulumi.runtime.invoke('harness:platform/getDbSchema:getDbSchema', __args__, opts=opts, typ=GetDbSchemaResult).value
182
208
 
183
209
  return AwaitableGetDbSchemaResult(
210
+ changelog_script=pulumi.get(__ret__, 'changelog_script'),
184
211
  description=pulumi.get(__ret__, 'description'),
185
212
  id=pulumi.get(__ret__, 'id'),
186
213
  identifier=pulumi.get(__ret__, 'identifier'),
@@ -189,11 +216,15 @@ def get_db_schema(identifier: Optional[builtins.str] = None,
189
216
  project_id=pulumi.get(__ret__, 'project_id'),
190
217
  schema_sources=pulumi.get(__ret__, 'schema_sources'),
191
218
  service=pulumi.get(__ret__, 'service'),
192
- tags=pulumi.get(__ret__, 'tags'))
193
- def get_db_schema_output(identifier: Optional[pulumi.Input[builtins.str]] = None,
219
+ tags=pulumi.get(__ret__, 'tags'),
220
+ type=pulumi.get(__ret__, 'type'))
221
+ def get_db_schema_output(changelog_script: Optional[pulumi.Input[Optional[Union['GetDbSchemaChangelogScriptArgs', 'GetDbSchemaChangelogScriptArgsDict']]]] = None,
222
+ identifier: Optional[pulumi.Input[builtins.str]] = None,
194
223
  name: Optional[pulumi.Input[Optional[builtins.str]]] = None,
195
224
  org_id: Optional[pulumi.Input[builtins.str]] = None,
196
225
  project_id: Optional[pulumi.Input[builtins.str]] = None,
226
+ schema_sources: Optional[pulumi.Input[Optional[Sequence[Union['GetDbSchemaSchemaSourceArgs', 'GetDbSchemaSchemaSourceArgsDict']]]]] = None,
227
+ type: Optional[pulumi.Input[Optional[builtins.str]]] = None,
197
228
  opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDbSchemaResult]:
198
229
  """
199
230
  Data source for retrieving a Harness DBDevOps Schema.
@@ -214,15 +245,20 @@ def get_db_schema_output(identifier: Optional[pulumi.Input[builtins.str]] = None
214
245
  :param builtins.str name: Name of the resource.
215
246
  :param builtins.str org_id: Unique identifier of the organization.
216
247
  :param builtins.str project_id: Unique identifier of the project.
248
+ :param Sequence[Union['GetDbSchemaSchemaSourceArgs', 'GetDbSchemaSchemaSourceArgsDict']] schema_sources: Provides a connector and path at which to find the database schema representation
217
249
  """
218
250
  __args__ = dict()
251
+ __args__['changelogScript'] = changelog_script
219
252
  __args__['identifier'] = identifier
220
253
  __args__['name'] = name
221
254
  __args__['orgId'] = org_id
222
255
  __args__['projectId'] = project_id
256
+ __args__['schemaSources'] = schema_sources
257
+ __args__['type'] = type
223
258
  opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
224
259
  __ret__ = pulumi.runtime.invoke_output('harness:platform/getDbSchema:getDbSchema', __args__, opts=opts, typ=GetDbSchemaResult)
225
260
  return __ret__.apply(lambda __response__: GetDbSchemaResult(
261
+ changelog_script=pulumi.get(__response__, 'changelog_script'),
226
262
  description=pulumi.get(__response__, 'description'),
227
263
  id=pulumi.get(__response__, 'id'),
228
264
  identifier=pulumi.get(__response__, 'identifier'),
@@ -231,4 +267,5 @@ def get_db_schema_output(identifier: Optional[pulumi.Input[builtins.str]] = None
231
267
  project_id=pulumi.get(__response__, 'project_id'),
232
268
  schema_sources=pulumi.get(__response__, 'schema_sources'),
233
269
  service=pulumi.get(__response__, 'service'),
234
- tags=pulumi.get(__response__, 'tags')))
270
+ tags=pulumi.get(__response__, 'tags'),
271
+ type=pulumi.get(__response__, 'type')))
@@ -29,10 +29,13 @@ class GetGitopsAgentDeployYamlResult:
29
29
  """
30
30
  A collection of values returned by getGitopsAgentDeployYaml.
31
31
  """
32
- def __init__(__self__, account_id=None, ca_data=None, id=None, identifier=None, namespace=None, org_id=None, private_key=None, project_id=None, proxies=None, skip_crds=None, yaml=None):
32
+ def __init__(__self__, account_id=None, argocd_settings=None, ca_data=None, id=None, identifier=None, namespace=None, org_id=None, private_key=None, project_id=None, proxies=None, skip_crds=None, yaml=None):
33
33
  if account_id and not isinstance(account_id, str):
34
34
  raise TypeError("Expected argument 'account_id' to be a str")
35
35
  pulumi.set(__self__, "account_id", account_id)
36
+ if argocd_settings and not isinstance(argocd_settings, dict):
37
+ raise TypeError("Expected argument 'argocd_settings' to be a dict")
38
+ pulumi.set(__self__, "argocd_settings", argocd_settings)
36
39
  if ca_data and not isinstance(ca_data, str):
37
40
  raise TypeError("Expected argument 'ca_data' to be a str")
38
41
  pulumi.set(__self__, "ca_data", ca_data)
@@ -73,6 +76,14 @@ class GetGitopsAgentDeployYamlResult:
73
76
  """
74
77
  return pulumi.get(self, "account_id")
75
78
 
79
+ @property
80
+ @pulumi.getter(name="argocdSettings")
81
+ def argocd_settings(self) -> Optional['outputs.GetGitopsAgentDeployYamlArgocdSettingsResult']:
82
+ """
83
+ Argocd settings for the GitOps agent. Values set here will be overridden by the values set in the argocd settings in case of complete installation of agent + argocd. Each param contains as a description about what it will enable.
84
+ """
85
+ return pulumi.get(self, "argocd_settings")
86
+
76
87
  @property
77
88
  @pulumi.getter(name="caData")
78
89
  def ca_data(self) -> Optional[builtins.str]:
@@ -161,6 +172,7 @@ class AwaitableGetGitopsAgentDeployYamlResult(GetGitopsAgentDeployYamlResult):
161
172
  yield self
162
173
  return GetGitopsAgentDeployYamlResult(
163
174
  account_id=self.account_id,
175
+ argocd_settings=self.argocd_settings,
164
176
  ca_data=self.ca_data,
165
177
  id=self.id,
166
178
  identifier=self.identifier,
@@ -174,6 +186,7 @@ class AwaitableGetGitopsAgentDeployYamlResult(GetGitopsAgentDeployYamlResult):
174
186
 
175
187
 
176
188
  def get_gitops_agent_deploy_yaml(account_id: Optional[builtins.str] = None,
189
+ argocd_settings: Optional[Union['GetGitopsAgentDeployYamlArgocdSettingsArgs', 'GetGitopsAgentDeployYamlArgocdSettingsArgsDict']] = None,
177
190
  ca_data: Optional[builtins.str] = None,
178
191
  identifier: Optional[builtins.str] = None,
179
192
  namespace: Optional[builtins.str] = None,
@@ -201,6 +214,7 @@ def get_gitops_agent_deploy_yaml(account_id: Optional[builtins.str] = None,
201
214
 
202
215
 
203
216
  :param builtins.str account_id: Account identifier of the GitOps agent.
217
+ :param Union['GetGitopsAgentDeployYamlArgocdSettingsArgs', 'GetGitopsAgentDeployYamlArgocdSettingsArgsDict'] argocd_settings: Argocd settings for the GitOps agent. Values set here will be overridden by the values set in the argocd settings in case of complete installation of agent + argocd. Each param contains as a description about what it will enable.
204
218
  :param builtins.str ca_data: CA data of the GitOps agent, base64 encoded content of ca chain.
205
219
  :param builtins.str identifier: Identifier of the GitOps agent.
206
220
  :param builtins.str namespace: The kubernetes namespace where the agent is installed.
@@ -212,6 +226,7 @@ def get_gitops_agent_deploy_yaml(account_id: Optional[builtins.str] = None,
212
226
  """
213
227
  __args__ = dict()
214
228
  __args__['accountId'] = account_id
229
+ __args__['argocdSettings'] = argocd_settings
215
230
  __args__['caData'] = ca_data
216
231
  __args__['identifier'] = identifier
217
232
  __args__['namespace'] = namespace
@@ -225,6 +240,7 @@ def get_gitops_agent_deploy_yaml(account_id: Optional[builtins.str] = None,
225
240
 
226
241
  return AwaitableGetGitopsAgentDeployYamlResult(
227
242
  account_id=pulumi.get(__ret__, 'account_id'),
243
+ argocd_settings=pulumi.get(__ret__, 'argocd_settings'),
228
244
  ca_data=pulumi.get(__ret__, 'ca_data'),
229
245
  id=pulumi.get(__ret__, 'id'),
230
246
  identifier=pulumi.get(__ret__, 'identifier'),
@@ -236,6 +252,7 @@ def get_gitops_agent_deploy_yaml(account_id: Optional[builtins.str] = None,
236
252
  skip_crds=pulumi.get(__ret__, 'skip_crds'),
237
253
  yaml=pulumi.get(__ret__, 'yaml'))
238
254
  def get_gitops_agent_deploy_yaml_output(account_id: Optional[pulumi.Input[Optional[builtins.str]]] = None,
255
+ argocd_settings: Optional[pulumi.Input[Optional[Union['GetGitopsAgentDeployYamlArgocdSettingsArgs', 'GetGitopsAgentDeployYamlArgocdSettingsArgsDict']]]] = None,
239
256
  ca_data: Optional[pulumi.Input[Optional[builtins.str]]] = None,
240
257
  identifier: Optional[pulumi.Input[builtins.str]] = None,
241
258
  namespace: Optional[pulumi.Input[builtins.str]] = None,
@@ -263,6 +280,7 @@ def get_gitops_agent_deploy_yaml_output(account_id: Optional[pulumi.Input[Option
263
280
 
264
281
 
265
282
  :param builtins.str account_id: Account identifier of the GitOps agent.
283
+ :param Union['GetGitopsAgentDeployYamlArgocdSettingsArgs', 'GetGitopsAgentDeployYamlArgocdSettingsArgsDict'] argocd_settings: Argocd settings for the GitOps agent. Values set here will be overridden by the values set in the argocd settings in case of complete installation of agent + argocd. Each param contains as a description about what it will enable.
266
284
  :param builtins.str ca_data: CA data of the GitOps agent, base64 encoded content of ca chain.
267
285
  :param builtins.str identifier: Identifier of the GitOps agent.
268
286
  :param builtins.str namespace: The kubernetes namespace where the agent is installed.
@@ -274,6 +292,7 @@ def get_gitops_agent_deploy_yaml_output(account_id: Optional[pulumi.Input[Option
274
292
  """
275
293
  __args__ = dict()
276
294
  __args__['accountId'] = account_id
295
+ __args__['argocdSettings'] = argocd_settings
277
296
  __args__['caData'] = ca_data
278
297
  __args__['identifier'] = identifier
279
298
  __args__['namespace'] = namespace
@@ -286,6 +305,7 @@ def get_gitops_agent_deploy_yaml_output(account_id: Optional[pulumi.Input[Option
286
305
  __ret__ = pulumi.runtime.invoke_output('harness:platform/getGitopsAgentDeployYaml:getGitopsAgentDeployYaml', __args__, opts=opts, typ=GetGitopsAgentDeployYamlResult)
287
306
  return __ret__.apply(lambda __response__: GetGitopsAgentDeployYamlResult(
288
307
  account_id=pulumi.get(__response__, 'account_id'),
308
+ argocd_settings=pulumi.get(__response__, 'argocd_settings'),
289
309
  ca_data=pulumi.get(__response__, 'ca_data'),
290
310
  id=pulumi.get(__response__, 'id'),
291
311
  identifier=pulumi.get(__response__, 'identifier'),