-
Notifications
You must be signed in to change notification settings - Fork 48
/
command.go
41 lines (34 loc) · 1.72 KB
/
command.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
// Code generated by cdpgen. DO NOT EDIT.
package security
// SetIgnoreCertificateErrorsArgs represents the arguments for SetIgnoreCertificateErrors in the Security domain.
type SetIgnoreCertificateErrorsArgs struct {
Ignore bool `json:"ignore"` // If true, all certificate errors will be ignored.
}
// NewSetIgnoreCertificateErrorsArgs initializes SetIgnoreCertificateErrorsArgs with the required arguments.
func NewSetIgnoreCertificateErrorsArgs(ignore bool) *SetIgnoreCertificateErrorsArgs {
args := new(SetIgnoreCertificateErrorsArgs)
args.Ignore = ignore
return args
}
// HandleCertificateErrorArgs represents the arguments for HandleCertificateError in the Security domain.
type HandleCertificateErrorArgs struct {
EventID int `json:"eventId"` // The ID of the event.
Action CertificateErrorAction `json:"action"` // The action to take on the certificate error.
}
// NewHandleCertificateErrorArgs initializes HandleCertificateErrorArgs with the required arguments.
func NewHandleCertificateErrorArgs(eventID int, action CertificateErrorAction) *HandleCertificateErrorArgs {
args := new(HandleCertificateErrorArgs)
args.EventID = eventID
args.Action = action
return args
}
// SetOverrideCertificateErrorsArgs represents the arguments for SetOverrideCertificateErrors in the Security domain.
type SetOverrideCertificateErrorsArgs struct {
Override bool `json:"override"` // If true, certificate errors will be overridden.
}
// NewSetOverrideCertificateErrorsArgs initializes SetOverrideCertificateErrorsArgs with the required arguments.
func NewSetOverrideCertificateErrorsArgs(override bool) *SetOverrideCertificateErrorsArgs {
args := new(SetOverrideCertificateErrorsArgs)
args.Override = override
return args
}