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
+112 -26
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"
@@ -25,10 +24,9 @@ import (
"net/http"
)
// HubsClient 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.
// HubsClient 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 HubsClient struct {
ManagementClient
}
@@ -45,9 +43,8 @@ func NewHubsClientWithBaseURI(baseURI string, subscriptionID string) HubsClient
// CreateOrUpdate creates a hub, or updates an existing hub.
//
// resourceGroupName is the name of the resource group. hubName is the name of
// the Hub. parameters is parameters supplied to the CreateOrUpdate Hub
// operation.
// resourceGroupName is the name of the resource group. hubName is the name of the Hub. parameters is parameters
// supplied to the CreateOrUpdate Hub operation.
func (client HubsClient) CreateOrUpdate(resourceGroupName string, hubName string, parameters Hub) (result Hub, err error) {
if err := validation.Validate([]validation.Validation{
{TargetValue: hubName,
@@ -99,7 +96,7 @@ func (client HubsClient) CreateOrUpdatePreparer(resourceGroupName string, hubNam
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -133,12 +130,10 @@ func (client HubsClient) CreateOrUpdateResponder(resp *http.Response) (result Hu
return
}
// Delete deletes the specified hub. This method may poll for completion.
// Polling can be canceled by passing the cancel channel argument. The channel
// will be used to cancel polling and any outstanding HTTP requests.
// Delete deletes the specified hub. This method may poll for completion. Polling can be canceled by passing the cancel
// channel argument. The channel will be used to cancel polling and any outstanding HTTP requests.
//
// 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 HubsClient) Delete(resourceGroupName string, hubName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -146,8 +141,10 @@ func (client HubsClient) Delete(resourceGroupName string, hubName string, cancel
var err error
var result autorest.Response
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()
@@ -180,7 +177,7 @@ func (client HubsClient) DeletePreparer(resourceGroupName string, hubName string
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -215,8 +212,7 @@ func (client HubsClient) DeleteResponder(resp *http.Response) (result autorest.R
// Get gets information about the specified 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 HubsClient) Get(resourceGroupName string, hubName string) (result Hub, err error) {
req, err := client.GetPreparer(resourceGroupName, hubName)
if err != nil {
@@ -247,7 +243,7 @@ func (client HubsClient) GetPreparer(resourceGroupName string, hubName string) (
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -308,7 +304,7 @@ func (client HubsClient) ListPreparer() (*http.Request, error) {
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -364,6 +360,51 @@ func (client HubsClient) ListNextResults(lastResults HubListResult) (result HubL
return
}
// ListComplete gets all elements from the list without paging.
func (client HubsClient) ListComplete(cancel <-chan struct{}) (<-chan Hub, <-chan error) {
resultChan := make(chan Hub)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.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
}
}
}
for list.NextLink != nil {
list, err = client.ListNextResults(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
}
// ListByResourceGroup gets all the hubs in a resource group.
//
// resourceGroupName is the name of the resource group.
@@ -396,7 +437,7 @@ func (client HubsClient) ListByResourceGroupPreparer(resourceGroupName string) (
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -452,10 +493,55 @@ func (client HubsClient) ListByResourceGroupNextResults(lastResults HubListResul
return
}
// ListByResourceGroupComplete gets all elements from the list without paging.
func (client HubsClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan Hub, <-chan error) {
resultChan := make(chan Hub)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListByResourceGroup(resourceGroupName)
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.ListByResourceGroupNextResults(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
}
// Update updates a Hub.
//
// resourceGroupName is the name of the resource group. hubName is the name of
// the Hub. parameters is parameters supplied to the Update Hub operation.
// resourceGroupName is the name of the resource group. hubName is the name of the Hub. parameters is parameters
// supplied to the Update Hub operation.
func (client HubsClient) Update(resourceGroupName string, hubName string, parameters Hub) (result Hub, err error) {
req, err := client.UpdatePreparer(resourceGroupName, hubName, parameters)
if err != nil {
@@ -486,7 +572,7 @@ func (client HubsClient) UpdatePreparer(resourceGroupName string, hubName string
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}