vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537055 additions and 189679 deletions
+115 -38
View File
@@ -14,9 +14,8 @@ package servicemap
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
import (
"github.com/Azure/go-autorest/autorest"
@@ -36,20 +35,17 @@ func NewProcessesClient(subscriptionID string) ProcessesClient {
return NewProcessesClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewProcessesClientWithBaseURI creates an instance of the ProcessesClient
// client.
// NewProcessesClientWithBaseURI creates an instance of the ProcessesClient client.
func NewProcessesClientWithBaseURI(baseURI string, subscriptionID string) ProcessesClient {
return ProcessesClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Get returns the specified process.
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest. machineName is machine resource name. processName is process
// resource name. timestamp is uTC date and time specifying a time instance
// relative to which to evaluate a resource. When not specified, the service
// uses DateTime.UtcNow.
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
// containing the resources of interest. machineName is machine resource name. processName is process resource name.
// timestamp is UTC date and time specifying a time instance relative to which to evaluate a resource. When not
// specified, the service uses DateTime.UtcNow.
func (client ProcessesClient) Get(resourceGroupName string, workspaceName string, machineName string, processName string, timestamp *date.Time) (result Process, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -135,16 +131,13 @@ func (client ProcessesClient) GetResponder(resp *http.Response) (result Process,
return
}
// GetLiveness obtains the liveness status of the process during the specified
// time interval.
// GetLiveness obtains the liveness status of the process during the specified time interval.
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest. machineName is machine resource name. processName is process
// resource name. startTime is uTC date and time specifying the start time of
// an interval. When not specified the service uses DateTime.UtcNow - 10m
// endTime is uTC date and time specifying the end time of an interval. When
// not specified the service uses DateTime.UtcNow
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
// containing the resources of interest. machineName is machine resource name. processName is process resource name.
// startTime is UTC date and time specifying the start time of an interval. When not specified the service uses
// DateTime.UtcNow - 10m endTime is UTC date and time specifying the end time of an interval. When not specified the
// service uses DateTime.UtcNow
func (client ProcessesClient) GetLiveness(resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result Liveness, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -233,16 +226,13 @@ func (client ProcessesClient) GetLivenessResponder(resp *http.Response) (result
return
}
// ListAcceptingPorts returns a collection of ports on which this process is
// accepting
// ListAcceptingPorts returns a collection of ports on which this process is accepting
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest. machineName is machine resource name. processName is process
// resource name. startTime is uTC date and time specifying the start time of
// an interval. When not specified the service uses DateTime.UtcNow - 10m
// endTime is uTC date and time specifying the end time of an interval. When
// not specified the service uses DateTime.UtcNow
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
// containing the resources of interest. machineName is machine resource name. processName is process resource name.
// startTime is UTC date and time specifying the start time of an interval. When not specified the service uses
// DateTime.UtcNow - 10m endTime is UTC date and time specifying the end time of an interval. When not specified the
// service uses DateTime.UtcNow
func (client ProcessesClient) ListAcceptingPorts(resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result PortCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -355,16 +345,58 @@ func (client ProcessesClient) ListAcceptingPortsNextResults(lastResults PortColl
return
}
// ListConnections returns a collection of connections terminating or
// originating at the specified process
// ListAcceptingPortsComplete gets all elements from the list without paging.
func (client ProcessesClient) ListAcceptingPortsComplete(resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time, cancel <-chan struct{}) (<-chan Port, <-chan error) {
resultChan := make(chan Port)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListAcceptingPorts(resourceGroupName, workspaceName, machineName, processName, startTime, endTime)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListAcceptingPortsNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}
// ListConnections returns a collection of connections terminating or originating at the specified process
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest. machineName is machine resource name. processName is process
// resource name. startTime is uTC date and time specifying the start time of
// an interval. When not specified the service uses DateTime.UtcNow - 10m
// endTime is uTC date and time specifying the end time of an interval. When
// not specified the service uses DateTime.UtcNow
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
// containing the resources of interest. machineName is machine resource name. processName is process resource name.
// startTime is UTC date and time specifying the start time of an interval. When not specified the service uses
// DateTime.UtcNow - 10m endTime is UTC date and time specifying the end time of an interval. When not specified the
// service uses DateTime.UtcNow
func (client ProcessesClient) ListConnections(resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time) (result ConnectionCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -476,3 +508,48 @@ func (client ProcessesClient) ListConnectionsNextResults(lastResults ConnectionC
return
}
// ListConnectionsComplete gets all elements from the list without paging.
func (client ProcessesClient) ListConnectionsComplete(resourceGroupName string, workspaceName string, machineName string, processName string, startTime *date.Time, endTime *date.Time, cancel <-chan struct{}) (<-chan Connection, <-chan error) {
resultChan := make(chan Connection)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListConnections(resourceGroupName, workspaceName, machineName, processName, startTime, endTime)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
for list.NextLink != nil {
list, err = client.ListConnectionsNextResults(list)
if err != nil {
errChan <- err
return
}
if list.Value != nil {
for _, item := range *list.Value {
select {
case <-cancel:
return
case resultChan <- item:
// Intentionally left blank
}
}
}
}
}()
return resultChan, errChan
}