Skip to content

Commit

Permalink
Upgrade terraform-provider-mist to v0.2.14 (#242)
Browse files Browse the repository at this point in the history
* make tfgen

* make build_sdks
  • Loading branch information
pulumi-bot authored Dec 23, 2024
1 parent a9e14d7 commit d46c8d3
Show file tree
Hide file tree
Showing 14 changed files with 116 additions and 42 deletions.
8 changes: 4 additions & 4 deletions provider/cmd/pulumi-resource-junipermist/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29780,7 +29780,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 a 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\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 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",
"properties": {
"nodes": {
"type": "array",
Expand Down Expand Up @@ -32286,7 +32286,7 @@
"items": {
"$ref": "#/types/junipermist:org/InventoryDevice:InventoryDevice"
},
"description": "**DEPRECATED** List of devices to manage. Exactly one of `claim_code` or `mac` field must be set\n",
"description": "**DEPRECATED** The `devices` attribute has been deprecated in version v0.2.0 of the Juniper-Mist Provider. It has been\nreplaced with the `inventory` map and may be removed in future versions. Please update your configurations to use the\n`inventory` attribute. List of devices to manage. Exactly one of `claim_code` or `mac` field must be set\n",
"deprecationMessage": "The `devices` attribute has been deprecated in version v0.2.0 of the Juniper-Mist Provider. It has been replaced with the `inventory` map and may be removed in future versions.\nPlease update your configurations to use the `inventory` attribute."
},
"inventory": {
Expand Down Expand Up @@ -32316,7 +32316,7 @@
"items": {
"$ref": "#/types/junipermist:org/InventoryDevice:InventoryDevice"
},
"description": "**DEPRECATED** List of devices to manage. Exactly one of `claim_code` or `mac` field must be set\n",
"description": "**DEPRECATED** The `devices` attribute has been deprecated in version v0.2.0 of the Juniper-Mist Provider. It has been\nreplaced with the `inventory` map and may be removed in future versions. Please update your configurations to use the\n`inventory` attribute. List of devices to manage. Exactly one of `claim_code` or `mac` field must be set\n",
"deprecationMessage": "The `devices` attribute has been deprecated in version v0.2.0 of the Juniper-Mist Provider. It has been replaced with the `inventory` map and may be removed in future versions.\nPlease update your configurations to use the `inventory` attribute."
},
"inventory": {
Expand Down Expand Up @@ -32346,7 +32346,7 @@
"items": {
"$ref": "#/types/junipermist:org/InventoryDevice:InventoryDevice"
},
"description": "**DEPRECATED** List of devices to manage. Exactly one of `claim_code` or `mac` field must be set\n",
"description": "**DEPRECATED** The `devices` attribute has been deprecated in version v0.2.0 of the Juniper-Mist Provider. It has been\nreplaced with the `inventory` map and may be removed in future versions. Please update your configurations to use the\n`inventory` attribute. List of devices to manage. Exactly one of `claim_code` or `mac` field must be set\n",
"deprecationMessage": "The `devices` attribute has been deprecated in version v0.2.0 of the Juniper-Mist Provider. It has been replaced with the `inventory` map and may be removed in future versions.\nPlease update your configurations to use the `inventory` attribute."
},
"inventory": {
Expand Down
4 changes: 3 additions & 1 deletion sdk/dotnet/Device/GatewayCluster.cs

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

12 changes: 9 additions & 3 deletions sdk/dotnet/Org/Inventory.cs

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

4 changes: 3 additions & 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.

Loading

0 comments on commit d46c8d3

Please sign in to comment.