@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/site.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
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.Site = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `unifi.Site` manages Unifi sites
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as unifi from "@pulumi/unifi";
|
|
16
|
+
*
|
|
17
|
+
* const mysite = new unifi.Site("mysite", {
|
|
18
|
+
* description: "mysite",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ## Import
|
|
23
|
+
*
|
|
24
|
+
* # import using the API/UI ID
|
|
25
|
+
*
|
|
26
|
+
* ```sh
|
|
27
|
+
* $ pulumi import unifi:index/site:Site mysite 5fe6261995fe130013456a36
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* # import using the name (short ID)
|
|
31
|
+
*
|
|
32
|
+
* ```sh
|
|
33
|
+
* $ pulumi import unifi:index/site:Site mysite vq98kwez
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class Site extends pulumi.CustomResource {
|
|
37
|
+
constructor(name, argsOrState, opts) {
|
|
38
|
+
let resourceInputs = {};
|
|
39
|
+
opts = opts || {};
|
|
40
|
+
if (opts.id) {
|
|
41
|
+
const state = argsOrState;
|
|
42
|
+
resourceInputs["description"] = state ? state.description : undefined;
|
|
43
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
const args = argsOrState;
|
|
47
|
+
if ((!args || args.description === undefined) && !opts.urn) {
|
|
48
|
+
throw new Error("Missing required property 'description'");
|
|
49
|
+
}
|
|
50
|
+
resourceInputs["description"] = args ? args.description : undefined;
|
|
51
|
+
resourceInputs["name"] = undefined /*out*/;
|
|
52
|
+
}
|
|
53
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
54
|
+
super(Site.__pulumiType, name, resourceInputs, opts);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Get an existing Site resource's state with the given name, ID, and optional extra
|
|
58
|
+
* properties used to qualify the lookup.
|
|
59
|
+
*
|
|
60
|
+
* @param name The _unique_ name of the resulting resource.
|
|
61
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
62
|
+
* @param state Any extra arguments used during the lookup.
|
|
63
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
64
|
+
*/
|
|
65
|
+
static get(name, id, state, opts) {
|
|
66
|
+
return new Site(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Returns true if the given object is an instance of Site. This is designed to work even
|
|
70
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
71
|
+
*/
|
|
72
|
+
static isInstance(obj) {
|
|
73
|
+
if (obj === undefined || obj === null) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
return obj['__pulumiType'] === Site.__pulumiType;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.Site = Site;
|
|
80
|
+
/** @internal */
|
|
81
|
+
Site.__pulumiType = 'unifi:index/site:Site';
|
|
82
|
+
//# sourceMappingURL=site.js.map
|
package/site.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site.js","sourceRoot":"","sources":["../site.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IA6C3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,aAAa,CAAC,GA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Y,GAAG,uBAAuB,CAAC"}
|
package/staticRoute.d.ts
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* `unifi.StaticRoute` manages a static route.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as unifi from "@pulumiverse/unifi";
|
|
10
|
+
*
|
|
11
|
+
* const nexthop = new unifi.StaticRoute("nexthop", {
|
|
12
|
+
* type: "nexthop-route",
|
|
13
|
+
* network: "172.17.0.0/16",
|
|
14
|
+
* distance: 1,
|
|
15
|
+
* nextHop: "172.16.0.1",
|
|
16
|
+
* });
|
|
17
|
+
* const blackhole = new unifi.StaticRoute("blackhole", {
|
|
18
|
+
* type: "blackhole",
|
|
19
|
+
* network: _var.blackhole_cidr,
|
|
20
|
+
* distance: 1,
|
|
21
|
+
* });
|
|
22
|
+
* const _interface = new unifi.StaticRoute("interface", {
|
|
23
|
+
* type: "interface-route",
|
|
24
|
+
* network: _var.wan2_cidr,
|
|
25
|
+
* distance: 1,
|
|
26
|
+
* "interface": "WAN2",
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare class StaticRoute extends pulumi.CustomResource {
|
|
31
|
+
/**
|
|
32
|
+
* Get an existing StaticRoute resource's state with the given name, ID, and optional extra
|
|
33
|
+
* properties used to qualify the lookup.
|
|
34
|
+
*
|
|
35
|
+
* @param name The _unique_ name of the resulting resource.
|
|
36
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
37
|
+
* @param state Any extra arguments used during the lookup.
|
|
38
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
39
|
+
*/
|
|
40
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StaticRouteState, opts?: pulumi.CustomResourceOptions): StaticRoute;
|
|
41
|
+
/**
|
|
42
|
+
* Returns true if the given object is an instance of StaticRoute. This is designed to work even
|
|
43
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
44
|
+
*/
|
|
45
|
+
static isInstance(obj: any): obj is StaticRoute;
|
|
46
|
+
/**
|
|
47
|
+
* The distance of the static route.
|
|
48
|
+
*/
|
|
49
|
+
readonly distance: pulumi.Output<number>;
|
|
50
|
+
/**
|
|
51
|
+
* The interface of the static route (only valid for `interface-route` type). This can be `WAN1`, `WAN2`, or a network ID.
|
|
52
|
+
*/
|
|
53
|
+
readonly interface: pulumi.Output<string | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the static route.
|
|
56
|
+
*/
|
|
57
|
+
readonly name: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The network subnet address.
|
|
60
|
+
*/
|
|
61
|
+
readonly network: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* The next hop of the static route (only valid for `nexthop-route` type).
|
|
64
|
+
*/
|
|
65
|
+
readonly nextHop: pulumi.Output<string | undefined>;
|
|
66
|
+
/**
|
|
67
|
+
* The name of the site to associate the static route with.
|
|
68
|
+
*/
|
|
69
|
+
readonly site: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The type of static route. Can be `interface-route`, `nexthop-route`, or `blackhole`.
|
|
72
|
+
*/
|
|
73
|
+
readonly type: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Create a StaticRoute resource with the given unique name, arguments, and options.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resource.
|
|
78
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
79
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
80
|
+
*/
|
|
81
|
+
constructor(name: string, args: StaticRouteArgs, opts?: pulumi.CustomResourceOptions);
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Input properties used for looking up and filtering StaticRoute resources.
|
|
85
|
+
*/
|
|
86
|
+
export interface StaticRouteState {
|
|
87
|
+
/**
|
|
88
|
+
* The distance of the static route.
|
|
89
|
+
*/
|
|
90
|
+
distance?: pulumi.Input<number>;
|
|
91
|
+
/**
|
|
92
|
+
* The interface of the static route (only valid for `interface-route` type). This can be `WAN1`, `WAN2`, or a network ID.
|
|
93
|
+
*/
|
|
94
|
+
interface?: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* The name of the static route.
|
|
97
|
+
*/
|
|
98
|
+
name?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The network subnet address.
|
|
101
|
+
*/
|
|
102
|
+
network?: pulumi.Input<string>;
|
|
103
|
+
/**
|
|
104
|
+
* The next hop of the static route (only valid for `nexthop-route` type).
|
|
105
|
+
*/
|
|
106
|
+
nextHop?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* The name of the site to associate the static route with.
|
|
109
|
+
*/
|
|
110
|
+
site?: pulumi.Input<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The type of static route. Can be `interface-route`, `nexthop-route`, or `blackhole`.
|
|
113
|
+
*/
|
|
114
|
+
type?: pulumi.Input<string>;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* The set of arguments for constructing a StaticRoute resource.
|
|
118
|
+
*/
|
|
119
|
+
export interface StaticRouteArgs {
|
|
120
|
+
/**
|
|
121
|
+
* The distance of the static route.
|
|
122
|
+
*/
|
|
123
|
+
distance: pulumi.Input<number>;
|
|
124
|
+
/**
|
|
125
|
+
* The interface of the static route (only valid for `interface-route` type). This can be `WAN1`, `WAN2`, or a network ID.
|
|
126
|
+
*/
|
|
127
|
+
interface?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The name of the static route.
|
|
130
|
+
*/
|
|
131
|
+
name?: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* The network subnet address.
|
|
134
|
+
*/
|
|
135
|
+
network: pulumi.Input<string>;
|
|
136
|
+
/**
|
|
137
|
+
* The next hop of the static route (only valid for `nexthop-route` type).
|
|
138
|
+
*/
|
|
139
|
+
nextHop?: pulumi.Input<string>;
|
|
140
|
+
/**
|
|
141
|
+
* The name of the site to associate the static route with.
|
|
142
|
+
*/
|
|
143
|
+
site?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* The type of static route. Can be `interface-route`, `nexthop-route`, or `blackhole`.
|
|
146
|
+
*/
|
|
147
|
+
type: pulumi.Input<string>;
|
|
148
|
+
}
|
package/staticRoute.js
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
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.StaticRoute = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* `unifi.StaticRoute` manages a static route.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as unifi from "@pulumiverse/unifi";
|
|
16
|
+
*
|
|
17
|
+
* const nexthop = new unifi.StaticRoute("nexthop", {
|
|
18
|
+
* type: "nexthop-route",
|
|
19
|
+
* network: "172.17.0.0/16",
|
|
20
|
+
* distance: 1,
|
|
21
|
+
* nextHop: "172.16.0.1",
|
|
22
|
+
* });
|
|
23
|
+
* const blackhole = new unifi.StaticRoute("blackhole", {
|
|
24
|
+
* type: "blackhole",
|
|
25
|
+
* network: _var.blackhole_cidr,
|
|
26
|
+
* distance: 1,
|
|
27
|
+
* });
|
|
28
|
+
* const _interface = new unifi.StaticRoute("interface", {
|
|
29
|
+
* type: "interface-route",
|
|
30
|
+
* network: _var.wan2_cidr,
|
|
31
|
+
* distance: 1,
|
|
32
|
+
* "interface": "WAN2",
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class StaticRoute extends pulumi.CustomResource {
|
|
37
|
+
constructor(name, argsOrState, opts) {
|
|
38
|
+
let resourceInputs = {};
|
|
39
|
+
opts = opts || {};
|
|
40
|
+
if (opts.id) {
|
|
41
|
+
const state = argsOrState;
|
|
42
|
+
resourceInputs["distance"] = state ? state.distance : undefined;
|
|
43
|
+
resourceInputs["interface"] = state ? state.interface : undefined;
|
|
44
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
45
|
+
resourceInputs["network"] = state ? state.network : undefined;
|
|
46
|
+
resourceInputs["nextHop"] = state ? state.nextHop : undefined;
|
|
47
|
+
resourceInputs["site"] = state ? state.site : undefined;
|
|
48
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
const args = argsOrState;
|
|
52
|
+
if ((!args || args.distance === undefined) && !opts.urn) {
|
|
53
|
+
throw new Error("Missing required property 'distance'");
|
|
54
|
+
}
|
|
55
|
+
if ((!args || args.network === undefined) && !opts.urn) {
|
|
56
|
+
throw new Error("Missing required property 'network'");
|
|
57
|
+
}
|
|
58
|
+
if ((!args || args.type === undefined) && !opts.urn) {
|
|
59
|
+
throw new Error("Missing required property 'type'");
|
|
60
|
+
}
|
|
61
|
+
resourceInputs["distance"] = args ? args.distance : undefined;
|
|
62
|
+
resourceInputs["interface"] = args ? args.interface : undefined;
|
|
63
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
64
|
+
resourceInputs["network"] = args ? args.network : undefined;
|
|
65
|
+
resourceInputs["nextHop"] = args ? args.nextHop : undefined;
|
|
66
|
+
resourceInputs["site"] = args ? args.site : undefined;
|
|
67
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
68
|
+
}
|
|
69
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
70
|
+
super(StaticRoute.__pulumiType, name, resourceInputs, opts);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get an existing StaticRoute resource's state with the given name, ID, and optional extra
|
|
74
|
+
* properties used to qualify the lookup.
|
|
75
|
+
*
|
|
76
|
+
* @param name The _unique_ name of the resulting resource.
|
|
77
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
78
|
+
* @param state Any extra arguments used during the lookup.
|
|
79
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
80
|
+
*/
|
|
81
|
+
static get(name, id, state, opts) {
|
|
82
|
+
return new StaticRoute(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Returns true if the given object is an instance of StaticRoute. This is designed to work even
|
|
86
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
87
|
+
*/
|
|
88
|
+
static isInstance(obj) {
|
|
89
|
+
if (obj === undefined || obj === null) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
return obj['__pulumiType'] === StaticRoute.__pulumiType;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.StaticRoute = StaticRoute;
|
|
96
|
+
/** @internal */
|
|
97
|
+
StaticRoute.__pulumiType = 'unifi:index/staticRoute:StaticRoute';
|
|
98
|
+
//# sourceMappingURL=staticRoute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staticRoute.js","sourceRoot":"","sources":["../staticRoute.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAiElD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE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W,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCAmGC;AArFG,gBAAgB;AACO,wBAAY,GAAG,qCAAqC,CAAC"}
|
package/types/index.d.ts
ADDED
package/types/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
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.output = exports.input = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const input = require("./input");
|
|
8
|
+
exports.input = input;
|
|
9
|
+
const output = require("./output");
|
|
10
|
+
exports.output = output;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|
package/types/input.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
export interface DevicePortOverride {
|
|
3
|
+
/**
|
|
4
|
+
* Human-readable name of the port.
|
|
5
|
+
*/
|
|
6
|
+
name?: pulumi.Input<string>;
|
|
7
|
+
/**
|
|
8
|
+
* Switch port number.
|
|
9
|
+
*/
|
|
10
|
+
number: pulumi.Input<number>;
|
|
11
|
+
/**
|
|
12
|
+
* ID of the Port Profile used on this port.
|
|
13
|
+
*/
|
|
14
|
+
portProfileId?: pulumi.Input<string>;
|
|
15
|
+
}
|
|
16
|
+
export interface WlanSchedule {
|
|
17
|
+
/**
|
|
18
|
+
* Time of day to end the block.
|
|
19
|
+
*/
|
|
20
|
+
blockEnd: pulumi.Input<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Time of day to start the block.
|
|
23
|
+
*/
|
|
24
|
+
blockStart: pulumi.Input<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Day of week for the block. Valid values are `sun`, `mon`, `tue`, `wed`, `thu`, `fri`, `sat`.
|
|
27
|
+
*/
|
|
28
|
+
dayOfWeek: pulumi.Input<string>;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace setting {
|
|
31
|
+
interface MgmtSshKey {
|
|
32
|
+
/**
|
|
33
|
+
* Comment.
|
|
34
|
+
*/
|
|
35
|
+
comment?: pulumi.Input<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Public SSH key.
|
|
38
|
+
*/
|
|
39
|
+
key?: pulumi.Input<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Name of SSH key.
|
|
42
|
+
*/
|
|
43
|
+
name: pulumi.Input<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Type of SSH key, e.g. ssh-rsa.
|
|
46
|
+
*/
|
|
47
|
+
type: pulumi.Input<string>;
|
|
48
|
+
}
|
|
49
|
+
}
|
package/types/input.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
//# sourceMappingURL=input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../types/input.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export interface DevicePortOverride {
|
|
2
|
+
/**
|
|
3
|
+
* Human-readable name of the port.
|
|
4
|
+
*/
|
|
5
|
+
name?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Switch port number.
|
|
8
|
+
*/
|
|
9
|
+
number: number;
|
|
10
|
+
/**
|
|
11
|
+
* ID of the Port Profile used on this port.
|
|
12
|
+
*/
|
|
13
|
+
portProfileId?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface WlanSchedule {
|
|
16
|
+
/**
|
|
17
|
+
* Time of day to end the block.
|
|
18
|
+
*/
|
|
19
|
+
blockEnd: string;
|
|
20
|
+
/**
|
|
21
|
+
* Time of day to start the block.
|
|
22
|
+
*/
|
|
23
|
+
blockStart: string;
|
|
24
|
+
/**
|
|
25
|
+
* Day of week for the block. Valid values are `sun`, `mon`, `tue`, `wed`, `thu`, `fri`, `sat`.
|
|
26
|
+
*/
|
|
27
|
+
dayOfWeek: string;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace setting {
|
|
30
|
+
interface MgmtSshKey {
|
|
31
|
+
/**
|
|
32
|
+
* Comment.
|
|
33
|
+
*/
|
|
34
|
+
comment?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Public SSH key.
|
|
37
|
+
*/
|
|
38
|
+
key?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Name of SSH key.
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* Type of SSH key, e.g. ssh-rsa.
|
|
45
|
+
*/
|
|
46
|
+
type: string;
|
|
47
|
+
}
|
|
48
|
+
}
|
package/types/output.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
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
|
+
//# sourceMappingURL=output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
|
package/utilities.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function getEnv(...vars: string[]): string | undefined;
|
|
2
|
+
export declare function getEnvBoolean(...vars: string[]): boolean | undefined;
|
|
3
|
+
export declare function getEnvNumber(...vars: string[]): number | undefined;
|
|
4
|
+
export declare function getVersion(): string;
|
package/utilities.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
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.lazyLoad = exports.resourceOptsDefaults = exports.getVersion = exports.getEnvNumber = exports.getEnvBoolean = exports.getEnv = void 0;
|
|
6
|
+
function getEnv(...vars) {
|
|
7
|
+
for (const v of vars) {
|
|
8
|
+
const value = process.env[v];
|
|
9
|
+
if (value) {
|
|
10
|
+
return value;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
exports.getEnv = getEnv;
|
|
16
|
+
function getEnvBoolean(...vars) {
|
|
17
|
+
const s = getEnv(...vars);
|
|
18
|
+
if (s !== undefined) {
|
|
19
|
+
// NOTE: these values are taken from https://golang.org/src/strconv/atob.go?s=351:391#L1, which is what
|
|
20
|
+
// Terraform uses internally when parsing boolean values.
|
|
21
|
+
if (["1", "t", "T", "true", "TRUE", "True"].find(v => v === s) !== undefined) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
if (["0", "f", "F", "false", "FALSE", "False"].find(v => v === s) !== undefined) {
|
|
25
|
+
return false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
exports.getEnvBoolean = getEnvBoolean;
|
|
31
|
+
function getEnvNumber(...vars) {
|
|
32
|
+
const s = getEnv(...vars);
|
|
33
|
+
if (s !== undefined) {
|
|
34
|
+
const f = parseFloat(s);
|
|
35
|
+
if (!isNaN(f)) {
|
|
36
|
+
return f;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
exports.getEnvNumber = getEnvNumber;
|
|
42
|
+
function getVersion() {
|
|
43
|
+
let version = require('./package.json').version;
|
|
44
|
+
// Node allows for the version to be prefixed by a "v", while semver doesn't.
|
|
45
|
+
// If there is a v, strip it off.
|
|
46
|
+
if (version.indexOf('v') === 0) {
|
|
47
|
+
version = version.slice(1);
|
|
48
|
+
}
|
|
49
|
+
return version;
|
|
50
|
+
}
|
|
51
|
+
exports.getVersion = getVersion;
|
|
52
|
+
/** @internal */
|
|
53
|
+
function resourceOptsDefaults() {
|
|
54
|
+
return { version: getVersion(), pluginDownloadURL: "github://api.github.com/pulumiverse" };
|
|
55
|
+
}
|
|
56
|
+
exports.resourceOptsDefaults = resourceOptsDefaults;
|
|
57
|
+
/** @internal */
|
|
58
|
+
function lazyLoad(exports, props, loadModule) {
|
|
59
|
+
for (let property of props) {
|
|
60
|
+
Object.defineProperty(exports, property, {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return loadModule()[property];
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.lazyLoad = lazyLoad;
|
|
69
|
+
//# sourceMappingURL=utilities.js.map
|
package/utilities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";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