@pulumiverse/unifi 0.0.1-alpha.1664258586
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.
- package/LICENSE +202 -0
- package/README.md +56 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +24 -0
- package/config/vars.js +43 -0
- package/config/vars.js.map +1 -0
- package/device.d.ts +128 -0
- package/device.js +91 -0
- package/device.js.map +1 -0
- package/dynamicDNS.d.ts +138 -0
- package/dynamicDNS.js +85 -0
- package/dynamicDNS.js.map +1 -0
- package/firewall/group.d.ts +101 -0
- package/firewall/group.js +78 -0
- package/firewall/group.js.map +1 -0
- package/firewall/index.d.ts +6 -0
- package/firewall/index.js +27 -0
- package/firewall/index.js.map +1 -0
- package/firewall/rule.d.ts +340 -0
- package/firewall/rule.js +133 -0
- package/firewall/rule.js.map +1 -0
- package/getApGroup.d.ts +58 -0
- package/getApGroup.js +36 -0
- package/getApGroup.js.map +1 -0
- package/getNetwork.d.ts +186 -0
- package/getNetwork.js +45 -0
- package/getNetwork.js.map +1 -0
- package/getRadiusProfile.d.ts +49 -0
- package/getRadiusProfile.js +27 -0
- package/getRadiusProfile.js.map +1 -0
- package/iam/getGroup.d.ts +51 -0
- package/iam/getGroup.js +27 -0
- package/iam/getGroup.js.map +1 -0
- package/iam/getUser.d.ts +96 -0
- package/iam/getUser.js +37 -0
- package/iam/getUser.js.map +1 -0
- package/iam/group.d.ts +107 -0
- package/iam/group.js +78 -0
- package/iam/group.js.map +1 -0
- package/iam/index.d.ts +12 -0
- package/iam/index.js +33 -0
- package/iam/index.js.map +1 -0
- package/iam/user.d.ts +203 -0
- package/iam/user.js +95 -0
- package/iam/user.js.map +1 -0
- package/index.d.ts +37 -0
- package/index.js +80 -0
- package/index.js.map +1 -0
- package/network.d.ts +458 -0
- package/network.js +162 -0
- package/network.js.map +1 -0
- package/package.json +30 -0
- package/package.json.bak +30 -0
- package/package.json.dev +30 -0
- package/port/forward.d.ts +165 -0
- package/port/forward.js +70 -0
- package/port/forward.js.map +1 -0
- package/port/getProfile.d.ts +58 -0
- package/port/getProfile.js +36 -0
- package/port/getProfile.js.map +1 -0
- package/port/index.d.ts +9 -0
- package/port/index.js +30 -0
- package/port/index.js.map +1 -0
- package/port/profile.d.ts +481 -0
- package/port/profile.js +142 -0
- package/port/profile.js.map +1 -0
- package/provider.d.ts +70 -0
- package/provider.js +50 -0
- package/provider.js.map +1 -0
- package/scripts/install-pulumi-plugin.js +21 -0
- package/setting/index.d.ts +6 -0
- package/setting/index.js +27 -0
- package/setting/index.js.map +1 -0
- package/setting/mgmt.d.ts +102 -0
- package/setting/mgmt.js +71 -0
- package/setting/mgmt.js.map +1 -0
- package/setting/usg.d.ts +111 -0
- package/setting/usg.js +62 -0
- package/setting/usg.js.map +1 -0
- package/site.d.ts +84 -0
- package/site.js +82 -0
- package/site.js.map +1 -0
- package/staticRoute.d.ts +148 -0
- package/staticRoute.js +98 -0
- package/staticRoute.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +49 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +48 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/utilities.js +69 -0
- package/utilities.js.map +1 -0
- package/wlan.d.ts +374 -0
- package/wlan.js +149 -0
- package/wlan.js.map +1 -0
package/iam/group.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
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.Group = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `unifi.iam.Group` manages a user group (called "client group" in the UI), which can be used to limit bandwidth for groups of users.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as unifi from "@pulumi/unifi";
|
|
16
|
+
*
|
|
17
|
+
* const wifi = new unifi.iam.Group("wifi", {
|
|
18
|
+
* qosRateMaxDown: 2000, // 2mbps
|
|
19
|
+
* qosRateMaxUp: 10, // 10kbps
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ## Import
|
|
24
|
+
*
|
|
25
|
+
* # import using the ID
|
|
26
|
+
*
|
|
27
|
+
* ```sh
|
|
28
|
+
* $ pulumi import unifi:iam/group:Group wifi 5fe6261995fe130013456a36
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
class Group extends pulumi.CustomResource {
|
|
32
|
+
constructor(name, argsOrState, opts) {
|
|
33
|
+
let resourceInputs = {};
|
|
34
|
+
opts = opts || {};
|
|
35
|
+
if (opts.id) {
|
|
36
|
+
const state = argsOrState;
|
|
37
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
38
|
+
resourceInputs["qosRateMaxDown"] = state ? state.qosRateMaxDown : undefined;
|
|
39
|
+
resourceInputs["qosRateMaxUp"] = state ? state.qosRateMaxUp : undefined;
|
|
40
|
+
resourceInputs["site"] = state ? state.site : undefined;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
const args = argsOrState;
|
|
44
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
45
|
+
resourceInputs["qosRateMaxDown"] = args ? args.qosRateMaxDown : undefined;
|
|
46
|
+
resourceInputs["qosRateMaxUp"] = args ? args.qosRateMaxUp : undefined;
|
|
47
|
+
resourceInputs["site"] = args ? args.site : undefined;
|
|
48
|
+
}
|
|
49
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
50
|
+
super(Group.__pulumiType, name, resourceInputs, opts);
|
|
51
|
+
}
|
|
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
|
+
exports.Group = Group;
|
|
76
|
+
/** @internal */
|
|
77
|
+
Group.__pulumiType = 'unifi:iam/group:Group';
|
|
78
|
+
//# sourceMappingURL=group.js.map
|
package/iam/group.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../iam/group.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;GAsBG;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,CA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AAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;;AA1BL,sBAwEC;AA1DG,gBAAgB;AACO,kBAAY,GAAG,uBAAuB,CAAC"}
|
package/iam/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { GetGroupArgs, GetGroupResult, GetGroupOutputArgs } from "./getGroup";
|
|
2
|
+
export declare const getGroup: typeof import("./getGroup").getGroup;
|
|
3
|
+
export declare const getGroupOutput: typeof import("./getGroup").getGroupOutput;
|
|
4
|
+
export { GetUserArgs, GetUserResult, GetUserOutputArgs } from "./getUser";
|
|
5
|
+
export declare const getUser: typeof import("./getUser").getUser;
|
|
6
|
+
export declare const getUserOutput: typeof import("./getUser").getUserOutput;
|
|
7
|
+
export { GroupArgs, GroupState } from "./group";
|
|
8
|
+
export declare type Group = import("./group").Group;
|
|
9
|
+
export declare const Group: typeof import("./group").Group;
|
|
10
|
+
export { UserArgs, UserState } from "./user";
|
|
11
|
+
export declare type User = import("./user").User;
|
|
12
|
+
export declare const User: typeof import("./user").User;
|
package/iam/index.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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.User = exports.Group = exports.getUserOutput = exports.getUser = exports.getGroupOutput = exports.getGroup = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
exports.getGroup = null;
|
|
9
|
+
exports.getGroupOutput = null;
|
|
10
|
+
exports.getUser = null;
|
|
11
|
+
exports.getUserOutput = null;
|
|
12
|
+
exports.Group = null;
|
|
13
|
+
exports.User = null;
|
|
14
|
+
utilities.lazyLoad(exports, ["getGroup", "getGroupOutput"], () => require("./getGroup"));
|
|
15
|
+
utilities.lazyLoad(exports, ["getUser", "getUserOutput"], () => require("./getUser"));
|
|
16
|
+
utilities.lazyLoad(exports, ["Group"], () => require("./group"));
|
|
17
|
+
utilities.lazyLoad(exports, ["User"], () => require("./user"));
|
|
18
|
+
const _module = {
|
|
19
|
+
version: utilities.getVersion(),
|
|
20
|
+
construct: (name, type, urn) => {
|
|
21
|
+
switch (type) {
|
|
22
|
+
case "unifi:iam/group:Group":
|
|
23
|
+
return new exports.Group(name, undefined, { urn });
|
|
24
|
+
case "unifi:iam/user:User":
|
|
25
|
+
return new exports.User(name, undefined, { urn });
|
|
26
|
+
default:
|
|
27
|
+
throw new Error(`unknown resource type ${type}`);
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
pulumi.runtime.registerResourceModule("unifi", "iam/group", _module);
|
|
32
|
+
pulumi.runtime.registerResourceModule("unifi", "iam/user", _module);
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
package/iam/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../iam/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAI7B,QAAA,QAAQ,GAAyC,IAAW,CAAC;AAC7D,QAAA,cAAc,GAA+C,IAAW,CAAC;AAGzE,QAAA,OAAO,GAAuC,IAAW,CAAC;AAC1D,QAAA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U,EAAE,OAAO,CAAC,CAAA"}
|
package/iam/user.d.ts
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* `unifi.iam.User` manages a user (or "client" in the UI) of the network, these are identified by unique MAC addresses.
|
|
4
|
+
*
|
|
5
|
+
* Users are created in the controller when observed on the network, so the resource defaults to allowing itself to just take over management of a MAC address, but this can be turned off.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as unifi from "@pulumiverse/unifi";
|
|
12
|
+
*
|
|
13
|
+
* const test = new unifi.iam.User("test", {
|
|
14
|
+
* mac: "01:23:45:67:89:AB",
|
|
15
|
+
* note: "my note",
|
|
16
|
+
* fixedIp: "10.0.0.50",
|
|
17
|
+
* networkId: unifi_network.my_vlan.id,
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare class User extends pulumi.CustomResource {
|
|
22
|
+
/**
|
|
23
|
+
* Get an existing User resource's state with the given name, ID, and optional extra
|
|
24
|
+
* properties used to qualify the lookup.
|
|
25
|
+
*
|
|
26
|
+
* @param name The _unique_ name of the resulting resource.
|
|
27
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
28
|
+
* @param state Any extra arguments used during the lookup.
|
|
29
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
30
|
+
*/
|
|
31
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserState, opts?: pulumi.CustomResourceOptions): User;
|
|
32
|
+
/**
|
|
33
|
+
* Returns true if the given object is an instance of User. This is designed to work even
|
|
34
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
35
|
+
*/
|
|
36
|
+
static isInstance(obj: any): obj is User;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies whether this resource should just take over control of an existing user. Defaults to `true`.
|
|
39
|
+
*/
|
|
40
|
+
readonly allowExisting: pulumi.Output<boolean | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Specifies whether this user should be blocked from the network.
|
|
43
|
+
*/
|
|
44
|
+
readonly blocked: pulumi.Output<boolean | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* Override the device fingerprint.
|
|
47
|
+
*/
|
|
48
|
+
readonly devIdOverride: pulumi.Output<number | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* A fixed IPv4 address for this user.
|
|
51
|
+
*/
|
|
52
|
+
readonly fixedIp: pulumi.Output<string | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* The hostname of the user.
|
|
55
|
+
*/
|
|
56
|
+
readonly hostname: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The IP address of the user.
|
|
59
|
+
*/
|
|
60
|
+
readonly ip: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The MAC address of the user.
|
|
63
|
+
*/
|
|
64
|
+
readonly mac: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* The name of the user.
|
|
67
|
+
*/
|
|
68
|
+
readonly name: pulumi.Output<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The network ID for this user.
|
|
71
|
+
*/
|
|
72
|
+
readonly networkId: pulumi.Output<string | undefined>;
|
|
73
|
+
/**
|
|
74
|
+
* A note with additional information for the user.
|
|
75
|
+
*/
|
|
76
|
+
readonly note: pulumi.Output<string | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* The name of the site to associate the user with.
|
|
79
|
+
*/
|
|
80
|
+
readonly site: pulumi.Output<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Specifies whether this resource should tell the controller to "forget" the user on destroy. Defaults to `false`.
|
|
83
|
+
*/
|
|
84
|
+
readonly skipForgetOnDestroy: pulumi.Output<boolean | undefined>;
|
|
85
|
+
/**
|
|
86
|
+
* The user group ID for the user.
|
|
87
|
+
*/
|
|
88
|
+
readonly userGroupId: pulumi.Output<string | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* Create a User resource with the given unique name, arguments, and options.
|
|
91
|
+
*
|
|
92
|
+
* @param name The _unique_ name of the resource.
|
|
93
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
94
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
95
|
+
*/
|
|
96
|
+
constructor(name: string, args: UserArgs, opts?: pulumi.CustomResourceOptions);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Input properties used for looking up and filtering User resources.
|
|
100
|
+
*/
|
|
101
|
+
export interface UserState {
|
|
102
|
+
/**
|
|
103
|
+
* Specifies whether this resource should just take over control of an existing user. Defaults to `true`.
|
|
104
|
+
*/
|
|
105
|
+
allowExisting?: pulumi.Input<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* Specifies whether this user should be blocked from the network.
|
|
108
|
+
*/
|
|
109
|
+
blocked?: pulumi.Input<boolean>;
|
|
110
|
+
/**
|
|
111
|
+
* Override the device fingerprint.
|
|
112
|
+
*/
|
|
113
|
+
devIdOverride?: pulumi.Input<number>;
|
|
114
|
+
/**
|
|
115
|
+
* A fixed IPv4 address for this user.
|
|
116
|
+
*/
|
|
117
|
+
fixedIp?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* The hostname of the user.
|
|
120
|
+
*/
|
|
121
|
+
hostname?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* The IP address of the user.
|
|
124
|
+
*/
|
|
125
|
+
ip?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* The MAC address of the user.
|
|
128
|
+
*/
|
|
129
|
+
mac?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* The name of the user.
|
|
132
|
+
*/
|
|
133
|
+
name?: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* The network ID for this user.
|
|
136
|
+
*/
|
|
137
|
+
networkId?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* A note with additional information for the user.
|
|
140
|
+
*/
|
|
141
|
+
note?: pulumi.Input<string>;
|
|
142
|
+
/**
|
|
143
|
+
* The name of the site to associate the user with.
|
|
144
|
+
*/
|
|
145
|
+
site?: pulumi.Input<string>;
|
|
146
|
+
/**
|
|
147
|
+
* Specifies whether this resource should tell the controller to "forget" the user on destroy. Defaults to `false`.
|
|
148
|
+
*/
|
|
149
|
+
skipForgetOnDestroy?: pulumi.Input<boolean>;
|
|
150
|
+
/**
|
|
151
|
+
* The user group ID for the user.
|
|
152
|
+
*/
|
|
153
|
+
userGroupId?: pulumi.Input<string>;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* The set of arguments for constructing a User resource.
|
|
157
|
+
*/
|
|
158
|
+
export interface UserArgs {
|
|
159
|
+
/**
|
|
160
|
+
* Specifies whether this resource should just take over control of an existing user. Defaults to `true`.
|
|
161
|
+
*/
|
|
162
|
+
allowExisting?: pulumi.Input<boolean>;
|
|
163
|
+
/**
|
|
164
|
+
* Specifies whether this user should be blocked from the network.
|
|
165
|
+
*/
|
|
166
|
+
blocked?: pulumi.Input<boolean>;
|
|
167
|
+
/**
|
|
168
|
+
* Override the device fingerprint.
|
|
169
|
+
*/
|
|
170
|
+
devIdOverride?: pulumi.Input<number>;
|
|
171
|
+
/**
|
|
172
|
+
* A fixed IPv4 address for this user.
|
|
173
|
+
*/
|
|
174
|
+
fixedIp?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* The MAC address of the user.
|
|
177
|
+
*/
|
|
178
|
+
mac: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* The name of the user.
|
|
181
|
+
*/
|
|
182
|
+
name?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* The network ID for this user.
|
|
185
|
+
*/
|
|
186
|
+
networkId?: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* A note with additional information for the user.
|
|
189
|
+
*/
|
|
190
|
+
note?: pulumi.Input<string>;
|
|
191
|
+
/**
|
|
192
|
+
* The name of the site to associate the user with.
|
|
193
|
+
*/
|
|
194
|
+
site?: pulumi.Input<string>;
|
|
195
|
+
/**
|
|
196
|
+
* Specifies whether this resource should tell the controller to "forget" the user on destroy. Defaults to `false`.
|
|
197
|
+
*/
|
|
198
|
+
skipForgetOnDestroy?: pulumi.Input<boolean>;
|
|
199
|
+
/**
|
|
200
|
+
* The user group ID for the user.
|
|
201
|
+
*/
|
|
202
|
+
userGroupId?: pulumi.Input<string>;
|
|
203
|
+
}
|
package/iam/user.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
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.User = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `unifi.iam.User` manages a user (or "client" in the UI) of the network, these are identified by unique MAC addresses.
|
|
10
|
+
*
|
|
11
|
+
* Users are created in the controller when observed on the network, so the resource defaults to allowing itself to just take over management of a MAC address, but this can be turned off.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as unifi from "@pulumiverse/unifi";
|
|
18
|
+
*
|
|
19
|
+
* const test = new unifi.iam.User("test", {
|
|
20
|
+
* mac: "01:23:45:67:89:AB",
|
|
21
|
+
* note: "my note",
|
|
22
|
+
* fixedIp: "10.0.0.50",
|
|
23
|
+
* networkId: unifi_network.my_vlan.id,
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
class User extends pulumi.CustomResource {
|
|
28
|
+
constructor(name, argsOrState, opts) {
|
|
29
|
+
let resourceInputs = {};
|
|
30
|
+
opts = opts || {};
|
|
31
|
+
if (opts.id) {
|
|
32
|
+
const state = argsOrState;
|
|
33
|
+
resourceInputs["allowExisting"] = state ? state.allowExisting : undefined;
|
|
34
|
+
resourceInputs["blocked"] = state ? state.blocked : undefined;
|
|
35
|
+
resourceInputs["devIdOverride"] = state ? state.devIdOverride : undefined;
|
|
36
|
+
resourceInputs["fixedIp"] = state ? state.fixedIp : undefined;
|
|
37
|
+
resourceInputs["hostname"] = state ? state.hostname : undefined;
|
|
38
|
+
resourceInputs["ip"] = state ? state.ip : undefined;
|
|
39
|
+
resourceInputs["mac"] = state ? state.mac : undefined;
|
|
40
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
41
|
+
resourceInputs["networkId"] = state ? state.networkId : undefined;
|
|
42
|
+
resourceInputs["note"] = state ? state.note : undefined;
|
|
43
|
+
resourceInputs["site"] = state ? state.site : undefined;
|
|
44
|
+
resourceInputs["skipForgetOnDestroy"] = state ? state.skipForgetOnDestroy : undefined;
|
|
45
|
+
resourceInputs["userGroupId"] = state ? state.userGroupId : undefined;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const args = argsOrState;
|
|
49
|
+
if ((!args || args.mac === undefined) && !opts.urn) {
|
|
50
|
+
throw new Error("Missing required property 'mac'");
|
|
51
|
+
}
|
|
52
|
+
resourceInputs["allowExisting"] = args ? args.allowExisting : undefined;
|
|
53
|
+
resourceInputs["blocked"] = args ? args.blocked : undefined;
|
|
54
|
+
resourceInputs["devIdOverride"] = args ? args.devIdOverride : undefined;
|
|
55
|
+
resourceInputs["fixedIp"] = args ? args.fixedIp : undefined;
|
|
56
|
+
resourceInputs["mac"] = args ? args.mac : undefined;
|
|
57
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
58
|
+
resourceInputs["networkId"] = args ? args.networkId : undefined;
|
|
59
|
+
resourceInputs["note"] = args ? args.note : undefined;
|
|
60
|
+
resourceInputs["site"] = args ? args.site : undefined;
|
|
61
|
+
resourceInputs["skipForgetOnDestroy"] = args ? args.skipForgetOnDestroy : undefined;
|
|
62
|
+
resourceInputs["userGroupId"] = args ? args.userGroupId : undefined;
|
|
63
|
+
resourceInputs["hostname"] = undefined /*out*/;
|
|
64
|
+
resourceInputs["ip"] = undefined /*out*/;
|
|
65
|
+
}
|
|
66
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
|
+
super(User.__pulumiType, name, resourceInputs, opts);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Get an existing User resource's state with the given name, ID, and optional extra
|
|
71
|
+
* properties used to qualify the lookup.
|
|
72
|
+
*
|
|
73
|
+
* @param name The _unique_ name of the resulting resource.
|
|
74
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
75
|
+
* @param state Any extra arguments used during the lookup.
|
|
76
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
77
|
+
*/
|
|
78
|
+
static get(name, id, state, opts) {
|
|
79
|
+
return new User(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Returns true if the given object is an instance of User. This is designed to work even
|
|
83
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
84
|
+
*/
|
|
85
|
+
static isInstance(obj) {
|
|
86
|
+
if (obj === undefined || obj === null) {
|
|
87
|
+
return false;
|
|
88
|
+
}
|
|
89
|
+
return obj['__pulumiType'] === User.__pulumiType;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.User = User;
|
|
93
|
+
/** @internal */
|
|
94
|
+
User.__pulumiType = 'unifi:iam/user:User';
|
|
95
|
+
//# sourceMappingURL=user.js.map
|
package/iam/user.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../iam/user.ts"],"names":[],"mappings":";AAAA,wFAAwF;AAC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AAM,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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;;AA1BL,oBAiIC;AAnHG,gBAAgB;AACO,iBAAY,GAAG,qBAAqB,CAAC"}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export { DeviceArgs, DeviceState } from "./device";
|
|
2
|
+
export declare type Device = import("./device").Device;
|
|
3
|
+
export declare const Device: typeof import("./device").Device;
|
|
4
|
+
export { DynamicDNSArgs, DynamicDNSState } from "./dynamicDNS";
|
|
5
|
+
export declare type DynamicDNS = import("./dynamicDNS").DynamicDNS;
|
|
6
|
+
export declare const DynamicDNS: typeof import("./dynamicDNS").DynamicDNS;
|
|
7
|
+
export { GetApGroupArgs, GetApGroupResult, GetApGroupOutputArgs } from "./getApGroup";
|
|
8
|
+
export declare const getApGroup: typeof import("./getApGroup").getApGroup;
|
|
9
|
+
export declare const getApGroupOutput: typeof import("./getApGroup").getApGroupOutput;
|
|
10
|
+
export { GetNetworkArgs, GetNetworkResult, GetNetworkOutputArgs } from "./getNetwork";
|
|
11
|
+
export declare const getNetwork: typeof import("./getNetwork").getNetwork;
|
|
12
|
+
export declare const getNetworkOutput: typeof import("./getNetwork").getNetworkOutput;
|
|
13
|
+
export { GetRadiusProfileArgs, GetRadiusProfileResult, GetRadiusProfileOutputArgs } from "./getRadiusProfile";
|
|
14
|
+
export declare const getRadiusProfile: typeof import("./getRadiusProfile").getRadiusProfile;
|
|
15
|
+
export declare const getRadiusProfileOutput: typeof import("./getRadiusProfile").getRadiusProfileOutput;
|
|
16
|
+
export { NetworkArgs, NetworkState } from "./network";
|
|
17
|
+
export declare type Network = import("./network").Network;
|
|
18
|
+
export declare const Network: typeof import("./network").Network;
|
|
19
|
+
export { ProviderArgs } from "./provider";
|
|
20
|
+
export declare type Provider = import("./provider").Provider;
|
|
21
|
+
export declare const Provider: typeof import("./provider").Provider;
|
|
22
|
+
export { SiteArgs, SiteState } from "./site";
|
|
23
|
+
export declare type Site = import("./site").Site;
|
|
24
|
+
export declare const Site: typeof import("./site").Site;
|
|
25
|
+
export { StaticRouteArgs, StaticRouteState } from "./staticRoute";
|
|
26
|
+
export declare type StaticRoute = import("./staticRoute").StaticRoute;
|
|
27
|
+
export declare const StaticRoute: typeof import("./staticRoute").StaticRoute;
|
|
28
|
+
export { WlanArgs, WlanState } from "./wlan";
|
|
29
|
+
export declare type Wlan = import("./wlan").Wlan;
|
|
30
|
+
export declare const Wlan: typeof import("./wlan").Wlan;
|
|
31
|
+
import * as config from "./config";
|
|
32
|
+
import * as firewall from "./firewall";
|
|
33
|
+
import * as iam from "./iam";
|
|
34
|
+
import * as port from "./port";
|
|
35
|
+
import * as setting from "./setting";
|
|
36
|
+
import * as types from "./types";
|
|
37
|
+
export { config, firewall, iam, port, setting, types, };
|
package/index.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
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.types = exports.setting = exports.port = exports.iam = exports.firewall = exports.config = exports.Wlan = exports.StaticRoute = exports.Site = exports.Provider = exports.Network = exports.getRadiusProfileOutput = exports.getRadiusProfile = exports.getNetworkOutput = exports.getNetwork = exports.getApGroupOutput = exports.getApGroup = exports.DynamicDNS = exports.Device = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
exports.Device = null;
|
|
9
|
+
exports.DynamicDNS = null;
|
|
10
|
+
exports.getApGroup = null;
|
|
11
|
+
exports.getApGroupOutput = null;
|
|
12
|
+
exports.getNetwork = null;
|
|
13
|
+
exports.getNetworkOutput = null;
|
|
14
|
+
exports.getRadiusProfile = null;
|
|
15
|
+
exports.getRadiusProfileOutput = null;
|
|
16
|
+
exports.Network = null;
|
|
17
|
+
exports.Provider = null;
|
|
18
|
+
exports.Site = null;
|
|
19
|
+
exports.StaticRoute = null;
|
|
20
|
+
exports.Wlan = null;
|
|
21
|
+
utilities.lazyLoad(exports, ["Device"], () => require("./device"));
|
|
22
|
+
utilities.lazyLoad(exports, ["DynamicDNS"], () => require("./dynamicDNS"));
|
|
23
|
+
utilities.lazyLoad(exports, ["getApGroup", "getApGroupOutput"], () => require("./getApGroup"));
|
|
24
|
+
utilities.lazyLoad(exports, ["getNetwork", "getNetworkOutput"], () => require("./getNetwork"));
|
|
25
|
+
utilities.lazyLoad(exports, ["getRadiusProfile", "getRadiusProfileOutput"], () => require("./getRadiusProfile"));
|
|
26
|
+
utilities.lazyLoad(exports, ["Network"], () => require("./network"));
|
|
27
|
+
utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
|
|
28
|
+
utilities.lazyLoad(exports, ["Site"], () => require("./site"));
|
|
29
|
+
utilities.lazyLoad(exports, ["StaticRoute"], () => require("./staticRoute"));
|
|
30
|
+
utilities.lazyLoad(exports, ["Wlan"], () => require("./wlan"));
|
|
31
|
+
// Export sub-modules:
|
|
32
|
+
const config = require("./config");
|
|
33
|
+
exports.config = config;
|
|
34
|
+
const firewall = require("./firewall");
|
|
35
|
+
exports.firewall = firewall;
|
|
36
|
+
const iam = require("./iam");
|
|
37
|
+
exports.iam = iam;
|
|
38
|
+
const port = require("./port");
|
|
39
|
+
exports.port = port;
|
|
40
|
+
const setting = require("./setting");
|
|
41
|
+
exports.setting = setting;
|
|
42
|
+
const types = require("./types");
|
|
43
|
+
exports.types = types;
|
|
44
|
+
const _module = {
|
|
45
|
+
version: utilities.getVersion(),
|
|
46
|
+
construct: (name, type, urn) => {
|
|
47
|
+
switch (type) {
|
|
48
|
+
case "unifi:index/device:Device":
|
|
49
|
+
return new exports.Device(name, undefined, { urn });
|
|
50
|
+
case "unifi:index/dynamicDNS:DynamicDNS":
|
|
51
|
+
return new exports.DynamicDNS(name, undefined, { urn });
|
|
52
|
+
case "unifi:index/network:Network":
|
|
53
|
+
return new exports.Network(name, undefined, { urn });
|
|
54
|
+
case "unifi:index/site:Site":
|
|
55
|
+
return new exports.Site(name, undefined, { urn });
|
|
56
|
+
case "unifi:index/staticRoute:StaticRoute":
|
|
57
|
+
return new exports.StaticRoute(name, undefined, { urn });
|
|
58
|
+
case "unifi:index/wlan:Wlan":
|
|
59
|
+
return new exports.Wlan(name, undefined, { urn });
|
|
60
|
+
default:
|
|
61
|
+
throw new Error(`unknown resource type ${type}`);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
pulumi.runtime.registerResourceModule("unifi", "index/device", _module);
|
|
66
|
+
pulumi.runtime.registerResourceModule("unifi", "index/dynamicDNS", _module);
|
|
67
|
+
pulumi.runtime.registerResourceModule("unifi", "index/network", _module);
|
|
68
|
+
pulumi.runtime.registerResourceModule("unifi", "index/site", _module);
|
|
69
|
+
pulumi.runtime.registerResourceModule("unifi", "index/staticRoute", _module);
|
|
70
|
+
pulumi.runtime.registerResourceModule("unifi", "index/wlan", _module);
|
|
71
|
+
pulumi.runtime.registerResourcePackage("unifi", {
|
|
72
|
+
version: utilities.getVersion(),
|
|
73
|
+
constructProvider: (name, type, urn) => {
|
|
74
|
+
if (type !== "pulumi:providers:unifi") {
|
|
75
|
+
throw new Error(`unknown provider type ${type}`);
|
|
76
|
+
}
|
|
77
|
+
return new exports.Provider(name, undefined, { urn });
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF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