package servicemapapi

// Copyright (c) Microsoft and contributors.  All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

import (
	"context"
	"github.com/Azure/azure-sdk-for-go/services/preview/operationalinsights/mgmt/2015-11-01-preview/servicemap"
	"github.com/Azure/go-autorest/autorest"
	"github.com/Azure/go-autorest/autorest/date"
)

// MachinesClientAPI contains the set of methods on the MachinesClient type.
type MachinesClientAPI interface {
	Get(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, timestamp *date.Time) (result servicemap.Machine, err error)
	GetLiveness(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result servicemap.Liveness, err error)
	ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time, top *int32) (result servicemap.MachineCollectionPage, err error)
	ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time, top *int32) (result servicemap.MachineCollectionIterator, err error)
	ListConnections(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result servicemap.ConnectionCollectionPage, err error)
	ListConnectionsComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result servicemap.ConnectionCollectionIterator, err error)
	ListMachineGroupMembership(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result servicemap.MachineGroupCollectionPage, err error)
	ListMachineGroupMembershipComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result servicemap.MachineGroupCollectionIterator, err error)
	ListPorts(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result servicemap.PortCollectionPage, err error)
	ListPortsComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, startTime *date.Time, endTime *date.Time) (result servicemap.PortCollectionIterator, err error)
	ListProcesses(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time) (result servicemap.ProcessCollectionPage, err error)
	ListProcessesComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, live *bool, startTime *date.Time, endTime *date.Time, timestamp *date.Time) (result servicemap.ProcessCollectionIterator, err error)
}

var _ MachinesClientAPI = (*servicemap.MachinesClient)(nil)

// ProcessesClientAPI contains the set of methods on the ProcessesClient type.
type ProcessesClientAPI interface {
	Get(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, timestamp *date.Time) (result servicemap.Process, err error)
	GetLiveness(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result servicemap.Liveness, err error)
	ListAcceptingPorts(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result servicemap.PortCollectionPage, err error)
	ListAcceptingPortsComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result servicemap.PortCollectionIterator, err error)
	ListConnections(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result servicemap.ConnectionCollectionPage, err error)
	ListConnectionsComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result servicemap.ConnectionCollectionIterator, err error)
}

var _ ProcessesClientAPI = (*servicemap.ProcessesClient)(nil)

// PortsClientAPI contains the set of methods on the PortsClient type.
type PortsClientAPI interface {
	Get(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result servicemap.Port, err error)
	GetLiveness(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result servicemap.Liveness, err error)
	ListAcceptingProcesses(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result servicemap.ProcessCollectionPage, err error)
	ListAcceptingProcessesComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result servicemap.ProcessCollectionIterator, err error)
	ListConnections(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result servicemap.ConnectionCollectionPage, err error)
	ListConnectionsComplete(ctx context.Context, resourceGroupName string, workspaceName string, machineName string, portName string, startTime *date.Time, endTime *date.Time) (result servicemap.ConnectionCollectionIterator, err error)
}

var _ PortsClientAPI = (*servicemap.PortsClient)(nil)

// ClientGroupsClientAPI contains the set of methods on the ClientGroupsClient type.
type ClientGroupsClientAPI interface {
	Get(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time) (result servicemap.ClientGroup, err error)
	GetMembersCount(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time) (result servicemap.ClientGroupMembersCount, err error)
	ListMembers(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time, top *int32) (result servicemap.ClientGroupMembersCollectionPage, err error)
	ListMembersComplete(ctx context.Context, resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time, top *int32) (result servicemap.ClientGroupMembersCollectionIterator, err error)
}

var _ ClientGroupsClientAPI = (*servicemap.ClientGroupsClient)(nil)

// MapsClientAPI contains the set of methods on the MapsClient type.
type MapsClientAPI interface {
	Generate(ctx context.Context, resourceGroupName string, workspaceName string, request servicemap.BasicMapRequest) (result servicemap.MapResponse, err error)
}

var _ MapsClientAPI = (*servicemap.MapsClient)(nil)

// SummariesClientAPI contains the set of methods on the SummariesClient type.
type SummariesClientAPI interface {
	GetMachines(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (result servicemap.MachinesSummary, err error)
}

var _ SummariesClientAPI = (*servicemap.SummariesClient)(nil)

// MachineGroupsClientAPI contains the set of methods on the MachineGroupsClient type.
type MachineGroupsClientAPI interface {
	Create(ctx context.Context, resourceGroupName string, workspaceName string, machineGroup servicemap.MachineGroup) (result servicemap.MachineGroup, err error)
	Delete(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string) (result autorest.Response, err error)
	Get(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string, startTime *date.Time, endTime *date.Time) (result servicemap.MachineGroup, err error)
	ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (result servicemap.MachineGroupCollectionPage, err error)
	ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string, startTime *date.Time, endTime *date.Time) (result servicemap.MachineGroupCollectionIterator, err error)
	Update(ctx context.Context, resourceGroupName string, workspaceName string, machineGroupName string, machineGroup servicemap.MachineGroup) (result servicemap.MachineGroup, err error)
}

var _ MachineGroupsClientAPI = (*servicemap.MachineGroupsClient)(nil)
