Skip to content

Commit

Permalink
Upgrade terraform-provider-port-labs to v2.0.21 (#430)
Browse files Browse the repository at this point in the history
* make tfgen

* make build_sdks

---------

Co-authored-by: pulumi-port-bot <getport.io>
  • Loading branch information
portmachineuser authored Sep 9, 2024
1 parent b9a77df commit bc85ba3
Show file tree
Hide file tree
Showing 11 changed files with 578 additions and 8 deletions.
34 changes: 33 additions & 1 deletion provider/cmd/pulumi-resource-port/schema.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21.12
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20240520223432-0c0bf0d65f10

require (
github.com/port-labs/terraform-provider-port-labs/v2 v2.0.20
github.com/port-labs/terraform-provider-port-labs/v2 v2.0.21
github.com/pulumi/pulumi-terraform-bridge/pf v0.40.0
github.com/pulumi/pulumi-terraform-bridge/v3 v3.87.0
github.com/pulumi/pulumi/sdk/v3 v3.125.0
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -733,8 +733,8 @@ github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk=
github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/port-labs/terraform-provider-port-labs/v2 v2.0.20 h1:OM53nejKT2cYYX1C6N7dFBPhuY2QZPuc7AV8EbYTA34=
github.com/port-labs/terraform-provider-port-labs/v2 v2.0.20/go.mod h1:QHx0GQmWTWS1gCmQfABR9MZspf/j0cLYSkbiidUsux0=
github.com/port-labs/terraform-provider-port-labs/v2 v2.0.21 h1:BYCR/3/2nNYr9YyRwm/DvesSs5obPv7FwWjLhikRlVY=
github.com/port-labs/terraform-provider-port-labs/v2 v2.0.21/go.mod h1:QHx0GQmWTWS1gCmQfABR9MZspf/j0cLYSkbiidUsux0=
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXqo=
github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s=
Expand Down
1 change: 0 additions & 1 deletion sdk/go/port/integration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

320 changes: 320 additions & 0 deletions sdk/go/port/pulumiTypes.go

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion sdk/nodejs/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import * as utilities from "./utilities";
* const myCustomIntegration = new port.index.Port_integration("myCustomIntegration", {
* installationId: "my-custom-integration-id",
* title: "My Custom Integration",
* version: "1.33.7",
* config: JSON.stringify({
* createMissingRelatedEntitiesboolean: true,
* deleteDependentEntities: true,
Expand Down
22 changes: 22 additions & 0 deletions sdk/nodejs/types/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export interface ActionAutomationTrigger {
* Any entity change event trigger
*/
anyEntityChangeEvent?: pulumi.Input<inputs.ActionAutomationTriggerAnyEntityChangeEvent>;
/**
* Any run change event trigger
*/
anyRunChangeEvent?: pulumi.Input<inputs.ActionAutomationTriggerAnyRunChangeEvent>;
/**
* Entity created event trigger
*/
Expand All @@ -40,6 +44,10 @@ export interface ActionAutomationTrigger {
* JQ condition for automation trigger
*/
jqCondition?: pulumi.Input<inputs.ActionAutomationTriggerJqCondition>;
/**
* Run created event trigger
*/
runCreatedEvent?: pulumi.Input<inputs.ActionAutomationTriggerRunCreatedEvent>;
/**
* Run updated event trigger
*/
Expand All @@ -57,6 +65,13 @@ export interface ActionAutomationTriggerAnyEntityChangeEvent {
blueprintIdentifier: pulumi.Input<string>;
}

export interface ActionAutomationTriggerAnyRunChangeEvent {
/**
* The action identifier of the changed run
*/
actionIdentifier: pulumi.Input<string>;
}

export interface ActionAutomationTriggerEntityCreatedEvent {
/**
* The blueprint identifier of the created entity
Expand Down Expand Up @@ -89,6 +104,13 @@ export interface ActionAutomationTriggerJqCondition {
expressions: pulumi.Input<pulumi.Input<string>[]>;
}

export interface ActionAutomationTriggerRunCreatedEvent {
/**
* The action identifier of the created run
*/
actionIdentifier: pulumi.Input<string>;
}

export interface ActionAutomationTriggerRunUpdatedEvent {
/**
* The action identifier of the updated run
Expand Down
22 changes: 22 additions & 0 deletions sdk/nodejs/types/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ export interface ActionAutomationTrigger {
* Any entity change event trigger
*/
anyEntityChangeEvent?: outputs.ActionAutomationTriggerAnyEntityChangeEvent;
/**
* Any run change event trigger
*/
anyRunChangeEvent?: outputs.ActionAutomationTriggerAnyRunChangeEvent;
/**
* Entity created event trigger
*/
Expand All @@ -40,6 +44,10 @@ export interface ActionAutomationTrigger {
* JQ condition for automation trigger
*/
jqCondition?: outputs.ActionAutomationTriggerJqCondition;
/**
* Run created event trigger
*/
runCreatedEvent?: outputs.ActionAutomationTriggerRunCreatedEvent;
/**
* Run updated event trigger
*/
Expand All @@ -57,6 +65,13 @@ export interface ActionAutomationTriggerAnyEntityChangeEvent {
blueprintIdentifier: string;
}

export interface ActionAutomationTriggerAnyRunChangeEvent {
/**
* The action identifier of the changed run
*/
actionIdentifier: string;
}

export interface ActionAutomationTriggerEntityCreatedEvent {
/**
* The blueprint identifier of the created entity
Expand Down Expand Up @@ -89,6 +104,13 @@ export interface ActionAutomationTriggerJqCondition {
expressions: string[];
}

export interface ActionAutomationTriggerRunCreatedEvent {
/**
* The action identifier of the created run
*/
actionIdentifier: string;
}

export interface ActionAutomationTriggerRunUpdatedEvent {
/**
* The action identifier of the updated run
Expand Down
78 changes: 78 additions & 0 deletions sdk/python/port_pulumi/_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
'ActionApprovalWebhookNotificationArgs',
'ActionAutomationTriggerArgs',
'ActionAutomationTriggerAnyEntityChangeEventArgs',
'ActionAutomationTriggerAnyRunChangeEventArgs',
'ActionAutomationTriggerEntityCreatedEventArgs',
'ActionAutomationTriggerEntityDeletedEventArgs',
'ActionAutomationTriggerEntityUpdatedEventArgs',
'ActionAutomationTriggerJqConditionArgs',
'ActionAutomationTriggerRunCreatedEventArgs',
'ActionAutomationTriggerRunUpdatedEventArgs',
'ActionAutomationTriggerTimerPropertyExpiredEventArgs',
'ActionAzureMethodArgs',
Expand Down Expand Up @@ -141,23 +143,29 @@ def format(self, value: Optional[pulumi.Input[str]]):
class ActionAutomationTriggerArgs:
def __init__(__self__, *,
any_entity_change_event: Optional[pulumi.Input['ActionAutomationTriggerAnyEntityChangeEventArgs']] = None,
any_run_change_event: Optional[pulumi.Input['ActionAutomationTriggerAnyRunChangeEventArgs']] = None,
entity_created_event: Optional[pulumi.Input['ActionAutomationTriggerEntityCreatedEventArgs']] = None,
entity_deleted_event: Optional[pulumi.Input['ActionAutomationTriggerEntityDeletedEventArgs']] = None,
entity_updated_event: Optional[pulumi.Input['ActionAutomationTriggerEntityUpdatedEventArgs']] = None,
jq_condition: Optional[pulumi.Input['ActionAutomationTriggerJqConditionArgs']] = None,
run_created_event: Optional[pulumi.Input['ActionAutomationTriggerRunCreatedEventArgs']] = None,
run_updated_event: Optional[pulumi.Input['ActionAutomationTriggerRunUpdatedEventArgs']] = None,
timer_property_expired_event: Optional[pulumi.Input['ActionAutomationTriggerTimerPropertyExpiredEventArgs']] = None):
"""
:param pulumi.Input['ActionAutomationTriggerAnyEntityChangeEventArgs'] any_entity_change_event: Any entity change event trigger
:param pulumi.Input['ActionAutomationTriggerAnyRunChangeEventArgs'] any_run_change_event: Any run change event trigger
:param pulumi.Input['ActionAutomationTriggerEntityCreatedEventArgs'] entity_created_event: Entity created event trigger
:param pulumi.Input['ActionAutomationTriggerEntityDeletedEventArgs'] entity_deleted_event: Entity deleted event trigger
:param pulumi.Input['ActionAutomationTriggerEntityUpdatedEventArgs'] entity_updated_event: Entity updated event trigger
:param pulumi.Input['ActionAutomationTriggerJqConditionArgs'] jq_condition: JQ condition for automation trigger
:param pulumi.Input['ActionAutomationTriggerRunCreatedEventArgs'] run_created_event: Run created event trigger
:param pulumi.Input['ActionAutomationTriggerRunUpdatedEventArgs'] run_updated_event: Run updated event trigger
:param pulumi.Input['ActionAutomationTriggerTimerPropertyExpiredEventArgs'] timer_property_expired_event: Timer property expired event trigger
"""
if any_entity_change_event is not None:
pulumi.set(__self__, "any_entity_change_event", any_entity_change_event)
if any_run_change_event is not None:
pulumi.set(__self__, "any_run_change_event", any_run_change_event)
if entity_created_event is not None:
pulumi.set(__self__, "entity_created_event", entity_created_event)
if entity_deleted_event is not None:
Expand All @@ -166,6 +174,8 @@ def __init__(__self__, *,
pulumi.set(__self__, "entity_updated_event", entity_updated_event)
if jq_condition is not None:
pulumi.set(__self__, "jq_condition", jq_condition)
if run_created_event is not None:
pulumi.set(__self__, "run_created_event", run_created_event)
if run_updated_event is not None:
pulumi.set(__self__, "run_updated_event", run_updated_event)
if timer_property_expired_event is not None:
Expand All @@ -183,6 +193,18 @@ def any_entity_change_event(self) -> Optional[pulumi.Input['ActionAutomationTrig
def any_entity_change_event(self, value: Optional[pulumi.Input['ActionAutomationTriggerAnyEntityChangeEventArgs']]):
pulumi.set(self, "any_entity_change_event", value)

@property
@pulumi.getter(name="anyRunChangeEvent")
def any_run_change_event(self) -> Optional[pulumi.Input['ActionAutomationTriggerAnyRunChangeEventArgs']]:
"""
Any run change event trigger
"""
return pulumi.get(self, "any_run_change_event")

@any_run_change_event.setter
def any_run_change_event(self, value: Optional[pulumi.Input['ActionAutomationTriggerAnyRunChangeEventArgs']]):
pulumi.set(self, "any_run_change_event", value)

@property
@pulumi.getter(name="entityCreatedEvent")
def entity_created_event(self) -> Optional[pulumi.Input['ActionAutomationTriggerEntityCreatedEventArgs']]:
Expand Down Expand Up @@ -231,6 +253,18 @@ def jq_condition(self) -> Optional[pulumi.Input['ActionAutomationTriggerJqCondit
def jq_condition(self, value: Optional[pulumi.Input['ActionAutomationTriggerJqConditionArgs']]):
pulumi.set(self, "jq_condition", value)

@property
@pulumi.getter(name="runCreatedEvent")
def run_created_event(self) -> Optional[pulumi.Input['ActionAutomationTriggerRunCreatedEventArgs']]:
"""
Run created event trigger
"""
return pulumi.get(self, "run_created_event")

@run_created_event.setter
def run_created_event(self, value: Optional[pulumi.Input['ActionAutomationTriggerRunCreatedEventArgs']]):
pulumi.set(self, "run_created_event", value)

@property
@pulumi.getter(name="runUpdatedEvent")
def run_updated_event(self) -> Optional[pulumi.Input['ActionAutomationTriggerRunUpdatedEventArgs']]:
Expand Down Expand Up @@ -278,6 +312,28 @@ def blueprint_identifier(self, value: pulumi.Input[str]):
pulumi.set(self, "blueprint_identifier", value)


@pulumi.input_type
class ActionAutomationTriggerAnyRunChangeEventArgs:
def __init__(__self__, *,
action_identifier: pulumi.Input[str]):
"""
:param pulumi.Input[str] action_identifier: The action identifier of the changed run
"""
pulumi.set(__self__, "action_identifier", action_identifier)

@property
@pulumi.getter(name="actionIdentifier")
def action_identifier(self) -> pulumi.Input[str]:
"""
The action identifier of the changed run
"""
return pulumi.get(self, "action_identifier")

@action_identifier.setter
def action_identifier(self, value: pulumi.Input[str]):
pulumi.set(self, "action_identifier", value)


@pulumi.input_type
class ActionAutomationTriggerEntityCreatedEventArgs:
def __init__(__self__, *,
Expand Down Expand Up @@ -382,6 +438,28 @@ def combinator(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "combinator", value)


@pulumi.input_type
class ActionAutomationTriggerRunCreatedEventArgs:
def __init__(__self__, *,
action_identifier: pulumi.Input[str]):
"""
:param pulumi.Input[str] action_identifier: The action identifier of the created run
"""
pulumi.set(__self__, "action_identifier", action_identifier)

@property
@pulumi.getter(name="actionIdentifier")
def action_identifier(self) -> pulumi.Input[str]:
"""
The action identifier of the created run
"""
return pulumi.get(self, "action_identifier")

@action_identifier.setter
def action_identifier(self, value: pulumi.Input[str]):
pulumi.set(self, "action_identifier", value)


@pulumi.input_type
class ActionAutomationTriggerRunUpdatedEventArgs:
def __init__(__self__, *,
Expand Down
2 changes: 0 additions & 2 deletions sdk/python/port_pulumi/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ def __init__(__self__,
my_custom_integration = port.index.Port_integration("myCustomIntegration",
installation_id=my-custom-integration-id,
title=My Custom Integration,
version=1.33.7,
config=json.dumps({
createMissingRelatedEntitiesboolean: True,
deleteDependentEntities: True,
Expand Down Expand Up @@ -301,7 +300,6 @@ def __init__(__self__,
my_custom_integration = port.index.Port_integration("myCustomIntegration",
installation_id=my-custom-integration-id,
title=My Custom Integration,
version=1.33.7,
config=json.dumps({
createMissingRelatedEntitiesboolean: True,
deleteDependentEntities: True,
Expand Down
Loading

0 comments on commit bc85ba3

Please sign in to comment.