Skip to content

Commit

Permalink
Upgrade terraform-provider-mailgun to v0.7.6 (#366)
Browse files Browse the repository at this point in the history
This PR was generated via `$ upgrade-provider pulumi/pulumi-mailgun
--kind=all --target-bridge-version=latest`.

---

- Upgrading terraform-provider-mailgun from 0.7.5  to 0.7.6.
	Fixes #365
  • Loading branch information
pulumi-bot committed May 1, 2024
1 parent a638e15 commit 7c6f7e0
Show file tree
Hide file tree
Showing 18 changed files with 783 additions and 13 deletions.
44 changes: 43 additions & 1 deletion provider/cmd/pulumi-resource-mailgun/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,10 @@
"mailgun:index/domain:Domain": {
"description": "Provides a Mailgun App resource. This can be used to\ncreate and manage applications on Mailgun.\n\nAfter DNS records are set, domain verification should be triggered manually using [PUT /domains/\\\u003cdomain\\\u003e/verify](https://documentation.mailgun.com/en/latest/api-domains.html#domains)\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mailgun from \"@pulumi/mailgun\";\n\n// Create a new Mailgun domain\nconst _default = new mailgun.Domain(\"default\", {\n name: \"test.example.com\",\n region: \"us\",\n spamAction: \"disabled\",\n smtpPassword: \"supersecretpassword1234\",\n dkimKeySize: 1024,\n});\n```\n```python\nimport pulumi\nimport pulumi_mailgun as mailgun\n\n# Create a new Mailgun domain\ndefault = mailgun.Domain(\"default\",\n name=\"test.example.com\",\n region=\"us\",\n spam_action=\"disabled\",\n smtp_password=\"supersecretpassword1234\",\n dkim_key_size=1024)\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mailgun = Pulumi.Mailgun;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n // Create a new Mailgun domain\n var @default = new Mailgun.Domain(\"default\", new()\n {\n Name = \"test.example.com\",\n Region = \"us\",\n SpamAction = \"disabled\",\n SmtpPassword = \"supersecretpassword1234\",\n DkimKeySize = 1024,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mailgun/sdk/v3/go/mailgun\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t// Create a new Mailgun domain\n\t\t_, err := mailgun.NewDomain(ctx, \"default\", \u0026mailgun.DomainArgs{\n\t\t\tName: pulumi.String(\"test.example.com\"),\n\t\t\tRegion: pulumi.String(\"us\"),\n\t\t\tSpamAction: pulumi.String(\"disabled\"),\n\t\t\tSmtpPassword: pulumi.String(\"supersecretpassword1234\"),\n\t\t\tDkimKeySize: pulumi.Int(1024),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mailgun.Domain;\nimport com.pulumi.mailgun.DomainArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n // Create a new Mailgun domain\n var default_ = new Domain(\"default\", DomainArgs.builder() \n .name(\"test.example.com\")\n .region(\"us\")\n .spamAction(\"disabled\")\n .smtpPassword(\"supersecretpassword1234\")\n .dkimKeySize(1024)\n .build());\n\n }\n}\n```\n```yaml\nresources:\n # Create a new Mailgun domain\n default:\n type: mailgun:Domain\n properties:\n name: test.example.com\n region: us\n spamAction: disabled\n smtpPassword: supersecretpassword1234\n dkimKeySize: 1024\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nDomains can be imported using `region:domain_name` via `import` command. Region has to be chosen from `eu` or `us` (when no selection `us` is applied). \n\nhcl\n\n```sh\n$ pulumi import mailgun:index/domain:Domain test us:example.domain.com\n```\n\n",
"properties": {
"clickTracking": {
"type": "boolean",
"description": "(Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no`\n"
},
"dkimKeySize": {
"type": "integer",
"description": "The length of your domain’s generated DKIM key. Default value is `1024`.\n"
Expand Down Expand Up @@ -437,6 +441,10 @@
"type": "string",
"description": "`disabled` or `tag` Disable, no spam\nfiltering will occur for inbound messages. Tag, messages\nwill be tagged with a spam header. Default value is `disabled`.\n"
},
"webScheme": {
"type": "string",
"description": "(`http` or `https`) The tracking web scheme. Default: `http`\n"
},
"wildcard": {
"type": "boolean",
"description": "Boolean that determines whether\nthe domain will accept email for sub-domains.\n"
Expand All @@ -451,6 +459,10 @@
"smtpLogin"
],
"inputProperties": {
"clickTracking": {
"type": "boolean",
"description": "(Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no`\n"
},
"dkimKeySize": {
"type": "integer",
"description": "The length of your domain’s generated DKIM key. Default value is `1024`.\n",
Expand Down Expand Up @@ -490,6 +502,10 @@
"description": "`disabled` or `tag` Disable, no spam\nfiltering will occur for inbound messages. Tag, messages\nwill be tagged with a spam header. Default value is `disabled`.\n",
"willReplaceOnChanges": true
},
"webScheme": {
"type": "string",
"description": "(`http` or `https`) The tracking web scheme. Default: `http`\n"
},
"wildcard": {
"type": "boolean",
"description": "Boolean that determines whether\nthe domain will accept email for sub-domains.\n",
Expand All @@ -499,6 +515,10 @@
"stateInputs": {
"description": "Input properties used for looking up and filtering Domain resources.\n",
"properties": {
"clickTracking": {
"type": "boolean",
"description": "(Enum: `yes` or `no`) The click tracking settings for the domain. Default: `no`\n"
},
"dkimKeySize": {
"type": "integer",
"description": "The length of your domain’s generated DKIM key. Default value is `1024`.\n",
Expand Down Expand Up @@ -572,6 +592,10 @@
"description": "`disabled` or `tag` Disable, no spam\nfiltering will occur for inbound messages. Tag, messages\nwill be tagged with a spam header. Default value is `disabled`.\n",
"willReplaceOnChanges": true
},
"webScheme": {
"type": "string",
"description": "(`http` or `https`) The tracking web scheme. Default: `http`\n"
},
"wildcard": {
"type": "boolean",
"description": "Boolean that determines whether\nthe domain will accept email for sub-domains.\n",
Expand Down Expand Up @@ -842,6 +866,10 @@
"inputs": {
"description": "A collection of arguments for invoking getDomain.\n",
"properties": {
"clickTracking": {
"type": "boolean",
"description": "The click tracking setting.\n"
},
"dkimKeySize": {
"type": "integer",
"willReplaceOnChanges": true
Expand All @@ -860,7 +888,8 @@
"willReplaceOnChanges": true
},
"openTracking": {
"type": "boolean"
"type": "boolean",
"description": "The open tracking setting.\n"
},
"region": {
"type": "string",
Expand All @@ -877,6 +906,10 @@
"description": "The spam filtering setting.\n",
"willReplaceOnChanges": true
},
"webScheme": {
"type": "string",
"description": "The tracking web scheme.\n"
},
"wildcard": {
"type": "boolean",
"description": "Whether or not the domain will accept email for sub-domains.\n",
Expand All @@ -891,6 +924,10 @@
"outputs": {
"description": "A collection of values returned by getDomain.\n",
"properties": {
"clickTracking": {
"description": "The click tracking setting.\n",
"type": "boolean"
},
"dkimKeySize": {
"type": "integer"
},
Expand All @@ -909,6 +946,7 @@
"type": "string"
},
"openTracking": {
"description": "The open tracking setting.\n",
"type": "boolean"
},
"receivingRecords": {
Expand Down Expand Up @@ -955,6 +993,10 @@
"description": "The spam filtering setting.\n",
"type": "string"
},
"webScheme": {
"description": "The tracking web scheme.\n",
"type": "string"
},
"wildcard": {
"description": "Whether or not the domain will accept email for sub-domains.\n",
"type": "boolean"
Expand Down
3 changes: 2 additions & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ require (
github.com/fatih/color v1.16.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/gedex/inflector v0.0.0-20170307190818-16278e9db813 // indirect
github.com/go-chi/chi/v5 v5.0.8 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/go-git/go-git/v5 v5.11.0 // indirect
Expand Down Expand Up @@ -141,7 +142,7 @@ require (
github.com/klauspost/compress v1.15.11 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mailgun/mailgun-go/v4 v4.8.1 // indirect
github.com/mailgun/mailgun-go/v4 v4.12.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
Expand Down
6 changes: 4 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1790,6 +1790,8 @@ github.com/gin-gonic/gin v1.7.7/go.mod h1:axIBovoeJpVj8S3BwE0uPMTeReE4+AfFtqpqaZ
github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY=
github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4=
github.com/go-asn1-ber/asn1-ber v1.3.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0=
github.com/go-chi/chi/v5 v5.0.8 h1:lD+NLqFcAi1ovnVZpsnObHGW4xb4J8lNmoYVfECH1Y0=
github.com/go-chi/chi/v5 v5.0.8/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g=
github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks=
github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY=
Expand Down Expand Up @@ -2449,8 +2451,8 @@ github.com/lyft/protoc-gen-star/v2 v2.0.3/go.mod h1:amey7yeodaJhXSbf/TlLvWiqQfLO
github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ=
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
github.com/mailgun/mailgun-go/v4 v4.8.1 h1:1+MdKakJuXnW2JJDbyPdO1ngAANOyHyVPxQvFF8Sq6c=
github.com/mailgun/mailgun-go/v4 v4.8.1/go.mod h1:FJlF9rI5cQT+mrwujtJjPMbIVy3Ebor9bKTVsJ0QU40=
github.com/mailgun/mailgun-go/v4 v4.12.0 h1:TtuQCgqSp4cB6swPxP5VF/u4JeeBIAjTdpuQ+4Usd/w=
github.com/mailgun/mailgun-go/v4 v4.12.0/go.mod h1:L9s941Lgk7iB3TgywTPz074pK2Ekkg4kgbnAaAyJ2z8=
github.com/mailru/easyjson v0.0.0-20160728113105-d5b7844b561a/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
Expand Down
36 changes: 36 additions & 0 deletions sdk/dotnet/Domain.cs

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

47 changes: 47 additions & 0 deletions sdk/dotnet/GetDomain.cs

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

Loading

0 comments on commit 7c6f7e0

Please sign in to comment.