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
+52 -10
View File
@@ -14,9 +14,8 @@ package customerinsights
// 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"
@@ -24,10 +23,9 @@ import (
"net/http"
)
// RolesClient is the the Azure Customer Insights management API provides a
// RESTful set of web services that interact with Azure Customer Insights
// service to manage your resources. The API has entities that capture the
// relationship between an end user and the Azure Customer Insights service.
// RolesClient is the the Azure Customer Insights management API provides a RESTful set of web services that interact
// with Azure Customer Insights service to manage your resources. The API has entities that capture the relationship
// between an end user and the Azure Customer Insights service.
type RolesClient struct {
ManagementClient
}
@@ -44,8 +42,7 @@ func NewRolesClientWithBaseURI(baseURI string, subscriptionID string) RolesClien
// ListByHub gets all the roles for the hub.
//
// resourceGroupName is the name of the resource group. hubName is the name of
// the hub.
// resourceGroupName is the name of the resource group. hubName is the name of the hub.
func (client RolesClient) ListByHub(resourceGroupName string, hubName string) (result RoleListResult, err error) {
req, err := client.ListByHubPreparer(resourceGroupName, hubName)
if err != nil {
@@ -76,7 +73,7 @@ func (client RolesClient) ListByHubPreparer(resourceGroupName string, hubName st
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -131,3 +128,48 @@ func (client RolesClient) ListByHubNextResults(lastResults RoleListResult) (resu
return
}
// ListByHubComplete gets all elements from the list without paging.
func (client RolesClient) ListByHubComplete(resourceGroupName string, hubName string, cancel <-chan struct{}) (<-chan RoleResourceFormat, <-chan error) {
resultChan := make(chan RoleResourceFormat)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListByHub(resourceGroupName, hubName)
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.ListByHubNextResults(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
}