generated from pulumi/pulumi-tf-provider-boilerplate
/
systemScheduler.go
executable file
·501 lines (442 loc) · 27.5 KB
/
systemScheduler.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package system
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-routeros/sdk/go/routeros/System"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := System.NewSystemScheduler(ctx, "schedule1", &System.SystemSchedulerArgs{
// OnEvent: pulumi.String("script name"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// #The ID can be found via API or the terminal #The command for the terminal is -> :put [/system/scheduler get [print show-ids]]
//
// ```sh
//
// $ pulumi import routeros:System/systemScheduler:SystemScheduler schedule1 "*0"
//
// ```
type SystemScheduler struct {
pulumi.CustomResourceState
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
___id_ pulumi.IntPtrOutput `pulumi:"___id_"`
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
___path_ pulumi.StringPtrOutput `pulumi:"___path_"`
Comment pulumi.StringPtrOutput `pulumi:"comment"`
Disabled pulumi.BoolPtrOutput `pulumi:"disabled"`
// Interval between two script executions, if time interval is set to zero, the script is only executed at its start time,
// otherwise it is executed repeatedly at the time interval is specified.
Interval pulumi.StringOutput `pulumi:"interval"`
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
Name pulumi.StringOutput `pulumi:"name"`
NextRun pulumi.StringOutput `pulumi:"nextRun"`
// Name of the script to execute. It must be presented at /system script.
OnEvent pulumi.StringOutput `pulumi:"onEvent"`
Owner pulumi.StringOutput `pulumi:"owner"`
// List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants
// full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be
// used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy
// that grants user management rights. Should be used together with the write policy. Allows also to see global variables
// created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's
// configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot -
// Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive -
// Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not
// displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run
// ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write
// access to the router's configuration, except for user management. This policy does not allow to read the configuration,
// so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
Policies pulumi.StringArrayOutput `pulumi:"policies"`
// This counter is incremented each time the script is executed.
RunCount pulumi.StringOutput `pulumi:"runCount"`
// Date of the first script execution.
StartDate pulumi.StringOutput `pulumi:"startDate"`
// Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and
// start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup
// and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler
// will not run at startup.
StartTime pulumi.StringOutput `pulumi:"startTime"`
}
// NewSystemScheduler registers a new resource with the given unique name, arguments, and options.
func NewSystemScheduler(ctx *pulumi.Context,
name string, args *SystemSchedulerArgs, opts ...pulumi.ResourceOption) (*SystemScheduler, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.OnEvent == nil {
return nil, errors.New("invalid value for required argument 'OnEvent'")
}
var resource SystemScheduler
err := ctx.RegisterResource("routeros:System/systemScheduler:SystemScheduler", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSystemScheduler gets an existing SystemScheduler resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetSystemScheduler(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SystemSchedulerState, opts ...pulumi.ResourceOption) (*SystemScheduler, error) {
var resource SystemScheduler
err := ctx.ReadResource("routeros:System/systemScheduler:SystemScheduler", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering SystemScheduler resources.
type systemSchedulerState struct {
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
___id_ *int `pulumi:"___id_"`
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
___path_ *string `pulumi:"___path_"`
Comment *string `pulumi:"comment"`
Disabled *bool `pulumi:"disabled"`
// Interval between two script executions, if time interval is set to zero, the script is only executed at its start time,
// otherwise it is executed repeatedly at the time interval is specified.
Interval *string `pulumi:"interval"`
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
Name *string `pulumi:"name"`
NextRun *string `pulumi:"nextRun"`
// Name of the script to execute. It must be presented at /system script.
OnEvent *string `pulumi:"onEvent"`
Owner *string `pulumi:"owner"`
// List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants
// full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be
// used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy
// that grants user management rights. Should be used together with the write policy. Allows also to see global variables
// created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's
// configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot -
// Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive -
// Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not
// displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run
// ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write
// access to the router's configuration, except for user management. This policy does not allow to read the configuration,
// so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
Policies []string `pulumi:"policies"`
// This counter is incremented each time the script is executed.
RunCount *string `pulumi:"runCount"`
// Date of the first script execution.
StartDate *string `pulumi:"startDate"`
// Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and
// start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup
// and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler
// will not run at startup.
StartTime *string `pulumi:"startTime"`
}
type SystemSchedulerState struct {
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
___id_ pulumi.IntPtrInput
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
___path_ pulumi.StringPtrInput
Comment pulumi.StringPtrInput
Disabled pulumi.BoolPtrInput
// Interval between two script executions, if time interval is set to zero, the script is only executed at its start time,
// otherwise it is executed repeatedly at the time interval is specified.
Interval pulumi.StringPtrInput
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
Name pulumi.StringPtrInput
NextRun pulumi.StringPtrInput
// Name of the script to execute. It must be presented at /system script.
OnEvent pulumi.StringPtrInput
Owner pulumi.StringPtrInput
// List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants
// full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be
// used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy
// that grants user management rights. Should be used together with the write policy. Allows also to see global variables
// created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's
// configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot -
// Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive -
// Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not
// displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run
// ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write
// access to the router's configuration, except for user management. This policy does not allow to read the configuration,
// so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
Policies pulumi.StringArrayInput
// This counter is incremented each time the script is executed.
RunCount pulumi.StringPtrInput
// Date of the first script execution.
StartDate pulumi.StringPtrInput
// Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and
// start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup
// and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler
// will not run at startup.
StartTime pulumi.StringPtrInput
}
func (SystemSchedulerState) ElementType() reflect.Type {
return reflect.TypeOf((*systemSchedulerState)(nil)).Elem()
}
type systemSchedulerArgs struct {
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
___id_ *int `pulumi:"___id_"`
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
___path_ *string `pulumi:"___path_"`
Comment *string `pulumi:"comment"`
Disabled *bool `pulumi:"disabled"`
// Interval between two script executions, if time interval is set to zero, the script is only executed at its start time,
// otherwise it is executed repeatedly at the time interval is specified.
Interval *string `pulumi:"interval"`
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
Name *string `pulumi:"name"`
// Name of the script to execute. It must be presented at /system script.
OnEvent string `pulumi:"onEvent"`
// List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants
// full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be
// used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy
// that grants user management rights. Should be used together with the write policy. Allows also to see global variables
// created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's
// configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot -
// Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive -
// Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not
// displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run
// ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write
// access to the router's configuration, except for user management. This policy does not allow to read the configuration,
// so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
Policies []string `pulumi:"policies"`
// Date of the first script execution.
StartDate *string `pulumi:"startDate"`
// Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and
// start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup
// and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler
// will not run at startup.
StartTime *string `pulumi:"startTime"`
}
// The set of arguments for constructing a SystemScheduler resource.
type SystemSchedulerArgs struct {
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
___id_ pulumi.IntPtrInput
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
___path_ pulumi.StringPtrInput
Comment pulumi.StringPtrInput
Disabled pulumi.BoolPtrInput
// Interval between two script executions, if time interval is set to zero, the script is only executed at its start time,
// otherwise it is executed repeatedly at the time interval is specified.
Interval pulumi.StringPtrInput
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
Name pulumi.StringPtrInput
// Name of the script to execute. It must be presented at /system script.
OnEvent pulumi.StringInput
// List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants
// full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be
// used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy
// that grants user management rights. Should be used together with the write policy. Allows also to see global variables
// created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's
// configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot -
// Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive -
// Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not
// displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run
// ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write
// access to the router's configuration, except for user management. This policy does not allow to read the configuration,
// so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
Policies pulumi.StringArrayInput
// Date of the first script execution.
StartDate pulumi.StringPtrInput
// Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and
// start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup
// and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler
// will not run at startup.
StartTime pulumi.StringPtrInput
}
func (SystemSchedulerArgs) ElementType() reflect.Type {
return reflect.TypeOf((*systemSchedulerArgs)(nil)).Elem()
}
type SystemSchedulerInput interface {
pulumi.Input
ToSystemSchedulerOutput() SystemSchedulerOutput
ToSystemSchedulerOutputWithContext(ctx context.Context) SystemSchedulerOutput
}
func (*SystemScheduler) ElementType() reflect.Type {
return reflect.TypeOf((**SystemScheduler)(nil)).Elem()
}
func (i *SystemScheduler) ToSystemSchedulerOutput() SystemSchedulerOutput {
return i.ToSystemSchedulerOutputWithContext(context.Background())
}
func (i *SystemScheduler) ToSystemSchedulerOutputWithContext(ctx context.Context) SystemSchedulerOutput {
return pulumi.ToOutputWithContext(ctx, i).(SystemSchedulerOutput)
}
// SystemSchedulerArrayInput is an input type that accepts SystemSchedulerArray and SystemSchedulerArrayOutput values.
// You can construct a concrete instance of `SystemSchedulerArrayInput` via:
//
// SystemSchedulerArray{ SystemSchedulerArgs{...} }
type SystemSchedulerArrayInput interface {
pulumi.Input
ToSystemSchedulerArrayOutput() SystemSchedulerArrayOutput
ToSystemSchedulerArrayOutputWithContext(context.Context) SystemSchedulerArrayOutput
}
type SystemSchedulerArray []SystemSchedulerInput
func (SystemSchedulerArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*SystemScheduler)(nil)).Elem()
}
func (i SystemSchedulerArray) ToSystemSchedulerArrayOutput() SystemSchedulerArrayOutput {
return i.ToSystemSchedulerArrayOutputWithContext(context.Background())
}
func (i SystemSchedulerArray) ToSystemSchedulerArrayOutputWithContext(ctx context.Context) SystemSchedulerArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(SystemSchedulerArrayOutput)
}
// SystemSchedulerMapInput is an input type that accepts SystemSchedulerMap and SystemSchedulerMapOutput values.
// You can construct a concrete instance of `SystemSchedulerMapInput` via:
//
// SystemSchedulerMap{ "key": SystemSchedulerArgs{...} }
type SystemSchedulerMapInput interface {
pulumi.Input
ToSystemSchedulerMapOutput() SystemSchedulerMapOutput
ToSystemSchedulerMapOutputWithContext(context.Context) SystemSchedulerMapOutput
}
type SystemSchedulerMap map[string]SystemSchedulerInput
func (SystemSchedulerMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*SystemScheduler)(nil)).Elem()
}
func (i SystemSchedulerMap) ToSystemSchedulerMapOutput() SystemSchedulerMapOutput {
return i.ToSystemSchedulerMapOutputWithContext(context.Background())
}
func (i SystemSchedulerMap) ToSystemSchedulerMapOutputWithContext(ctx context.Context) SystemSchedulerMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(SystemSchedulerMapOutput)
}
type SystemSchedulerOutput struct{ *pulumi.OutputState }
func (SystemSchedulerOutput) ElementType() reflect.Type {
return reflect.TypeOf((**SystemScheduler)(nil)).Elem()
}
func (o SystemSchedulerOutput) ToSystemSchedulerOutput() SystemSchedulerOutput {
return o
}
func (o SystemSchedulerOutput) ToSystemSchedulerOutputWithContext(ctx context.Context) SystemSchedulerOutput {
return o
}
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
func (o SystemSchedulerOutput) ___id_() pulumi.IntPtrOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.IntPtrOutput { return v.___id_ }).(pulumi.IntPtrOutput)
}
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
func (o SystemSchedulerOutput) ___path_() pulumi.StringPtrOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.StringPtrOutput { return v.___path_ }).(pulumi.StringPtrOutput)
}
func (o SystemSchedulerOutput) Comment() pulumi.StringPtrOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.StringPtrOutput { return v.Comment }).(pulumi.StringPtrOutput)
}
func (o SystemSchedulerOutput) Disabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.BoolPtrOutput { return v.Disabled }).(pulumi.BoolPtrOutput)
}
// Interval between two script executions, if time interval is set to zero, the script is only executed at its start time,
// otherwise it is executed repeatedly at the time interval is specified.
func (o SystemSchedulerOutput) Interval() pulumi.StringOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.StringOutput { return v.Interval }).(pulumi.StringOutput)
}
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
func (o SystemSchedulerOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
func (o SystemSchedulerOutput) NextRun() pulumi.StringOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.StringOutput { return v.NextRun }).(pulumi.StringOutput)
}
// Name of the script to execute. It must be presented at /system script.
func (o SystemSchedulerOutput) OnEvent() pulumi.StringOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.StringOutput { return v.OnEvent }).(pulumi.StringOutput)
}
func (o SystemSchedulerOutput) Owner() pulumi.StringOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.StringOutput { return v.Owner }).(pulumi.StringOutput)
}
// List of applicable policies: * dude - Policy that grants rights to log in to dude server. * ftp - Policy that grants
// full rights to log in remotely via FTP, to read/write/erase files and to transfer files from/to the router. Should be
// used together with read/write policies. * password - Policy that grants rights to change the password. * policy - Policy
// that grants user management rights. Should be used together with the write policy. Allows also to see global variables
// created by other users (requires also 'test' policy). * read - Policy that grants read access to the router's
// configuration. All console commands that do not alter router's configuration are allowed. Doesn't affect FTP. * reboot -
// Policy that allows rebooting the router. * romon - Policy that grants rights to connect to RoMon server. * sensitive -
// Policy that grants rights to change "hide sensitive" option, if this policy is disabled sensitive information is not
// displayed. * sniff - Policy that grants rights to use packet sniffer tool. * test - Policy that grants rights to run
// ping, traceroute, bandwidth-test, wireless scan, snooper, and other test commands. * write - Policy that grants write
// access to the router's configuration, except for user management. This policy does not allow to read the configuration,
// so make sure to enable read policy as well. policy = ["ftp", "read", "write"]
func (o SystemSchedulerOutput) Policies() pulumi.StringArrayOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.StringArrayOutput { return v.Policies }).(pulumi.StringArrayOutput)
}
// This counter is incremented each time the script is executed.
func (o SystemSchedulerOutput) RunCount() pulumi.StringOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.StringOutput { return v.RunCount }).(pulumi.StringOutput)
}
// Date of the first script execution.
func (o SystemSchedulerOutput) StartDate() pulumi.StringOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.StringOutput { return v.StartDate }).(pulumi.StringOutput)
}
// Time of the first script execution. If scheduler item has start-time set to startup, it behaves as if start-time and
// start-date were set to time 3 seconds after console starts up. It means that all scripts having start-time is startup
// and interval is 0 will be executed once each time router boots. If the interval is set to value other than 0 scheduler
// will not run at startup.
func (o SystemSchedulerOutput) StartTime() pulumi.StringOutput {
return o.ApplyT(func(v *SystemScheduler) pulumi.StringOutput { return v.StartTime }).(pulumi.StringOutput)
}
type SystemSchedulerArrayOutput struct{ *pulumi.OutputState }
func (SystemSchedulerArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*SystemScheduler)(nil)).Elem()
}
func (o SystemSchedulerArrayOutput) ToSystemSchedulerArrayOutput() SystemSchedulerArrayOutput {
return o
}
func (o SystemSchedulerArrayOutput) ToSystemSchedulerArrayOutputWithContext(ctx context.Context) SystemSchedulerArrayOutput {
return o
}
func (o SystemSchedulerArrayOutput) Index(i pulumi.IntInput) SystemSchedulerOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SystemScheduler {
return vs[0].([]*SystemScheduler)[vs[1].(int)]
}).(SystemSchedulerOutput)
}
type SystemSchedulerMapOutput struct{ *pulumi.OutputState }
func (SystemSchedulerMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*SystemScheduler)(nil)).Elem()
}
func (o SystemSchedulerMapOutput) ToSystemSchedulerMapOutput() SystemSchedulerMapOutput {
return o
}
func (o SystemSchedulerMapOutput) ToSystemSchedulerMapOutputWithContext(ctx context.Context) SystemSchedulerMapOutput {
return o
}
func (o SystemSchedulerMapOutput) MapIndex(k pulumi.StringInput) SystemSchedulerOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SystemScheduler {
return vs[0].(map[string]*SystemScheduler)[vs[1].(string)]
}).(SystemSchedulerOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*SystemSchedulerInput)(nil)).Elem(), &SystemScheduler{})
pulumi.RegisterInputType(reflect.TypeOf((*SystemSchedulerArrayInput)(nil)).Elem(), SystemSchedulerArray{})
pulumi.RegisterInputType(reflect.TypeOf((*SystemSchedulerMapInput)(nil)).Elem(), SystemSchedulerMap{})
pulumi.RegisterOutputType(SystemSchedulerOutput{})
pulumi.RegisterOutputType(SystemSchedulerArrayOutput{})
pulumi.RegisterOutputType(SystemSchedulerMapOutput{})
}