@pulumiverse/unifi 0.0.2 → 0.1.0-alpha.1730131032

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.
Files changed (91) hide show
  1. package/account.d.ts +118 -0
  2. package/account.js +74 -0
  3. package/account.js.map +1 -0
  4. package/device.d.ts +34 -3
  5. package/device.js +36 -25
  6. package/device.js.map +1 -1
  7. package/dynamicDNS.d.ts +2 -2
  8. package/dynamicDNS.js +24 -24
  9. package/dynamicDNS.js.map +1 -1
  10. package/firewall/group.d.ts +3 -2
  11. package/firewall/group.js +25 -24
  12. package/firewall/group.js.map +1 -1
  13. package/firewall/index.d.ts +2 -2
  14. package/firewall/rule.d.ts +77 -4
  15. package/firewall/rule.js +37 -27
  16. package/firewall/rule.js.map +1 -1
  17. package/getAccount.d.ts +68 -0
  18. package/getAccount.js +30 -0
  19. package/getAccount.js.map +1 -0
  20. package/getApGroup.d.ts +13 -1
  21. package/getApGroup.js +20 -6
  22. package/getApGroup.js.map +1 -1
  23. package/getNetwork.d.ts +95 -3
  24. package/getNetwork.js +33 -6
  25. package/getNetwork.js.map +1 -1
  26. package/getRadiusProfile.d.ts +7 -4
  27. package/getRadiusProfile.js +11 -6
  28. package/getRadiusProfile.js.map +1 -1
  29. package/iam/getGroup.d.ts +3 -0
  30. package/iam/getGroup.js +10 -5
  31. package/iam/getGroup.js.map +1 -1
  32. package/iam/getUser.d.ts +20 -2
  33. package/iam/getUser.js +22 -7
  34. package/iam/getUser.js.map +1 -1
  35. package/iam/group.d.ts +5 -4
  36. package/iam/group.js +25 -24
  37. package/iam/group.js.map +1 -1
  38. package/iam/index.d.ts +2 -2
  39. package/iam/user.d.ts +14 -1
  40. package/iam/user.js +26 -23
  41. package/iam/user.js.map +1 -1
  42. package/index.d.ts +16 -7
  43. package/index.js +14 -1
  44. package/index.js.map +1 -1
  45. package/network.d.ts +247 -17
  46. package/network.js +67 -27
  47. package/network.js.map +1 -1
  48. package/package.json +3 -3
  49. package/port/forward.d.ts +3 -3
  50. package/port/forward.js +22 -22
  51. package/port/forward.js.map +1 -1
  52. package/port/getProfile.d.ts +13 -1
  53. package/port/getProfile.js +20 -6
  54. package/port/getProfile.js.map +1 -1
  55. package/port/index.d.ts +2 -2
  56. package/port/profile.d.ts +3 -1
  57. package/port/profile.js +25 -23
  58. package/port/profile.js.map +1 -1
  59. package/provider.js +10 -10
  60. package/provider.js.map +1 -1
  61. package/radiusProfile.d.ts +173 -0
  62. package/radiusProfile.js +72 -0
  63. package/radiusProfile.js.map +1 -0
  64. package/setting/index.d.ts +5 -2
  65. package/setting/index.js +6 -1
  66. package/setting/index.js.map +1 -1
  67. package/setting/mgmt.d.ts +3 -3
  68. package/setting/mgmt.js +23 -23
  69. package/setting/mgmt.js.map +1 -1
  70. package/setting/radius.d.ts +135 -0
  71. package/setting/radius.js +68 -0
  72. package/setting/radius.js.map +1 -0
  73. package/setting/usg.js +22 -22
  74. package/setting/usg.js.map +1 -1
  75. package/site.d.ts +5 -7
  76. package/site.js +24 -26
  77. package/site.js.map +1 -1
  78. package/staticRoute.d.ts +5 -2
  79. package/staticRoute.js +27 -24
  80. package/staticRoute.js.map +1 -1
  81. package/types/input.d.ts +49 -5
  82. package/types/output.d.ts +49 -5
  83. package/utilities.d.ts +4 -0
  84. package/utilities.js +33 -1
  85. package/utilities.js.map +1 -1
  86. package/wlan.d.ts +60 -22
  87. package/wlan.js +37 -29
  88. package/wlan.js.map +1 -1
  89. package/package.json.bak +0 -30
  90. package/package.json.dev +0 -30
  91. package/scripts/install-pulumi-plugin.js +0 -21
package/account.d.ts ADDED
@@ -0,0 +1,118 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * `unifi.Account` manages a RADIUS user account
4
+ *
5
+ * To authenticate devices based on MAC address, use the MAC address as the username and password under client creation.
6
+ * Convert lowercase letters to uppercase, and also remove colons or periods from the MAC address.
7
+ *
8
+ * ATTENTION: If the user profile does not include a VLAN, the client will fall back to the untagged VLAN.
9
+ *
10
+ * NOTE: MAC-based authentication accounts can only be used for wireless and wired clients. L2TP remote access does not apply.
11
+ */
12
+ export declare class Account extends pulumi.CustomResource {
13
+ /**
14
+ * Get an existing Account resource's state with the given name, ID, and optional extra
15
+ * properties used to qualify the lookup.
16
+ *
17
+ * @param name The _unique_ name of the resulting resource.
18
+ * @param id The _unique_ provider ID of the resource to lookup.
19
+ * @param state Any extra arguments used during the lookup.
20
+ * @param opts Optional settings to control the behavior of the CustomResource.
21
+ */
22
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccountState, opts?: pulumi.CustomResourceOptions): Account;
23
+ /**
24
+ * Returns true if the given object is an instance of Account. This is designed to work even
25
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
26
+ */
27
+ static isInstance(obj: any): obj is Account;
28
+ /**
29
+ * The name of the account.
30
+ */
31
+ readonly name: pulumi.Output<string>;
32
+ /**
33
+ * ID of the network for this account
34
+ */
35
+ readonly networkId: pulumi.Output<string | undefined>;
36
+ /**
37
+ * The password of the account.
38
+ */
39
+ readonly password: pulumi.Output<string>;
40
+ /**
41
+ * The name of the site to associate the account with.
42
+ */
43
+ readonly site: pulumi.Output<string>;
44
+ /**
45
+ * See [RFC 2868](https://www.rfc-editor.org/rfc/rfc2868) section 3.2 Defaults to `6`.
46
+ */
47
+ readonly tunnelMediumType: pulumi.Output<number | undefined>;
48
+ /**
49
+ * See [RFC 2868](https://www.rfc-editor.org/rfc/rfc2868) section 3.1 Defaults to `13`.
50
+ */
51
+ readonly tunnelType: pulumi.Output<number | undefined>;
52
+ /**
53
+ * Create a Account resource with the given unique name, arguments, and options.
54
+ *
55
+ * @param name The _unique_ name of the resource.
56
+ * @param args The arguments to use to populate this resource's properties.
57
+ * @param opts A bag of options that control this resource's behavior.
58
+ */
59
+ constructor(name: string, args: AccountArgs, opts?: pulumi.CustomResourceOptions);
60
+ }
61
+ /**
62
+ * Input properties used for looking up and filtering Account resources.
63
+ */
64
+ export interface AccountState {
65
+ /**
66
+ * The name of the account.
67
+ */
68
+ name?: pulumi.Input<string>;
69
+ /**
70
+ * ID of the network for this account
71
+ */
72
+ networkId?: pulumi.Input<string>;
73
+ /**
74
+ * The password of the account.
75
+ */
76
+ password?: pulumi.Input<string>;
77
+ /**
78
+ * The name of the site to associate the account with.
79
+ */
80
+ site?: pulumi.Input<string>;
81
+ /**
82
+ * See [RFC 2868](https://www.rfc-editor.org/rfc/rfc2868) section 3.2 Defaults to `6`.
83
+ */
84
+ tunnelMediumType?: pulumi.Input<number>;
85
+ /**
86
+ * See [RFC 2868](https://www.rfc-editor.org/rfc/rfc2868) section 3.1 Defaults to `13`.
87
+ */
88
+ tunnelType?: pulumi.Input<number>;
89
+ }
90
+ /**
91
+ * The set of arguments for constructing a Account resource.
92
+ */
93
+ export interface AccountArgs {
94
+ /**
95
+ * The name of the account.
96
+ */
97
+ name?: pulumi.Input<string>;
98
+ /**
99
+ * ID of the network for this account
100
+ */
101
+ networkId?: pulumi.Input<string>;
102
+ /**
103
+ * The password of the account.
104
+ */
105
+ password: pulumi.Input<string>;
106
+ /**
107
+ * The name of the site to associate the account with.
108
+ */
109
+ site?: pulumi.Input<string>;
110
+ /**
111
+ * See [RFC 2868](https://www.rfc-editor.org/rfc/rfc2868) section 3.2 Defaults to `6`.
112
+ */
113
+ tunnelMediumType?: pulumi.Input<number>;
114
+ /**
115
+ * See [RFC 2868](https://www.rfc-editor.org/rfc/rfc2868) section 3.1 Defaults to `13`.
116
+ */
117
+ tunnelType?: pulumi.Input<number>;
118
+ }
package/account.js ADDED
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Account = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * `unifi.Account` manages a RADIUS user account
10
+ *
11
+ * To authenticate devices based on MAC address, use the MAC address as the username and password under client creation.
12
+ * Convert lowercase letters to uppercase, and also remove colons or periods from the MAC address.
13
+ *
14
+ * ATTENTION: If the user profile does not include a VLAN, the client will fall back to the untagged VLAN.
15
+ *
16
+ * NOTE: MAC-based authentication accounts can only be used for wireless and wired clients. L2TP remote access does not apply.
17
+ */
18
+ class Account extends pulumi.CustomResource {
19
+ /**
20
+ * Get an existing Account resource's state with the given name, ID, and optional extra
21
+ * properties used to qualify the lookup.
22
+ *
23
+ * @param name The _unique_ name of the resulting resource.
24
+ * @param id The _unique_ provider ID of the resource to lookup.
25
+ * @param state Any extra arguments used during the lookup.
26
+ * @param opts Optional settings to control the behavior of the CustomResource.
27
+ */
28
+ static get(name, id, state, opts) {
29
+ return new Account(name, state, Object.assign(Object.assign({}, opts), { id: id }));
30
+ }
31
+ /**
32
+ * Returns true if the given object is an instance of Account. This is designed to work even
33
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
34
+ */
35
+ static isInstance(obj) {
36
+ if (obj === undefined || obj === null) {
37
+ return false;
38
+ }
39
+ return obj['__pulumiType'] === Account.__pulumiType;
40
+ }
41
+ constructor(name, argsOrState, opts) {
42
+ let resourceInputs = {};
43
+ opts = opts || {};
44
+ if (opts.id) {
45
+ const state = argsOrState;
46
+ resourceInputs["name"] = state ? state.name : undefined;
47
+ resourceInputs["networkId"] = state ? state.networkId : undefined;
48
+ resourceInputs["password"] = state ? state.password : undefined;
49
+ resourceInputs["site"] = state ? state.site : undefined;
50
+ resourceInputs["tunnelMediumType"] = state ? state.tunnelMediumType : undefined;
51
+ resourceInputs["tunnelType"] = state ? state.tunnelType : undefined;
52
+ }
53
+ else {
54
+ const args = argsOrState;
55
+ if ((!args || args.password === undefined) && !opts.urn) {
56
+ throw new Error("Missing required property 'password'");
57
+ }
58
+ resourceInputs["name"] = args ? args.name : undefined;
59
+ resourceInputs["networkId"] = args ? args.networkId : undefined;
60
+ resourceInputs["password"] = (args === null || args === void 0 ? void 0 : args.password) ? pulumi.secret(args.password) : undefined;
61
+ resourceInputs["site"] = args ? args.site : undefined;
62
+ resourceInputs["tunnelMediumType"] = args ? args.tunnelMediumType : undefined;
63
+ resourceInputs["tunnelType"] = args ? args.tunnelType : undefined;
64
+ }
65
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
66
+ const secretOpts = { additionalSecretOutputs: ["password"] };
67
+ opts = pulumi.mergeOptions(opts, secretOpts);
68
+ super(Account.__pulumiType, name, resourceInputs, opts);
69
+ }
70
+ }
71
+ exports.Account = Account;
72
+ /** @internal */
73
+ Account.__pulumiType = 'unifi:index/account:Account';
74
+ //# sourceMappingURL=account.js.map
package/account.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.js","sourceRoot":"","sources":["../account.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;GASG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;IAmCD,YAAY,IAAY,EAAE,WAAwC,EAAE,IAAmC;QACnG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;Y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AM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACvF,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;SACrE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AAxFL,0BAyFC;AA3EG,gBAAgB;AACO,oBAAY,GAAG,6BAA6B,CAAC"}
package/device.d.ts CHANGED
@@ -13,13 +13,15 @@ import * as outputs from "./types/output";
13
13
  * name: "Disabled",
14
14
  * });
15
15
  * const poe = new unifi.port.Profile("poe", {
16
+ * name: "poe",
16
17
  * forward: "customize",
17
- * nativeNetworkconfId: _var.native_network_id,
18
- * taggedNetworkconfIds: [_var.some_vlan_network_id],
18
+ * nativeNetworkconfId: nativeNetworkId,
19
+ * taggedNetworkconfIds: [someVlanNetworkId],
19
20
  * poeMode: "auto",
20
21
  * });
21
- * const us24Poe = new unifi.Device("us24Poe", {
22
+ * const us24Poe = new unifi.Device("us_24_poe", {
22
23
  * mac: "01:23:45:67:89:AB",
24
+ * name: "Switch with POE",
23
25
  * portOverrides: [
24
26
  * {
25
27
  * number: 1,
@@ -31,6 +33,11 @@ import * as outputs from "./types/output";
31
33
  * name: "disabled",
32
34
  * portProfileId: disabled.then(disabled => disabled.id),
33
35
  * },
36
+ * {
37
+ * number: 11,
38
+ * opMode: "aggregate",
39
+ * aggregateNumPorts: 2,
40
+ * },
34
41
  * ],
35
42
  * });
36
43
  * ```
@@ -51,10 +58,18 @@ export declare class Device extends pulumi.CustomResource {
51
58
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
52
59
  */
53
60
  static isInstance(obj: any): obj is Device;
61
+ /**
62
+ * Specifies whether this resource should tell the controller to adopt the device on create. Defaults to `true`.
63
+ */
64
+ readonly allowAdoption: pulumi.Output<boolean | undefined>;
54
65
  /**
55
66
  * Specifies whether this device should be disabled.
56
67
  */
57
68
  readonly disabled: pulumi.Output<boolean>;
69
+ /**
70
+ * Specifies whether this resource should tell the controller to forget the device on destroy. Defaults to `true`.
71
+ */
72
+ readonly forgetOnDestroy: pulumi.Output<boolean | undefined>;
58
73
  /**
59
74
  * The MAC address of the device. This can be specified so that the provider can take control of a device (since devices are created through adoption).
60
75
  */
@@ -84,10 +99,18 @@ export declare class Device extends pulumi.CustomResource {
84
99
  * Input properties used for looking up and filtering Device resources.
85
100
  */
86
101
  export interface DeviceState {
102
+ /**
103
+ * Specifies whether this resource should tell the controller to adopt the device on create. Defaults to `true`.
104
+ */
105
+ allowAdoption?: pulumi.Input<boolean>;
87
106
  /**
88
107
  * Specifies whether this device should be disabled.
89
108
  */
90
109
  disabled?: pulumi.Input<boolean>;
110
+ /**
111
+ * Specifies whether this resource should tell the controller to forget the device on destroy. Defaults to `true`.
112
+ */
113
+ forgetOnDestroy?: pulumi.Input<boolean>;
91
114
  /**
92
115
  * The MAC address of the device. This can be specified so that the provider can take control of a device (since devices are created through adoption).
93
116
  */
@@ -109,6 +132,14 @@ export interface DeviceState {
109
132
  * The set of arguments for constructing a Device resource.
110
133
  */
111
134
  export interface DeviceArgs {
135
+ /**
136
+ * Specifies whether this resource should tell the controller to adopt the device on create. Defaults to `true`.
137
+ */
138
+ allowAdoption?: pulumi.Input<boolean>;
139
+ /**
140
+ * Specifies whether this resource should tell the controller to forget the device on destroy. Defaults to `true`.
141
+ */
142
+ forgetOnDestroy?: pulumi.Input<boolean>;
112
143
  /**
113
144
  * The MAC address of the device. This can be specified so that the provider can take control of a device (since devices are created through adoption).
114
145
  */
package/device.js CHANGED
@@ -17,13 +17,15 @@ const utilities = require("./utilities");
17
17
  * name: "Disabled",
18
18
  * });
19
19
  * const poe = new unifi.port.Profile("poe", {
20
+ * name: "poe",
20
21
  * forward: "customize",
21
- * nativeNetworkconfId: _var.native_network_id,
22
- * taggedNetworkconfIds: [_var.some_vlan_network_id],
22
+ * nativeNetworkconfId: nativeNetworkId,
23
+ * taggedNetworkconfIds: [someVlanNetworkId],
23
24
  * poeMode: "auto",
24
25
  * });
25
- * const us24Poe = new unifi.Device("us24Poe", {
26
+ * const us24Poe = new unifi.Device("us_24_poe", {
26
27
  * mac: "01:23:45:67:89:AB",
28
+ * name: "Switch with POE",
27
29
  * portOverrides: [
28
30
  * {
29
31
  * number: 1,
@@ -35,33 +37,16 @@ const utilities = require("./utilities");
35
37
  * name: "disabled",
36
38
  * portProfileId: disabled.then(disabled => disabled.id),
37
39
  * },
40
+ * {
41
+ * number: 11,
42
+ * opMode: "aggregate",
43
+ * aggregateNumPorts: 2,
44
+ * },
38
45
  * ],
39
46
  * });
40
47
  * ```
41
48
  */
42
49
  class Device extends pulumi.CustomResource {
43
- constructor(name, argsOrState, opts) {
44
- let resourceInputs = {};
45
- opts = opts || {};
46
- if (opts.id) {
47
- const state = argsOrState;
48
- resourceInputs["disabled"] = state ? state.disabled : undefined;
49
- resourceInputs["mac"] = state ? state.mac : undefined;
50
- resourceInputs["name"] = state ? state.name : undefined;
51
- resourceInputs["portOverrides"] = state ? state.portOverrides : undefined;
52
- resourceInputs["site"] = state ? state.site : undefined;
53
- }
54
- else {
55
- const args = argsOrState;
56
- resourceInputs["mac"] = args ? args.mac : undefined;
57
- resourceInputs["name"] = args ? args.name : undefined;
58
- resourceInputs["portOverrides"] = args ? args.portOverrides : undefined;
59
- resourceInputs["site"] = args ? args.site : undefined;
60
- resourceInputs["disabled"] = undefined /*out*/;
61
- }
62
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
63
- super(Device.__pulumiType, name, resourceInputs, opts);
64
- }
65
50
  /**
66
51
  * Get an existing Device resource's state with the given name, ID, and optional extra
67
52
  * properties used to qualify the lookup.
@@ -84,6 +69,32 @@ class Device extends pulumi.CustomResource {
84
69
  }
85
70
  return obj['__pulumiType'] === Device.__pulumiType;
86
71
  }
72
+ constructor(name, argsOrState, opts) {
73
+ let resourceInputs = {};
74
+ opts = opts || {};
75
+ if (opts.id) {
76
+ const state = argsOrState;
77
+ resourceInputs["allowAdoption"] = state ? state.allowAdoption : undefined;
78
+ resourceInputs["disabled"] = state ? state.disabled : undefined;
79
+ resourceInputs["forgetOnDestroy"] = state ? state.forgetOnDestroy : undefined;
80
+ resourceInputs["mac"] = state ? state.mac : undefined;
81
+ resourceInputs["name"] = state ? state.name : undefined;
82
+ resourceInputs["portOverrides"] = state ? state.portOverrides : undefined;
83
+ resourceInputs["site"] = state ? state.site : undefined;
84
+ }
85
+ else {
86
+ const args = argsOrState;
87
+ resourceInputs["allowAdoption"] = args ? args.allowAdoption : undefined;
88
+ resourceInputs["forgetOnDestroy"] = args ? args.forgetOnDestroy : undefined;
89
+ resourceInputs["mac"] = args ? args.mac : undefined;
90
+ resourceInputs["name"] = args ? args.name : undefined;
91
+ resourceInputs["portOverrides"] = args ? args.portOverrides : undefined;
92
+ resourceInputs["site"] = args ? args.site : undefined;
93
+ resourceInputs["disabled"] = undefined /*out*/;
94
+ }
95
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
96
+ super(Device.__pulumiType, name, resourceInputs, opts);
97
+ }
87
98
  }
88
99
  exports.Device = Device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@pulumi/pulumi";
12
12
  * service: "dyndns",
13
13
  * hostName: "my-network.example.com",
14
14
  * server: "domains.google.com",
15
- * login: _var.dns_login,
16
- * password: _var.dns_password,
15
+ * login: dnsLogin,
16
+ * password: dnsPassword,
17
17
  * });
18
18
  * ```
19
19
  */
package/dynamicDNS.js CHANGED
@@ -18,12 +18,34 @@ const utilities = require("./utilities");
18
18
  * service: "dyndns",
19
19
  * hostName: "my-network.example.com",
20
20
  * server: "domains.google.com",
21
- * login: _var.dns_login,
22
- * password: _var.dns_password,
21
+ * login: dnsLogin,
22
+ * password: dnsPassword,
23
23
  * });
24
24
  * ```
25
25
  */
26
26
  class DynamicDNS extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing DynamicDNS resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name, id, state, opts) {
37
+ return new DynamicDNS(name, state, Object.assign(Object.assign({}, opts), { id: id }));
38
+ }
39
+ /**
40
+ * Returns true if the given object is an instance of DynamicDNS. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj) {
44
+ if (obj === undefined || obj === null) {
45
+ return false;
46
+ }
47
+ return obj['__pulumiType'] === DynamicDNS.__pulumiType;
48
+ }
27
49
  constructor(name, argsOrState, opts) {
28
50
  let resourceInputs = {};
29
51
  opts = opts || {};
@@ -58,28 +80,6 @@ class DynamicDNS extends pulumi.CustomResource {
58
80
  opts = pulumi.mergeOptions(opts, secretOpts);
59
81
  super(DynamicDNS.__pulumiType, name, resourceInputs, opts);
60
82
  }
61
- /**
62
- * Get an existing DynamicDNS resource's state with the given name, ID, and optional extra
63
- * properties used to qualify the lookup.
64
- *
65
- * @param name The _unique_ name of the resulting resource.
66
- * @param id The _unique_ provider ID of the resource to lookup.
67
- * @param state Any extra arguments used during the lookup.
68
- * @param opts Optional settings to control the behavior of the CustomResource.
69
- */
70
- static get(name, id, state, opts) {
71
- return new DynamicDNS(name, state, Object.assign(Object.assign({}, opts), { id: id }));
72
- }
73
- /**
74
- * Returns true if the given object is an instance of DynamicDNS. This is designed to work even
75
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
76
- */
77
- static isInstance(obj) {
78
- if (obj === undefined || obj === null) {
79
- return false;
80
- }
81
- return obj['__pulumiType'] === DynamicDNS.__pulumiType;
82
- }
83
83
  }
84
84
  exports.DynamicDNS = DynamicDNS;
85
85
  /** @internal */
package/dynamicDNS.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"dynamicDNS.js","sourceRoot":"","sources":["../dynamicDNS.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IAiEjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA0C,CAAC;YACzD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CA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S,CAAC;YACvF,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,UAAU,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;;AAjGL,gCAkGC;AApFG,gBAAgB;AACO,uBAAY,GAAG,mCAAmC,CAAC"}
@@ -9,8 +9,9 @@ import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as unifi from "@pulumiverse/unifi";
10
10
  *
11
11
  * const config = new pulumi.Config();
12
- * const laptopIps = config.requireObject("laptopIps");
13
- * const canPrint = new unifi.firewall.Group("canPrint", {
12
+ * const laptopIps = config.requireObject<Array<string>>("laptopIps");
13
+ * const canPrint = new unifi.firewall.Group("can_print", {
14
+ * name: "can-print",
14
15
  * type: "address-group",
15
16
  * members: laptopIps,
16
17
  * });
package/firewall/group.js CHANGED
@@ -15,14 +15,37 @@ const utilities = require("../utilities");
15
15
  * import * as unifi from "@pulumiverse/unifi";
16
16
  *
17
17
  * const config = new pulumi.Config();
18
- * const laptopIps = config.requireObject("laptopIps");
19
- * const canPrint = new unifi.firewall.Group("canPrint", {
18
+ * const laptopIps = config.requireObject<Array<string>>("laptopIps");
19
+ * const canPrint = new unifi.firewall.Group("can_print", {
20
+ * name: "can-print",
20
21
  * type: "address-group",
21
22
  * members: laptopIps,
22
23
  * });
23
24
  * ```
24
25
  */
25
26
  class Group extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing Group resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name, id, state, opts) {
37
+ return new Group(name, state, Object.assign(Object.assign({}, opts), { id: id }));
38
+ }
39
+ /**
40
+ * Returns true if the given object is an instance of Group. This is designed to work even
41
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
42
+ */
43
+ static isInstance(obj) {
44
+ if (obj === undefined || obj === null) {
45
+ return false;
46
+ }
47
+ return obj['__pulumiType'] === Group.__pulumiType;
48
+ }
26
49
  constructor(name, argsOrState, opts) {
27
50
  let resourceInputs = {};
28
51
  opts = opts || {};
@@ -49,28 +72,6 @@ class Group extends pulumi.CustomResource {
49
72
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
50
73
  super(Group.__pulumiType, name, resourceInputs, opts);
51
74
  }
52
- /**
53
- * Get an existing Group resource's state with the given name, ID, and optional extra
54
- * properties used to qualify the lookup.
55
- *
56
- * @param name The _unique_ name of the resulting resource.
57
- * @param id The _unique_ provider ID of the resource to lookup.
58
- * @param state Any extra arguments used during the lookup.
59
- * @param opts Optional settings to control the behavior of the CustomResource.
60
- */
61
- static get(name, id, state, opts) {
62
- return new Group(name, state, Object.assign(Object.assign({}, opts), { id: id }));
63
- }
64
- /**
65
- * Returns true if the given object is an instance of Group. This is designed to work even
66
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
67
- */
68
- static isInstance(obj) {
69
- if (obj === undefined || obj === null) {
70
- return false;
71
- }
72
- return obj['__pulumiType'] === Group.__pulumiType;
73
- }
74
75
  }
75
76
  exports.Group = Group;
76
77
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"group.js","sourceRoot":"","sources":["../../firewall/group.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAqD5C,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqC,CAAC;YACpD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAoC,CAAC;YAClD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAA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C,SAAS,CAAC;SAC3D;aAAM;YACH,MAAM,IAAI,GAAG,WAAoC,CAAC;YAClD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aAC1D;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACjD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AA7EL,sBA8EC;AAhEG,gBAAgB;AACO,kBAAY,GAAG,4BAA4B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export { GroupArgs, GroupState } from "./group";
2
- export declare type Group = import("./group").Group;
2
+ export type Group = import("./group").Group;
3
3
  export declare const Group: typeof import("./group").Group;
4
4
  export { RuleArgs, RuleState } from "./rule";
5
- export declare type Rule = import("./rule").Rule;
5
+ export type Rule = import("./rule").Rule;
6
6
  export declare const Rule: typeof import("./rule").Rule;