Skip to content

Commit

Permalink
Upgrade terraform-provider-port-labs to v1.4.1 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirsegev authored Aug 15, 2023
1 parent 66bf1d2 commit caaad6f
Show file tree
Hide file tree
Showing 7 changed files with 133 additions and 15 deletions.
3 changes: 2 additions & 1 deletion provider/cmd/pulumi-resource-port/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@
"createdAt": "created_at",
"createdBy": "created_by",
"updatedAt": "updated_at",
"updatedBy": "updated_by"
"updatedBy": "updated_by",
"webhookKey": "webhook_key"
},
"port:index:Provider": {
"baseUrl": "base_url",
Expand Down
20 changes: 19 additions & 1 deletion provider/cmd/pulumi-resource-port/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2056,6 +2056,14 @@
"updatedBy": {
"type": "string",
"description": "The last updater of the webhook\n"
},
"url": {
"type": "string",
"description": "The url of the webhook\n"
},
"webhookKey": {
"type": "string",
"description": "The webhook key of the webhook\n"
}
},
"required": [
Expand All @@ -2064,7 +2072,9 @@
"enabled",
"identifier",
"updatedAt",
"updatedBy"
"updatedBy",
"url",
"webhookKey"
],
"inputProperties": {
"description": {
Expand Down Expand Up @@ -2148,6 +2158,14 @@
"updatedBy": {
"type": "string",
"description": "The last updater of the webhook\n"
},
"url": {
"type": "string",
"description": "The url of the webhook\n"
},
"webhookKey": {
"type": "string",
"description": "The webhook key of the webhook\n"
}
},
"type": "object"
Expand Down
8 changes: 4 additions & 4 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ go 1.20
replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20230327102345-3fa930f86570

require (
github.com/port-labs/terraform-provider-port-labs v1.4.0
github.com/pulumi/pulumi-terraform-bridge/pf v0.16.0
github.com/port-labs/terraform-provider-port-labs v1.4.1
github.com/pulumi/pulumi-terraform-bridge/pf v0.15.2
github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0
github.com/pulumi/pulumi/sdk/v3 v3.78.1
github.com/pulumi/pulumi/sdk/v3 v3.77.1
)

require (
Expand Down Expand Up @@ -51,7 +51,7 @@ require (
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/armon/go-metrics v0.4.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/aws/aws-sdk-go v1.44.122 // indirect
github.com/aws/aws-sdk-go v1.44.298 // indirect
github.com/aws/aws-sdk-go-v2 v1.17.3 // indirect
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.3 // indirect
github.com/aws/aws-sdk-go-v2/config v1.15.15 // indirect
Expand Down
15 changes: 8 additions & 7 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,9 @@ github.com/aws/aws-sdk-go v1.43.11/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4
github.com/aws/aws-sdk-go v1.43.31/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.44.45/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.44.68/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.44.122 h1:p6mw01WBaNpbdP2xrisz5tIkcNwzj/HysobNoaAHjgo=
github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.44.298 h1:5qTxdubgV7PptZJmp/2qDwD2JL187ePL7VOxsSh1i3g=
github.com/aws/aws-sdk-go v1.44.298/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/aws/aws-sdk-go-v2 v1.16.8/go.mod h1:6CpKuLXg2w7If3ABZCl/qZ6rEgwtjZTn4eAf4RcEyuw=
github.com/aws/aws-sdk-go-v2 v1.17.3 h1:shN7NlnVzvDUgPQ+1rLMSxY8OWRNDRYtiqe0p/PgrhY=
Expand Down Expand Up @@ -1581,8 +1582,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 v1.4.0 h1:Bm9PxDyu3at8Q8unS4ibSYtlZdYpfLyNWcxpd+BWIj0=
github.com/port-labs/terraform-provider-port-labs v1.4.0/go.mod h1:pLn48/X30XZIrW3gvUM1rkVjAZkO7ZFjegc0x4hFdtc=
github.com/port-labs/terraform-provider-port-labs v1.4.1 h1:Bby+fg6LtApBnCO7SJJ7loLWc/uh7zulkUmeiwyWOCw=
github.com/port-labs/terraform-provider-port-labs v1.4.1/go.mod h1:pLn48/X30XZIrW3gvUM1rkVjAZkO7ZFjegc0x4hFdtc=
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 Expand Up @@ -1645,8 +1646,8 @@ github.com/prometheus/prometheus v0.37.0/go.mod h1:egARUgz+K93zwqsVIAneFlLZefyGO
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
github.com/pulumi/pulumi-java/pkg v0.9.4 h1:gIQZmlUI1o9ye8CL2XFqtmAX6Lwr9uj/+HzjboiSmK4=
github.com/pulumi/pulumi-java/pkg v0.9.4/go.mod h1:c6rSw/+q4O0IImgJ9axxoC6QesbPYWBaG5gimbHouUQ=
github.com/pulumi/pulumi-terraform-bridge/pf v0.16.0 h1:0Z6cmTjb/1p2z3W4L4e7OwhmsE6FJUbyxTihtyNs9y4=
github.com/pulumi/pulumi-terraform-bridge/pf v0.16.0/go.mod h1:XdOy385fEso7q3NuL+zAS3I1i+X47Bg01AlVD5aJRS4=
github.com/pulumi/pulumi-terraform-bridge/pf v0.15.2 h1:zKAzAHk9AKk+EF9FG4vT9u3jYiZFES/Mjq+s9mgoRs8=
github.com/pulumi/pulumi-terraform-bridge/pf v0.15.2/go.mod h1:XdOy385fEso7q3NuL+zAS3I1i+X47Bg01AlVD5aJRS4=
github.com/pulumi/pulumi-terraform-bridge/testing v0.0.1 h1:SCg1gjfY9N4yn8U8peIUYATifjoDABkyR7H9lmefsfc=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0 h1:munOxi56glme47MT8/wI29o9wrRBJrEQuwjAgm1zviI=
github.com/pulumi/pulumi-terraform-bridge/v3 v3.57.0/go.mod h1:ykaml8e6XS/yI9JOcNZ+6gLirs6EWTB0FmjbT+JyEdU=
Expand All @@ -1656,8 +1657,8 @@ github.com/pulumi/pulumi-yaml v1.1.1 h1:8pyBNIU8+ym0wYpjhsCqN+cutygfK1XbhY2YEeNf
github.com/pulumi/pulumi-yaml v1.1.1/go.mod h1:GhpdS6rFpwqvUtKdA+fQy8P28iNvncng39IXh5q68vE=
github.com/pulumi/pulumi/pkg/v3 v3.77.1 h1:PRZBBkAGniJkxtDh6NHIfmlo/wZKXMD50rDfhr5xyDM=
github.com/pulumi/pulumi/pkg/v3 v3.77.1/go.mod h1:dj+QrN7vtnC2S0VBFiEIl9estr1nZnKB92S0zylQIag=
github.com/pulumi/pulumi/sdk/v3 v3.78.1 h1:itSfMcILvEq5wOpGEAzeZdpH973yJ4sRn02nx5SCJHM=
github.com/pulumi/pulumi/sdk/v3 v3.78.1/go.mod h1:FEFictCHoa8CYzKDSc0t9ErrNiaO9n7pChreLQLDH+M=
github.com/pulumi/pulumi/sdk/v3 v3.77.1 h1:DfMCVjtzaSYqpZmMmRdHA5i1vaD6zYsCkDmcZqojREI=
github.com/pulumi/pulumi/sdk/v3 v3.77.1/go.mod h1:FEFictCHoa8CYzKDSc0t9ErrNiaO9n7pChreLQLDH+M=
github.com/pulumi/schema-tools v0.1.2 h1:Fd9xvUjgck4NA+7/jSk7InqCUT4Kj940+EcnbQKpfZo=
github.com/pulumi/schema-tools v0.1.2/go.mod h1:62lgj52Tzq11eqWTIaKd+EVyYAu5dEcDJxMhTjvMO/k=
github.com/pulumi/terraform-diff-reader v0.0.2 h1:kTE4nEXU3/SYXESvAIem+wyHMI3abqkI3OhJ0G04LLI=
Expand Down
22 changes: 22 additions & 0 deletions sdk/go/port/webhook.go

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

20 changes: 20 additions & 0 deletions sdk/nodejs/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ export class Webhook extends pulumi.CustomResource {
* The last updater of the webhook
*/
public /*out*/ readonly updatedBy!: pulumi.Output<string>;
/**
* The url of the webhook
*/
public /*out*/ readonly url!: pulumi.Output<string>;
/**
* The webhook key of the webhook
*/
public /*out*/ readonly webhookKey!: pulumi.Output<string>;

/**
* Create a Webhook resource with the given unique name, arguments, and options.
Expand All @@ -103,6 +111,8 @@ export class Webhook extends pulumi.CustomResource {
resourceInputs["title"] = state ? state.title : undefined;
resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
resourceInputs["updatedBy"] = state ? state.updatedBy : undefined;
resourceInputs["url"] = state ? state.url : undefined;
resourceInputs["webhookKey"] = state ? state.webhookKey : undefined;
} else {
const args = argsOrState as WebhookArgs | undefined;
resourceInputs["description"] = args ? args.description : undefined;
Expand All @@ -116,6 +126,8 @@ export class Webhook extends pulumi.CustomResource {
resourceInputs["createdBy"] = undefined /*out*/;
resourceInputs["updatedAt"] = undefined /*out*/;
resourceInputs["updatedBy"] = undefined /*out*/;
resourceInputs["url"] = undefined /*out*/;
resourceInputs["webhookKey"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Webhook.__pulumiType, name, resourceInputs, opts);
Expand Down Expand Up @@ -170,6 +182,14 @@ export interface WebhookState {
* The last updater of the webhook
*/
updatedBy?: pulumi.Input<string>;
/**
* The url of the webhook
*/
url?: pulumi.Input<string>;
/**
* The webhook key of the webhook
*/
webhookKey?: pulumi.Input<string>;
}

/**
Expand Down
60 changes: 58 additions & 2 deletions sdk/python/port_pulumi/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def __init__(__self__, *,
security: Optional[pulumi.Input['WebhookSecurityArgs']] = None,
title: Optional[pulumi.Input[str]] = None,
updated_at: Optional[pulumi.Input[str]] = None,
updated_by: Optional[pulumi.Input[str]] = None):
updated_by: Optional[pulumi.Input[str]] = None,
url: Optional[pulumi.Input[str]] = None,
webhook_key: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering Webhook resources.
:param pulumi.Input[str] created_at: The creation date of the webhook
Expand All @@ -160,6 +162,8 @@ def __init__(__self__, *,
:param pulumi.Input[str] title: The title of the webhook
:param pulumi.Input[str] updated_at: The last update date of the webhook
:param pulumi.Input[str] updated_by: The last updater of the webhook
:param pulumi.Input[str] url: The url of the webhook
:param pulumi.Input[str] webhook_key: The webhook key of the webhook
"""
if created_at is not None:
pulumi.set(__self__, "created_at", created_at)
Expand All @@ -183,6 +187,10 @@ def __init__(__self__, *,
pulumi.set(__self__, "updated_at", updated_at)
if updated_by is not None:
pulumi.set(__self__, "updated_by", updated_by)
if url is not None:
pulumi.set(__self__, "url", url)
if webhook_key is not None:
pulumi.set(__self__, "webhook_key", webhook_key)

@property
@pulumi.getter(name="createdAt")
Expand Down Expand Up @@ -316,6 +324,30 @@ def updated_by(self) -> Optional[pulumi.Input[str]]:
def updated_by(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "updated_by", value)

@property
@pulumi.getter
def url(self) -> Optional[pulumi.Input[str]]:
"""
The url of the webhook
"""
return pulumi.get(self, "url")

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

@property
@pulumi.getter(name="webhookKey")
def webhook_key(self) -> Optional[pulumi.Input[str]]:
"""
The webhook key of the webhook
"""
return pulumi.get(self, "webhook_key")

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


class Webhook(pulumi.CustomResource):
@overload
Expand Down Expand Up @@ -392,6 +424,8 @@ def _internal_init(__self__,
__props__.__dict__["created_by"] = None
__props__.__dict__["updated_at"] = None
__props__.__dict__["updated_by"] = None
__props__.__dict__["url"] = None
__props__.__dict__["webhook_key"] = None
super(Webhook, __self__).__init__(
'port:index/webhook:Webhook',
resource_name,
Expand All @@ -412,7 +446,9 @@ def get(resource_name: str,
security: Optional[pulumi.Input[pulumi.InputType['WebhookSecurityArgs']]] = None,
title: Optional[pulumi.Input[str]] = None,
updated_at: Optional[pulumi.Input[str]] = None,
updated_by: Optional[pulumi.Input[str]] = None) -> 'Webhook':
updated_by: Optional[pulumi.Input[str]] = None,
url: Optional[pulumi.Input[str]] = None,
webhook_key: Optional[pulumi.Input[str]] = None) -> 'Webhook':
"""
Get an existing Webhook resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
Expand All @@ -431,6 +467,8 @@ def get(resource_name: str,
:param pulumi.Input[str] title: The title of the webhook
:param pulumi.Input[str] updated_at: The last update date of the webhook
:param pulumi.Input[str] updated_by: The last updater of the webhook
:param pulumi.Input[str] url: The url of the webhook
:param pulumi.Input[str] webhook_key: The webhook key of the webhook
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))

Expand All @@ -447,6 +485,8 @@ def get(resource_name: str,
__props__.__dict__["title"] = title
__props__.__dict__["updated_at"] = updated_at
__props__.__dict__["updated_by"] = updated_by
__props__.__dict__["url"] = url
__props__.__dict__["webhook_key"] = webhook_key
return Webhook(resource_name, opts=opts, __props__=__props__)

@property
Expand Down Expand Up @@ -537,3 +577,19 @@ def updated_by(self) -> pulumi.Output[str]:
"""
return pulumi.get(self, "updated_by")

@property
@pulumi.getter
def url(self) -> pulumi.Output[str]:
"""
The url of the webhook
"""
return pulumi.get(self, "url")

@property
@pulumi.getter(name="webhookKey")
def webhook_key(self) -> pulumi.Output[str]:
"""
The webhook key of the webhook
"""
return pulumi.get(self, "webhook_key")

0 comments on commit caaad6f

Please sign in to comment.