model

package
v0.6.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package model provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Index

Constants

View Source
const (
	BasicAuthScopes = "basicAuth.Scopes"
)

Variables

This section is empty.

Functions

func ArrayString

func ArrayString(a *[]string) string

func EqualsStringSlice

func EqualsStringSlice(a *[]string, b *[]string, sortIt bool) bool

func MergeDhcpStaticLeases

func MergeDhcpStaticLeases(l *[]DhcpStaticLease, other *[]DhcpStaticLease) (DhcpStaticLeases, DhcpStaticLeases)

MergeDhcpStaticLeases the leases

func MergeFilters

func MergeFilters(this *[]Filter, other *[]Filter) ([]Filter, []Filter, []Filter)

func NewAccessListRequest

func NewAccessListRequest(server string) (*http.Request, error)

NewAccessListRequest generates requests for AccessList

func NewAccessSetRequest

func NewAccessSetRequest(server string, body AccessSetJSONRequestBody) (*http.Request, error)

NewAccessSetRequest calls the generic AccessSet builder with application/json body

func NewAccessSetRequestWithBody

func NewAccessSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewAccessSetRequestWithBody generates requests for AccessSet with any type of body

func NewBeginUpdateRequest

func NewBeginUpdateRequest(server string) (*http.Request, error)

NewBeginUpdateRequest generates requests for BeginUpdate

func NewBlockedServicesAllRequest

func NewBlockedServicesAllRequest(server string) (*http.Request, error)

NewBlockedServicesAllRequest generates requests for BlockedServicesAll

func NewBlockedServicesAvailableServicesRequest

func NewBlockedServicesAvailableServicesRequest(server string) (*http.Request, error)

NewBlockedServicesAvailableServicesRequest generates requests for BlockedServicesAvailableServices

func NewBlockedServicesListRequest

func NewBlockedServicesListRequest(server string) (*http.Request, error)

NewBlockedServicesListRequest generates requests for BlockedServicesList

func NewBlockedServicesScheduleRequest

func NewBlockedServicesScheduleRequest(server string) (*http.Request, error)

NewBlockedServicesScheduleRequest generates requests for BlockedServicesSchedule

func NewBlockedServicesScheduleUpdateRequest

func NewBlockedServicesScheduleUpdateRequest(server string, body BlockedServicesScheduleUpdateJSONRequestBody) (*http.Request, error)

NewBlockedServicesScheduleUpdateRequest calls the generic BlockedServicesScheduleUpdate builder with application/json body

func NewBlockedServicesScheduleUpdateRequestWithBody

func NewBlockedServicesScheduleUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewBlockedServicesScheduleUpdateRequestWithBody generates requests for BlockedServicesScheduleUpdate with any type of body

func NewBlockedServicesSetRequest

func NewBlockedServicesSetRequest(server string, body BlockedServicesSetJSONRequestBody) (*http.Request, error)

NewBlockedServicesSetRequest calls the generic BlockedServicesSet builder with application/json body

func NewBlockedServicesSetRequestWithBody

func NewBlockedServicesSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewBlockedServicesSetRequestWithBody generates requests for BlockedServicesSet with any type of body

func NewCacheClearRequest

func NewCacheClearRequest(server string) (*http.Request, error)

NewCacheClearRequest generates requests for CacheClear

func NewChangeLanguageRequest

func NewChangeLanguageRequest(server string, body ChangeLanguageJSONRequestBody) (*http.Request, error)

NewChangeLanguageRequest calls the generic ChangeLanguage builder with application/json body

func NewChangeLanguageRequestWithBody

func NewChangeLanguageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewChangeLanguageRequestWithBody generates requests for ChangeLanguage with any type of body

func NewCheckActiveDhcpRequest

func NewCheckActiveDhcpRequest(server string, body CheckActiveDhcpJSONRequestBody) (*http.Request, error)

NewCheckActiveDhcpRequest calls the generic CheckActiveDhcp builder with application/json body

func NewCheckActiveDhcpRequestWithBody

func NewCheckActiveDhcpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCheckActiveDhcpRequestWithBody generates requests for CheckActiveDhcp with any type of body

func NewClientsAddRequest

func NewClientsAddRequest(server string, body ClientsAddJSONRequestBody) (*http.Request, error)

NewClientsAddRequest calls the generic ClientsAdd builder with application/json body

func NewClientsAddRequestWithBody

func NewClientsAddRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewClientsAddRequestWithBody generates requests for ClientsAdd with any type of body

func NewClientsDeleteRequest

func NewClientsDeleteRequest(server string, body ClientsDeleteJSONRequestBody) (*http.Request, error)

NewClientsDeleteRequest calls the generic ClientsDelete builder with application/json body

func NewClientsDeleteRequestWithBody

func NewClientsDeleteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewClientsDeleteRequestWithBody generates requests for ClientsDelete with any type of body

func NewClientsFindRequest

func NewClientsFindRequest(server string, params *ClientsFindParams) (*http.Request, error)

NewClientsFindRequest generates requests for ClientsFind

func NewClientsStatusRequest

func NewClientsStatusRequest(server string) (*http.Request, error)

NewClientsStatusRequest generates requests for ClientsStatus

func NewClientsUpdateRequest

func NewClientsUpdateRequest(server string, body ClientsUpdateJSONRequestBody) (*http.Request, error)

NewClientsUpdateRequest calls the generic ClientsUpdate builder with application/json body

func NewClientsUpdateRequestWithBody

func NewClientsUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewClientsUpdateRequestWithBody generates requests for ClientsUpdate with any type of body

func NewCurrentLanguageRequest

func NewCurrentLanguageRequest(server string) (*http.Request, error)

NewCurrentLanguageRequest generates requests for CurrentLanguage

func NewDhcpAddStaticLeaseRequest

func NewDhcpAddStaticLeaseRequest(server string, body DhcpAddStaticLeaseJSONRequestBody) (*http.Request, error)

NewDhcpAddStaticLeaseRequest calls the generic DhcpAddStaticLease builder with application/json body

func NewDhcpAddStaticLeaseRequestWithBody

func NewDhcpAddStaticLeaseRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewDhcpAddStaticLeaseRequestWithBody generates requests for DhcpAddStaticLease with any type of body

func NewDhcpInterfacesRequest

func NewDhcpInterfacesRequest(server string) (*http.Request, error)

NewDhcpInterfacesRequest generates requests for DhcpInterfaces

func NewDhcpRemoveStaticLeaseRequest

func NewDhcpRemoveStaticLeaseRequest(server string, body DhcpRemoveStaticLeaseJSONRequestBody) (*http.Request, error)

NewDhcpRemoveStaticLeaseRequest calls the generic DhcpRemoveStaticLease builder with application/json body

func NewDhcpRemoveStaticLeaseRequestWithBody

func NewDhcpRemoveStaticLeaseRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewDhcpRemoveStaticLeaseRequestWithBody generates requests for DhcpRemoveStaticLease with any type of body

func NewDhcpResetLeasesRequest

func NewDhcpResetLeasesRequest(server string) (*http.Request, error)

NewDhcpResetLeasesRequest generates requests for DhcpResetLeases

func NewDhcpResetRequest

func NewDhcpResetRequest(server string) (*http.Request, error)

NewDhcpResetRequest generates requests for DhcpReset

func NewDhcpSetConfigRequest

func NewDhcpSetConfigRequest(server string, body DhcpSetConfigJSONRequestBody) (*http.Request, error)

NewDhcpSetConfigRequest calls the generic DhcpSetConfig builder with application/json body

func NewDhcpSetConfigRequestWithBody

func NewDhcpSetConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewDhcpSetConfigRequestWithBody generates requests for DhcpSetConfig with any type of body

func NewDhcpStatusRequest

func NewDhcpStatusRequest(server string) (*http.Request, error)

NewDhcpStatusRequest generates requests for DhcpStatus

func NewDhcpUpdateStaticLeaseRequest

func NewDhcpUpdateStaticLeaseRequest(server string, body DhcpUpdateStaticLeaseJSONRequestBody) (*http.Request, error)

NewDhcpUpdateStaticLeaseRequest calls the generic DhcpUpdateStaticLease builder with application/json body

func NewDhcpUpdateStaticLeaseRequestWithBody

func NewDhcpUpdateStaticLeaseRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewDhcpUpdateStaticLeaseRequestWithBody generates requests for DhcpUpdateStaticLease with any type of body

func NewDnsConfigRequest

func NewDnsConfigRequest(server string, body DnsConfigJSONRequestBody) (*http.Request, error)

NewDnsConfigRequest calls the generic DnsConfig builder with application/json body

func NewDnsConfigRequestWithBody

func NewDnsConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewDnsConfigRequestWithBody generates requests for DnsConfig with any type of body

func NewDnsInfoRequest

func NewDnsInfoRequest(server string) (*http.Request, error)

NewDnsInfoRequest generates requests for DnsInfo

func NewFilteringAddURLRequest

func NewFilteringAddURLRequest(server string, body FilteringAddURLJSONRequestBody) (*http.Request, error)

NewFilteringAddURLRequest calls the generic FilteringAddURL builder with application/json body

func NewFilteringAddURLRequestWithBody

func NewFilteringAddURLRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFilteringAddURLRequestWithBody generates requests for FilteringAddURL with any type of body

func NewFilteringCheckHostRequest

func NewFilteringCheckHostRequest(server string, params *FilteringCheckHostParams) (*http.Request, error)

NewFilteringCheckHostRequest generates requests for FilteringCheckHost

func NewFilteringConfigRequest

func NewFilteringConfigRequest(server string, body FilteringConfigJSONRequestBody) (*http.Request, error)

NewFilteringConfigRequest calls the generic FilteringConfig builder with application/json body

func NewFilteringConfigRequestWithBody

func NewFilteringConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFilteringConfigRequestWithBody generates requests for FilteringConfig with any type of body

func NewFilteringRefreshRequest

func NewFilteringRefreshRequest(server string, body FilteringRefreshJSONRequestBody) (*http.Request, error)

NewFilteringRefreshRequest calls the generic FilteringRefresh builder with application/json body

func NewFilteringRefreshRequestWithBody

func NewFilteringRefreshRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFilteringRefreshRequestWithBody generates requests for FilteringRefresh with any type of body

func NewFilteringRemoveURLRequest

func NewFilteringRemoveURLRequest(server string, body FilteringRemoveURLJSONRequestBody) (*http.Request, error)

NewFilteringRemoveURLRequest calls the generic FilteringRemoveURL builder with application/json body

func NewFilteringRemoveURLRequestWithBody

func NewFilteringRemoveURLRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFilteringRemoveURLRequestWithBody generates requests for FilteringRemoveURL with any type of body

func NewFilteringSetRulesRequest

func NewFilteringSetRulesRequest(server string, body FilteringSetRulesJSONRequestBody) (*http.Request, error)

NewFilteringSetRulesRequest calls the generic FilteringSetRules builder with application/json body

func NewFilteringSetRulesRequestWithBody

func NewFilteringSetRulesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFilteringSetRulesRequestWithBody generates requests for FilteringSetRules with any type of body

func NewFilteringSetURLRequest

func NewFilteringSetURLRequest(server string, body FilteringSetURLJSONRequestBody) (*http.Request, error)

NewFilteringSetURLRequest calls the generic FilteringSetURL builder with application/json body

func NewFilteringSetURLRequestWithBody

func NewFilteringSetURLRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewFilteringSetURLRequestWithBody generates requests for FilteringSetURL with any type of body

func NewFilteringStatusRequest

func NewFilteringStatusRequest(server string) (*http.Request, error)

NewFilteringStatusRequest generates requests for FilteringStatus

func NewGetProfileRequest

func NewGetProfileRequest(server string) (*http.Request, error)

NewGetProfileRequest generates requests for GetProfile

func NewGetQueryLogConfigRequest

func NewGetQueryLogConfigRequest(server string) (*http.Request, error)

NewGetQueryLogConfigRequest generates requests for GetQueryLogConfig

func NewGetStatsConfigRequest

func NewGetStatsConfigRequest(server string) (*http.Request, error)

NewGetStatsConfigRequest generates requests for GetStatsConfig

func NewGetVersionJsonRequest

func NewGetVersionJsonRequest(server string, body GetVersionJsonJSONRequestBody) (*http.Request, error)

NewGetVersionJsonRequest calls the generic GetVersionJson builder with application/json body

func NewGetVersionJsonRequestWithBody

func NewGetVersionJsonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewGetVersionJsonRequestWithBody generates requests for GetVersionJson with any type of body

func NewInstallCheckConfigRequest

func NewInstallCheckConfigRequest(server string, body InstallCheckConfigJSONRequestBody) (*http.Request, error)

NewInstallCheckConfigRequest calls the generic InstallCheckConfig builder with application/json body

func NewInstallCheckConfigRequestWithBody

func NewInstallCheckConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInstallCheckConfigRequestWithBody generates requests for InstallCheckConfig with any type of body

func NewInstallConfigureRequest

func NewInstallConfigureRequest(server string, body InstallConfigureJSONRequestBody) (*http.Request, error)

NewInstallConfigureRequest calls the generic InstallConfigure builder with application/json body

func NewInstallConfigureRequestWithBody

func NewInstallConfigureRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewInstallConfigureRequestWithBody generates requests for InstallConfigure with any type of body

func NewInstallGetAddressesRequest

func NewInstallGetAddressesRequest(server string) (*http.Request, error)

NewInstallGetAddressesRequest generates requests for InstallGetAddresses

func NewLoginRequest

func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)

NewLoginRequest calls the generic Login builder with application/json body

func NewLoginRequestWithBody

func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewLoginRequestWithBody generates requests for Login with any type of body

func NewLogoutRequest

func NewLogoutRequest(server string) (*http.Request, error)

NewLogoutRequest generates requests for Logout

func NewMobileConfigDoHRequest

func NewMobileConfigDoHRequest(server string, params *MobileConfigDoHParams) (*http.Request, error)

NewMobileConfigDoHRequest generates requests for MobileConfigDoH

func NewMobileConfigDoTRequest

func NewMobileConfigDoTRequest(server string, params *MobileConfigDoTParams) (*http.Request, error)

NewMobileConfigDoTRequest generates requests for MobileConfigDoT

func NewParentalDisableRequest

func NewParentalDisableRequest(server string) (*http.Request, error)

NewParentalDisableRequest generates requests for ParentalDisable

func NewParentalEnableRequest

func NewParentalEnableRequest(server string) (*http.Request, error)

NewParentalEnableRequest generates requests for ParentalEnable

func NewParentalStatusRequest

func NewParentalStatusRequest(server string) (*http.Request, error)

NewParentalStatusRequest generates requests for ParentalStatus

func NewPutQueryLogConfigRequest

func NewPutQueryLogConfigRequest(server string, body PutQueryLogConfigJSONRequestBody) (*http.Request, error)

NewPutQueryLogConfigRequest calls the generic PutQueryLogConfig builder with application/json body

func NewPutQueryLogConfigRequestWithBody

func NewPutQueryLogConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPutQueryLogConfigRequestWithBody generates requests for PutQueryLogConfig with any type of body

func NewPutStatsConfigRequest

func NewPutStatsConfigRequest(server string, body PutStatsConfigJSONRequestBody) (*http.Request, error)

NewPutStatsConfigRequest calls the generic PutStatsConfig builder with application/json body

func NewPutStatsConfigRequestWithBody

func NewPutStatsConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPutStatsConfigRequestWithBody generates requests for PutStatsConfig with any type of body

func NewQueryLogConfigRequest

func NewQueryLogConfigRequest(server string, body QueryLogConfigJSONRequestBody) (*http.Request, error)

NewQueryLogConfigRequest calls the generic QueryLogConfig builder with application/json body

func NewQueryLogConfigRequestWithBody

func NewQueryLogConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewQueryLogConfigRequestWithBody generates requests for QueryLogConfig with any type of body

func NewQueryLogInfoRequest

func NewQueryLogInfoRequest(server string) (*http.Request, error)

NewQueryLogInfoRequest generates requests for QueryLogInfo

func NewQueryLogRequest

func NewQueryLogRequest(server string, params *QueryLogParams) (*http.Request, error)

NewQueryLogRequest generates requests for QueryLog

func NewQuerylogClearRequest

func NewQuerylogClearRequest(server string) (*http.Request, error)

NewQuerylogClearRequest generates requests for QuerylogClear

func NewRewriteAddRequest

func NewRewriteAddRequest(server string, body RewriteAddJSONRequestBody) (*http.Request, error)

NewRewriteAddRequest calls the generic RewriteAdd builder with application/json body

func NewRewriteAddRequestWithBody

func NewRewriteAddRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRewriteAddRequestWithBody generates requests for RewriteAdd with any type of body

func NewRewriteDeleteRequest

func NewRewriteDeleteRequest(server string, body RewriteDeleteJSONRequestBody) (*http.Request, error)

NewRewriteDeleteRequest calls the generic RewriteDelete builder with application/json body

func NewRewriteDeleteRequestWithBody

func NewRewriteDeleteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRewriteDeleteRequestWithBody generates requests for RewriteDelete with any type of body

func NewRewriteListRequest

func NewRewriteListRequest(server string) (*http.Request, error)

NewRewriteListRequest generates requests for RewriteList

func NewRewriteUpdateRequest

func NewRewriteUpdateRequest(server string, body RewriteUpdateJSONRequestBody) (*http.Request, error)

NewRewriteUpdateRequest calls the generic RewriteUpdate builder with application/json body

func NewRewriteUpdateRequestWithBody

func NewRewriteUpdateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewRewriteUpdateRequestWithBody generates requests for RewriteUpdate with any type of body

func NewSafebrowsingDisableRequest

func NewSafebrowsingDisableRequest(server string) (*http.Request, error)

NewSafebrowsingDisableRequest generates requests for SafebrowsingDisable

func NewSafebrowsingEnableRequest

func NewSafebrowsingEnableRequest(server string) (*http.Request, error)

NewSafebrowsingEnableRequest generates requests for SafebrowsingEnable

func NewSafebrowsingStatusRequest

func NewSafebrowsingStatusRequest(server string) (*http.Request, error)

NewSafebrowsingStatusRequest generates requests for SafebrowsingStatus

func NewSafesearchDisableRequest

func NewSafesearchDisableRequest(server string) (*http.Request, error)

NewSafesearchDisableRequest generates requests for SafesearchDisable

func NewSafesearchEnableRequest

func NewSafesearchEnableRequest(server string) (*http.Request, error)

NewSafesearchEnableRequest generates requests for SafesearchEnable

func NewSafesearchSettingsRequest

func NewSafesearchSettingsRequest(server string, body SafesearchSettingsJSONRequestBody) (*http.Request, error)

NewSafesearchSettingsRequest calls the generic SafesearchSettings builder with application/json body

func NewSafesearchSettingsRequestWithBody

func NewSafesearchSettingsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSafesearchSettingsRequestWithBody generates requests for SafesearchSettings with any type of body

func NewSafesearchStatusRequest

func NewSafesearchStatusRequest(server string) (*http.Request, error)

NewSafesearchStatusRequest generates requests for SafesearchStatus

func NewSetProtectionRequest

func NewSetProtectionRequest(server string, body SetProtectionJSONRequestBody) (*http.Request, error)

NewSetProtectionRequest calls the generic SetProtection builder with application/json body

func NewSetProtectionRequestWithBody

func NewSetProtectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSetProtectionRequestWithBody generates requests for SetProtection with any type of body

func NewStatsConfigRequest

func NewStatsConfigRequest(server string, body StatsConfigJSONRequestBody) (*http.Request, error)

NewStatsConfigRequest calls the generic StatsConfig builder with application/json body

func NewStatsConfigRequestWithBody

func NewStatsConfigRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewStatsConfigRequestWithBody generates requests for StatsConfig with any type of body

func NewStatsInfoRequest

func NewStatsInfoRequest(server string) (*http.Request, error)

NewStatsInfoRequest generates requests for StatsInfo

func NewStatsRequest

func NewStatsRequest(server string) (*http.Request, error)

NewStatsRequest generates requests for Stats

func NewStatsResetRequest

func NewStatsResetRequest(server string) (*http.Request, error)

NewStatsResetRequest generates requests for StatsReset

func NewStatusRequest

func NewStatusRequest(server string) (*http.Request, error)

NewStatusRequest generates requests for Status

func NewTestUpstreamDNSRequest

func NewTestUpstreamDNSRequest(server string, body TestUpstreamDNSJSONRequestBody) (*http.Request, error)

NewTestUpstreamDNSRequest calls the generic TestUpstreamDNS builder with application/json body

func NewTestUpstreamDNSRequestWithBody

func NewTestUpstreamDNSRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewTestUpstreamDNSRequestWithBody generates requests for TestUpstreamDNS with any type of body

func NewTlsConfigureRequest

func NewTlsConfigureRequest(server string, body TlsConfigureJSONRequestBody) (*http.Request, error)

NewTlsConfigureRequest calls the generic TlsConfigure builder with application/json body

func NewTlsConfigureRequestWithBody

func NewTlsConfigureRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewTlsConfigureRequestWithBody generates requests for TlsConfigure with any type of body

func NewTlsStatusRequest

func NewTlsStatusRequest(server string) (*http.Request, error)

NewTlsStatusRequest generates requests for TlsStatus

func NewTlsValidateRequest

func NewTlsValidateRequest(server string, body TlsValidateJSONRequestBody) (*http.Request, error)

NewTlsValidateRequest calls the generic TlsValidate builder with application/json body

func NewTlsValidateRequestWithBody

func NewTlsValidateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewTlsValidateRequestWithBody generates requests for TlsValidate with any type of body

func NewUpdateProfileRequest

func NewUpdateProfileRequest(server string, body UpdateProfileJSONRequestBody) (*http.Request, error)

NewUpdateProfileRequest calls the generic UpdateProfile builder with application/json body

func NewUpdateProfileRequestWithBody

func NewUpdateProfileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateProfileRequestWithBody generates requests for UpdateProfile with any type of body

Types

type AccessList

type AccessList struct {
	// AllowedClients The allowlist of clients: IP addresses, CIDRs, or ClientIDs.
	AllowedClients *[]string `json:"allowed_clients,omitempty"`

	// BlockedHosts The blocklist of hosts.
	BlockedHosts *[]string `json:"blocked_hosts,omitempty"`

	// DisallowedClients The blocklist of clients: IP addresses, CIDRs, or ClientIDs.
	DisallowedClients *[]string `json:"disallowed_clients,omitempty"`
}

AccessList Client and host access list. Each of the lists should contain only unique elements. In addition, allowed and disallowed lists cannot contain the same elements.

func (*AccessList) Equals

func (al *AccessList) Equals(o *AccessList) bool

Equals access list equal check

type AccessListResp

type AccessListResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AccessListResponse
}

func ParseAccessListResp

func ParseAccessListResp(rsp *http.Response) (*AccessListResp, error)

ParseAccessListResp parses an HTTP response from a AccessListWithResponse call

func (AccessListResp) Status

func (r AccessListResp) Status() string

Status returns HTTPResponse.Status

func (AccessListResp) StatusCode

func (r AccessListResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AccessListResponse

type AccessListResponse = AccessList

AccessListResponse Client and host access list. Each of the lists should contain only unique elements. In addition, allowed and disallowed lists cannot contain the same elements.

type AccessSetJSONRequestBody

type AccessSetJSONRequestBody = AccessSetRequest

AccessSetJSONRequestBody defines body for AccessSet for application/json ContentType.

type AccessSetRequest

type AccessSetRequest = AccessList

AccessSetRequest Client and host access list. Each of the lists should contain only unique elements. In addition, allowed and disallowed lists cannot contain the same elements.

type AccessSetResp

type AccessSetResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseAccessSetResp

func ParseAccessSetResp(rsp *http.Response) (*AccessSetResp, error)

ParseAccessSetResp parses an HTTP response from a AccessSetWithResponse call

func (AccessSetResp) Status

func (r AccessSetResp) Status() string

Status returns HTTPResponse.Status

func (AccessSetResp) StatusCode

func (r AccessSetResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type AddUrlRequest

type AddUrlRequest struct {
	Name *string `json:"name,omitempty"`

	// Url URL or an absolute path to the file containing filtering rules.
	Url       *string `json:"url,omitempty"`
	Whitelist *bool   `json:"whitelist,omitempty"`
}

AddUrlRequest /add_url request data

type AddressInfo

type AddressInfo struct {
	Ip   string `json:"ip"`
	Port uint16 `json:"port"`
}

AddressInfo Port information

type AddressesInfo

type AddressesInfo struct {
	DnsPort uint16 `json:"dns_port"`

	// Interfaces Network interfaces dictionary, keys are interface names.
	Interfaces NetInterfaces `json:"interfaces"`
	Version    string        `json:"version"`
	WebPort    uint16        `json:"web_port"`
}

AddressesInfo AdGuard Home addresses configuration

type AdguardHomeClient

type AdguardHomeClient struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

AdguardHomeClient which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*AdguardHomeClient, error)

Creates a new AdguardHomeClient, with reasonable defaults

func (*AdguardHomeClient) AccessList

func (c *AdguardHomeClient) AccessList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) AccessSet

func (c *AdguardHomeClient) AccessSet(ctx context.Context, body AccessSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) AccessSetWithBody

func (c *AdguardHomeClient) AccessSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) BeginUpdate

func (c *AdguardHomeClient) BeginUpdate(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) BlockedServicesAll

func (c *AdguardHomeClient) BlockedServicesAll(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) BlockedServicesAvailableServices

func (c *AdguardHomeClient) BlockedServicesAvailableServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) BlockedServicesList

func (c *AdguardHomeClient) BlockedServicesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) BlockedServicesSchedule

func (c *AdguardHomeClient) BlockedServicesSchedule(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) BlockedServicesScheduleUpdate

func (c *AdguardHomeClient) BlockedServicesScheduleUpdate(ctx context.Context, body BlockedServicesScheduleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) BlockedServicesScheduleUpdateWithBody

func (c *AdguardHomeClient) BlockedServicesScheduleUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) BlockedServicesSet

func (c *AdguardHomeClient) BlockedServicesSet(ctx context.Context, body BlockedServicesSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) BlockedServicesSetWithBody

func (c *AdguardHomeClient) BlockedServicesSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) CacheClear

func (c *AdguardHomeClient) CacheClear(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ChangeLanguage

func (c *AdguardHomeClient) ChangeLanguage(ctx context.Context, body ChangeLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ChangeLanguageWithBody

func (c *AdguardHomeClient) ChangeLanguageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) CheckActiveDhcp

func (c *AdguardHomeClient) CheckActiveDhcp(ctx context.Context, body CheckActiveDhcpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) CheckActiveDhcpWithBody

func (c *AdguardHomeClient) CheckActiveDhcpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ClientsAdd

func (c *AdguardHomeClient) ClientsAdd(ctx context.Context, body ClientsAddJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ClientsAddWithBody

func (c *AdguardHomeClient) ClientsAddWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ClientsDelete

func (c *AdguardHomeClient) ClientsDelete(ctx context.Context, body ClientsDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ClientsDeleteWithBody

func (c *AdguardHomeClient) ClientsDeleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ClientsFind

func (c *AdguardHomeClient) ClientsFind(ctx context.Context, params *ClientsFindParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ClientsStatus

func (c *AdguardHomeClient) ClientsStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ClientsUpdate

func (c *AdguardHomeClient) ClientsUpdate(ctx context.Context, body ClientsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ClientsUpdateWithBody

func (c *AdguardHomeClient) ClientsUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) CurrentLanguage

func (c *AdguardHomeClient) CurrentLanguage(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpAddStaticLease

func (c *AdguardHomeClient) DhcpAddStaticLease(ctx context.Context, body DhcpAddStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpAddStaticLeaseWithBody

func (c *AdguardHomeClient) DhcpAddStaticLeaseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpInterfaces

func (c *AdguardHomeClient) DhcpInterfaces(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpRemoveStaticLease

func (c *AdguardHomeClient) DhcpRemoveStaticLease(ctx context.Context, body DhcpRemoveStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpRemoveStaticLeaseWithBody

func (c *AdguardHomeClient) DhcpRemoveStaticLeaseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpReset

func (c *AdguardHomeClient) DhcpReset(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpResetLeases

func (c *AdguardHomeClient) DhcpResetLeases(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpSetConfig

func (c *AdguardHomeClient) DhcpSetConfig(ctx context.Context, body DhcpSetConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpSetConfigWithBody

func (c *AdguardHomeClient) DhcpSetConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpStatus

func (c *AdguardHomeClient) DhcpStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpUpdateStaticLease

func (c *AdguardHomeClient) DhcpUpdateStaticLease(ctx context.Context, body DhcpUpdateStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DhcpUpdateStaticLeaseWithBody

func (c *AdguardHomeClient) DhcpUpdateStaticLeaseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DnsConfig

func (c *AdguardHomeClient) DnsConfig(ctx context.Context, body DnsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DnsConfigWithBody

func (c *AdguardHomeClient) DnsConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) DnsInfo

func (c *AdguardHomeClient) DnsInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringAddURL

func (c *AdguardHomeClient) FilteringAddURL(ctx context.Context, body FilteringAddURLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringAddURLWithBody

func (c *AdguardHomeClient) FilteringAddURLWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringCheckHost

func (c *AdguardHomeClient) FilteringCheckHost(ctx context.Context, params *FilteringCheckHostParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringConfig

func (c *AdguardHomeClient) FilteringConfig(ctx context.Context, body FilteringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringConfigWithBody

func (c *AdguardHomeClient) FilteringConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringRefresh

func (c *AdguardHomeClient) FilteringRefresh(ctx context.Context, body FilteringRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringRefreshWithBody

func (c *AdguardHomeClient) FilteringRefreshWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringRemoveURL

func (c *AdguardHomeClient) FilteringRemoveURL(ctx context.Context, body FilteringRemoveURLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringRemoveURLWithBody

func (c *AdguardHomeClient) FilteringRemoveURLWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringSetRules

func (c *AdguardHomeClient) FilteringSetRules(ctx context.Context, body FilteringSetRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringSetRulesWithBody

func (c *AdguardHomeClient) FilteringSetRulesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringSetURL

func (c *AdguardHomeClient) FilteringSetURL(ctx context.Context, body FilteringSetURLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringSetURLWithBody

func (c *AdguardHomeClient) FilteringSetURLWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) FilteringStatus

func (c *AdguardHomeClient) FilteringStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) GetProfile

func (c *AdguardHomeClient) GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) GetQueryLogConfig

func (c *AdguardHomeClient) GetQueryLogConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) GetStatsConfig

func (c *AdguardHomeClient) GetStatsConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) GetVersionJson

func (c *AdguardHomeClient) GetVersionJson(ctx context.Context, body GetVersionJsonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) GetVersionJsonWithBody

func (c *AdguardHomeClient) GetVersionJsonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) InstallCheckConfig

func (c *AdguardHomeClient) InstallCheckConfig(ctx context.Context, body InstallCheckConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) InstallCheckConfigWithBody

func (c *AdguardHomeClient) InstallCheckConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) InstallConfigure

func (c *AdguardHomeClient) InstallConfigure(ctx context.Context, body InstallConfigureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) InstallConfigureWithBody

func (c *AdguardHomeClient) InstallConfigureWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) InstallGetAddresses

func (c *AdguardHomeClient) InstallGetAddresses(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) Login

func (*AdguardHomeClient) LoginWithBody

func (c *AdguardHomeClient) LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) Logout

func (c *AdguardHomeClient) Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) MobileConfigDoH

func (c *AdguardHomeClient) MobileConfigDoH(ctx context.Context, params *MobileConfigDoHParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) MobileConfigDoT

func (c *AdguardHomeClient) MobileConfigDoT(ctx context.Context, params *MobileConfigDoTParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ParentalDisable

func (c *AdguardHomeClient) ParentalDisable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ParentalEnable

func (c *AdguardHomeClient) ParentalEnable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) ParentalStatus

func (c *AdguardHomeClient) ParentalStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) PutQueryLogConfig

func (c *AdguardHomeClient) PutQueryLogConfig(ctx context.Context, body PutQueryLogConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) PutQueryLogConfigWithBody

func (c *AdguardHomeClient) PutQueryLogConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) PutStatsConfig

func (c *AdguardHomeClient) PutStatsConfig(ctx context.Context, body PutStatsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) PutStatsConfigWithBody

func (c *AdguardHomeClient) PutStatsConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) QueryLog

func (c *AdguardHomeClient) QueryLog(ctx context.Context, params *QueryLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) QueryLogConfig

func (c *AdguardHomeClient) QueryLogConfig(ctx context.Context, body QueryLogConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) QueryLogConfigWithBody

func (c *AdguardHomeClient) QueryLogConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) QueryLogInfo

func (c *AdguardHomeClient) QueryLogInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) QuerylogClear

func (c *AdguardHomeClient) QuerylogClear(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) RewriteAdd

func (c *AdguardHomeClient) RewriteAdd(ctx context.Context, body RewriteAddJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) RewriteAddWithBody

func (c *AdguardHomeClient) RewriteAddWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) RewriteDelete

func (c *AdguardHomeClient) RewriteDelete(ctx context.Context, body RewriteDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) RewriteDeleteWithBody

func (c *AdguardHomeClient) RewriteDeleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) RewriteList

func (c *AdguardHomeClient) RewriteList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) RewriteUpdate

func (c *AdguardHomeClient) RewriteUpdate(ctx context.Context, body RewriteUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) RewriteUpdateWithBody

func (c *AdguardHomeClient) RewriteUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) SafebrowsingDisable

func (c *AdguardHomeClient) SafebrowsingDisable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) SafebrowsingEnable

func (c *AdguardHomeClient) SafebrowsingEnable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) SafebrowsingStatus

func (c *AdguardHomeClient) SafebrowsingStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) SafesearchDisable

func (c *AdguardHomeClient) SafesearchDisable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) SafesearchEnable

func (c *AdguardHomeClient) SafesearchEnable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) SafesearchSettings

func (c *AdguardHomeClient) SafesearchSettings(ctx context.Context, body SafesearchSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) SafesearchSettingsWithBody

func (c *AdguardHomeClient) SafesearchSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) SafesearchStatus

func (c *AdguardHomeClient) SafesearchStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) SetProtection

func (c *AdguardHomeClient) SetProtection(ctx context.Context, body SetProtectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) SetProtectionWithBody

func (c *AdguardHomeClient) SetProtectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) Stats

func (c *AdguardHomeClient) Stats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) StatsConfig

func (c *AdguardHomeClient) StatsConfig(ctx context.Context, body StatsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) StatsConfigWithBody

func (c *AdguardHomeClient) StatsConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) StatsInfo

func (c *AdguardHomeClient) StatsInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) StatsReset

func (c *AdguardHomeClient) StatsReset(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) Status

func (c *AdguardHomeClient) Status(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) TestUpstreamDNS

func (c *AdguardHomeClient) TestUpstreamDNS(ctx context.Context, body TestUpstreamDNSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) TestUpstreamDNSWithBody

func (c *AdguardHomeClient) TestUpstreamDNSWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) TlsConfigure

func (c *AdguardHomeClient) TlsConfigure(ctx context.Context, body TlsConfigureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) TlsConfigureWithBody

func (c *AdguardHomeClient) TlsConfigureWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) TlsStatus

func (c *AdguardHomeClient) TlsStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) TlsValidate

func (c *AdguardHomeClient) TlsValidate(ctx context.Context, body TlsValidateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) TlsValidateWithBody

func (c *AdguardHomeClient) TlsValidateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) UpdateProfile

func (c *AdguardHomeClient) UpdateProfile(ctx context.Context, body UpdateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*AdguardHomeClient) UpdateProfileWithBody

func (c *AdguardHomeClient) UpdateProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type BeginUpdateResp

type BeginUpdateResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseBeginUpdateResp

func ParseBeginUpdateResp(rsp *http.Response) (*BeginUpdateResp, error)

ParseBeginUpdateResp parses an HTTP response from a BeginUpdateWithResponse call

func (BeginUpdateResp) Status

func (r BeginUpdateResp) Status() string

Status returns HTTPResponse.Status

func (BeginUpdateResp) StatusCode

func (r BeginUpdateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BlockedService

type BlockedService struct {
	// IconSvg The SVG icon as a Base64-encoded string to make it easier to embed it into a data URL.
	IconSvg string `json:"icon_svg"`

	// Id The ID of this service.
	Id string `json:"id"`

	// Name The human-readable name of this service.
	Name string `json:"name"`

	// Rules The array of the filtering rules.
	Rules []string `json:"rules"`
}

BlockedService defines model for BlockedService.

type BlockedServicesAll

type BlockedServicesAll struct {
	BlockedServices []BlockedService `json:"blocked_services"`
}

BlockedServicesAll defines model for BlockedServicesAll.

type BlockedServicesAllResp

type BlockedServicesAllResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BlockedServicesAll
}

func ParseBlockedServicesAllResp

func ParseBlockedServicesAllResp(rsp *http.Response) (*BlockedServicesAllResp, error)

ParseBlockedServicesAllResp parses an HTTP response from a BlockedServicesAllWithResponse call

func (BlockedServicesAllResp) Status

func (r BlockedServicesAllResp) Status() string

Status returns HTTPResponse.Status

func (BlockedServicesAllResp) StatusCode

func (r BlockedServicesAllResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BlockedServicesArray

type BlockedServicesArray = []string

BlockedServicesArray defines model for BlockedServicesArray.

type BlockedServicesAvailableServicesResp

type BlockedServicesAvailableServicesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BlockedServicesArray
}

func ParseBlockedServicesAvailableServicesResp

func ParseBlockedServicesAvailableServicesResp(rsp *http.Response) (*BlockedServicesAvailableServicesResp, error)

ParseBlockedServicesAvailableServicesResp parses an HTTP response from a BlockedServicesAvailableServicesWithResponse call

func (BlockedServicesAvailableServicesResp) Status

Status returns HTTPResponse.Status

func (BlockedServicesAvailableServicesResp) StatusCode

StatusCode returns HTTPResponse.StatusCode

type BlockedServicesListResp

type BlockedServicesListResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BlockedServicesArray
}

func ParseBlockedServicesListResp

func ParseBlockedServicesListResp(rsp *http.Response) (*BlockedServicesListResp, error)

ParseBlockedServicesListResp parses an HTTP response from a BlockedServicesListWithResponse call

func (BlockedServicesListResp) Status

func (r BlockedServicesListResp) Status() string

Status returns HTTPResponse.Status

func (BlockedServicesListResp) StatusCode

func (r BlockedServicesListResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BlockedServicesSchedule

type BlockedServicesSchedule struct {
	// Ids The names of the blocked services.
	Ids *[]string `json:"ids,omitempty"`

	// Schedule Sets periods of inactivity for filtering blocked services.  The schedule contains 7 days (Sunday to Saturday) and a time zone.
	Schedule *Schedule `json:"schedule,omitempty"`
}

BlockedServicesSchedule defines model for BlockedServicesSchedule.

func (*BlockedServicesSchedule) Equals

func (*BlockedServicesSchedule) ServicesString

func (bss *BlockedServicesSchedule) ServicesString() string

type BlockedServicesScheduleResp

type BlockedServicesScheduleResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *BlockedServicesSchedule
}

func ParseBlockedServicesScheduleResp

func ParseBlockedServicesScheduleResp(rsp *http.Response) (*BlockedServicesScheduleResp, error)

ParseBlockedServicesScheduleResp parses an HTTP response from a BlockedServicesScheduleWithResponse call

func (BlockedServicesScheduleResp) Status

Status returns HTTPResponse.Status

func (BlockedServicesScheduleResp) StatusCode

func (r BlockedServicesScheduleResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BlockedServicesScheduleUpdateJSONRequestBody

type BlockedServicesScheduleUpdateJSONRequestBody = BlockedServicesSchedule

BlockedServicesScheduleUpdateJSONRequestBody defines body for BlockedServicesScheduleUpdate for application/json ContentType.

type BlockedServicesScheduleUpdateResp

type BlockedServicesScheduleUpdateResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseBlockedServicesScheduleUpdateResp

func ParseBlockedServicesScheduleUpdateResp(rsp *http.Response) (*BlockedServicesScheduleUpdateResp, error)

ParseBlockedServicesScheduleUpdateResp parses an HTTP response from a BlockedServicesScheduleUpdateWithResponse call

func (BlockedServicesScheduleUpdateResp) Status

Status returns HTTPResponse.Status

func (BlockedServicesScheduleUpdateResp) StatusCode

func (r BlockedServicesScheduleUpdateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BlockedServicesSetJSONRequestBody

type BlockedServicesSetJSONRequestBody = BlockedServicesArray

BlockedServicesSetJSONRequestBody defines body for BlockedServicesSet for application/json ContentType.

type BlockedServicesSetResp

type BlockedServicesSetResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseBlockedServicesSetResp

func ParseBlockedServicesSetResp(rsp *http.Response) (*BlockedServicesSetResp, error)

ParseBlockedServicesSetResp parses an HTTP response from a BlockedServicesSetWithResponse call

func (BlockedServicesSetResp) Status

func (r BlockedServicesSetResp) Status() string

Status returns HTTPResponse.Status

func (BlockedServicesSetResp) StatusCode

func (r BlockedServicesSetResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CacheClearResp

type CacheClearResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCacheClearResp

func ParseCacheClearResp(rsp *http.Response) (*CacheClearResp, error)

ParseCacheClearResp parses an HTTP response from a CacheClearWithResponse call

func (CacheClearResp) Status

func (r CacheClearResp) Status() string

Status returns HTTPResponse.Status

func (CacheClearResp) StatusCode

func (r CacheClearResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ChangeLanguageJSONRequestBody

type ChangeLanguageJSONRequestBody = LanguageSettings

ChangeLanguageJSONRequestBody defines body for ChangeLanguage for application/json ContentType.

type ChangeLanguageResp

type ChangeLanguageResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseChangeLanguageResp

func ParseChangeLanguageResp(rsp *http.Response) (*ChangeLanguageResp, error)

ParseChangeLanguageResp parses an HTTP response from a ChangeLanguageWithResponse call

func (ChangeLanguageResp) Status

func (r ChangeLanguageResp) Status() string

Status returns HTTPResponse.Status

func (ChangeLanguageResp) StatusCode

func (r ChangeLanguageResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CheckActiveDhcpJSONRequestBody

type CheckActiveDhcpJSONRequestBody = DhcpFindActiveReq

CheckActiveDhcpJSONRequestBody defines body for CheckActiveDhcp for application/json ContentType.

type CheckActiveDhcpResp

type CheckActiveDhcpResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DhcpSearchResult
	JSON501      *Error
}

func ParseCheckActiveDhcpResp

func ParseCheckActiveDhcpResp(rsp *http.Response) (*CheckActiveDhcpResp, error)

ParseCheckActiveDhcpResp parses an HTTP response from a CheckActiveDhcpWithResponse call

func (CheckActiveDhcpResp) Status

func (r CheckActiveDhcpResp) Status() string

Status returns HTTPResponse.Status

func (CheckActiveDhcpResp) StatusCode

func (r CheckActiveDhcpResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CheckConfigRequest

type CheckConfigRequest struct {
	Dns         *CheckConfigRequestInfo `json:"dns,omitempty"`
	SetStaticIp *bool                   `json:"set_static_ip,omitempty"`
	Web         *CheckConfigRequestInfo `json:"web,omitempty"`
}

CheckConfigRequest Configuration to be checked

type CheckConfigRequestInfo

type CheckConfigRequestInfo struct {
	Autofix *bool   `json:"autofix,omitempty"`
	Ip      *string `json:"ip,omitempty"`
	Port    *uint16 `json:"port,omitempty"`
}

CheckConfigRequestInfo defines model for CheckConfigRequestInfo.

type CheckConfigResponse

type CheckConfigResponse struct {
	Dns      CheckConfigResponseInfo `json:"dns"`
	StaticIp CheckConfigStaticIpInfo `json:"static_ip"`
	Web      CheckConfigResponseInfo `json:"web"`
}

CheckConfigResponse defines model for CheckConfigResponse.

type CheckConfigResponseInfo

type CheckConfigResponseInfo struct {
	CanAutofix bool   `json:"can_autofix"`
	Status     string `json:"status"`
}

CheckConfigResponseInfo defines model for CheckConfigResponseInfo.

type CheckConfigStaticIpInfo

type CheckConfigStaticIpInfo struct {
	// Error Error text. Set if static=error
	Error *string `json:"error,omitempty"`

	// Ip Current dynamic IP address. Set if static=no
	Ip *string `json:"ip,omitempty"`

	// Static Can be: yes, no, error
	Static *CheckConfigStaticIpInfoStatic `json:"static,omitempty"`
}

CheckConfigStaticIpInfo defines model for CheckConfigStaticIpInfo.

type CheckConfigStaticIpInfoStatic

type CheckConfigStaticIpInfoStatic string

CheckConfigStaticIpInfoStatic Can be: yes, no, error

const (
	CheckConfigStaticIpInfoStaticError CheckConfigStaticIpInfoStatic = "error"
	CheckConfigStaticIpInfoStaticNo    CheckConfigStaticIpInfoStatic = "no"
	CheckConfigStaticIpInfoStaticYes   CheckConfigStaticIpInfoStatic = "yes"
)

Defines values for CheckConfigStaticIpInfoStatic.

type Client

type Client struct {
	BlockedServices *[]string `json:"blocked_services,omitempty"`

	// BlockedServicesSchedule Sets periods of inactivity for filtering blocked services.  The schedule contains 7 days (Sunday to Saturday) and a time zone.
	BlockedServicesSchedule *Schedule `json:"blocked_services_schedule,omitempty"`
	FilteringEnabled        *bool     `json:"filtering_enabled,omitempty"`

	// Ids IP, CIDR, MAC, or ClientID.
	Ids *[]string `json:"ids,omitempty"`

	// IgnoreQuerylog NOTE: If `ignore_querylog` is not set in HTTP API `GET /clients/add`
	// request then default value (false) will be used.
	//
	// If `ignore_querylog` is not set in HTTP API `GET /clients/update`
	// request then the existing value will not be changed.
	//
	// This behaviour can be changed in the future versions.
	IgnoreQuerylog *bool `json:"ignore_querylog,omitempty"`

	// IgnoreStatistics NOTE: If `ignore_statistics` is not set in HTTP API `GET
	// /clients/add` request then default value (false) will be used.
	//
	// If `ignore_statistics` is not set in HTTP API `GET /clients/update`
	// request then the existing value will not be changed.
	//
	// This behaviour can be changed in the future versions.
	IgnoreStatistics *bool `json:"ignore_statistics,omitempty"`

	// Name Name
	Name            *string `json:"name,omitempty"`
	ParentalEnabled *bool   `json:"parental_enabled,omitempty"`

	// SafeSearch Safe search settings.
	SafeSearch          *SafeSearchConfig `json:"safe_search,omitempty"`
	SafebrowsingEnabled *bool             `json:"safebrowsing_enabled,omitempty"`
	// Deprecated:
	SafesearchEnabled *bool     `json:"safesearch_enabled,omitempty"`
	Tags              *[]string `json:"tags,omitempty"`
	Upstreams         *[]string `json:"upstreams,omitempty"`

	// UpstreamsCacheEnabled NOTE: If `upstreams_cache_enabled` is not set in HTTP API
	// `GET /clients/add` request then default value (false) will be used.
	//
	// If `upstreams_cache_enabled` is not set in HTTP API
	// `GET /clients/update` request then the existing value will not be
	// changed.
	//
	// This behaviour can be changed in the future versions.
	UpstreamsCacheEnabled *bool `json:"upstreams_cache_enabled,omitempty"`

	// UpstreamsCacheSize NOTE: If `upstreams_cache_enabled` is not set in HTTP API
	// `GET /clients/update` request then the existing value will not be
	// changed.
	//
	// This behaviour can be changed in the future versions.
	UpstreamsCacheSize       *int  `json:"upstreams_cache_size,omitempty"`
	UseGlobalBlockedServices *bool `json:"use_global_blocked_services,omitempty"`
	UseGlobalSettings        *bool `json:"use_global_settings,omitempty"`
}

Client Client information.

func (*Client) Equals

func (cl *Client) Equals(o *Client) bool

Equals Clients equal check

func (*Client) Sort

func (cl *Client) Sort()

Sort clients

type ClientAuto

type ClientAuto struct {
	// Ip IP address
	Ip *string `json:"ip,omitempty"`

	// Name Name
	Name *string `json:"name,omitempty"`

	// Source The source of this information
	Source    *string    `json:"source,omitempty"`
	WhoisInfo *WhoisInfo `json:"whois_info,omitempty"`
}

ClientAuto Auto-Client information

type ClientDelete

type ClientDelete struct {
	Name *string `json:"name,omitempty"`
}

ClientDelete Client delete request

type ClientFindSubEntry

type ClientFindSubEntry struct {
	BlockedServices *[]string `json:"blocked_services,omitempty"`

	// Disallowed Whether the client's IP is blocked or not.
	Disallowed *bool `json:"disallowed,omitempty"`

	// DisallowedRule The rule due to which the client is disallowed.  If disallowed is set to true, and this string is empty, then the client IP is disallowed by the "allowed IP list", that is it is not included in the allowed list.
	DisallowedRule   *string `json:"disallowed_rule,omitempty"`
	FilteringEnabled *bool   `json:"filtering_enabled,omitempty"`

	// Ids IP, CIDR, MAC, or ClientID.
	Ids              *[]string `json:"ids,omitempty"`
	IgnoreQuerylog   *bool     `json:"ignore_querylog,omitempty"`
	IgnoreStatistics *bool     `json:"ignore_statistics,omitempty"`

	// Name Name
	Name            *string `json:"name,omitempty"`
	ParentalEnabled *bool   `json:"parental_enabled,omitempty"`

	// SafeSearch Safe search settings.
	SafeSearch          *SafeSearchConfig `json:"safe_search,omitempty"`
	SafebrowsingEnabled *bool             `json:"safebrowsing_enabled,omitempty"`
	// Deprecated:
	SafesearchEnabled        *bool      `json:"safesearch_enabled,omitempty"`
	Upstreams                *[]string  `json:"upstreams,omitempty"`
	UseGlobalBlockedServices *bool      `json:"use_global_blocked_services,omitempty"`
	UseGlobalSettings        *bool      `json:"use_global_settings,omitempty"`
	WhoisInfo                *WhoisInfo `json:"whois_info,omitempty"`
}

ClientFindSubEntry Client information.

type ClientInterface

type ClientInterface interface {
	// AccessList request
	AccessList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AccessSetWithBody request with any body
	AccessSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AccessSet(ctx context.Context, body AccessSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MobileConfigDoH request
	MobileConfigDoH(ctx context.Context, params *MobileConfigDoHParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// MobileConfigDoT request
	MobileConfigDoT(ctx context.Context, params *MobileConfigDoTParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BlockedServicesAll request
	BlockedServicesAll(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BlockedServicesSchedule request
	BlockedServicesSchedule(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BlockedServicesList request
	BlockedServicesList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BlockedServicesAvailableServices request
	BlockedServicesAvailableServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BlockedServicesSetWithBody request with any body
	BlockedServicesSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	BlockedServicesSet(ctx context.Context, body BlockedServicesSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BlockedServicesScheduleUpdateWithBody request with any body
	BlockedServicesScheduleUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	BlockedServicesScheduleUpdate(ctx context.Context, body BlockedServicesScheduleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CacheClear request
	CacheClear(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClientsStatus request
	ClientsStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClientsAddWithBody request with any body
	ClientsAddWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ClientsAdd(ctx context.Context, body ClientsAddJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClientsDeleteWithBody request with any body
	ClientsDeleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ClientsDelete(ctx context.Context, body ClientsDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClientsFind request
	ClientsFind(ctx context.Context, params *ClientsFindParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClientsUpdateWithBody request with any body
	ClientsUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ClientsUpdate(ctx context.Context, body ClientsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DhcpAddStaticLeaseWithBody request with any body
	DhcpAddStaticLeaseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	DhcpAddStaticLease(ctx context.Context, body DhcpAddStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CheckActiveDhcpWithBody request with any body
	CheckActiveDhcpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CheckActiveDhcp(ctx context.Context, body CheckActiveDhcpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DhcpInterfaces request
	DhcpInterfaces(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DhcpRemoveStaticLeaseWithBody request with any body
	DhcpRemoveStaticLeaseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	DhcpRemoveStaticLease(ctx context.Context, body DhcpRemoveStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DhcpReset request
	DhcpReset(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DhcpResetLeases request
	DhcpResetLeases(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DhcpSetConfigWithBody request with any body
	DhcpSetConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	DhcpSetConfig(ctx context.Context, body DhcpSetConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DhcpStatus request
	DhcpStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DhcpUpdateStaticLeaseWithBody request with any body
	DhcpUpdateStaticLeaseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	DhcpUpdateStaticLease(ctx context.Context, body DhcpUpdateStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DnsConfigWithBody request with any body
	DnsConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	DnsConfig(ctx context.Context, body DnsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DnsInfo request
	DnsInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FilteringAddURLWithBody request with any body
	FilteringAddURLWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	FilteringAddURL(ctx context.Context, body FilteringAddURLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FilteringCheckHost request
	FilteringCheckHost(ctx context.Context, params *FilteringCheckHostParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FilteringConfigWithBody request with any body
	FilteringConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	FilteringConfig(ctx context.Context, body FilteringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FilteringRefreshWithBody request with any body
	FilteringRefreshWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	FilteringRefresh(ctx context.Context, body FilteringRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FilteringRemoveURLWithBody request with any body
	FilteringRemoveURLWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	FilteringRemoveURL(ctx context.Context, body FilteringRemoveURLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FilteringSetRulesWithBody request with any body
	FilteringSetRulesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	FilteringSetRules(ctx context.Context, body FilteringSetRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FilteringSetURLWithBody request with any body
	FilteringSetURLWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	FilteringSetURL(ctx context.Context, body FilteringSetURLJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FilteringStatus request
	FilteringStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ChangeLanguageWithBody request with any body
	ChangeLanguageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ChangeLanguage(ctx context.Context, body ChangeLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CurrentLanguage request
	CurrentLanguage(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InstallCheckConfigWithBody request with any body
	InstallCheckConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InstallCheckConfig(ctx context.Context, body InstallCheckConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InstallConfigureWithBody request with any body
	InstallConfigureWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	InstallConfigure(ctx context.Context, body InstallConfigureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// InstallGetAddresses request
	InstallGetAddresses(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LoginWithBody request with any body
	LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Logout request
	Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ParentalDisable request
	ParentalDisable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ParentalEnable request
	ParentalEnable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ParentalStatus request
	ParentalStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProfile request
	GetProfile(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateProfileWithBody request with any body
	UpdateProfileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateProfile(ctx context.Context, body UpdateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetProtectionWithBody request with any body
	SetProtectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetProtection(ctx context.Context, body SetProtectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QueryLog request
	QueryLog(ctx context.Context, params *QueryLogParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetQueryLogConfig request
	GetQueryLogConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutQueryLogConfigWithBody request with any body
	PutQueryLogConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutQueryLogConfig(ctx context.Context, body PutQueryLogConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QuerylogClear request
	QuerylogClear(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QueryLogConfigWithBody request with any body
	QueryLogConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	QueryLogConfig(ctx context.Context, body QueryLogConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// QueryLogInfo request
	QueryLogInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RewriteAddWithBody request with any body
	RewriteAddWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RewriteAdd(ctx context.Context, body RewriteAddJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RewriteDeleteWithBody request with any body
	RewriteDeleteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RewriteDelete(ctx context.Context, body RewriteDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RewriteList request
	RewriteList(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RewriteUpdateWithBody request with any body
	RewriteUpdateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	RewriteUpdate(ctx context.Context, body RewriteUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SafebrowsingDisable request
	SafebrowsingDisable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SafebrowsingEnable request
	SafebrowsingEnable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SafebrowsingStatus request
	SafebrowsingStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SafesearchDisable request
	SafesearchDisable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SafesearchEnable request
	SafesearchEnable(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SafesearchSettingsWithBody request with any body
	SafesearchSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SafesearchSettings(ctx context.Context, body SafesearchSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SafesearchStatus request
	SafesearchStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Stats request
	Stats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStatsConfig request
	GetStatsConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PutStatsConfigWithBody request with any body
	PutStatsConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PutStatsConfig(ctx context.Context, body PutStatsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StatsConfigWithBody request with any body
	StatsConfigWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	StatsConfig(ctx context.Context, body StatsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StatsInfo request
	StatsInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StatsReset request
	StatsReset(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// Status request
	Status(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TestUpstreamDNSWithBody request with any body
	TestUpstreamDNSWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TestUpstreamDNS(ctx context.Context, body TestUpstreamDNSJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TlsConfigureWithBody request with any body
	TlsConfigureWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TlsConfigure(ctx context.Context, body TlsConfigureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TlsStatus request
	TlsStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// TlsValidateWithBody request with any body
	TlsValidateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	TlsValidate(ctx context.Context, body TlsValidateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// BeginUpdate request
	BeginUpdate(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetVersionJsonWithBody request with any body
	GetVersionJsonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GetVersionJson(ctx context.Context, body GetVersionJsonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*AdguardHomeClient) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientUpdate

type ClientUpdate struct {
	// Data Client information.
	Data *Client `json:"data,omitempty"`
	Name *string `json:"name,omitempty"`
}

ClientUpdate Client update request

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) AccessListWithResponse

func (c *ClientWithResponses) AccessListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AccessListResp, error)

AccessListWithResponse request returning *AccessListResp

func (*ClientWithResponses) AccessSetWithBodyWithResponse

func (c *ClientWithResponses) AccessSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AccessSetResp, error)

AccessSetWithBodyWithResponse request with arbitrary body returning *AccessSetResp

func (*ClientWithResponses) AccessSetWithResponse

func (c *ClientWithResponses) AccessSetWithResponse(ctx context.Context, body AccessSetJSONRequestBody, reqEditors ...RequestEditorFn) (*AccessSetResp, error)

func (*ClientWithResponses) BeginUpdateWithResponse

func (c *ClientWithResponses) BeginUpdateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BeginUpdateResp, error)

BeginUpdateWithResponse request returning *BeginUpdateResp

func (*ClientWithResponses) BlockedServicesAllWithResponse

func (c *ClientWithResponses) BlockedServicesAllWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BlockedServicesAllResp, error)

BlockedServicesAllWithResponse request returning *BlockedServicesAllResp

func (*ClientWithResponses) BlockedServicesAvailableServicesWithResponse

func (c *ClientWithResponses) BlockedServicesAvailableServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BlockedServicesAvailableServicesResp, error)

BlockedServicesAvailableServicesWithResponse request returning *BlockedServicesAvailableServicesResp

func (*ClientWithResponses) BlockedServicesListWithResponse

func (c *ClientWithResponses) BlockedServicesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BlockedServicesListResp, error)

BlockedServicesListWithResponse request returning *BlockedServicesListResp

func (*ClientWithResponses) BlockedServicesScheduleUpdateWithBodyWithResponse

func (c *ClientWithResponses) BlockedServicesScheduleUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BlockedServicesScheduleUpdateResp, error)

BlockedServicesScheduleUpdateWithBodyWithResponse request with arbitrary body returning *BlockedServicesScheduleUpdateResp

func (*ClientWithResponses) BlockedServicesScheduleUpdateWithResponse

func (c *ClientWithResponses) BlockedServicesScheduleUpdateWithResponse(ctx context.Context, body BlockedServicesScheduleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*BlockedServicesScheduleUpdateResp, error)

func (*ClientWithResponses) BlockedServicesScheduleWithResponse

func (c *ClientWithResponses) BlockedServicesScheduleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BlockedServicesScheduleResp, error)

BlockedServicesScheduleWithResponse request returning *BlockedServicesScheduleResp

func (*ClientWithResponses) BlockedServicesSetWithBodyWithResponse

func (c *ClientWithResponses) BlockedServicesSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BlockedServicesSetResp, error)

BlockedServicesSetWithBodyWithResponse request with arbitrary body returning *BlockedServicesSetResp

func (*ClientWithResponses) BlockedServicesSetWithResponse

func (c *ClientWithResponses) BlockedServicesSetWithResponse(ctx context.Context, body BlockedServicesSetJSONRequestBody, reqEditors ...RequestEditorFn) (*BlockedServicesSetResp, error)

func (*ClientWithResponses) CacheClearWithResponse

func (c *ClientWithResponses) CacheClearWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CacheClearResp, error)

CacheClearWithResponse request returning *CacheClearResp

func (*ClientWithResponses) ChangeLanguageWithBodyWithResponse

func (c *ClientWithResponses) ChangeLanguageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeLanguageResp, error)

ChangeLanguageWithBodyWithResponse request with arbitrary body returning *ChangeLanguageResp

func (*ClientWithResponses) ChangeLanguageWithResponse

func (c *ClientWithResponses) ChangeLanguageWithResponse(ctx context.Context, body ChangeLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeLanguageResp, error)

func (*ClientWithResponses) CheckActiveDhcpWithBodyWithResponse

func (c *ClientWithResponses) CheckActiveDhcpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckActiveDhcpResp, error)

CheckActiveDhcpWithBodyWithResponse request with arbitrary body returning *CheckActiveDhcpResp

func (*ClientWithResponses) CheckActiveDhcpWithResponse

func (c *ClientWithResponses) CheckActiveDhcpWithResponse(ctx context.Context, body CheckActiveDhcpJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckActiveDhcpResp, error)

func (*ClientWithResponses) ClientsAddWithBodyWithResponse

func (c *ClientWithResponses) ClientsAddWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClientsAddResp, error)

ClientsAddWithBodyWithResponse request with arbitrary body returning *ClientsAddResp

func (*ClientWithResponses) ClientsAddWithResponse

func (c *ClientWithResponses) ClientsAddWithResponse(ctx context.Context, body ClientsAddJSONRequestBody, reqEditors ...RequestEditorFn) (*ClientsAddResp, error)

func (*ClientWithResponses) ClientsDeleteWithBodyWithResponse

func (c *ClientWithResponses) ClientsDeleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClientsDeleteResp, error)

ClientsDeleteWithBodyWithResponse request with arbitrary body returning *ClientsDeleteResp

func (*ClientWithResponses) ClientsDeleteWithResponse

func (c *ClientWithResponses) ClientsDeleteWithResponse(ctx context.Context, body ClientsDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*ClientsDeleteResp, error)

func (*ClientWithResponses) ClientsFindWithResponse

func (c *ClientWithResponses) ClientsFindWithResponse(ctx context.Context, params *ClientsFindParams, reqEditors ...RequestEditorFn) (*ClientsFindResp, error)

ClientsFindWithResponse request returning *ClientsFindResp

func (*ClientWithResponses) ClientsStatusWithResponse

func (c *ClientWithResponses) ClientsStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ClientsStatusResp, error)

ClientsStatusWithResponse request returning *ClientsStatusResp

func (*ClientWithResponses) ClientsUpdateWithBodyWithResponse

func (c *ClientWithResponses) ClientsUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClientsUpdateResp, error)

ClientsUpdateWithBodyWithResponse request with arbitrary body returning *ClientsUpdateResp

func (*ClientWithResponses) ClientsUpdateWithResponse

func (c *ClientWithResponses) ClientsUpdateWithResponse(ctx context.Context, body ClientsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ClientsUpdateResp, error)

func (*ClientWithResponses) CurrentLanguageWithResponse

func (c *ClientWithResponses) CurrentLanguageWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CurrentLanguageResp, error)

CurrentLanguageWithResponse request returning *CurrentLanguageResp

func (*ClientWithResponses) DhcpAddStaticLeaseWithBodyWithResponse

func (c *ClientWithResponses) DhcpAddStaticLeaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DhcpAddStaticLeaseResp, error)

DhcpAddStaticLeaseWithBodyWithResponse request with arbitrary body returning *DhcpAddStaticLeaseResp

func (*ClientWithResponses) DhcpAddStaticLeaseWithResponse

func (c *ClientWithResponses) DhcpAddStaticLeaseWithResponse(ctx context.Context, body DhcpAddStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*DhcpAddStaticLeaseResp, error)

func (*ClientWithResponses) DhcpInterfacesWithResponse

func (c *ClientWithResponses) DhcpInterfacesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DhcpInterfacesResp, error)

DhcpInterfacesWithResponse request returning *DhcpInterfacesResp

func (*ClientWithResponses) DhcpRemoveStaticLeaseWithBodyWithResponse

func (c *ClientWithResponses) DhcpRemoveStaticLeaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DhcpRemoveStaticLeaseResp, error)

DhcpRemoveStaticLeaseWithBodyWithResponse request with arbitrary body returning *DhcpRemoveStaticLeaseResp

func (*ClientWithResponses) DhcpRemoveStaticLeaseWithResponse

func (c *ClientWithResponses) DhcpRemoveStaticLeaseWithResponse(ctx context.Context, body DhcpRemoveStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*DhcpRemoveStaticLeaseResp, error)

func (*ClientWithResponses) DhcpResetLeasesWithResponse

func (c *ClientWithResponses) DhcpResetLeasesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DhcpResetLeasesResp, error)

DhcpResetLeasesWithResponse request returning *DhcpResetLeasesResp

func (*ClientWithResponses) DhcpResetWithResponse

func (c *ClientWithResponses) DhcpResetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DhcpResetResp, error)

DhcpResetWithResponse request returning *DhcpResetResp

func (*ClientWithResponses) DhcpSetConfigWithBodyWithResponse

func (c *ClientWithResponses) DhcpSetConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DhcpSetConfigResp, error)

DhcpSetConfigWithBodyWithResponse request with arbitrary body returning *DhcpSetConfigResp

func (*ClientWithResponses) DhcpSetConfigWithResponse

func (c *ClientWithResponses) DhcpSetConfigWithResponse(ctx context.Context, body DhcpSetConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*DhcpSetConfigResp, error)

func (*ClientWithResponses) DhcpStatusWithResponse

func (c *ClientWithResponses) DhcpStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DhcpStatusResp, error)

DhcpStatusWithResponse request returning *DhcpStatusResp

func (*ClientWithResponses) DhcpUpdateStaticLeaseWithBodyWithResponse

func (c *ClientWithResponses) DhcpUpdateStaticLeaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DhcpUpdateStaticLeaseResp, error)

DhcpUpdateStaticLeaseWithBodyWithResponse request with arbitrary body returning *DhcpUpdateStaticLeaseResp

func (*ClientWithResponses) DhcpUpdateStaticLeaseWithResponse

func (c *ClientWithResponses) DhcpUpdateStaticLeaseWithResponse(ctx context.Context, body DhcpUpdateStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*DhcpUpdateStaticLeaseResp, error)

func (*ClientWithResponses) DnsConfigWithBodyWithResponse

func (c *ClientWithResponses) DnsConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DnsConfigResp, error)

DnsConfigWithBodyWithResponse request with arbitrary body returning *DnsConfigResp

func (*ClientWithResponses) DnsConfigWithResponse

func (c *ClientWithResponses) DnsConfigWithResponse(ctx context.Context, body DnsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*DnsConfigResp, error)

func (*ClientWithResponses) DnsInfoWithResponse

func (c *ClientWithResponses) DnsInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DnsInfoResp, error)

DnsInfoWithResponse request returning *DnsInfoResp

func (*ClientWithResponses) FilteringAddURLWithBodyWithResponse

func (c *ClientWithResponses) FilteringAddURLWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringAddURLResp, error)

FilteringAddURLWithBodyWithResponse request with arbitrary body returning *FilteringAddURLResp

func (*ClientWithResponses) FilteringAddURLWithResponse

func (c *ClientWithResponses) FilteringAddURLWithResponse(ctx context.Context, body FilteringAddURLJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringAddURLResp, error)

func (*ClientWithResponses) FilteringCheckHostWithResponse

func (c *ClientWithResponses) FilteringCheckHostWithResponse(ctx context.Context, params *FilteringCheckHostParams, reqEditors ...RequestEditorFn) (*FilteringCheckHostResp, error)

FilteringCheckHostWithResponse request returning *FilteringCheckHostResp

func (*ClientWithResponses) FilteringConfigWithBodyWithResponse

func (c *ClientWithResponses) FilteringConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringConfigResp, error)

FilteringConfigWithBodyWithResponse request with arbitrary body returning *FilteringConfigResp

func (*ClientWithResponses) FilteringConfigWithResponse

func (c *ClientWithResponses) FilteringConfigWithResponse(ctx context.Context, body FilteringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringConfigResp, error)

func (*ClientWithResponses) FilteringRefreshWithBodyWithResponse

func (c *ClientWithResponses) FilteringRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringRefreshResp, error)

FilteringRefreshWithBodyWithResponse request with arbitrary body returning *FilteringRefreshResp

func (*ClientWithResponses) FilteringRefreshWithResponse

func (c *ClientWithResponses) FilteringRefreshWithResponse(ctx context.Context, body FilteringRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringRefreshResp, error)

func (*ClientWithResponses) FilteringRemoveURLWithBodyWithResponse

func (c *ClientWithResponses) FilteringRemoveURLWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringRemoveURLResp, error)

FilteringRemoveURLWithBodyWithResponse request with arbitrary body returning *FilteringRemoveURLResp

func (*ClientWithResponses) FilteringRemoveURLWithResponse

func (c *ClientWithResponses) FilteringRemoveURLWithResponse(ctx context.Context, body FilteringRemoveURLJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringRemoveURLResp, error)

func (*ClientWithResponses) FilteringSetRulesWithBodyWithResponse

func (c *ClientWithResponses) FilteringSetRulesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringSetRulesResp, error)

FilteringSetRulesWithBodyWithResponse request with arbitrary body returning *FilteringSetRulesResp

func (*ClientWithResponses) FilteringSetRulesWithResponse

func (c *ClientWithResponses) FilteringSetRulesWithResponse(ctx context.Context, body FilteringSetRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringSetRulesResp, error)

func (*ClientWithResponses) FilteringSetURLWithBodyWithResponse

func (c *ClientWithResponses) FilteringSetURLWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringSetURLResp, error)

FilteringSetURLWithBodyWithResponse request with arbitrary body returning *FilteringSetURLResp

func (*ClientWithResponses) FilteringSetURLWithResponse

func (c *ClientWithResponses) FilteringSetURLWithResponse(ctx context.Context, body FilteringSetURLJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringSetURLResp, error)

func (*ClientWithResponses) FilteringStatusWithResponse

func (c *ClientWithResponses) FilteringStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*FilteringStatusResp, error)

FilteringStatusWithResponse request returning *FilteringStatusResp

func (*ClientWithResponses) GetProfileWithResponse

func (c *ClientWithResponses) GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResp, error)

GetProfileWithResponse request returning *GetProfileResp

func (*ClientWithResponses) GetQueryLogConfigWithResponse

func (c *ClientWithResponses) GetQueryLogConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetQueryLogConfigResp, error)

GetQueryLogConfigWithResponse request returning *GetQueryLogConfigResp

func (*ClientWithResponses) GetStatsConfigWithResponse

func (c *ClientWithResponses) GetStatsConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatsConfigResp, error)

GetStatsConfigWithResponse request returning *GetStatsConfigResp

func (*ClientWithResponses) GetVersionJsonWithBodyWithResponse

func (c *ClientWithResponses) GetVersionJsonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetVersionJsonResp, error)

GetVersionJsonWithBodyWithResponse request with arbitrary body returning *GetVersionJsonResp

func (*ClientWithResponses) GetVersionJsonWithResponse

func (c *ClientWithResponses) GetVersionJsonWithResponse(ctx context.Context, body GetVersionJsonJSONRequestBody, reqEditors ...RequestEditorFn) (*GetVersionJsonResp, error)

func (*ClientWithResponses) InstallCheckConfigWithBodyWithResponse

func (c *ClientWithResponses) InstallCheckConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstallCheckConfigResp, error)

InstallCheckConfigWithBodyWithResponse request with arbitrary body returning *InstallCheckConfigResp

func (*ClientWithResponses) InstallCheckConfigWithResponse

func (c *ClientWithResponses) InstallCheckConfigWithResponse(ctx context.Context, body InstallCheckConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*InstallCheckConfigResp, error)

func (*ClientWithResponses) InstallConfigureWithBodyWithResponse

func (c *ClientWithResponses) InstallConfigureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstallConfigureResp, error)

InstallConfigureWithBodyWithResponse request with arbitrary body returning *InstallConfigureResp

func (*ClientWithResponses) InstallConfigureWithResponse

func (c *ClientWithResponses) InstallConfigureWithResponse(ctx context.Context, body InstallConfigureJSONRequestBody, reqEditors ...RequestEditorFn) (*InstallConfigureResp, error)

func (*ClientWithResponses) InstallGetAddressesWithResponse

func (c *ClientWithResponses) InstallGetAddressesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InstallGetAddressesResp, error)

InstallGetAddressesWithResponse request returning *InstallGetAddressesResp

func (*ClientWithResponses) LoginWithBodyWithResponse

func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResp, error)

LoginWithBodyWithResponse request with arbitrary body returning *LoginResp

func (*ClientWithResponses) LoginWithResponse

func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResp, error)

func (*ClientWithResponses) LogoutWithResponse

func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResp, error)

LogoutWithResponse request returning *LogoutResp

func (*ClientWithResponses) MobileConfigDoHWithResponse

func (c *ClientWithResponses) MobileConfigDoHWithResponse(ctx context.Context, params *MobileConfigDoHParams, reqEditors ...RequestEditorFn) (*MobileConfigDoHResp, error)

MobileConfigDoHWithResponse request returning *MobileConfigDoHResp

func (*ClientWithResponses) MobileConfigDoTWithResponse

func (c *ClientWithResponses) MobileConfigDoTWithResponse(ctx context.Context, params *MobileConfigDoTParams, reqEditors ...RequestEditorFn) (*MobileConfigDoTResp, error)

MobileConfigDoTWithResponse request returning *MobileConfigDoTResp

func (*ClientWithResponses) ParentalDisableWithResponse

func (c *ClientWithResponses) ParentalDisableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ParentalDisableResp, error)

ParentalDisableWithResponse request returning *ParentalDisableResp

func (*ClientWithResponses) ParentalEnableWithResponse

func (c *ClientWithResponses) ParentalEnableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ParentalEnableResp, error)

ParentalEnableWithResponse request returning *ParentalEnableResp

func (*ClientWithResponses) ParentalStatusWithResponse

func (c *ClientWithResponses) ParentalStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ParentalStatusResp, error)

ParentalStatusWithResponse request returning *ParentalStatusResp

func (*ClientWithResponses) PutQueryLogConfigWithBodyWithResponse

func (c *ClientWithResponses) PutQueryLogConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutQueryLogConfigResp, error)

PutQueryLogConfigWithBodyWithResponse request with arbitrary body returning *PutQueryLogConfigResp

func (*ClientWithResponses) PutQueryLogConfigWithResponse

func (c *ClientWithResponses) PutQueryLogConfigWithResponse(ctx context.Context, body PutQueryLogConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PutQueryLogConfigResp, error)

func (*ClientWithResponses) PutStatsConfigWithBodyWithResponse

func (c *ClientWithResponses) PutStatsConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutStatsConfigResp, error)

PutStatsConfigWithBodyWithResponse request with arbitrary body returning *PutStatsConfigResp

func (*ClientWithResponses) PutStatsConfigWithResponse

func (c *ClientWithResponses) PutStatsConfigWithResponse(ctx context.Context, body PutStatsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PutStatsConfigResp, error)

func (*ClientWithResponses) QueryLogConfigWithBodyWithResponse

func (c *ClientWithResponses) QueryLogConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryLogConfigResp, error)

QueryLogConfigWithBodyWithResponse request with arbitrary body returning *QueryLogConfigResp

func (*ClientWithResponses) QueryLogConfigWithResponse

func (c *ClientWithResponses) QueryLogConfigWithResponse(ctx context.Context, body QueryLogConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryLogConfigResp, error)

func (*ClientWithResponses) QueryLogInfoWithResponse

func (c *ClientWithResponses) QueryLogInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*QueryLogInfoResp, error)

QueryLogInfoWithResponse request returning *QueryLogInfoResp

func (*ClientWithResponses) QueryLogWithResponse

func (c *ClientWithResponses) QueryLogWithResponse(ctx context.Context, params *QueryLogParams, reqEditors ...RequestEditorFn) (*QueryLogResp, error)

QueryLogWithResponse request returning *QueryLogResp

func (*ClientWithResponses) QuerylogClearWithResponse

func (c *ClientWithResponses) QuerylogClearWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*QuerylogClearResp, error)

QuerylogClearWithResponse request returning *QuerylogClearResp

func (*ClientWithResponses) RewriteAddWithBodyWithResponse

func (c *ClientWithResponses) RewriteAddWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RewriteAddResp, error)

RewriteAddWithBodyWithResponse request with arbitrary body returning *RewriteAddResp

func (*ClientWithResponses) RewriteAddWithResponse

func (c *ClientWithResponses) RewriteAddWithResponse(ctx context.Context, body RewriteAddJSONRequestBody, reqEditors ...RequestEditorFn) (*RewriteAddResp, error)

func (*ClientWithResponses) RewriteDeleteWithBodyWithResponse

func (c *ClientWithResponses) RewriteDeleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RewriteDeleteResp, error)

RewriteDeleteWithBodyWithResponse request with arbitrary body returning *RewriteDeleteResp

func (*ClientWithResponses) RewriteDeleteWithResponse

func (c *ClientWithResponses) RewriteDeleteWithResponse(ctx context.Context, body RewriteDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*RewriteDeleteResp, error)

func (*ClientWithResponses) RewriteListWithResponse

func (c *ClientWithResponses) RewriteListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RewriteListResp, error)

RewriteListWithResponse request returning *RewriteListResp

func (*ClientWithResponses) RewriteUpdateWithBodyWithResponse

func (c *ClientWithResponses) RewriteUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RewriteUpdateResp, error)

RewriteUpdateWithBodyWithResponse request with arbitrary body returning *RewriteUpdateResp

func (*ClientWithResponses) RewriteUpdateWithResponse

func (c *ClientWithResponses) RewriteUpdateWithResponse(ctx context.Context, body RewriteUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*RewriteUpdateResp, error)

func (*ClientWithResponses) SafebrowsingDisableWithResponse

func (c *ClientWithResponses) SafebrowsingDisableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafebrowsingDisableResp, error)

SafebrowsingDisableWithResponse request returning *SafebrowsingDisableResp

func (*ClientWithResponses) SafebrowsingEnableWithResponse

func (c *ClientWithResponses) SafebrowsingEnableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafebrowsingEnableResp, error)

SafebrowsingEnableWithResponse request returning *SafebrowsingEnableResp

func (*ClientWithResponses) SafebrowsingStatusWithResponse

func (c *ClientWithResponses) SafebrowsingStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafebrowsingStatusResp, error)

SafebrowsingStatusWithResponse request returning *SafebrowsingStatusResp

func (*ClientWithResponses) SafesearchDisableWithResponse

func (c *ClientWithResponses) SafesearchDisableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafesearchDisableResp, error)

SafesearchDisableWithResponse request returning *SafesearchDisableResp

func (*ClientWithResponses) SafesearchEnableWithResponse

func (c *ClientWithResponses) SafesearchEnableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafesearchEnableResp, error)

SafesearchEnableWithResponse request returning *SafesearchEnableResp

func (*ClientWithResponses) SafesearchSettingsWithBodyWithResponse

func (c *ClientWithResponses) SafesearchSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SafesearchSettingsResp, error)

SafesearchSettingsWithBodyWithResponse request with arbitrary body returning *SafesearchSettingsResp

func (*ClientWithResponses) SafesearchSettingsWithResponse

func (c *ClientWithResponses) SafesearchSettingsWithResponse(ctx context.Context, body SafesearchSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*SafesearchSettingsResp, error)

func (*ClientWithResponses) SafesearchStatusWithResponse

func (c *ClientWithResponses) SafesearchStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafesearchStatusResp, error)

SafesearchStatusWithResponse request returning *SafesearchStatusResp

func (*ClientWithResponses) SetProtectionWithBodyWithResponse

func (c *ClientWithResponses) SetProtectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetProtectionResp, error)

SetProtectionWithBodyWithResponse request with arbitrary body returning *SetProtectionResp

func (*ClientWithResponses) SetProtectionWithResponse

func (c *ClientWithResponses) SetProtectionWithResponse(ctx context.Context, body SetProtectionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetProtectionResp, error)

func (*ClientWithResponses) StatsConfigWithBodyWithResponse

func (c *ClientWithResponses) StatsConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StatsConfigResp, error)

StatsConfigWithBodyWithResponse request with arbitrary body returning *StatsConfigResp

func (*ClientWithResponses) StatsConfigWithResponse

func (c *ClientWithResponses) StatsConfigWithResponse(ctx context.Context, body StatsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*StatsConfigResp, error)

func (*ClientWithResponses) StatsInfoWithResponse

func (c *ClientWithResponses) StatsInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatsInfoResp, error)

StatsInfoWithResponse request returning *StatsInfoResp

func (*ClientWithResponses) StatsResetWithResponse

func (c *ClientWithResponses) StatsResetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatsResetResp, error)

StatsResetWithResponse request returning *StatsResetResp

func (*ClientWithResponses) StatsWithResponse

func (c *ClientWithResponses) StatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatsResp, error)

StatsWithResponse request returning *StatsResp

func (*ClientWithResponses) StatusWithResponse

func (c *ClientWithResponses) StatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatusResp, error)

StatusWithResponse request returning *StatusResp

func (*ClientWithResponses) TestUpstreamDNSWithBodyWithResponse

func (c *ClientWithResponses) TestUpstreamDNSWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestUpstreamDNSResp, error)

TestUpstreamDNSWithBodyWithResponse request with arbitrary body returning *TestUpstreamDNSResp

func (*ClientWithResponses) TestUpstreamDNSWithResponse

func (c *ClientWithResponses) TestUpstreamDNSWithResponse(ctx context.Context, body TestUpstreamDNSJSONRequestBody, reqEditors ...RequestEditorFn) (*TestUpstreamDNSResp, error)

func (*ClientWithResponses) TlsConfigureWithBodyWithResponse

func (c *ClientWithResponses) TlsConfigureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TlsConfigureResp, error)

TlsConfigureWithBodyWithResponse request with arbitrary body returning *TlsConfigureResp

func (*ClientWithResponses) TlsConfigureWithResponse

func (c *ClientWithResponses) TlsConfigureWithResponse(ctx context.Context, body TlsConfigureJSONRequestBody, reqEditors ...RequestEditorFn) (*TlsConfigureResp, error)

func (*ClientWithResponses) TlsStatusWithResponse

func (c *ClientWithResponses) TlsStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TlsStatusResp, error)

TlsStatusWithResponse request returning *TlsStatusResp

func (*ClientWithResponses) TlsValidateWithBodyWithResponse

func (c *ClientWithResponses) TlsValidateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TlsValidateResp, error)

TlsValidateWithBodyWithResponse request with arbitrary body returning *TlsValidateResp

func (*ClientWithResponses) TlsValidateWithResponse

func (c *ClientWithResponses) TlsValidateWithResponse(ctx context.Context, body TlsValidateJSONRequestBody, reqEditors ...RequestEditorFn) (*TlsValidateResp, error)

func (*ClientWithResponses) UpdateProfileWithBodyWithResponse

func (c *ClientWithResponses) UpdateProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProfileResp, error)

UpdateProfileWithBodyWithResponse request with arbitrary body returning *UpdateProfileResp

func (*ClientWithResponses) UpdateProfileWithResponse

func (c *ClientWithResponses) UpdateProfileWithResponse(ctx context.Context, body UpdateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProfileResp, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// AccessListWithResponse request
	AccessListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AccessListResp, error)

	// AccessSetWithBodyWithResponse request with any body
	AccessSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AccessSetResp, error)

	AccessSetWithResponse(ctx context.Context, body AccessSetJSONRequestBody, reqEditors ...RequestEditorFn) (*AccessSetResp, error)

	// MobileConfigDoHWithResponse request
	MobileConfigDoHWithResponse(ctx context.Context, params *MobileConfigDoHParams, reqEditors ...RequestEditorFn) (*MobileConfigDoHResp, error)

	// MobileConfigDoTWithResponse request
	MobileConfigDoTWithResponse(ctx context.Context, params *MobileConfigDoTParams, reqEditors ...RequestEditorFn) (*MobileConfigDoTResp, error)

	// BlockedServicesAllWithResponse request
	BlockedServicesAllWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BlockedServicesAllResp, error)

	// BlockedServicesScheduleWithResponse request
	BlockedServicesScheduleWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BlockedServicesScheduleResp, error)

	// BlockedServicesListWithResponse request
	BlockedServicesListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BlockedServicesListResp, error)

	// BlockedServicesAvailableServicesWithResponse request
	BlockedServicesAvailableServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BlockedServicesAvailableServicesResp, error)

	// BlockedServicesSetWithBodyWithResponse request with any body
	BlockedServicesSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BlockedServicesSetResp, error)

	BlockedServicesSetWithResponse(ctx context.Context, body BlockedServicesSetJSONRequestBody, reqEditors ...RequestEditorFn) (*BlockedServicesSetResp, error)

	// BlockedServicesScheduleUpdateWithBodyWithResponse request with any body
	BlockedServicesScheduleUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BlockedServicesScheduleUpdateResp, error)

	BlockedServicesScheduleUpdateWithResponse(ctx context.Context, body BlockedServicesScheduleUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*BlockedServicesScheduleUpdateResp, error)

	// CacheClearWithResponse request
	CacheClearWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CacheClearResp, error)

	// ClientsStatusWithResponse request
	ClientsStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ClientsStatusResp, error)

	// ClientsAddWithBodyWithResponse request with any body
	ClientsAddWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClientsAddResp, error)

	ClientsAddWithResponse(ctx context.Context, body ClientsAddJSONRequestBody, reqEditors ...RequestEditorFn) (*ClientsAddResp, error)

	// ClientsDeleteWithBodyWithResponse request with any body
	ClientsDeleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClientsDeleteResp, error)

	ClientsDeleteWithResponse(ctx context.Context, body ClientsDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*ClientsDeleteResp, error)

	// ClientsFindWithResponse request
	ClientsFindWithResponse(ctx context.Context, params *ClientsFindParams, reqEditors ...RequestEditorFn) (*ClientsFindResp, error)

	// ClientsUpdateWithBodyWithResponse request with any body
	ClientsUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClientsUpdateResp, error)

	ClientsUpdateWithResponse(ctx context.Context, body ClientsUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*ClientsUpdateResp, error)

	// DhcpAddStaticLeaseWithBodyWithResponse request with any body
	DhcpAddStaticLeaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DhcpAddStaticLeaseResp, error)

	DhcpAddStaticLeaseWithResponse(ctx context.Context, body DhcpAddStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*DhcpAddStaticLeaseResp, error)

	// CheckActiveDhcpWithBodyWithResponse request with any body
	CheckActiveDhcpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckActiveDhcpResp, error)

	CheckActiveDhcpWithResponse(ctx context.Context, body CheckActiveDhcpJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckActiveDhcpResp, error)

	// DhcpInterfacesWithResponse request
	DhcpInterfacesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DhcpInterfacesResp, error)

	// DhcpRemoveStaticLeaseWithBodyWithResponse request with any body
	DhcpRemoveStaticLeaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DhcpRemoveStaticLeaseResp, error)

	DhcpRemoveStaticLeaseWithResponse(ctx context.Context, body DhcpRemoveStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*DhcpRemoveStaticLeaseResp, error)

	// DhcpResetWithResponse request
	DhcpResetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DhcpResetResp, error)

	// DhcpResetLeasesWithResponse request
	DhcpResetLeasesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DhcpResetLeasesResp, error)

	// DhcpSetConfigWithBodyWithResponse request with any body
	DhcpSetConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DhcpSetConfigResp, error)

	DhcpSetConfigWithResponse(ctx context.Context, body DhcpSetConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*DhcpSetConfigResp, error)

	// DhcpStatusWithResponse request
	DhcpStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DhcpStatusResp, error)

	// DhcpUpdateStaticLeaseWithBodyWithResponse request with any body
	DhcpUpdateStaticLeaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DhcpUpdateStaticLeaseResp, error)

	DhcpUpdateStaticLeaseWithResponse(ctx context.Context, body DhcpUpdateStaticLeaseJSONRequestBody, reqEditors ...RequestEditorFn) (*DhcpUpdateStaticLeaseResp, error)

	// DnsConfigWithBodyWithResponse request with any body
	DnsConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DnsConfigResp, error)

	DnsConfigWithResponse(ctx context.Context, body DnsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*DnsConfigResp, error)

	// DnsInfoWithResponse request
	DnsInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DnsInfoResp, error)

	// FilteringAddURLWithBodyWithResponse request with any body
	FilteringAddURLWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringAddURLResp, error)

	FilteringAddURLWithResponse(ctx context.Context, body FilteringAddURLJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringAddURLResp, error)

	// FilteringCheckHostWithResponse request
	FilteringCheckHostWithResponse(ctx context.Context, params *FilteringCheckHostParams, reqEditors ...RequestEditorFn) (*FilteringCheckHostResp, error)

	// FilteringConfigWithBodyWithResponse request with any body
	FilteringConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringConfigResp, error)

	FilteringConfigWithResponse(ctx context.Context, body FilteringConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringConfigResp, error)

	// FilteringRefreshWithBodyWithResponse request with any body
	FilteringRefreshWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringRefreshResp, error)

	FilteringRefreshWithResponse(ctx context.Context, body FilteringRefreshJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringRefreshResp, error)

	// FilteringRemoveURLWithBodyWithResponse request with any body
	FilteringRemoveURLWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringRemoveURLResp, error)

	FilteringRemoveURLWithResponse(ctx context.Context, body FilteringRemoveURLJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringRemoveURLResp, error)

	// FilteringSetRulesWithBodyWithResponse request with any body
	FilteringSetRulesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringSetRulesResp, error)

	FilteringSetRulesWithResponse(ctx context.Context, body FilteringSetRulesJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringSetRulesResp, error)

	// FilteringSetURLWithBodyWithResponse request with any body
	FilteringSetURLWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilteringSetURLResp, error)

	FilteringSetURLWithResponse(ctx context.Context, body FilteringSetURLJSONRequestBody, reqEditors ...RequestEditorFn) (*FilteringSetURLResp, error)

	// FilteringStatusWithResponse request
	FilteringStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*FilteringStatusResp, error)

	// ChangeLanguageWithBodyWithResponse request with any body
	ChangeLanguageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeLanguageResp, error)

	ChangeLanguageWithResponse(ctx context.Context, body ChangeLanguageJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeLanguageResp, error)

	// CurrentLanguageWithResponse request
	CurrentLanguageWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CurrentLanguageResp, error)

	// InstallCheckConfigWithBodyWithResponse request with any body
	InstallCheckConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstallCheckConfigResp, error)

	InstallCheckConfigWithResponse(ctx context.Context, body InstallCheckConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*InstallCheckConfigResp, error)

	// InstallConfigureWithBodyWithResponse request with any body
	InstallConfigureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstallConfigureResp, error)

	InstallConfigureWithResponse(ctx context.Context, body InstallConfigureJSONRequestBody, reqEditors ...RequestEditorFn) (*InstallConfigureResp, error)

	// InstallGetAddressesWithResponse request
	InstallGetAddressesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InstallGetAddressesResp, error)

	// LoginWithBodyWithResponse request with any body
	LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResp, error)

	LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResp, error)

	// LogoutWithResponse request
	LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResp, error)

	// ParentalDisableWithResponse request
	ParentalDisableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ParentalDisableResp, error)

	// ParentalEnableWithResponse request
	ParentalEnableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ParentalEnableResp, error)

	// ParentalStatusWithResponse request
	ParentalStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ParentalStatusResp, error)

	// GetProfileWithResponse request
	GetProfileWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProfileResp, error)

	// UpdateProfileWithBodyWithResponse request with any body
	UpdateProfileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProfileResp, error)

	UpdateProfileWithResponse(ctx context.Context, body UpdateProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProfileResp, error)

	// SetProtectionWithBodyWithResponse request with any body
	SetProtectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetProtectionResp, error)

	SetProtectionWithResponse(ctx context.Context, body SetProtectionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetProtectionResp, error)

	// QueryLogWithResponse request
	QueryLogWithResponse(ctx context.Context, params *QueryLogParams, reqEditors ...RequestEditorFn) (*QueryLogResp, error)

	// GetQueryLogConfigWithResponse request
	GetQueryLogConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetQueryLogConfigResp, error)

	// PutQueryLogConfigWithBodyWithResponse request with any body
	PutQueryLogConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutQueryLogConfigResp, error)

	PutQueryLogConfigWithResponse(ctx context.Context, body PutQueryLogConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PutQueryLogConfigResp, error)

	// QuerylogClearWithResponse request
	QuerylogClearWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*QuerylogClearResp, error)

	// QueryLogConfigWithBodyWithResponse request with any body
	QueryLogConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*QueryLogConfigResp, error)

	QueryLogConfigWithResponse(ctx context.Context, body QueryLogConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*QueryLogConfigResp, error)

	// QueryLogInfoWithResponse request
	QueryLogInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*QueryLogInfoResp, error)

	// RewriteAddWithBodyWithResponse request with any body
	RewriteAddWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RewriteAddResp, error)

	RewriteAddWithResponse(ctx context.Context, body RewriteAddJSONRequestBody, reqEditors ...RequestEditorFn) (*RewriteAddResp, error)

	// RewriteDeleteWithBodyWithResponse request with any body
	RewriteDeleteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RewriteDeleteResp, error)

	RewriteDeleteWithResponse(ctx context.Context, body RewriteDeleteJSONRequestBody, reqEditors ...RequestEditorFn) (*RewriteDeleteResp, error)

	// RewriteListWithResponse request
	RewriteListWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*RewriteListResp, error)

	// RewriteUpdateWithBodyWithResponse request with any body
	RewriteUpdateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RewriteUpdateResp, error)

	RewriteUpdateWithResponse(ctx context.Context, body RewriteUpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*RewriteUpdateResp, error)

	// SafebrowsingDisableWithResponse request
	SafebrowsingDisableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafebrowsingDisableResp, error)

	// SafebrowsingEnableWithResponse request
	SafebrowsingEnableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafebrowsingEnableResp, error)

	// SafebrowsingStatusWithResponse request
	SafebrowsingStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafebrowsingStatusResp, error)

	// SafesearchDisableWithResponse request
	SafesearchDisableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafesearchDisableResp, error)

	// SafesearchEnableWithResponse request
	SafesearchEnableWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafesearchEnableResp, error)

	// SafesearchSettingsWithBodyWithResponse request with any body
	SafesearchSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SafesearchSettingsResp, error)

	SafesearchSettingsWithResponse(ctx context.Context, body SafesearchSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*SafesearchSettingsResp, error)

	// SafesearchStatusWithResponse request
	SafesearchStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SafesearchStatusResp, error)

	// StatsWithResponse request
	StatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatsResp, error)

	// GetStatsConfigWithResponse request
	GetStatsConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStatsConfigResp, error)

	// PutStatsConfigWithBodyWithResponse request with any body
	PutStatsConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutStatsConfigResp, error)

	PutStatsConfigWithResponse(ctx context.Context, body PutStatsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*PutStatsConfigResp, error)

	// StatsConfigWithBodyWithResponse request with any body
	StatsConfigWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StatsConfigResp, error)

	StatsConfigWithResponse(ctx context.Context, body StatsConfigJSONRequestBody, reqEditors ...RequestEditorFn) (*StatsConfigResp, error)

	// StatsInfoWithResponse request
	StatsInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatsInfoResp, error)

	// StatsResetWithResponse request
	StatsResetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatsResetResp, error)

	// StatusWithResponse request
	StatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*StatusResp, error)

	// TestUpstreamDNSWithBodyWithResponse request with any body
	TestUpstreamDNSWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestUpstreamDNSResp, error)

	TestUpstreamDNSWithResponse(ctx context.Context, body TestUpstreamDNSJSONRequestBody, reqEditors ...RequestEditorFn) (*TestUpstreamDNSResp, error)

	// TlsConfigureWithBodyWithResponse request with any body
	TlsConfigureWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TlsConfigureResp, error)

	TlsConfigureWithResponse(ctx context.Context, body TlsConfigureJSONRequestBody, reqEditors ...RequestEditorFn) (*TlsConfigureResp, error)

	// TlsStatusWithResponse request
	TlsStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*TlsStatusResp, error)

	// TlsValidateWithBodyWithResponse request with any body
	TlsValidateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TlsValidateResp, error)

	TlsValidateWithResponse(ctx context.Context, body TlsValidateJSONRequestBody, reqEditors ...RequestEditorFn) (*TlsValidateResp, error)

	// BeginUpdateWithResponse request
	BeginUpdateWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*BeginUpdateResp, error)

	// GetVersionJsonWithBodyWithResponse request with any body
	GetVersionJsonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetVersionJsonResp, error)

	GetVersionJsonWithResponse(ctx context.Context, body GetVersionJsonJSONRequestBody, reqEditors ...RequestEditorFn) (*GetVersionJsonResp, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Clients

type Clients struct {
	// AutoClients Auto-Clients array
	AutoClients *ClientsAutoArray `json:"auto_clients,omitempty"`

	// Clients Clients array
	Clients       *ClientsArray `json:"clients,omitempty"`
	SupportedTags *[]string     `json:"supported_tags,omitempty"`
}

Clients defines model for Clients.

func (*Clients) Add

func (clients *Clients) Add(cl Client)

Add ac client

func (*Clients) Merge

func (clients *Clients) Merge(other *Clients) ([]*Client, []*Client, []*Client)

Merge merge Clients

type ClientsAddJSONRequestBody

type ClientsAddJSONRequestBody = Client

ClientsAddJSONRequestBody defines body for ClientsAdd for application/json ContentType.

type ClientsAddResp

type ClientsAddResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseClientsAddResp

func ParseClientsAddResp(rsp *http.Response) (*ClientsAddResp, error)

ParseClientsAddResp parses an HTTP response from a ClientsAddWithResponse call

func (ClientsAddResp) Status

func (r ClientsAddResp) Status() string

Status returns HTTPResponse.Status

func (ClientsAddResp) StatusCode

func (r ClientsAddResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ClientsArray

type ClientsArray = []Client

ClientsArray Clients array

type ClientsAutoArray

type ClientsAutoArray = []ClientAuto

ClientsAutoArray Auto-Clients array

type ClientsDeleteJSONRequestBody

type ClientsDeleteJSONRequestBody = ClientDelete

ClientsDeleteJSONRequestBody defines body for ClientsDelete for application/json ContentType.

type ClientsDeleteResp

type ClientsDeleteResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseClientsDeleteResp

func ParseClientsDeleteResp(rsp *http.Response) (*ClientsDeleteResp, error)

ParseClientsDeleteResp parses an HTTP response from a ClientsDeleteWithResponse call

func (ClientsDeleteResp) Status

func (r ClientsDeleteResp) Status() string

Status returns HTTPResponse.Status

func (ClientsDeleteResp) StatusCode

func (r ClientsDeleteResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ClientsFindEntry

type ClientsFindEntry map[string]ClientFindSubEntry

ClientsFindEntry defines model for ClientsFindEntry.

type ClientsFindParams

type ClientsFindParams struct {
	// Ip0 Filter by IP address or ClientIDs.  Parameters with names `ip1`, `ip2`, and so on are also accepted and interpreted as "ip0 OR ip1 OR ip2".
	// TODO(a.garipov): Replace with a better query API.
	Ip0 *string `form:"ip0,omitempty" json:"ip0,omitempty"`
}

ClientsFindParams defines parameters for ClientsFind.

type ClientsFindResp

type ClientsFindResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ClientsFindResponse
}

func ParseClientsFindResp

func ParseClientsFindResp(rsp *http.Response) (*ClientsFindResp, error)

ParseClientsFindResp parses an HTTP response from a ClientsFindWithResponse call

func (ClientsFindResp) Status

func (r ClientsFindResp) Status() string

Status returns HTTPResponse.Status

func (ClientsFindResp) StatusCode

func (r ClientsFindResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ClientsFindResponse

type ClientsFindResponse = []ClientsFindEntry

ClientsFindResponse Client search results.

type ClientsStatusResp

type ClientsStatusResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Clients
}

func ParseClientsStatusResp

func ParseClientsStatusResp(rsp *http.Response) (*ClientsStatusResp, error)

ParseClientsStatusResp parses an HTTP response from a ClientsStatusWithResponse call

func (ClientsStatusResp) Status

func (r ClientsStatusResp) Status() string

Status returns HTTPResponse.Status

func (ClientsStatusResp) StatusCode

func (r ClientsStatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ClientsUpdateJSONRequestBody

type ClientsUpdateJSONRequestBody = ClientUpdate

ClientsUpdateJSONRequestBody defines body for ClientsUpdate for application/json ContentType.

type ClientsUpdateResp

type ClientsUpdateResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseClientsUpdateResp

func ParseClientsUpdateResp(rsp *http.Response) (*ClientsUpdateResp, error)

ParseClientsUpdateResp parses an HTTP response from a ClientsUpdateWithResponse call

func (ClientsUpdateResp) Status

func (r ClientsUpdateResp) Status() string

Status returns HTTPResponse.Status

func (ClientsUpdateResp) StatusCode

func (r ClientsUpdateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CurrentLanguageResp

type CurrentLanguageResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *LanguageSettings
}

func ParseCurrentLanguageResp

func ParseCurrentLanguageResp(rsp *http.Response) (*CurrentLanguageResp, error)

ParseCurrentLanguageResp parses an HTTP response from a CurrentLanguageWithResponse call

func (CurrentLanguageResp) Status

func (r CurrentLanguageResp) Status() string

Status returns HTTPResponse.Status

func (CurrentLanguageResp) StatusCode

func (r CurrentLanguageResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DNSConfig

type DNSConfig struct {
	// BlockedResponseTtl TTL for blocked responses.
	BlockedResponseTtl *int                   `json:"blocked_response_ttl,omitempty"`
	BlockingIpv4       *string                `json:"blocking_ipv4,omitempty"`
	BlockingIpv6       *string                `json:"blocking_ipv6,omitempty"`
	BlockingMode       *DNSConfigBlockingMode `json:"blocking_mode,omitempty"`

	// BootstrapDns Bootstrap servers, port is optional after colon.  Empty value will reset it to default values.
	BootstrapDns    *[]string `json:"bootstrap_dns,omitempty"`
	CacheOptimistic *bool     `json:"cache_optimistic,omitempty"`
	CacheSize       *int      `json:"cache_size,omitempty"`
	CacheTtlMax     *int      `json:"cache_ttl_max,omitempty"`
	CacheTtlMin     *int      `json:"cache_ttl_min,omitempty"`
	DisableIpv6     *bool     `json:"disable_ipv6,omitempty"`
	DnssecEnabled   *bool     `json:"dnssec_enabled,omitempty"`
	EdnsCsCustomIp  *string   `json:"edns_cs_custom_ip,omitempty"`
	EdnsCsEnabled   *bool     `json:"edns_cs_enabled,omitempty"`
	EdnsCsUseCustom *bool     `json:"edns_cs_use_custom,omitempty"`

	// FallbackDns List of fallback DNS servers used when upstream DNS servers are not responding.  Empty value will clear the list.
	FallbackDns *[]string `json:"fallback_dns,omitempty"`

	// LocalPtrUpstreams Upstream servers, port is optional after colon.  Empty value will reset it to default values.
	LocalPtrUpstreams *[]string `json:"local_ptr_upstreams,omitempty"`

	// ProtectionDisabledUntil Protection is pause until this time.  Nullable.
	ProtectionDisabledUntil *string `json:"protection_disabled_until,omitempty"`
	ProtectionEnabled       *bool   `json:"protection_enabled,omitempty"`
	Ratelimit               *int    `json:"ratelimit,omitempty"`

	// RatelimitSubnetSubnetLenIpv4 Length of the subnet mask for IPv4 addresses.
	RatelimitSubnetSubnetLenIpv4 *int `json:"ratelimit_subnet_subnet_len_ipv4,omitempty"`

	// RatelimitSubnetSubnetLenIpv6 Length of the subnet mask for IPv6 addresses.
	RatelimitSubnetSubnetLenIpv6 *int `json:"ratelimit_subnet_subnet_len_ipv6,omitempty"`

	// RatelimitWhitelist List of IP addresses excluded from rate limiting.
	RatelimitWhitelist *[]string `json:"ratelimit_whitelist,omitempty"`
	ResolveClients     *bool     `json:"resolve_clients,omitempty"`

	// UpstreamDns Upstream servers, port is optional after colon.  Empty value will reset it to default values.
	UpstreamDns     *[]string `json:"upstream_dns,omitempty"`
	UpstreamDnsFile *string   `json:"upstream_dns_file,omitempty"`

	// UpstreamMode Upstream modes enumeration.
	UpstreamMode           *DNSConfigUpstreamMode `json:"upstream_mode,omitempty"`
	UsePrivatePtrResolvers *bool                  `json:"use_private_ptr_resolvers,omitempty"`
}

DNSConfig DNS server configuration

func (*DNSConfig) Clone

func (c *DNSConfig) Clone() *DNSConfig

func (*DNSConfig) Equals

func (c *DNSConfig) Equals(o *DNSConfig) bool

Equals dns config equal check

func (*DNSConfig) Sanitize added in v0.6.7

func (c *DNSConfig) Sanitize(l *zap.SugaredLogger)

func (*DNSConfig) Sort

func (c *DNSConfig) Sort()

Sort sort dns config

type DNSConfigBlockingMode

type DNSConfigBlockingMode string

DNSConfigBlockingMode defines model for DNSConfig.BlockingMode.

const (
	CustomIp DNSConfigBlockingMode = "custom_ip"
	Default  DNSConfigBlockingMode = "default"
	NullIp   DNSConfigBlockingMode = "null_ip"
	Nxdomain DNSConfigBlockingMode = "nxdomain"
	Refused  DNSConfigBlockingMode = "refused"
)

Defines values for DNSConfigBlockingMode.

type DNSConfigUpstreamMode added in v0.6.6

type DNSConfigUpstreamMode string

DNSConfigUpstreamMode Upstream modes enumeration.

const (
	MapConstDeprecatedTrueDescriptionUseloadBalanceInstead DNSConfigUpstreamMode = "map[const: deprecated:true description:Use `load_balance` instead.]"
	MapConstFastestAddr                                    DNSConfigUpstreamMode = "map[const:fastest_addr]"
	MapConstLoadBalance                                    DNSConfigUpstreamMode = "map[const:load_balance]"
	MapConstParallel                                       DNSConfigUpstreamMode = "map[const:parallel]"
)

Defines values for DNSConfigUpstreamMode.

type DayRange

type DayRange struct {
	// End The number of milliseconds elapsed from the start of a day.  It is expected to be rounded to minutes.  The maximum value is `86400000` (24 hours).
	End *float32 `json:"end,omitempty"`

	// Start The number of milliseconds elapsed from the start of a day.  It must be less than `end` and is expected to be rounded to minutes. So the maximum value is `86340000` (23 hours and 59 minutes).
	Start *float32 `json:"start,omitempty"`
}

DayRange The single interval within a day. It begins at the `start` and ends before the `end`.

type DhcpAddStaticLeaseJSONRequestBody

type DhcpAddStaticLeaseJSONRequestBody = DhcpStaticLease

DhcpAddStaticLeaseJSONRequestBody defines body for DhcpAddStaticLease for application/json ContentType.

type DhcpAddStaticLeaseResp

type DhcpAddStaticLeaseResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON501      *Error
}

func ParseDhcpAddStaticLeaseResp

func ParseDhcpAddStaticLeaseResp(rsp *http.Response) (*DhcpAddStaticLeaseResp, error)

ParseDhcpAddStaticLeaseResp parses an HTTP response from a DhcpAddStaticLeaseWithResponse call

func (DhcpAddStaticLeaseResp) Status

func (r DhcpAddStaticLeaseResp) Status() string

Status returns HTTPResponse.Status

func (DhcpAddStaticLeaseResp) StatusCode

func (r DhcpAddStaticLeaseResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DhcpConfig

type DhcpConfig struct {
	Enabled       *bool         `json:"enabled,omitempty"`
	InterfaceName *string       `json:"interface_name,omitempty"`
	V4            *DhcpConfigV4 `json:"v4,omitempty"`
	V6            *DhcpConfigV6 `json:"v6,omitempty"`
}

DhcpConfig defines model for DhcpConfig.

type DhcpConfigV4

type DhcpConfigV4 struct {
	GatewayIp     *string `json:"gateway_ip,omitempty"`
	LeaseDuration *int    `json:"lease_duration,omitempty"`
	RangeEnd      *string `json:"range_end,omitempty"`
	RangeStart    *string `json:"range_start,omitempty"`
	SubnetMask    *string `json:"subnet_mask,omitempty"`
}

DhcpConfigV4 defines model for DhcpConfigV4.

type DhcpConfigV6

type DhcpConfigV6 struct {
	LeaseDuration *int    `json:"lease_duration,omitempty"`
	RangeStart    *string `json:"range_start,omitempty"`
}

DhcpConfigV6 defines model for DhcpConfigV6.

type DhcpFindActiveReq

type DhcpFindActiveReq struct {
	// Interface The name of the network interface
	Interface *string `json:"interface,omitempty"`
}

DhcpFindActiveReq Request for checking for other DHCP servers in the network.

type DhcpInterfacesResp

type DhcpInterfacesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *NetInterfaces
	JSON500      *Error
}

func ParseDhcpInterfacesResp

func ParseDhcpInterfacesResp(rsp *http.Response) (*DhcpInterfacesResp, error)

ParseDhcpInterfacesResp parses an HTTP response from a DhcpInterfacesWithResponse call

func (DhcpInterfacesResp) Status

func (r DhcpInterfacesResp) Status() string

Status returns HTTPResponse.Status

func (DhcpInterfacesResp) StatusCode

func (r DhcpInterfacesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DhcpLease

type DhcpLease struct {
	Expires  string `json:"expires"`
	Hostname string `json:"hostname"`
	Ip       string `json:"ip"`
	Mac      string `json:"mac"`
}

DhcpLease DHCP lease information

type DhcpRemoveStaticLeaseJSONRequestBody

type DhcpRemoveStaticLeaseJSONRequestBody = DhcpStaticLease

DhcpRemoveStaticLeaseJSONRequestBody defines body for DhcpRemoveStaticLease for application/json ContentType.

type DhcpRemoveStaticLeaseResp

type DhcpRemoveStaticLeaseResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON501      *Error
}

func ParseDhcpRemoveStaticLeaseResp

func ParseDhcpRemoveStaticLeaseResp(rsp *http.Response) (*DhcpRemoveStaticLeaseResp, error)

ParseDhcpRemoveStaticLeaseResp parses an HTTP response from a DhcpRemoveStaticLeaseWithResponse call

func (DhcpRemoveStaticLeaseResp) Status

func (r DhcpRemoveStaticLeaseResp) Status() string

Status returns HTTPResponse.Status

func (DhcpRemoveStaticLeaseResp) StatusCode

func (r DhcpRemoveStaticLeaseResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DhcpResetLeasesResp

type DhcpResetLeasesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON501      *Error
}

func ParseDhcpResetLeasesResp

func ParseDhcpResetLeasesResp(rsp *http.Response) (*DhcpResetLeasesResp, error)

ParseDhcpResetLeasesResp parses an HTTP response from a DhcpResetLeasesWithResponse call

func (DhcpResetLeasesResp) Status

func (r DhcpResetLeasesResp) Status() string

Status returns HTTPResponse.Status

func (DhcpResetLeasesResp) StatusCode

func (r DhcpResetLeasesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DhcpResetResp

type DhcpResetResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON501      *Error
}

func ParseDhcpResetResp

func ParseDhcpResetResp(rsp *http.Response) (*DhcpResetResp, error)

ParseDhcpResetResp parses an HTTP response from a DhcpResetWithResponse call

func (DhcpResetResp) Status

func (r DhcpResetResp) Status() string

Status returns HTTPResponse.Status

func (DhcpResetResp) StatusCode

func (r DhcpResetResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DhcpSearchResult

type DhcpSearchResult struct {
	V4 *DhcpSearchV4 `json:"v4,omitempty"`
	V6 *DhcpSearchV6 `json:"v6,omitempty"`
}

DhcpSearchResult Information about a DHCP server discovered in the current network.

type DhcpSearchResultOtherServer

type DhcpSearchResultOtherServer struct {
	// Error Set if found=error
	Error *string `json:"error,omitempty"`

	// Found The result of searching the other DHCP server.
	Found *DhcpSearchResultOtherServerFound `json:"found,omitempty"`
}

DhcpSearchResultOtherServer defines model for DhcpSearchResultOtherServer.

type DhcpSearchResultOtherServerFound

type DhcpSearchResultOtherServerFound string

DhcpSearchResultOtherServerFound The result of searching the other DHCP server.

const (
	DhcpSearchResultOtherServerFoundError DhcpSearchResultOtherServerFound = "error"
	DhcpSearchResultOtherServerFoundNo    DhcpSearchResultOtherServerFound = "no"
	DhcpSearchResultOtherServerFoundYes   DhcpSearchResultOtherServerFound = "yes"
)

Defines values for DhcpSearchResultOtherServerFound.

type DhcpSearchResultStaticIP

type DhcpSearchResultStaticIP struct {
	// Ip Set if static=no
	Ip *string `json:"ip,omitempty"`

	// Static The result of determining static IP address.
	Static *DhcpSearchResultStaticIPStatic `json:"static,omitempty"`
}

DhcpSearchResultStaticIP defines model for DhcpSearchResultStaticIP.

type DhcpSearchResultStaticIPStatic

type DhcpSearchResultStaticIPStatic string

DhcpSearchResultStaticIPStatic The result of determining static IP address.

const (
	DhcpSearchResultStaticIPStaticError DhcpSearchResultStaticIPStatic = "error"
	DhcpSearchResultStaticIPStaticNo    DhcpSearchResultStaticIPStatic = "no"
	DhcpSearchResultStaticIPStaticYes   DhcpSearchResultStaticIPStatic = "yes"
)

Defines values for DhcpSearchResultStaticIPStatic.

type DhcpSearchV4

type DhcpSearchV4 struct {
	OtherServer *DhcpSearchResultOtherServer `json:"other_server,omitempty"`
	StaticIp    *DhcpSearchResultStaticIP    `json:"static_ip,omitempty"`
}

DhcpSearchV4 defines model for DhcpSearchV4.

type DhcpSearchV6

type DhcpSearchV6 struct {
	OtherServer *DhcpSearchResultOtherServer `json:"other_server,omitempty"`
}

DhcpSearchV6 defines model for DhcpSearchV6.

type DhcpSetConfigJSONRequestBody

type DhcpSetConfigJSONRequestBody = DhcpConfig

DhcpSetConfigJSONRequestBody defines body for DhcpSetConfig for application/json ContentType.

type DhcpSetConfigResp

type DhcpSetConfigResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON501      *Error
}

func ParseDhcpSetConfigResp

func ParseDhcpSetConfigResp(rsp *http.Response) (*DhcpSetConfigResp, error)

ParseDhcpSetConfigResp parses an HTTP response from a DhcpSetConfigWithResponse call

func (DhcpSetConfigResp) Status

func (r DhcpSetConfigResp) Status() string

Status returns HTTPResponse.Status

func (DhcpSetConfigResp) StatusCode

func (r DhcpSetConfigResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DhcpStaticLease

type DhcpStaticLease struct {
	Hostname string `json:"hostname"`
	Ip       string `json:"ip"`
	Mac      string `json:"mac"`
}

DhcpStaticLease DHCP static lease information

type DhcpStaticLeaseBody

type DhcpStaticLeaseBody = DhcpStaticLease

DhcpStaticLeaseBody DHCP static lease information

type DhcpStaticLeases

type DhcpStaticLeases []DhcpStaticLease

type DhcpStatus

type DhcpStatus struct {
	Enabled       *bool              `json:"enabled,omitempty"`
	InterfaceName *string            `json:"interface_name,omitempty"`
	Leases        []DhcpLease        `json:"leases"`
	StaticLeases  *[]DhcpStaticLease `json:"static_leases,omitempty"`
	V4            *DhcpConfigV4      `json:"v4,omitempty"`
	V6            *DhcpConfigV6      `json:"v6,omitempty"`
}

DhcpStatus Built-in DHCP server configuration and status

func (*DhcpStatus) CleanAndEquals added in v0.6.2

func (c *DhcpStatus) CleanAndEquals(o *DhcpStatus) bool

CleanAndEquals dhcp server config equal check where V4 and V6 are cleaned in advance

func (*DhcpStatus) Clone

func (c *DhcpStatus) Clone() *DhcpStatus

Clone the config

func (*DhcpStatus) Equals

func (c *DhcpStatus) Equals(o *DhcpStatus) bool

Equals dhcp server config equal check

func (*DhcpStatus) HasConfig

func (c *DhcpStatus) HasConfig() bool

type DhcpStatusResp

type DhcpStatusResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DhcpStatus
	JSON500      *Error
}

func ParseDhcpStatusResp

func ParseDhcpStatusResp(rsp *http.Response) (*DhcpStatusResp, error)

ParseDhcpStatusResp parses an HTTP response from a DhcpStatusWithResponse call

func (DhcpStatusResp) Status

func (r DhcpStatusResp) Status() string

Status returns HTTPResponse.Status

func (DhcpStatusResp) StatusCode

func (r DhcpStatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DhcpUpdateStaticLeaseJSONRequestBody

type DhcpUpdateStaticLeaseJSONRequestBody = DhcpStaticLease

DhcpUpdateStaticLeaseJSONRequestBody defines body for DhcpUpdateStaticLease for application/json ContentType.

type DhcpUpdateStaticLeaseResp

type DhcpUpdateStaticLeaseResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON501      *Error
}

func ParseDhcpUpdateStaticLeaseResp

func ParseDhcpUpdateStaticLeaseResp(rsp *http.Response) (*DhcpUpdateStaticLeaseResp, error)

ParseDhcpUpdateStaticLeaseResp parses an HTTP response from a DhcpUpdateStaticLeaseWithResponse call

func (DhcpUpdateStaticLeaseResp) Status

func (r DhcpUpdateStaticLeaseResp) Status() string

Status returns HTTPResponse.Status

func (DhcpUpdateStaticLeaseResp) StatusCode

func (r DhcpUpdateStaticLeaseResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DnsAnswer

type DnsAnswer struct {
	Ttl   *uint32 `json:"ttl,omitempty"`
	Type  *string `json:"type,omitempty"`
	Value *string `json:"value,omitempty"`
}

DnsAnswer DNS answer section

type DnsConfigJSONRequestBody

type DnsConfigJSONRequestBody = DNSConfig

DnsConfigJSONRequestBody defines body for DnsConfig for application/json ContentType.

type DnsConfigResp

type DnsConfigResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDnsConfigResp

func ParseDnsConfigResp(rsp *http.Response) (*DnsConfigResp, error)

ParseDnsConfigResp parses an HTTP response from a DnsConfigWithResponse call

func (DnsConfigResp) Status

func (r DnsConfigResp) Status() string

Status returns HTTPResponse.Status

func (DnsConfigResp) StatusCode

func (r DnsConfigResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DnsInfoResp

type DnsInfoResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DNSConfig
}

func ParseDnsInfoResp

func ParseDnsInfoResp(rsp *http.Response) (*DnsInfoResp, error)

ParseDnsInfoResp parses an HTTP response from a DnsInfoWithResponse call

func (DnsInfoResp) Status

func (r DnsInfoResp) Status() string

Status returns HTTPResponse.Status

func (DnsInfoResp) StatusCode

func (r DnsInfoResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DnsQuestion

type DnsQuestion struct {
	Class       *string `json:"class,omitempty"`
	Name        *string `json:"name,omitempty"`
	Type        *string `json:"type,omitempty"`
	UnicodeName *string `json:"unicode_name,omitempty"`
}

DnsQuestion DNS question section

type EnableConfig

type EnableConfig struct {
	Enabled bool `json:"enabled"`
}

EnableConfig API struct

type Error

type Error struct {
	// Message The error message, an opaque string.
	Message *string `json:"message,omitempty"`
}

Error A generic JSON error response.

type Filter

type Filter struct {
	Enabled     bool       `json:"enabled"`
	Id          int64      `json:"id"`
	LastUpdated *time.Time `json:"last_updated,omitempty"`
	Name        string     `json:"name"`
	RulesCount  uint32     `json:"rules_count"`
	Url         string     `json:"url"`
}

Filter Filter subscription info

func (*Filter) Equals

func (f *Filter) Equals(o *Filter) bool

Equals Filter equal check

type FilterCheckHostResponse

type FilterCheckHostResponse struct {
	// Cname Set if reason=Rewrite
	Cname *string `json:"cname,omitempty"`

	// FilterId In case if there's a rule applied to this DNS request, this is ID of the filter list that the rule belongs to.
	// Deprecated: use `rules[*].filter_list_id` instead.
	// Deprecated:
	FilterId *int `json:"filter_id,omitempty"`

	// IpAddrs Set if reason=Rewrite
	IpAddrs *[]string `json:"ip_addrs,omitempty"`

	// Reason Request filtering status.
	Reason *FilterCheckHostResponseReason `json:"reason,omitempty"`

	// Rule Filtering rule applied to the request (if any).
	// Deprecated: use `rules[*].text` instead.
	// Deprecated:
	Rule *string `json:"rule,omitempty"`

	// Rules Applied rules.
	Rules *[]ResultRule `json:"rules,omitempty"`

	// ServiceName Set if reason=FilteredBlockedService
	ServiceName *string `json:"service_name,omitempty"`
}

FilterCheckHostResponse Check Host Result

type FilterCheckHostResponseReason

type FilterCheckHostResponseReason string

FilterCheckHostResponseReason Request filtering status.

const (
	FilterCheckHostResponseReasonFilteredBlackList      FilterCheckHostResponseReason = "FilteredBlackList"
	FilterCheckHostResponseReasonFilteredBlockedService FilterCheckHostResponseReason = "FilteredBlockedService"
	FilterCheckHostResponseReasonFilteredInvalid        FilterCheckHostResponseReason = "FilteredInvalid"
	FilterCheckHostResponseReasonFilteredParental       FilterCheckHostResponseReason = "FilteredParental"
	FilterCheckHostResponseReasonFilteredSafeBrowsing   FilterCheckHostResponseReason = "FilteredSafeBrowsing"
	FilterCheckHostResponseReasonFilteredSafeSearch     FilterCheckHostResponseReason = "FilteredSafeSearch"
	FilterCheckHostResponseReasonNotFilteredError       FilterCheckHostResponseReason = "NotFilteredError"
	FilterCheckHostResponseReasonNotFilteredNotFound    FilterCheckHostResponseReason = "NotFilteredNotFound"
	FilterCheckHostResponseReasonNotFilteredWhiteList   FilterCheckHostResponseReason = "NotFilteredWhiteList"
	FilterCheckHostResponseReasonRewrite                FilterCheckHostResponseReason = "Rewrite"
	FilterCheckHostResponseReasonRewriteEtcHosts        FilterCheckHostResponseReason = "RewriteEtcHosts"
	FilterCheckHostResponseReasonRewriteRule            FilterCheckHostResponseReason = "RewriteRule"
)

Defines values for FilterCheckHostResponseReason.

type FilterConfig

type FilterConfig struct {
	Enabled  *bool `json:"enabled,omitempty"`
	Interval *int  `json:"interval,omitempty"`
}

FilterConfig Filtering settings

type FilterRefreshRequest

type FilterRefreshRequest struct {
	Whitelist *bool `json:"whitelist,omitempty"`
}

FilterRefreshRequest Refresh Filters request data

type FilterRefreshResponse

type FilterRefreshResponse struct {
	Updated *int `json:"updated,omitempty"`
}

FilterRefreshResponse /filtering/refresh response data

type FilterSetUrl

type FilterSetUrl struct {
	// Data Filter update data
	Data      *FilterSetUrlData `json:"data,omitempty"`
	Url       *string           `json:"url,omitempty"`
	Whitelist *bool             `json:"whitelist,omitempty"`
}

FilterSetUrl Filtering URL settings

type FilterSetUrlData

type FilterSetUrlData struct {
	Enabled bool   `json:"enabled"`
	Name    string `json:"name"`
	Url     string `json:"url"`
}

FilterSetUrlData Filter update data

type FilterStatus

type FilterStatus struct {
	Enabled          *bool     `json:"enabled,omitempty"`
	Filters          *[]Filter `json:"filters,omitempty"`
	Interval         *int      `json:"interval,omitempty"`
	UserRules        *[]string `json:"user_rules,omitempty"`
	WhitelistFilters *[]Filter `json:"whitelist_filters,omitempty"`
}

FilterStatus Filtering settings

type FilteringAddURLJSONRequestBody

type FilteringAddURLJSONRequestBody = AddUrlRequest

FilteringAddURLJSONRequestBody defines body for FilteringAddURL for application/json ContentType.

type FilteringAddURLResp

type FilteringAddURLResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseFilteringAddURLResp

func ParseFilteringAddURLResp(rsp *http.Response) (*FilteringAddURLResp, error)

ParseFilteringAddURLResp parses an HTTP response from a FilteringAddURLWithResponse call

func (FilteringAddURLResp) Status

func (r FilteringAddURLResp) Status() string

Status returns HTTPResponse.Status

func (FilteringAddURLResp) StatusCode

func (r FilteringAddURLResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FilteringCheckHostParams

type FilteringCheckHostParams struct {
	// Name Filter by host name
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

FilteringCheckHostParams defines parameters for FilteringCheckHost.

type FilteringCheckHostResp

type FilteringCheckHostResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FilterCheckHostResponse
}

func ParseFilteringCheckHostResp

func ParseFilteringCheckHostResp(rsp *http.Response) (*FilteringCheckHostResp, error)

ParseFilteringCheckHostResp parses an HTTP response from a FilteringCheckHostWithResponse call

func (FilteringCheckHostResp) Status

func (r FilteringCheckHostResp) Status() string

Status returns HTTPResponse.Status

func (FilteringCheckHostResp) StatusCode

func (r FilteringCheckHostResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FilteringConfigJSONRequestBody

type FilteringConfigJSONRequestBody = FilterConfig

FilteringConfigJSONRequestBody defines body for FilteringConfig for application/json ContentType.

type FilteringConfigResp

type FilteringConfigResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseFilteringConfigResp

func ParseFilteringConfigResp(rsp *http.Response) (*FilteringConfigResp, error)

ParseFilteringConfigResp parses an HTTP response from a FilteringConfigWithResponse call

func (FilteringConfigResp) Status

func (r FilteringConfigResp) Status() string

Status returns HTTPResponse.Status

func (FilteringConfigResp) StatusCode

func (r FilteringConfigResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FilteringRefreshJSONRequestBody

type FilteringRefreshJSONRequestBody = FilterRefreshRequest

FilteringRefreshJSONRequestBody defines body for FilteringRefresh for application/json ContentType.

type FilteringRefreshResp

type FilteringRefreshResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FilterRefreshResponse
}

func ParseFilteringRefreshResp

func ParseFilteringRefreshResp(rsp *http.Response) (*FilteringRefreshResp, error)

ParseFilteringRefreshResp parses an HTTP response from a FilteringRefreshWithResponse call

func (FilteringRefreshResp) Status

func (r FilteringRefreshResp) Status() string

Status returns HTTPResponse.Status

func (FilteringRefreshResp) StatusCode

func (r FilteringRefreshResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FilteringRemoveURLJSONRequestBody

type FilteringRemoveURLJSONRequestBody = RemoveUrlRequest

FilteringRemoveURLJSONRequestBody defines body for FilteringRemoveURL for application/json ContentType.

type FilteringRemoveURLResp

type FilteringRemoveURLResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseFilteringRemoveURLResp

func ParseFilteringRemoveURLResp(rsp *http.Response) (*FilteringRemoveURLResp, error)

ParseFilteringRemoveURLResp parses an HTTP response from a FilteringRemoveURLWithResponse call

func (FilteringRemoveURLResp) Status

func (r FilteringRemoveURLResp) Status() string

Status returns HTTPResponse.Status

func (FilteringRemoveURLResp) StatusCode

func (r FilteringRemoveURLResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FilteringSetRulesJSONRequestBody

type FilteringSetRulesJSONRequestBody = SetRulesRequest

FilteringSetRulesJSONRequestBody defines body for FilteringSetRules for application/json ContentType.

type FilteringSetRulesResp

type FilteringSetRulesResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseFilteringSetRulesResp

func ParseFilteringSetRulesResp(rsp *http.Response) (*FilteringSetRulesResp, error)

ParseFilteringSetRulesResp parses an HTTP response from a FilteringSetRulesWithResponse call

func (FilteringSetRulesResp) Status

func (r FilteringSetRulesResp) Status() string

Status returns HTTPResponse.Status

func (FilteringSetRulesResp) StatusCode

func (r FilteringSetRulesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FilteringSetURLJSONRequestBody

type FilteringSetURLJSONRequestBody = FilterSetUrl

FilteringSetURLJSONRequestBody defines body for FilteringSetURL for application/json ContentType.

type FilteringSetURLResp

type FilteringSetURLResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseFilteringSetURLResp

func ParseFilteringSetURLResp(rsp *http.Response) (*FilteringSetURLResp, error)

ParseFilteringSetURLResp parses an HTTP response from a FilteringSetURLWithResponse call

func (FilteringSetURLResp) Status

func (r FilteringSetURLResp) Status() string

Status returns HTTPResponse.Status

func (FilteringSetURLResp) StatusCode

func (r FilteringSetURLResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FilteringStatusResp

type FilteringStatusResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FilterStatus
}

func ParseFilteringStatusResp

func ParseFilteringStatusResp(rsp *http.Response) (*FilteringStatusResp, error)

ParseFilteringStatusResp parses an HTTP response from a FilteringStatusWithResponse call

func (FilteringStatusResp) Status

func (r FilteringStatusResp) Status() string

Status returns HTTPResponse.Status

func (FilteringStatusResp) StatusCode

func (r FilteringStatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProfileResp

type GetProfileResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ProfileInfo
}

func ParseGetProfileResp

func ParseGetProfileResp(rsp *http.Response) (*GetProfileResp, error)

ParseGetProfileResp parses an HTTP response from a GetProfileWithResponse call

func (GetProfileResp) Status

func (r GetProfileResp) Status() string

Status returns HTTPResponse.Status

func (GetProfileResp) StatusCode

func (r GetProfileResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetQueryLogConfigResp

type GetQueryLogConfigResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetQueryLogConfigResponse
}

func ParseGetQueryLogConfigResp

func ParseGetQueryLogConfigResp(rsp *http.Response) (*GetQueryLogConfigResp, error)

ParseGetQueryLogConfigResp parses an HTTP response from a GetQueryLogConfigWithResponse call

func (GetQueryLogConfigResp) Status

func (r GetQueryLogConfigResp) Status() string

Status returns HTTPResponse.Status

func (GetQueryLogConfigResp) StatusCode

func (r GetQueryLogConfigResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetQueryLogConfigResponse

type GetQueryLogConfigResponse struct {
	// AnonymizeClientIp Anonymize clients' IP addresses
	AnonymizeClientIp bool `json:"anonymize_client_ip"`

	// Enabled Is query log enabled
	Enabled bool `json:"enabled"`

	// Ignored List of host names, which should not be written to log
	Ignored []string `json:"ignored"`

	// Interval Time period for query log rotation in milliseconds.
	Interval float32 `json:"interval"`
}

GetQueryLogConfigResponse Query log configuration

type GetStatsConfigResp

type GetStatsConfigResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetStatsConfigResponse
}

func ParseGetStatsConfigResp

func ParseGetStatsConfigResp(rsp *http.Response) (*GetStatsConfigResp, error)

ParseGetStatsConfigResp parses an HTTP response from a GetStatsConfigWithResponse call

func (GetStatsConfigResp) Status

func (r GetStatsConfigResp) Status() string

Status returns HTTPResponse.Status

func (GetStatsConfigResp) StatusCode

func (r GetStatsConfigResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetStatsConfigResponse

type GetStatsConfigResponse struct {
	// Enabled Are statistics enabled
	Enabled bool `json:"enabled"`

	// Ignored List of host names, which should not be counted
	Ignored []string `json:"ignored"`

	// Interval Statistics rotation interval in milliseconds
	Interval float32 `json:"interval"`
}

GetStatsConfigResponse Statistics configuration

func (*GetStatsConfigResponse) Equals added in v0.6.8

Equals GetStatsConfigResponse equal check

type GetVersionJsonJSONRequestBody

type GetVersionJsonJSONRequestBody = GetVersionRequest

GetVersionJsonJSONRequestBody defines body for GetVersionJson for application/json ContentType.

type GetVersionJsonResp

type GetVersionJsonResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *VersionInfo
}

func ParseGetVersionJsonResp

func ParseGetVersionJsonResp(rsp *http.Response) (*GetVersionJsonResp, error)

ParseGetVersionJsonResp parses an HTTP response from a GetVersionJsonWithResponse call

func (GetVersionJsonResp) Status

func (r GetVersionJsonResp) Status() string

Status returns HTTPResponse.Status

func (GetVersionJsonResp) StatusCode

func (r GetVersionJsonResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetVersionRequest

type GetVersionRequest struct {
	// RecheckNow If false, server will check for a new version data only once in several hours.
	RecheckNow *bool `json:"recheck_now,omitempty"`
}

GetVersionRequest /version.json request data

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InitialConfiguration

type InitialConfiguration struct {
	// Dns Port information
	Dns AddressInfo `json:"dns"`

	// Password Basic auth password
	Password string `json:"password"`

	// Username Basic auth username
	Username string `json:"username"`

	// Web Port information
	Web AddressInfo `json:"web"`
}

InitialConfiguration AdGuard Home initial configuration for the first-install wizard.

type InstallCheckConfigJSONRequestBody

type InstallCheckConfigJSONRequestBody = CheckConfigRequest

InstallCheckConfigJSONRequestBody defines body for InstallCheckConfig for application/json ContentType.

type InstallCheckConfigResp

type InstallCheckConfigResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CheckConfigResponse
}

func ParseInstallCheckConfigResp

func ParseInstallCheckConfigResp(rsp *http.Response) (*InstallCheckConfigResp, error)

ParseInstallCheckConfigResp parses an HTTP response from a InstallCheckConfigWithResponse call

func (InstallCheckConfigResp) Status

func (r InstallCheckConfigResp) Status() string

Status returns HTTPResponse.Status

func (InstallCheckConfigResp) StatusCode

func (r InstallCheckConfigResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InstallConfigureJSONRequestBody

type InstallConfigureJSONRequestBody = InitialConfiguration

InstallConfigureJSONRequestBody defines body for InstallConfigure for application/json ContentType.

type InstallConfigureResp

type InstallConfigureResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseInstallConfigureResp

func ParseInstallConfigureResp(rsp *http.Response) (*InstallConfigureResp, error)

ParseInstallConfigureResp parses an HTTP response from a InstallConfigureWithResponse call

func (InstallConfigureResp) Status

func (r InstallConfigureResp) Status() string

Status returns HTTPResponse.Status

func (InstallConfigureResp) StatusCode

func (r InstallConfigureResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type InstallGetAddressesResp

type InstallGetAddressesResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AddressesInfo
}

func ParseInstallGetAddressesResp

func ParseInstallGetAddressesResp(rsp *http.Response) (*InstallGetAddressesResp, error)

ParseInstallGetAddressesResp parses an HTTP response from a InstallGetAddressesWithResponse call

func (InstallGetAddressesResp) Status

func (r InstallGetAddressesResp) Status() string

Status returns HTTPResponse.Status

func (InstallGetAddressesResp) StatusCode

func (r InstallGetAddressesResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LanguageSettings

type LanguageSettings struct {
	// Language The current language or the language to set.
	Language string `json:"language"`
}

LanguageSettings Language settings object.

type Login

type Login struct {
	// Name User name
	Name *string `json:"name,omitempty"`

	// Password Password
	Password *string `json:"password,omitempty"`
}

Login Login request data

type LoginJSONRequestBody

type LoginJSONRequestBody = Login

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginResp

type LoginResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseLoginResp

func ParseLoginResp(rsp *http.Response) (*LoginResp, error)

ParseLoginResp parses an HTTP response from a LoginWithResponse call

func (LoginResp) Status

func (r LoginResp) Status() string

Status returns HTTPResponse.Status

func (LoginResp) StatusCode

func (r LoginResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LogoutResp

type LogoutResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseLogoutResp

func ParseLogoutResp(rsp *http.Response) (*LogoutResp, error)

ParseLogoutResp parses an HTTP response from a LogoutWithResponse call

func (LogoutResp) Status

func (r LogoutResp) Status() string

Status returns HTTPResponse.Status

func (LogoutResp) StatusCode

func (r LogoutResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MobileConfigDoHParams

type MobileConfigDoHParams struct {
	// Host Host for which the config is generated.  If no host is provided, `tls.server_name` from the configuration file is used.  If `tls.server_name` is not set, the API returns an error with a 500 status.
	Host string `form:"host" json:"host"`

	// ClientId ClientID.
	ClientId *string `form:"client_id,omitempty" json:"client_id,omitempty"`
}

MobileConfigDoHParams defines parameters for MobileConfigDoH.

type MobileConfigDoHResp

type MobileConfigDoHResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseMobileConfigDoHResp

func ParseMobileConfigDoHResp(rsp *http.Response) (*MobileConfigDoHResp, error)

ParseMobileConfigDoHResp parses an HTTP response from a MobileConfigDoHWithResponse call

func (MobileConfigDoHResp) Status

func (r MobileConfigDoHResp) Status() string

Status returns HTTPResponse.Status

func (MobileConfigDoHResp) StatusCode

func (r MobileConfigDoHResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MobileConfigDoTParams

type MobileConfigDoTParams struct {
	// Host Host for which the config is generated.  If no host is provided, `tls.server_name` from the configuration file is used.  If `tls.server_name` is not set, the API returns an error with a 500 status.
	Host string `form:"host" json:"host"`

	// ClientId ClientID.
	ClientId *string `form:"client_id,omitempty" json:"client_id,omitempty"`
}

MobileConfigDoTParams defines parameters for MobileConfigDoT.

type MobileConfigDoTResp

type MobileConfigDoTResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *Error
}

func ParseMobileConfigDoTResp

func ParseMobileConfigDoTResp(rsp *http.Response) (*MobileConfigDoTResp, error)

ParseMobileConfigDoTResp parses an HTTP response from a MobileConfigDoTWithResponse call

func (MobileConfigDoTResp) Status

func (r MobileConfigDoTResp) Status() string

Status returns HTTPResponse.Status

func (MobileConfigDoTResp) StatusCode

func (r MobileConfigDoTResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type NetInterface

type NetInterface struct {
	// Flags Flags could be any combination of the following values, divided by the "|" character: "up", "broadcast", "loopback", "pointtopoint" and "multicast".
	Flags           string    `json:"flags"`
	HardwareAddress string    `json:"hardware_address"`
	IpAddresses     *[]string `json:"ip_addresses,omitempty"`
	Mtu             int       `json:"mtu"`
	Name            string    `json:"name"`
}

NetInterface Network interface info

type NetInterfaces

type NetInterfaces map[string]NetInterface

NetInterfaces Network interfaces dictionary, keys are interface names.

type ParentalDisableResp

type ParentalDisableResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseParentalDisableResp

func ParseParentalDisableResp(rsp *http.Response) (*ParentalDisableResp, error)

ParseParentalDisableResp parses an HTTP response from a ParentalDisableWithResponse call

func (ParentalDisableResp) Status

func (r ParentalDisableResp) Status() string

Status returns HTTPResponse.Status

func (ParentalDisableResp) StatusCode

func (r ParentalDisableResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ParentalEnableResp

type ParentalEnableResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseParentalEnableResp

func ParseParentalEnableResp(rsp *http.Response) (*ParentalEnableResp, error)

ParseParentalEnableResp parses an HTTP response from a ParentalEnableWithResponse call

func (ParentalEnableResp) Status

func (r ParentalEnableResp) Status() string

Status returns HTTPResponse.Status

func (ParentalEnableResp) StatusCode

func (r ParentalEnableResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ParentalStatusResp

type ParentalStatusResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Enable      *bool `json:"enable,omitempty"`
		Sensitivity *int  `json:"sensitivity,omitempty"`
	}
}

func ParseParentalStatusResp

func ParseParentalStatusResp(rsp *http.Response) (*ParentalStatusResp, error)

ParseParentalStatusResp parses an HTTP response from a ParentalStatusWithResponse call

func (ParentalStatusResp) Status

func (r ParentalStatusResp) Status() string

Status returns HTTPResponse.Status

func (ParentalStatusResp) StatusCode

func (r ParentalStatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ProfileInfo

type ProfileInfo struct {
	Language string `json:"language"`
	Name     string `json:"name"`

	// Theme Interface theme
	Theme ProfileInfoTheme `json:"theme"`
}

ProfileInfo Information about the current user

func (*ProfileInfo) Equals

func (pi *ProfileInfo) Equals(o *ProfileInfo) bool

func (*ProfileInfo) ShouldSyncFor added in v0.5.2

func (pi *ProfileInfo) ShouldSyncFor(o *ProfileInfo) *ProfileInfo

type ProfileInfoTheme

type ProfileInfoTheme string

ProfileInfoTheme Interface theme

const (
	Auto  ProfileInfoTheme = "auto"
	Dark  ProfileInfoTheme = "dark"
	Light ProfileInfoTheme = "light"
)

Defines values for ProfileInfoTheme.

type PutQueryLogConfigJSONRequestBody

type PutQueryLogConfigJSONRequestBody = PutQueryLogConfigUpdateRequest

PutQueryLogConfigJSONRequestBody defines body for PutQueryLogConfig for application/json ContentType.

type PutQueryLogConfigResp

type PutQueryLogConfigResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePutQueryLogConfigResp

func ParsePutQueryLogConfigResp(rsp *http.Response) (*PutQueryLogConfigResp, error)

ParsePutQueryLogConfigResp parses an HTTP response from a PutQueryLogConfigWithResponse call

func (PutQueryLogConfigResp) Status

func (r PutQueryLogConfigResp) Status() string

Status returns HTTPResponse.Status

func (PutQueryLogConfigResp) StatusCode

func (r PutQueryLogConfigResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutQueryLogConfigUpdateRequest

type PutQueryLogConfigUpdateRequest = GetQueryLogConfigResponse

PutQueryLogConfigUpdateRequest Query log configuration

type PutStatsConfigJSONRequestBody

type PutStatsConfigJSONRequestBody = PutStatsConfigUpdateRequest

PutStatsConfigJSONRequestBody defines body for PutStatsConfig for application/json ContentType.

type PutStatsConfigResp

type PutStatsConfigResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParsePutStatsConfigResp

func ParsePutStatsConfigResp(rsp *http.Response) (*PutStatsConfigResp, error)

ParsePutStatsConfigResp parses an HTTP response from a PutStatsConfigWithResponse call

func (PutStatsConfigResp) Status

func (r PutStatsConfigResp) Status() string

Status returns HTTPResponse.Status

func (PutStatsConfigResp) StatusCode

func (r PutStatsConfigResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutStatsConfigUpdateRequest

type PutStatsConfigUpdateRequest = GetStatsConfigResponse

PutStatsConfigUpdateRequest Statistics configuration

type QueryLog

type QueryLog struct {
	Data   *[]QueryLogItem `json:"data,omitempty"`
	Oldest *string         `json:"oldest,omitempty"`
}

QueryLog Query log

type QueryLogConfig

type QueryLogConfig struct {
	// AnonymizeClientIp Anonymize clients' IP addresses
	AnonymizeClientIp *bool `json:"anonymize_client_ip,omitempty"`

	// Enabled Is query log enabled
	Enabled *bool `json:"enabled,omitempty"`

	// Interval Time period for query log rotation.
	Interval *QueryLogConfigInterval `json:"interval,omitempty"`
}

QueryLogConfig Query log configuration

type QueryLogConfigInterval

type QueryLogConfigInterval float32

QueryLogConfigInterval Time period for query log rotation.

const (
	QueryLogConfigIntervalN025 QueryLogConfigInterval = 0.25
	QueryLogConfigIntervalN1   QueryLogConfigInterval = 1
	QueryLogConfigIntervalN30  QueryLogConfigInterval = 30
	QueryLogConfigIntervalN7   QueryLogConfigInterval = 7
	QueryLogConfigIntervalN90  QueryLogConfigInterval = 90
)

Defines values for QueryLogConfigInterval.

func (*QueryLogConfigInterval) Equals

Equals QueryLogConfigInterval equal check

type QueryLogConfigJSONRequestBody

type QueryLogConfigJSONRequestBody = QueryLogConfig

QueryLogConfigJSONRequestBody defines body for QueryLogConfig for application/json ContentType.

type QueryLogConfigResp

type QueryLogConfigResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseQueryLogConfigResp

func ParseQueryLogConfigResp(rsp *http.Response) (*QueryLogConfigResp, error)

ParseQueryLogConfigResp parses an HTTP response from a QueryLogConfigWithResponse call

func (QueryLogConfigResp) Status

func (r QueryLogConfigResp) Status() string

Status returns HTTPResponse.Status

func (QueryLogConfigResp) StatusCode

func (r QueryLogConfigResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type QueryLogConfigWithIgnored added in v0.6.8

type QueryLogConfigWithIgnored struct {
	QueryLogConfig

	// Ignored List of host names, which should not be written to log
	Ignored []string `json:"ignored,omitempty"`
}

func (*QueryLogConfigWithIgnored) Equals added in v0.6.8

Equals QueryLogConfig equal check

type QueryLogInfoResp

type QueryLogInfoResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *QueryLogConfig
}

func ParseQueryLogInfoResp

func ParseQueryLogInfoResp(rsp *http.Response) (*QueryLogInfoResp, error)

ParseQueryLogInfoResp parses an HTTP response from a QueryLogInfoWithResponse call

func (QueryLogInfoResp) Status

func (r QueryLogInfoResp) Status() string

Status returns HTTPResponse.Status

func (QueryLogInfoResp) StatusCode

func (r QueryLogInfoResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type QueryLogItem

type QueryLogItem struct {
	Answer *[]DnsAnswer `json:"answer,omitempty"`

	// AnswerDnssec If true, the response had the Authenticated Data (AD) flag set.
	AnswerDnssec *bool `json:"answer_dnssec,omitempty"`

	// Cached Defines if the response has been served from cache.
	Cached *bool `json:"cached,omitempty"`

	// Client The client's IP address.
	Client *string `json:"client,omitempty"`

	// ClientId The ClientID, if provided in DoH, DoQ, or DoT.
	ClientId *string `json:"client_id,omitempty"`

	// ClientInfo Client information for a query log item.
	ClientInfo  *QueryLogItemClient `json:"client_info,omitempty"`
	ClientProto *interface{}        `json:"client_proto,omitempty"`

	// Ecs The IP network defined by an EDNS Client-Subnet option in the request message if any.
	Ecs       *string `json:"ecs,omitempty"`
	ElapsedMs *string `json:"elapsedMs,omitempty"`

	// FilterId In case if there's a rule applied to this DNS request, this is ID of the filter list that the rule belongs to.
	// Deprecated: use `rules[*].filter_list_id` instead.
	// Deprecated:
	FilterId *int `json:"filterId,omitempty"`

	// OriginalAnswer Answer from upstream server (optional)
	OriginalAnswer *[]DnsAnswer `json:"original_answer,omitempty"`

	// Question DNS question section
	Question *DnsQuestion `json:"question,omitempty"`

	// Reason Request filtering status.
	Reason *QueryLogItemReason `json:"reason,omitempty"`

	// Rule Filtering rule applied to the request (if any).
	// Deprecated: use `rules[*].text` instead.
	// Deprecated:
	Rule *string `json:"rule,omitempty"`

	// Rules Applied rules.
	Rules *[]ResultRule `json:"rules,omitempty"`

	// ServiceName Set if reason=FilteredBlockedService
	ServiceName *string `json:"service_name,omitempty"`

	// Status DNS response status
	Status *string `json:"status,omitempty"`

	// Time DNS request processing start time
	Time *string `json:"time,omitempty"`

	// Upstream Upstream URL starting with tcp://, tls://, https://, or with an IP address.
	Upstream *string `json:"upstream,omitempty"`
}

QueryLogItem Query log item

type QueryLogItemClient

type QueryLogItemClient struct {
	// Disallowed Whether the client's IP is blocked or not.
	Disallowed bool `json:"disallowed"`

	// DisallowedRule The rule due to which the client is allowed or blocked.
	DisallowedRule string `json:"disallowed_rule"`

	// Name Persistent client's name or runtime client's hostname.  May be empty.
	Name string `json:"name"`

	// Whois Client WHOIS information, if any.
	Whois QueryLogItemClientWhois `json:"whois"`
}

QueryLogItemClient Client information for a query log item.

type QueryLogItemClientWhois

type QueryLogItemClientWhois struct {
	// City City, if any.
	City *string `json:"city,omitempty"`

	// Country Country, if any.
	Country *string `json:"country,omitempty"`

	// Orgname Organization name, if any.
	Orgname *string `json:"orgname,omitempty"`
}

QueryLogItemClientWhois Client WHOIS information, if any.

type QueryLogItemReason

type QueryLogItemReason string

QueryLogItemReason Request filtering status.

const (
	QueryLogItemReasonFilteredBlackList      QueryLogItemReason = "FilteredBlackList"
	QueryLogItemReasonFilteredBlockedService QueryLogItemReason = "FilteredBlockedService"
	QueryLogItemReasonFilteredInvalid        QueryLogItemReason = "FilteredInvalid"
	QueryLogItemReasonFilteredParental       QueryLogItemReason = "FilteredParental"
	QueryLogItemReasonFilteredSafeBrowsing   QueryLogItemReason = "FilteredSafeBrowsing"
	QueryLogItemReasonFilteredSafeSearch     QueryLogItemReason = "FilteredSafeSearch"
	QueryLogItemReasonNotFilteredError       QueryLogItemReason = "NotFilteredError"
	QueryLogItemReasonNotFilteredNotFound    QueryLogItemReason = "NotFilteredNotFound"
	QueryLogItemReasonNotFilteredWhiteList   QueryLogItemReason = "NotFilteredWhiteList"
	QueryLogItemReasonRewrite                QueryLogItemReason = "Rewrite"
	QueryLogItemReasonRewriteEtcHosts        QueryLogItemReason = "RewriteEtcHosts"
	QueryLogItemReasonRewriteRule            QueryLogItemReason = "RewriteRule"
)

Defines values for QueryLogItemReason.

type QueryLogParams

type QueryLogParams struct {
	// OlderThan Filter by older than
	OlderThan *string `form:"older_than,omitempty" json:"older_than,omitempty"`

	// Offset Specify the ranking number of the first item on the page.  Even though it is possible to use "offset" and "older_than", we recommend choosing one of them and sticking to it.
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`

	// Limit Limit the number of records to be returned
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`

	// Search Filter by domain name or client IP
	Search *string `form:"search,omitempty" json:"search,omitempty"`

	// ResponseStatus Filter by response status
	ResponseStatus *QueryLogParamsResponseStatus `form:"response_status,omitempty" json:"response_status,omitempty"`
}

QueryLogParams defines parameters for QueryLog.

type QueryLogParamsResponseStatus

type QueryLogParamsResponseStatus string

QueryLogParamsResponseStatus defines parameters for QueryLog.

const (
	All                 QueryLogParamsResponseStatus = "all"
	Blocked             QueryLogParamsResponseStatus = "blocked"
	BlockedParental     QueryLogParamsResponseStatus = "blocked_parental"
	BlockedSafebrowsing QueryLogParamsResponseStatus = "blocked_safebrowsing"
	Filtered            QueryLogParamsResponseStatus = "filtered"
	Processed           QueryLogParamsResponseStatus = "processed"
	Rewritten           QueryLogParamsResponseStatus = "rewritten"
	SafeSearch          QueryLogParamsResponseStatus = "safe_search"
	Whitelisted         QueryLogParamsResponseStatus = "whitelisted"
)

Defines values for QueryLogParamsResponseStatus.

type QueryLogResp

type QueryLogResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *QueryLog
}

func ParseQueryLogResp

func ParseQueryLogResp(rsp *http.Response) (*QueryLogResp, error)

ParseQueryLogResp parses an HTTP response from a QueryLogWithResponse call

func (QueryLogResp) Status

func (r QueryLogResp) Status() string

Status returns HTTPResponse.Status

func (QueryLogResp) StatusCode

func (r QueryLogResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type QuerylogClearResp

type QuerylogClearResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseQuerylogClearResp

func ParseQuerylogClearResp(rsp *http.Response) (*QuerylogClearResp, error)

ParseQuerylogClearResp parses an HTTP response from a QuerylogClearWithResponse call

func (QuerylogClearResp) Status

func (r QuerylogClearResp) Status() string

Status returns HTTPResponse.Status

func (QuerylogClearResp) StatusCode

func (r QuerylogClearResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RemoveUrlRequest

type RemoveUrlRequest struct {
	// Url Previously added URL containing filtering rules
	Url       *string `json:"url,omitempty"`
	Whitelist *bool   `json:"whitelist,omitempty"`
}

RemoveUrlRequest /remove_url request data

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ResultRule

type ResultRule struct {
	// FilterListId In case if there's a rule applied to this DNS request, this is ID of the filter list that the rule belongs to.
	FilterListId *int64 `json:"filter_list_id,omitempty"`

	// Text The text of the filtering rule applied to the request (if any).
	Text *string `json:"text,omitempty"`
}

ResultRule Applied rule.

type RewriteAddJSONRequestBody

type RewriteAddJSONRequestBody = RewriteEntry

RewriteAddJSONRequestBody defines body for RewriteAdd for application/json ContentType.

type RewriteAddResp

type RewriteAddResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRewriteAddResp

func ParseRewriteAddResp(rsp *http.Response) (*RewriteAddResp, error)

ParseRewriteAddResp parses an HTTP response from a RewriteAddWithResponse call

func (RewriteAddResp) Status

func (r RewriteAddResp) Status() string

Status returns HTTPResponse.Status

func (RewriteAddResp) StatusCode

func (r RewriteAddResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RewriteDeleteJSONRequestBody

type RewriteDeleteJSONRequestBody = RewriteEntry

RewriteDeleteJSONRequestBody defines body for RewriteDelete for application/json ContentType.

type RewriteDeleteResp

type RewriteDeleteResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRewriteDeleteResp

func ParseRewriteDeleteResp(rsp *http.Response) (*RewriteDeleteResp, error)

ParseRewriteDeleteResp parses an HTTP response from a RewriteDeleteWithResponse call

func (RewriteDeleteResp) Status

func (r RewriteDeleteResp) Status() string

Status returns HTTPResponse.Status

func (RewriteDeleteResp) StatusCode

func (r RewriteDeleteResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RewriteEntries

type RewriteEntries []RewriteEntry

RewriteEntries list of RewriteEntry

func (*RewriteEntries) Merge

Merge RewriteEntries

type RewriteEntry

type RewriteEntry struct {
	// Answer value of A, AAAA or CNAME DNS record
	Answer *string `json:"answer,omitempty"`

	// Domain Domain name
	Domain *string `json:"domain,omitempty"`
}

RewriteEntry Rewrite rule

func (*RewriteEntry) Key

func (re *RewriteEntry) Key() string

Key RewriteEntry key

type RewriteEntryBody

type RewriteEntryBody = RewriteEntry

RewriteEntryBody Rewrite rule

type RewriteList

type RewriteList = []RewriteEntry

RewriteList Rewrite rules array

type RewriteListResp

type RewriteListResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RewriteList
}

func ParseRewriteListResp

func ParseRewriteListResp(rsp *http.Response) (*RewriteListResp, error)

ParseRewriteListResp parses an HTTP response from a RewriteListWithResponse call

func (RewriteListResp) Status

func (r RewriteListResp) Status() string

Status returns HTTPResponse.Status

func (RewriteListResp) StatusCode

func (r RewriteListResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RewriteUpdate

type RewriteUpdate struct {
	// Target Rewrite rule
	Target *RewriteEntry `json:"target,omitempty"`

	// Update Rewrite rule
	Update *RewriteEntry `json:"update,omitempty"`
}

RewriteUpdate Rewrite rule update object

type RewriteUpdateBody

type RewriteUpdateBody = RewriteUpdate

RewriteUpdateBody Rewrite rule update object

type RewriteUpdateJSONRequestBody

type RewriteUpdateJSONRequestBody = RewriteUpdate

RewriteUpdateJSONRequestBody defines body for RewriteUpdate for application/json ContentType.

type RewriteUpdateResp

type RewriteUpdateResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseRewriteUpdateResp

func ParseRewriteUpdateResp(rsp *http.Response) (*RewriteUpdateResp, error)

ParseRewriteUpdateResp parses an HTTP response from a RewriteUpdateWithResponse call

func (RewriteUpdateResp) Status

func (r RewriteUpdateResp) Status() string

Status returns HTTPResponse.Status

func (RewriteUpdateResp) StatusCode

func (r RewriteUpdateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SafeSearchConfig

type SafeSearchConfig struct {
	Bing       *bool `json:"bing,omitempty"`
	Duckduckgo *bool `json:"duckduckgo,omitempty"`
	Enabled    *bool `json:"enabled,omitempty"`
	Google     *bool `json:"google,omitempty"`
	Pixabay    *bool `json:"pixabay,omitempty"`
	Yandex     *bool `json:"yandex,omitempty"`
	Youtube    *bool `json:"youtube,omitempty"`
}

SafeSearchConfig Safe search settings.

func (*SafeSearchConfig) Equals

func (ssc *SafeSearchConfig) Equals(o *SafeSearchConfig) bool

type SafebrowsingDisableResp

type SafebrowsingDisableResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSafebrowsingDisableResp

func ParseSafebrowsingDisableResp(rsp *http.Response) (*SafebrowsingDisableResp, error)

ParseSafebrowsingDisableResp parses an HTTP response from a SafebrowsingDisableWithResponse call

func (SafebrowsingDisableResp) Status

func (r SafebrowsingDisableResp) Status() string

Status returns HTTPResponse.Status

func (SafebrowsingDisableResp) StatusCode

func (r SafebrowsingDisableResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SafebrowsingEnableResp

type SafebrowsingEnableResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSafebrowsingEnableResp

func ParseSafebrowsingEnableResp(rsp *http.Response) (*SafebrowsingEnableResp, error)

ParseSafebrowsingEnableResp parses an HTTP response from a SafebrowsingEnableWithResponse call

func (SafebrowsingEnableResp) Status

func (r SafebrowsingEnableResp) Status() string

Status returns HTTPResponse.Status

func (SafebrowsingEnableResp) StatusCode

func (r SafebrowsingEnableResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SafebrowsingStatusResp

type SafebrowsingStatusResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Enabled *bool `json:"enabled,omitempty"`
	}
}

func ParseSafebrowsingStatusResp

func ParseSafebrowsingStatusResp(rsp *http.Response) (*SafebrowsingStatusResp, error)

ParseSafebrowsingStatusResp parses an HTTP response from a SafebrowsingStatusWithResponse call

func (SafebrowsingStatusResp) Status

func (r SafebrowsingStatusResp) Status() string

Status returns HTTPResponse.Status

func (SafebrowsingStatusResp) StatusCode

func (r SafebrowsingStatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SafesearchDisableResp

type SafesearchDisableResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSafesearchDisableResp

func ParseSafesearchDisableResp(rsp *http.Response) (*SafesearchDisableResp, error)

ParseSafesearchDisableResp parses an HTTP response from a SafesearchDisableWithResponse call

func (SafesearchDisableResp) Status

func (r SafesearchDisableResp) Status() string

Status returns HTTPResponse.Status

func (SafesearchDisableResp) StatusCode

func (r SafesearchDisableResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SafesearchEnableResp

type SafesearchEnableResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSafesearchEnableResp

func ParseSafesearchEnableResp(rsp *http.Response) (*SafesearchEnableResp, error)

ParseSafesearchEnableResp parses an HTTP response from a SafesearchEnableWithResponse call

func (SafesearchEnableResp) Status

func (r SafesearchEnableResp) Status() string

Status returns HTTPResponse.Status

func (SafesearchEnableResp) StatusCode

func (r SafesearchEnableResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SafesearchSettingsJSONRequestBody

type SafesearchSettingsJSONRequestBody = SafeSearchConfig

SafesearchSettingsJSONRequestBody defines body for SafesearchSettings for application/json ContentType.

type SafesearchSettingsResp

type SafesearchSettingsResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSafesearchSettingsResp

func ParseSafesearchSettingsResp(rsp *http.Response) (*SafesearchSettingsResp, error)

ParseSafesearchSettingsResp parses an HTTP response from a SafesearchSettingsWithResponse call

func (SafesearchSettingsResp) Status

func (r SafesearchSettingsResp) Status() string

Status returns HTTPResponse.Status

func (SafesearchSettingsResp) StatusCode

func (r SafesearchSettingsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SafesearchStatusResp

type SafesearchStatusResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SafeSearchConfig
}

func ParseSafesearchStatusResp

func ParseSafesearchStatusResp(rsp *http.Response) (*SafesearchStatusResp, error)

ParseSafesearchStatusResp parses an HTTP response from a SafesearchStatusWithResponse call

func (SafesearchStatusResp) Status

func (r SafesearchStatusResp) Status() string

Status returns HTTPResponse.Status

func (SafesearchStatusResp) StatusCode

func (r SafesearchStatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Schedule

type Schedule struct {
	// Fri The single interval within a day.  It begins at the `start` and ends before the `end`.
	Fri *DayRange `json:"fri,omitempty"`

	// Mon The single interval within a day.  It begins at the `start` and ends before the `end`.
	Mon *DayRange `json:"mon,omitempty"`

	// Sat The single interval within a day.  It begins at the `start` and ends before the `end`.
	Sat *DayRange `json:"sat,omitempty"`

	// Sun The single interval within a day.  It begins at the `start` and ends before the `end`.
	Sun *DayRange `json:"sun,omitempty"`

	// Thu The single interval within a day.  It begins at the `start` and ends before the `end`.
	Thu *DayRange `json:"thu,omitempty"`

	// TimeZone Time zone name according to IANA time zone database.  For example `Europe/Brussels`.  `Local` represents the system's local time zone.
	TimeZone *string `json:"time_zone,omitempty"`

	// Tue The single interval within a day.  It begins at the `start` and ends before the `end`.
	Tue *DayRange `json:"tue,omitempty"`

	// Wed The single interval within a day.  It begins at the `start` and ends before the `end`.
	Wed *DayRange `json:"wed,omitempty"`
}

Schedule Sets periods of inactivity for filtering blocked services. The schedule contains 7 days (Sunday to Saturday) and a time zone.

type ServerStatus

type ServerStatus struct {
	DhcpAvailable              *bool    `json:"dhcp_available,omitempty"`
	DnsAddresses               []string `json:"dns_addresses"`
	DnsPort                    uint16   `json:"dns_port"`
	HttpPort                   uint16   `json:"http_port"`
	Language                   string   `json:"language"`
	ProtectionDisabledDuration *int64   `json:"protection_disabled_duration,omitempty"`
	ProtectionEnabled          bool     `json:"protection_enabled"`
	Running                    bool     `json:"running"`
	Version                    string   `json:"version"`
}

ServerStatus AdGuard Home server status and configuration

type SetProtectionJSONRequestBody

type SetProtectionJSONRequestBody = SetProtectionRequest

SetProtectionJSONRequestBody defines body for SetProtection for application/json ContentType.

type SetProtectionRequest

type SetProtectionRequest struct {
	// Duration Duration of a pause, in milliseconds.  Enabled should be false.
	Duration *uint64 `json:"duration,omitempty"`
	Enabled  bool    `json:"enabled"`
}

SetProtectionRequest Protection state configuration

type SetProtectionResp

type SetProtectionResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseSetProtectionResp

func ParseSetProtectionResp(rsp *http.Response) (*SetProtectionResp, error)

ParseSetProtectionResp parses an HTTP response from a SetProtectionWithResponse call

func (SetProtectionResp) Status

func (r SetProtectionResp) Status() string

Status returns HTTPResponse.Status

func (SetProtectionResp) StatusCode

func (r SetProtectionResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SetRulesRequest

type SetRulesRequest struct {
	Rules *[]string `json:"rules,omitempty"`
}

SetRulesRequest Custom filtering rules setting request.

type Stats

type Stats struct {
	// AvgProcessingTime Average time in seconds on processing a DNS request
	AvgProcessingTime *float32 `json:"avg_processing_time,omitempty"`
	BlockedFiltering  *[]int   `json:"blocked_filtering,omitempty"`
	DnsQueries        *[]int   `json:"dns_queries,omitempty"`

	// NumBlockedFiltering Number of requests blocked by filtering rules
	NumBlockedFiltering *int `json:"num_blocked_filtering,omitempty"`

	// NumDnsQueries Total number of DNS queries
	NumDnsQueries *int `json:"num_dns_queries,omitempty"`

	// NumReplacedParental Number of blocked adult websites
	NumReplacedParental *int `json:"num_replaced_parental,omitempty"`

	// NumReplacedSafebrowsing Number of requests blocked by safebrowsing module
	NumReplacedSafebrowsing *int `json:"num_replaced_safebrowsing,omitempty"`

	// NumReplacedSafesearch Number of requests blocked by safesearch module
	NumReplacedSafesearch *int   `json:"num_replaced_safesearch,omitempty"`
	ReplacedParental      *[]int `json:"replaced_parental,omitempty"`
	ReplacedSafebrowsing  *[]int `json:"replaced_safebrowsing,omitempty"`

	// TimeUnits Time units
	TimeUnits         *StatsTimeUnits  `json:"time_units,omitempty"`
	TopBlockedDomains *[]TopArrayEntry `json:"top_blocked_domains,omitempty"`
	TopClients        *[]TopArrayEntry `json:"top_clients,omitempty"`
	TopQueriedDomains *[]TopArrayEntry `json:"top_queried_domains,omitempty"`

	// TopUpstreamsAvgTime Average processing time in seconds of requests from each upstream.
	TopUpstreamsAvgTime *[]TopArrayEntry `json:"top_upstreams_avg_time,omitempty"`

	// TopUpstreamsResponses Total number of responses from each upstream.
	TopUpstreamsResponses *[]TopArrayEntry `json:"top_upstreams_responses,omitempty"`
}

Stats Server statistics data

type StatsConfig

type StatsConfig struct {
	// Interval Time period to keep the data.  `0` means that the statistics is disabled.
	Interval *StatsConfigInterval `json:"interval,omitempty"`
}

StatsConfig Statistics configuration

type StatsConfigInterval

type StatsConfigInterval int

StatsConfigInterval Time period to keep the data. `0` means that the statistics is disabled.

const (
	StatsConfigIntervalN0  StatsConfigInterval = 0
	StatsConfigIntervalN1  StatsConfigInterval = 1
	StatsConfigIntervalN30 StatsConfigInterval = 30
	StatsConfigIntervalN7  StatsConfigInterval = 7
	StatsConfigIntervalN90 StatsConfigInterval = 90
)

Defines values for StatsConfigInterval.

type StatsConfigJSONRequestBody

type StatsConfigJSONRequestBody = StatsConfig

StatsConfigJSONRequestBody defines body for StatsConfig for application/json ContentType.

type StatsConfigResp

type StatsConfigResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseStatsConfigResp

func ParseStatsConfigResp(rsp *http.Response) (*StatsConfigResp, error)

ParseStatsConfigResp parses an HTTP response from a StatsConfigWithResponse call

func (StatsConfigResp) Status

func (r StatsConfigResp) Status() string

Status returns HTTPResponse.Status

func (StatsConfigResp) StatusCode

func (r StatsConfigResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StatsInfoResp

type StatsInfoResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *StatsConfig
}

func ParseStatsInfoResp

func ParseStatsInfoResp(rsp *http.Response) (*StatsInfoResp, error)

ParseStatsInfoResp parses an HTTP response from a StatsInfoWithResponse call

func (StatsInfoResp) Status

func (r StatsInfoResp) Status() string

Status returns HTTPResponse.Status

func (StatsInfoResp) StatusCode

func (r StatsInfoResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StatsResetResp

type StatsResetResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseStatsResetResp

func ParseStatsResetResp(rsp *http.Response) (*StatsResetResp, error)

ParseStatsResetResp parses an HTTP response from a StatsResetWithResponse call

func (StatsResetResp) Status

func (r StatsResetResp) Status() string

Status returns HTTPResponse.Status

func (StatsResetResp) StatusCode

func (r StatsResetResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StatsResp

type StatsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Stats
}

func ParseStatsResp

func ParseStatsResp(rsp *http.Response) (*StatsResp, error)

ParseStatsResp parses an HTTP response from a StatsWithResponse call

func (StatsResp) Status

func (r StatsResp) Status() string

Status returns HTTPResponse.Status

func (StatsResp) StatusCode

func (r StatsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StatsTimeUnits

type StatsTimeUnits string

StatsTimeUnits Time units

const (
	Days  StatsTimeUnits = "days"
	Hours StatsTimeUnits = "hours"
)

Defines values for StatsTimeUnits.

type StatusResp

type StatusResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ServerStatus
}

func ParseStatusResp

func ParseStatusResp(rsp *http.Response) (*StatusResp, error)

ParseStatusResp parses an HTTP response from a StatusWithResponse call

func (StatusResp) Status

func (r StatusResp) Status() string

Status returns HTTPResponse.Status

func (StatusResp) StatusCode

func (r StatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TestUpstreamDNSJSONRequestBody

type TestUpstreamDNSJSONRequestBody = UpstreamsConfig

TestUpstreamDNSJSONRequestBody defines body for TestUpstreamDNS for application/json ContentType.

type TestUpstreamDNSResp

type TestUpstreamDNSResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *UpstreamsConfigResponse
}

func ParseTestUpstreamDNSResp

func ParseTestUpstreamDNSResp(rsp *http.Response) (*TestUpstreamDNSResp, error)

ParseTestUpstreamDNSResp parses an HTTP response from a TestUpstreamDNSWithResponse call

func (TestUpstreamDNSResp) Status

func (r TestUpstreamDNSResp) Status() string

Status returns HTTPResponse.Status

func (TestUpstreamDNSResp) StatusCode

func (r TestUpstreamDNSResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TlsConfig

type TlsConfig struct {
	// CertificateChain Base64 string with PEM-encoded certificates chain
	CertificateChain *string `json:"certificate_chain,omitempty"`

	// CertificatePath Path to certificate file
	CertificatePath *string `json:"certificate_path,omitempty"`

	// DnsNames The value of SubjectAltNames field of the first certificate in the chain.
	DnsNames *[]string `json:"dns_names,omitempty"`

	// Enabled enabled is the encryption (DoT/DoH/HTTPS) status
	Enabled *bool `json:"enabled,omitempty"`

	// ForceHttps if true, forces HTTP->HTTPS redirect
	ForceHttps *bool `json:"force_https,omitempty"`

	// Issuer The issuer of the first certificate in the chain.
	Issuer *string `json:"issuer,omitempty"`

	// KeyType Key type.
	KeyType *TlsConfigKeyType `json:"key_type,omitempty"`

	// NotAfter The NotAfter field of the first certificate in the chain.
	NotAfter *string `json:"not_after,omitempty"`

	// NotBefore The NotBefore field of the first certificate in the chain.
	NotBefore *string `json:"not_before,omitempty"`

	// PortDnsOverQuic DNS-over-QUIC port. If 0, DoQ will be disabled.
	PortDnsOverQuic *uint16 `json:"port_dns_over_quic,omitempty"`

	// PortDnsOverTls DNS-over-TLS port. If 0, DoT will be disabled.
	PortDnsOverTls *uint16 `json:"port_dns_over_tls,omitempty"`

	// PortHttps HTTPS port. If 0, HTTPS will be disabled.
	PortHttps *uint16 `json:"port_https,omitempty"`

	// PrivateKey Base64 string with PEM-encoded private key
	PrivateKey *string `json:"private_key,omitempty"`

	// PrivateKeyPath Path to private key file
	PrivateKeyPath *string `json:"private_key_path,omitempty"`

	// PrivateKeySaved Set to true if the user has previously saved a private key as a string.  This is used so that the server and the client don't have to send the private key between each other every time, which might lead to security issues.
	PrivateKeySaved *bool `json:"private_key_saved,omitempty"`

	// ServePlainDns Set to true if plain DNS is allowed for incoming requests.
	ServePlainDns *bool `json:"serve_plain_dns,omitempty"`

	// ServerName server_name is the hostname of your HTTPS/TLS server
	ServerName *string `json:"server_name,omitempty"`

	// Subject The subject of the first certificate in the chain.
	Subject *string `json:"subject,omitempty"`

	// ValidCert Set to true if the specified certificates chain is a valid chain of X509 certificates.
	ValidCert *bool `json:"valid_cert,omitempty"`

	// ValidChain Set to true if the specified certificates chain is verified and issued by a known CA.
	ValidChain *bool `json:"valid_chain,omitempty"`

	// ValidKey Set to true if the key is a valid private key.
	ValidKey *bool `json:"valid_key,omitempty"`

	// ValidPair Set to true if both certificate and private key are correct.
	ValidPair *bool `json:"valid_pair,omitempty"`

	// WarningValidation A validation warning message with the issue description.
	WarningValidation *string `json:"warning_validation,omitempty"`
}

TlsConfig TLS configuration settings and status

type TlsConfigBody

type TlsConfigBody = TlsConfig

TlsConfigBody TLS configuration settings and status

type TlsConfigKeyType

type TlsConfigKeyType string

TlsConfigKeyType Key type.

const (
	ECDSA TlsConfigKeyType = "ECDSA"
	RSA   TlsConfigKeyType = "RSA"
)

Defines values for TlsConfigKeyType.

type TlsConfigureJSONRequestBody

type TlsConfigureJSONRequestBody = TlsConfig

TlsConfigureJSONRequestBody defines body for TlsConfigure for application/json ContentType.

type TlsConfigureResp

type TlsConfigureResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TlsConfig
}

func ParseTlsConfigureResp

func ParseTlsConfigureResp(rsp *http.Response) (*TlsConfigureResp, error)

ParseTlsConfigureResp parses an HTTP response from a TlsConfigureWithResponse call

func (TlsConfigureResp) Status

func (r TlsConfigureResp) Status() string

Status returns HTTPResponse.Status

func (TlsConfigureResp) StatusCode

func (r TlsConfigureResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TlsStatusResp

type TlsStatusResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TlsConfig
}

func ParseTlsStatusResp

func ParseTlsStatusResp(rsp *http.Response) (*TlsStatusResp, error)

ParseTlsStatusResp parses an HTTP response from a TlsStatusWithResponse call

func (TlsStatusResp) Status

func (r TlsStatusResp) Status() string

Status returns HTTPResponse.Status

func (TlsStatusResp) StatusCode

func (r TlsStatusResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TlsValidateJSONRequestBody

type TlsValidateJSONRequestBody = TlsConfig

TlsValidateJSONRequestBody defines body for TlsValidate for application/json ContentType.

type TlsValidateResp

type TlsValidateResp struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *TlsConfig
}

func ParseTlsValidateResp

func ParseTlsValidateResp(rsp *http.Response) (*TlsValidateResp, error)

ParseTlsValidateResp parses an HTTP response from a TlsValidateWithResponse call

func (TlsValidateResp) Status

func (r TlsValidateResp) Status() string

Status returns HTTPResponse.Status

func (TlsValidateResp) StatusCode

func (r TlsValidateResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type TopArrayEntry

type TopArrayEntry struct {
	DomainOrIp           *float32           `json:"domain_or_ip,omitempty"`
	AdditionalProperties map[string]float32 `json:"-"`
}

TopArrayEntry Represent the number of hits or time duration per key (url, domain, or client IP).

func (TopArrayEntry) Get

func (a TopArrayEntry) Get(fieldName string) (value float32, found bool)

Getter for additional properties for TopArrayEntry. Returns the specified element and whether it was found

func (TopArrayEntry) MarshalJSON

func (a TopArrayEntry) MarshalJSON() ([]byte, error)

Override default JSON handling for TopArrayEntry to handle AdditionalProperties

func (*TopArrayEntry) Set

func (a *TopArrayEntry) Set(fieldName string, value float32)

Setter for additional properties for TopArrayEntry

func (*TopArrayEntry) UnmarshalJSON

func (a *TopArrayEntry) UnmarshalJSON(b []byte) error

Override default JSON handling for TopArrayEntry to handle AdditionalProperties

type UpdateProfileJSONRequestBody

type UpdateProfileJSONRequestBody = ProfileInfo

UpdateProfileJSONRequestBody defines body for UpdateProfile for application/json ContentType.

type UpdateProfileResp

type UpdateProfileResp struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateProfileResp

func ParseUpdateProfileResp(rsp *http.Response) (*UpdateProfileResp, error)

ParseUpdateProfileResp parses an HTTP response from a UpdateProfileWithResponse call

func (UpdateProfileResp) Status

func (r UpdateProfileResp) Status() string

Status returns HTTPResponse.Status

func (UpdateProfileResp) StatusCode

func (r UpdateProfileResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpstreamsConfig

type UpstreamsConfig struct {
	// BootstrapDns Bootstrap DNS servers, port is optional after colon.
	BootstrapDns []string `json:"bootstrap_dns"`

	// FallbackDns Fallback DNS servers, port is optional after colon.
	FallbackDns *[]string `json:"fallback_dns,omitempty"`

	// PrivateUpstream Local PTR resolvers, port is optional after colon.
	PrivateUpstream *[]string `json:"private_upstream,omitempty"`

	// UpstreamDns Upstream DNS servers, port is optional after colon.
	UpstreamDns []string `json:"upstream_dns"`
}

UpstreamsConfig Upstream configuration to be tested

type UpstreamsConfigResponse

type UpstreamsConfigResponse map[string]string

UpstreamsConfigResponse Upstreams configuration response

type VersionInfo

type VersionInfo struct {
	Announcement    *string `json:"announcement,omitempty"`
	AnnouncementUrl *string `json:"announcement_url,omitempty"`
	CanAutoupdate   *bool   `json:"can_autoupdate,omitempty"`

	// Disabled If true then other fields doesn't appear.
	Disabled   bool    `json:"disabled"`
	NewVersion *string `json:"new_version,omitempty"`
}

VersionInfo Information about the latest available version of AdGuard Home.

type WhoisInfo

type WhoisInfo map[string]string

WhoisInfo defines model for WhoisInfo.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL