Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade terraform-provider-ns1 to v2.5.0 #608

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions patches/0001-fork.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Subject: [PATCH] fork


diff --git a/go.mod b/go.mod
index 41856e9..4243ab5 100644
index 2e027ee..2c7e6d6 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
Expand All @@ -28,7 +28,7 @@ index 97093e2..dd93b8b 100644

func main() {
diff --git a/ns1/resource_record.go b/ns1/resource_record.go
index 2376c78..0fb522a 100644
index 540071e..cc9efbe 100644
--- a/ns1/resource_record.go
+++ b/ns1/resource_record.go
@@ -102,14 +102,7 @@ func recordResource() *schema.Resource {
Expand Down
15 changes: 15 additions & 0 deletions provider/cmd/pulumi-resource-ns1/bridge-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@
}
}
},
"ns1_alert": {
"current": "ns1:index/alert:Alert",
"majorVersion": 3,
"fields": {
"notification_lists": {
"maxItemsOne": false
},
"record_ids": {
"maxItemsOne": false
},
"zone_names": {
"maxItemsOne": false
}
}
},
"ns1_apikey": {
"current": "ns1:index/aPIKey:APIKey",
"majorVersion": 3,
Expand Down
157 changes: 157 additions & 0 deletions provider/cmd/pulumi-resource-ns1/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,163 @@
"type": "object"
}
},
"ns1:index/alert:Alert": {
"description": "Provides a NS1 Alert resource. This can be used to create, modify, and delete alerts.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as ns1 from \"@pulumi/ns1\";\n\nconst example = new ns1.Alert(\"example\", {\n name: \"Example Alert\",\n type: \"zone\",\n subtype: \"transfer_failed\",\n notificationLists: [],\n zoneNames: [],\n recordIds: [],\n});\n```\n```python\nimport pulumi\nimport pulumi_ns1 as ns1\n\nexample = ns1.Alert(\"example\",\n name=\"Example Alert\",\n type=\"zone\",\n subtype=\"transfer_failed\",\n notification_lists=[],\n zone_names=[],\n record_ids=[])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Ns1 = Pulumi.Ns1;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var example = new Ns1.Alert(\"example\", new()\n {\n Name = \"Example Alert\",\n Type = \"zone\",\n Subtype = \"transfer_failed\",\n NotificationLists = new[] {},\n ZoneNames = new[] {},\n RecordIds = new[] {},\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-ns1/sdk/v3/go/ns1\"\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_, err := ns1.NewAlert(ctx, \"example\", \u0026ns1.AlertArgs{\n\t\t\tName: pulumi.String(\"Example Alert\"),\n\t\t\tType: pulumi.String(\"zone\"),\n\t\t\tSubtype: pulumi.String(\"transfer_failed\"),\n\t\t\tNotificationLists: pulumi.StringArray{},\n\t\t\tZoneNames: pulumi.StringArray{},\n\t\t\tRecordIds: pulumi.StringArray{},\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.ns1.Alert;\nimport com.pulumi.ns1.AlertArgs;\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 var example = new Alert(\"example\", AlertArgs.builder()\n .name(\"Example Alert\")\n .type(\"zone\")\n .subtype(\"transfer_failed\")\n .notificationLists()\n .zoneNames()\n .recordIds()\n .build());\n\n }\n}\n```\n```yaml\nresources:\n example:\n type: ns1:Alert\n properties:\n name: Example Alert\n type: zone\n subtype: transfer_failed\n notificationLists: []\n zoneNames: []\n recordIds: []\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## NS1 Documentation\n\n[Alerts Api Doc](https://ns1.com/api#alerts)\n\n## Import\n\n```sh\n$ pulumi import ns1:index/alert:Alert \u003cname\u003e \u003calert_id\u003e`\n```\n\n",
"properties": {
"createdAt": {
"type": "integer",
"description": "(Read Only) The Unix timestamp representing when the alert configuration was created.\n"
},
"createdBy": {
"type": "string",
"description": "(Read Only) The user or apikey that created this alert.\n"
},
"name": {
"type": "string",
"description": "The free-form display name for the alert.\n"
},
"notificationLists": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of id's for notification lists whose notifiers will be triggered by the alert.\n"
},
"recordIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of record id's this alert applies to.\n"
},
"subtype": {
"type": "string",
"description": "The type of the alert.\n"
},
"type": {
"type": "string",
"description": "The type of the alert.\n"
},
"updatedAt": {
"type": "integer",
"description": "(Read Only) The Unix timestamp representing when the alert configuration was last modified.\n"
},
"updatedBy": {
"type": "string",
"description": "(Read Only) The user or apikey that last modified this alert.\n"
},
"zoneNames": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of zones this alert applies to.\n"
}
},
"required": [
"createdAt",
"createdBy",
"name",
"subtype",
"type",
"updatedAt",
"updatedBy"
],
"inputProperties": {
"name": {
"type": "string",
"description": "The free-form display name for the alert.\n"
},
"notificationLists": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of id's for notification lists whose notifiers will be triggered by the alert.\n"
},
"recordIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of record id's this alert applies to.\n"
},
"subtype": {
"type": "string",
"description": "The type of the alert.\n"
},
"type": {
"type": "string",
"description": "The type of the alert.\n"
},
"zoneNames": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of zones this alert applies to.\n"
}
},
"requiredInputs": [
"subtype",
"type"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering Alert resources.\n",
"properties": {
"createdAt": {
"type": "integer",
"description": "(Read Only) The Unix timestamp representing when the alert configuration was created.\n"
},
"createdBy": {
"type": "string",
"description": "(Read Only) The user or apikey that created this alert.\n"
},
"name": {
"type": "string",
"description": "The free-form display name for the alert.\n"
},
"notificationLists": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of id's for notification lists whose notifiers will be triggered by the alert.\n"
},
"recordIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of record id's this alert applies to.\n"
},
"subtype": {
"type": "string",
"description": "The type of the alert.\n"
},
"type": {
"type": "string",
"description": "The type of the alert.\n"
},
"updatedAt": {
"type": "integer",
"description": "(Read Only) The Unix timestamp representing when the alert configuration was last modified.\n"
},
"updatedBy": {
"type": "string",
"description": "(Read Only) The user or apikey that last modified this alert.\n"
},
"zoneNames": {
"type": "array",
"items": {
"type": "string"
},
"description": "A list of zones this alert applies to.\n"
}
},
"type": "object"
}
},
"ns1:index/application:Application": {
"description": "Provides a NS1 Pulsar application resource. This can be used to create, modify, and delete applications.\n\n## Import\n\n```sh\n$ pulumi import ns1:index/application:Application `ns1_application`\n```\n\nSo for the example above:\n\n```sh\n$ pulumi import ns1:index/application:Application example terraform.example.io`\n```\n\n",
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ require (
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/grpc v1.67.1 // indirect
google.golang.org/protobuf v1.35.1 // indirect
gopkg.in/ns1/ns1-go.v2 v2.12.2 // indirect
gopkg.in/ns1/ns1-go.v2 v2.13.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/frand v1.4.2 // indirect
Expand Down
4 changes: 2 additions & 2 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2952,8 +2952,8 @@ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EV
gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/ns1/ns1-go.v2 v2.12.2 h1:SPM5BTTMJ1zVBhMMiiPFdF7l6Y3fq5o7bKM7jDqsUfM=
gopkg.in/ns1/ns1-go.v2 v2.12.2/go.mod h1:pfaU0vECVP7DIOr453z03HXS6dFJpXdNRwOyRzwmPSc=
gopkg.in/ns1/ns1-go.v2 v2.13.0 h1:I5NNqI9Bi1SGK92TVkOvLTwux5LNrix/99H2datVh48=
gopkg.in/ns1/ns1-go.v2 v2.13.0/go.mod h1:pfaU0vECVP7DIOr453z03HXS6dFJpXdNRwOyRzwmPSc=
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=
gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
Expand Down
Loading
Loading