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-mist to v0.2.17 #251

Merged
merged 2 commits into from
Jan 6, 2025
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
2 changes: 1 addition & 1 deletion .pulumi-java-gen.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.20.0
0.21.0
2 changes: 1 addition & 1 deletion provider/cmd/pulumi-resource-junipermist/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30076,7 +30076,7 @@
}
},
"junipermist:device/gatewayCluster:GatewayCluster": {
"description": "This resource can be used to form or delete a Gateway\n Clusters. It can be used with two Gateways assigned to the same site.\nOnce the Cluster is formed, it can be create just like a Gateway with the `junipermist.device.Gateway` resource:\n1. Claim the gateways and assign them to the same site with the `junipermist.org.Inventory` resource\n2. Form the Cluster with the `junipermist.device.GatewayCluster` resource by providing the `site_id` and the two nodes MAC Addresses (the first in the list will be the node0)\n3. Configure the Cluster with the `junipermist.device.Gateway` resource\n\nPlease check the Juniper Documentation first to validate the cabling between the Gateways\n\n\u003e Both gateways must belong to the same site when creating the Gateway Cluster\n\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as junipermist from \"@pulumi/juniper-mist\";\n\nconst clusterOne = new junipermist.device.GatewayCluster(\"cluster_one\", {\n siteId: terraformSite2.id,\n nodes: [\n {\n mac: \"4c961000000\",\n },\n {\n mac: \"4c961000001\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_juniper_mist as junipermist\n\ncluster_one = junipermist.device.GatewayCluster(\"cluster_one\",\n site_id=terraform_site2[\"id\"],\n nodes=[\n {\n \"mac\": \"4c961000000\",\n },\n {\n \"mac\": \"4c961000001\",\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing JuniperMist = Pulumi.JuniperMist;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var clusterOne = new JuniperMist.Device.GatewayCluster(\"cluster_one\", new()\n {\n SiteId = terraformSite2.Id,\n Nodes = new[]\n {\n new JuniperMist.Device.Inputs.GatewayClusterNodeArgs\n {\n Mac = \"4c961000000\",\n },\n new JuniperMist.Device.Inputs.GatewayClusterNodeArgs\n {\n Mac = \"4c961000001\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/device\"\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 := device.NewGatewayCluster(ctx, \"cluster_one\", \u0026device.GatewayClusterArgs{\n\t\t\tSiteId: pulumi.Any(terraformSite2.Id),\n\t\t\tNodes: device.GatewayClusterNodeArray{\n\t\t\t\t\u0026device.GatewayClusterNodeArgs{\n\t\t\t\t\tMac: pulumi.String(\"4c961000000\"),\n\t\t\t\t},\n\t\t\t\t\u0026device.GatewayClusterNodeArgs{\n\t\t\t\t\tMac: pulumi.String(\"4c961000001\"),\n\t\t\t\t},\n\t\t\t},\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.junipermist.device.GatewayCluster;\nimport com.pulumi.junipermist.device.GatewayClusterArgs;\nimport com.pulumi.junipermist.device.inputs.GatewayClusterNodeArgs;\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 clusterOne = new GatewayCluster(\"clusterOne\", GatewayClusterArgs.builder()\n .siteId(terraformSite2.id())\n .nodes( \n GatewayClusterNodeArgs.builder()\n .mac(\"4c961000000\")\n .build(),\n GatewayClusterNodeArgs.builder()\n .mac(\"4c961000001\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n clusterOne:\n type: junipermist:device:GatewayCluster\n name: cluster_one\n properties:\n siteId: ${terraformSite2.id}\n nodes:\n - mac: 4c961000000\n - mac: 4c961000001\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nUsing `pulumi import`, import `mist_device_gateway_cluster` with:\n\nGateway cluster can be imported by specifying the org_id and the cluster_id\n\n```sh\n$ pulumi import junipermist:device/gatewayCluster:GatewayCluster cluster_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309\n```\n\n",
"description": "This resource can be used to form or delete a Gateway\n Clusters. It can be used with two Gateways assigned to the same site.\nOnce the Cluster is formed, it can be create just like a Gateway with the `junipermist.device.Gateway` resource:\n1. Claim the gateways and assign them to the same site with the `junipermist.org.Inventory` resource\n2. Form the Cluster with the `junipermist.device.GatewayCluster` resource by providing the `site_id` and the two nodes MAC Addresses (the first in the list will be the node0)\n3. Configure the Cluster with the `junipermist.device.Gateway` resource\n\nPlease check the [SRX Juniper Documentation](https://www.juniper.net/documentation/us/en/software/mist/mist-wan/topics/topic-map/srx-high-availability-configuration.html)or the [SSR Juniper Documentation](https://www.juniper.net/documentation/us/en/software/mist/mist-wan/topics/topic-map/ssr-high-availability-configuration.html) first to validate the cabling between the Gateways\n\n\u003e Both gateways must belong to the same site when creating the Gateway Cluster\n\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as junipermist from \"@pulumi/juniper-mist\";\n\nconst clusterOne = new junipermist.device.GatewayCluster(\"cluster_one\", {\n siteId: terraformSite2.id,\n nodes: [\n {\n mac: \"4c961000000\",\n },\n {\n mac: \"4c961000001\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_juniper_mist as junipermist\n\ncluster_one = junipermist.device.GatewayCluster(\"cluster_one\",\n site_id=terraform_site2[\"id\"],\n nodes=[\n {\n \"mac\": \"4c961000000\",\n },\n {\n \"mac\": \"4c961000001\",\n },\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing JuniperMist = Pulumi.JuniperMist;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var clusterOne = new JuniperMist.Device.GatewayCluster(\"cluster_one\", new()\n {\n SiteId = terraformSite2.Id,\n Nodes = new[]\n {\n new JuniperMist.Device.Inputs.GatewayClusterNodeArgs\n {\n Mac = \"4c961000000\",\n },\n new JuniperMist.Device.Inputs.GatewayClusterNodeArgs\n {\n Mac = \"4c961000001\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/device\"\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 := device.NewGatewayCluster(ctx, \"cluster_one\", \u0026device.GatewayClusterArgs{\n\t\t\tSiteId: pulumi.Any(terraformSite2.Id),\n\t\t\tNodes: device.GatewayClusterNodeArray{\n\t\t\t\t\u0026device.GatewayClusterNodeArgs{\n\t\t\t\t\tMac: pulumi.String(\"4c961000000\"),\n\t\t\t\t},\n\t\t\t\t\u0026device.GatewayClusterNodeArgs{\n\t\t\t\t\tMac: pulumi.String(\"4c961000001\"),\n\t\t\t\t},\n\t\t\t},\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.junipermist.device.GatewayCluster;\nimport com.pulumi.junipermist.device.GatewayClusterArgs;\nimport com.pulumi.junipermist.device.inputs.GatewayClusterNodeArgs;\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 clusterOne = new GatewayCluster(\"clusterOne\", GatewayClusterArgs.builder()\n .siteId(terraformSite2.id())\n .nodes( \n GatewayClusterNodeArgs.builder()\n .mac(\"4c961000000\")\n .build(),\n GatewayClusterNodeArgs.builder()\n .mac(\"4c961000001\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n clusterOne:\n type: junipermist:device:GatewayCluster\n name: cluster_one\n properties:\n siteId: ${terraformSite2.id}\n nodes:\n - mac: 4c961000000\n - mac: 4c961000001\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nUsing `pulumi import`, import `mist_device_gateway_cluster` with:\n\nGateway cluster can be imported by specifying the org_id and the cluster_id\n\n```sh\n$ pulumi import junipermist:device/gatewayCluster:GatewayCluster cluster_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309\n```\n\n",
"properties": {
"nodes": {
"type": "array",
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Device/GatewayCluster.cs

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

2 changes: 1 addition & 1 deletion sdk/go/junipermist/device/gatewayCluster.go

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

18 changes: 10 additions & 8 deletions sdk/java/build.gradle

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

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

2 changes: 1 addition & 1 deletion sdk/nodejs/device/gatewayCluster.ts

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

4 changes: 2 additions & 2 deletions sdk/python/pulumi_juniper_mist/device/gateway_cluster.py

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

Loading