@pulumi/juniper-mist 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,13 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "../types/input";
3
3
  import * as outputs from "../types/output";
4
4
  /**
5
- * This resource manages the Gateway Clusters.It can be used to form or unset a cluster with two Gateways assigned to the same site.Please check the Juniper Documentation first to validate the cabling between the Gateways
5
+ * This resource can be used to form or delete a Gateway Clusters. It can be used with two Gateways assigned to the same site.
6
+ * Once the Cluster is formed, it can be create just like a Gateway with the `junipermist.device.Gateway` resource:
7
+ * 1. Claim the gateways and assign them to a site with the `junipermist.org.Inventory` resource
8
+ * 2. Form the Cluster with the `junipermist.device.GatewayCluster` resource by providing the `siteId` and the two nodes MAC Addresses (the first in the list will be the node0)
9
+ * 3. Configure the Cluster with the `junipermist.device.Gateway` resource
10
+ *
11
+ * Please check the Juniper Documentation first to validate the cabling between the Gateways
6
12
  *
7
13
  * ## Example Usage
8
14
  *
@@ -12,7 +18,6 @@ import * as outputs from "../types/output";
12
18
  *
13
19
  * const clusterOne = new junipermist.device.GatewayCluster("cluster_one", {
14
20
  * siteId: terraformSite2.id,
15
- * deviceId: "00000000-0000-0000-1000-4c96143de700",
16
21
  * nodes: [
17
22
  * {
18
23
  * mac: "4c961000000",
@@ -41,6 +46,9 @@ export declare class GatewayCluster extends pulumi.CustomResource {
41
46
  */
42
47
  static isInstance(obj: any): obj is GatewayCluster;
43
48
  readonly deviceId: pulumi.Output<string>;
49
+ /**
50
+ * when replacing a node, either mac has to remain the same as existing cluster
51
+ */
44
52
  readonly nodes: pulumi.Output<outputs.device.GatewayClusterNode[]>;
45
53
  readonly siteId: pulumi.Output<string>;
46
54
  /**
@@ -57,6 +65,9 @@ export declare class GatewayCluster extends pulumi.CustomResource {
57
65
  */
58
66
  export interface GatewayClusterState {
59
67
  deviceId?: pulumi.Input<string>;
68
+ /**
69
+ * when replacing a node, either mac has to remain the same as existing cluster
70
+ */
60
71
  nodes?: pulumi.Input<pulumi.Input<inputs.device.GatewayClusterNode>[]>;
61
72
  siteId?: pulumi.Input<string>;
62
73
  }
@@ -64,7 +75,9 @@ export interface GatewayClusterState {
64
75
  * The set of arguments for constructing a GatewayCluster resource.
65
76
  */
66
77
  export interface GatewayClusterArgs {
67
- deviceId: pulumi.Input<string>;
78
+ /**
79
+ * when replacing a node, either mac has to remain the same as existing cluster
80
+ */
68
81
  nodes: pulumi.Input<pulumi.Input<inputs.device.GatewayClusterNode>[]>;
69
82
  siteId: pulumi.Input<string>;
70
83
  }
@@ -6,7 +6,13 @@ exports.GatewayCluster = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * This resource manages the Gateway Clusters.It can be used to form or unset a cluster with two Gateways assigned to the same site.Please check the Juniper Documentation first to validate the cabling between the Gateways
9
+ * This resource can be used to form or delete a Gateway Clusters. It can be used with two Gateways assigned to the same site.
10
+ * Once the Cluster is formed, it can be create just like a Gateway with the `junipermist.device.Gateway` resource:
11
+ * 1. Claim the gateways and assign them to a site with the `junipermist.org.Inventory` resource
12
+ * 2. Form the Cluster with the `junipermist.device.GatewayCluster` resource by providing the `siteId` and the two nodes MAC Addresses (the first in the list will be the node0)
13
+ * 3. Configure the Cluster with the `junipermist.device.Gateway` resource
14
+ *
15
+ * Please check the Juniper Documentation first to validate the cabling between the Gateways
10
16
  *
11
17
  * ## Example Usage
12
18
  *
@@ -16,7 +22,6 @@ const utilities = require("../utilities");
16
22
  *
17
23
  * const clusterOne = new junipermist.device.GatewayCluster("cluster_one", {
18
24
  * siteId: terraformSite2.id,
19
- * deviceId: "00000000-0000-0000-1000-4c96143de700",
20
25
  * nodes: [
21
26
  * {
22
27
  * mac: "4c961000000",
@@ -62,18 +67,15 @@ class GatewayCluster extends pulumi.CustomResource {
62
67
  }
63
68
  else {
64
69
  const args = argsOrState;
65
- if ((!args || args.deviceId === undefined) && !opts.urn) {
66
- throw new Error("Missing required property 'deviceId'");
67
- }
68
70
  if ((!args || args.nodes === undefined) && !opts.urn) {
69
71
  throw new Error("Missing required property 'nodes'");
70
72
  }
71
73
  if ((!args || args.siteId === undefined) && !opts.urn) {
72
74
  throw new Error("Missing required property 'siteId'");
73
75
  }
74
- resourceInputs["deviceId"] = args ? args.deviceId : undefined;
75
76
  resourceInputs["nodes"] = args ? args.nodes : undefined;
76
77
  resourceInputs["siteId"] = args ? args.siteId : undefined;
78
+ resourceInputs["deviceId"] = undefined /*out*/;
77
79
  }
78
80
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
79
81
  super(GatewayCluster.__pulumiType, name, resourceInputs, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"gatewayCluster.js","sourceRoot":"","sources":["../../device/gatewayCluster.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAcD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAA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"@pulumi/juniper-mist",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "A Pulumi package for creating and managing Juniper Mist resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -25,7 +25,7 @@
25
25
  "pulumi": {
26
26
  "resource": true,
27
27
  "name": "junipermist",
28
- "version": "0.0.6",
28
+ "version": "0.0.7",
29
29
  "server": "github://api.github.com/pulumi/pulumi-junipermist"
30
30
  }
31
31
  }
package/types/input.d.ts CHANGED
@@ -584,7 +584,7 @@ export declare namespace device {
584
584
  }
585
585
  interface GatewayClusterNode {
586
586
  /**
587
- * when replacing a noce, either mac has to remain the same as existing cluster
587
+ * Gateway MAC Address. Format is `[0-9a-f]{12}` (e.g "5684dae9ac8b")
588
588
  */
589
589
  mac: pulumi.Input<string>;
590
590
  }
@@ -607,7 +607,7 @@ export declare namespace device {
607
607
  */
608
608
  dnsSuffixes?: pulumi.Input<pulumi.Input<string>[]>;
609
609
  /**
610
- * Property key is the MAC Address
610
+ * Property key is the MAC Address. Format is `[0-9a-f]{12}` (e.g "5684dae9ac8b")
611
611
  */
612
612
  fixedBindings?: pulumi.Input<{
613
613
  [key: string]: pulumi.Input<inputs.device.GatewayDhcpdConfigConfigFixedBindings>;
@@ -1729,7 +1729,7 @@ export declare namespace device {
1729
1729
  */
1730
1730
  dnsSuffixes?: pulumi.Input<pulumi.Input<string>[]>;
1731
1731
  /**
1732
- * Property key is the MAC Address
1732
+ * Property key is the MAC Address. Format is `[0-9a-f]{12}` (e.g "5684dae9ac8b")
1733
1733
  */
1734
1734
  fixedBindings?: pulumi.Input<{
1735
1735
  [key: string]: pulumi.Input<inputs.device.SwitchDhcpdConfigConfigFixedBindings>;
@@ -3297,7 +3297,7 @@ export declare namespace org {
3297
3297
  */
3298
3298
  dnsSuffixes?: pulumi.Input<pulumi.Input<string>[]>;
3299
3299
  /**
3300
- * Property key is the MAC Address
3300
+ * Property key is the MAC Address. Format is `[0-9a-f]{12}` (e.g "5684dae9ac8b")
3301
3301
  */
3302
3302
  fixedBindings?: pulumi.Input<{
3303
3303
  [key: string]: pulumi.Input<inputs.org.DeviceprofileGatewayDhcpdConfigConfigFixedBindings>;
@@ -4396,7 +4396,7 @@ export declare namespace org {
4396
4396
  */
4397
4397
  dnsSuffixes?: pulumi.Input<pulumi.Input<string>[]>;
4398
4398
  /**
4399
- * Property key is the MAC Address
4399
+ * Property key is the MAC Address. Format is `[0-9a-f]{12}` (e.g "5684dae9ac8b")
4400
4400
  */
4401
4401
  fixedBindings?: pulumi.Input<{
4402
4402
  [key: string]: pulumi.Input<inputs.org.GatewaytemplateDhcpdConfigConfigFixedBindings>;
package/types/output.d.ts CHANGED
@@ -709,7 +709,7 @@ export declare namespace device {
709
709
  }
710
710
  interface GatewayClusterNode {
711
711
  /**
712
- * when replacing a noce, either mac has to remain the same as existing cluster
712
+ * Gateway MAC Address. Format is `[0-9a-f]{12}` (e.g "5684dae9ac8b")
713
713
  */
714
714
  mac: string;
715
715
  }
@@ -732,7 +732,7 @@ export declare namespace device {
732
732
  */
733
733
  dnsSuffixes: string[];
734
734
  /**
735
- * Property key is the MAC Address
735
+ * Property key is the MAC Address. Format is `[0-9a-f]{12}` (e.g "5684dae9ac8b")
736
736
  */
737
737
  fixedBindings?: {
738
738
  [key: string]: outputs.device.GatewayDhcpdConfigConfigFixedBindings;
@@ -3298,7 +3298,7 @@ export declare namespace device {
3298
3298
  */
3299
3299
  dnsSuffixes?: string[];
3300
3300
  /**
3301
- * Property key is the MAC Address
3301
+ * Property key is the MAC Address. Format is `[0-9a-f]{12}` (e.g "5684dae9ac8b")
3302
3302
  */
3303
3303
  fixedBindings?: {
3304
3304
  [key: string]: outputs.device.SwitchDhcpdConfigConfigFixedBindings;
@@ -4866,7 +4866,7 @@ export declare namespace org {
4866
4866
  */
4867
4867
  dnsSuffixes: string[];
4868
4868
  /**
4869
- * Property key is the MAC Address
4869
+ * Property key is the MAC Address. Format is `[0-9a-f]{12}` (e.g "5684dae9ac8b")
4870
4870
  */
4871
4871
  fixedBindings?: {
4872
4872
  [key: string]: outputs.org.DeviceprofileGatewayDhcpdConfigConfigFixedBindings;
@@ -5965,7 +5965,7 @@ export declare namespace org {
5965
5965
  */
5966
5966
  dnsSuffixes: string[];
5967
5967
  /**
5968
- * Property key is the MAC Address
5968
+ * Property key is the MAC Address. Format is `[0-9a-f]{12}` (e.g "5684dae9ac8b")
5969
5969
  */
5970
5970
  fixedBindings?: {
5971
5971
  [key: string]: outputs.org.GatewaytemplateDhcpdConfigConfigFixedBindings;