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
+63 -31
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,21 +35,17 @@ func NewClientGroupsClient(subscriptionID string) ClientGroupsClient {
return NewClientGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewClientGroupsClientWithBaseURI creates an instance of the
// ClientGroupsClient client.
// NewClientGroupsClientWithBaseURI creates an instance of the ClientGroupsClient client.
func NewClientGroupsClientWithBaseURI(baseURI string, subscriptionID string) ClientGroupsClient {
return ClientGroupsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// Get retrieves the specified client group
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest. clientGroupName is client Group 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. clientGroupName is client Group 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 ClientGroupsClient) Get(resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time) (result ClientGroup, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -135,16 +130,12 @@ func (client ClientGroupsClient) GetResponder(resp *http.Response) (result Clien
return
}
// GetMembersCount returns the approximate number of members in the client
// group.
// GetMembersCount returns the approximate number of members in the client group.
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest. clientGroupName is client Group 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. clientGroupName is client Group 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 ClientGroupsClient) GetMembersCount(resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time) (result ClientGroupMembersCount, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -229,17 +220,13 @@ func (client ClientGroupsClient) GetMembersCountResponder(resp *http.Response) (
return
}
// ListMembers returns the members of the client group during the specified
// time interval.
// ListMembers returns the members of the client group during the specified time interval.
//
// resourceGroupName is resource group name within the specified
// subscriptionId. workspaceName is oMS workspace containing the resources of
// interest. clientGroupName is client Group 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 top is page size to use. When not specified, the default
// page size is 100 records.
// resourceGroupName is resource group name within the specified subscriptionId. workspaceName is OMS workspace
// containing the resources of interest. clientGroupName is client Group 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 top is
// page size to use. When not specified, the default page size is 100 records.
func (client ClientGroupsClient) ListMembers(resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time, top *int32) (result ClientGroupMembersCollection, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: resourceGroupName,
@@ -355,3 +342,48 @@ func (client ClientGroupsClient) ListMembersNextResults(lastResults ClientGroupM
return
}
// ListMembersComplete gets all elements from the list without paging.
func (client ClientGroupsClient) ListMembersComplete(resourceGroupName string, workspaceName string, clientGroupName string, startTime *date.Time, endTime *date.Time, top *int32, cancel <-chan struct{}) (<-chan ClientGroupMember, <-chan error) {
resultChan := make(chan ClientGroupMember)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListMembers(resourceGroupName, workspaceName, clientGroupName, startTime, endTime, top)
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.ListMembersNextResults(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
}