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
@@ -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,11 +24,9 @@ import (
"net/http"
)
// InteractionsClient 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.
// InteractionsClient 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 InteractionsClient struct {
ManagementClient
}
@@ -39,20 +36,17 @@ func NewInteractionsClient(subscriptionID string) InteractionsClient {
return NewInteractionsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewInteractionsClientWithBaseURI creates an instance of the
// InteractionsClient client.
// NewInteractionsClientWithBaseURI creates an instance of the InteractionsClient client.
func NewInteractionsClientWithBaseURI(baseURI string, subscriptionID string) InteractionsClient {
return InteractionsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate creates an interaction or updates an existing interaction
// within a hub. This method may poll for completion. Polling can be canceled
// by passing the cancel channel argument. The channel will be used to cancel
// CreateOrUpdate creates an interaction or updates an existing interaction within a 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. interactionName is the name of the interaction. parameters is
// parameters supplied to the CreateOrUpdate Interaction operation.
// resourceGroupName is the name of the resource group. hubName is the name of the hub. interactionName is the name of
// the interaction. parameters is parameters supplied to the CreateOrUpdate Interaction operation.
func (client InteractionsClient) CreateOrUpdate(resourceGroupName string, hubName string, interactionName string, parameters InteractionResourceFormat, cancel <-chan struct{}) (<-chan InteractionResourceFormat, <-chan error) {
resultChan := make(chan InteractionResourceFormat, 1)
errChan := make(chan error, 1)
@@ -71,8 +65,10 @@ func (client InteractionsClient) CreateOrUpdate(resourceGroupName string, hubNam
var err error
var result InteractionResourceFormat
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()
@@ -106,7 +102,7 @@ func (client InteractionsClient) CreateOrUpdatePreparer(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,
}
@@ -144,9 +140,8 @@ func (client InteractionsClient) CreateOrUpdateResponder(resp *http.Response) (r
// Get gets information about the specified interaction.
//
// resourceGroupName is the name of the resource group. hubName is the name of
// the hub. interactionName is the name of the interaction. localeCode is
// locale of interaction to retrieve, default is en-us.
// resourceGroupName is the name of the resource group. hubName is the name of the hub. interactionName is the name of
// the interaction. localeCode is locale of interaction to retrieve, default is en-us.
func (client InteractionsClient) Get(resourceGroupName string, hubName string, interactionName string, localeCode string) (result InteractionResourceFormat, err error) {
req, err := client.GetPreparer(resourceGroupName, hubName, interactionName, localeCode)
if err != nil {
@@ -178,7 +173,7 @@ func (client InteractionsClient) GetPreparer(resourceGroupName string, hubName s
"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 +210,8 @@ func (client InteractionsClient) GetResponder(resp *http.Response) (result Inter
// ListByHub gets all interactions in the hub.
//
// resourceGroupName is the name of the resource group. hubName is the name of
// the hub. localeCode is locale of interaction to retrieve, default is en-us.
// resourceGroupName is the name of the resource group. hubName is the name of the hub. localeCode is locale of
// interaction to retrieve, default is en-us.
func (client InteractionsClient) ListByHub(resourceGroupName string, hubName string, localeCode string) (result InteractionListResult, err error) {
req, err := client.ListByHubPreparer(resourceGroupName, hubName, localeCode)
if err != nil {
@@ -247,7 +242,7 @@ func (client InteractionsClient) ListByHubPreparer(resourceGroupName string, hub
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -306,11 +301,55 @@ func (client InteractionsClient) ListByHubNextResults(lastResults InteractionLis
return
}
// SuggestRelationshipLinks suggests relationships to create relationship
// links.
// ListByHubComplete gets all elements from the list without paging.
func (client InteractionsClient) ListByHubComplete(resourceGroupName string, hubName string, localeCode string, cancel <-chan struct{}) (<-chan InteractionResourceFormat, <-chan error) {
resultChan := make(chan InteractionResourceFormat)
errChan := make(chan error, 1)
go func() {
defer func() {
close(resultChan)
close(errChan)
}()
list, err := client.ListByHub(resourceGroupName, hubName, localeCode)
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
}
// SuggestRelationshipLinks suggests relationships to create relationship links.
//
// resourceGroupName is the name of the resource group. hubName is the name of
// the hub. interactionName is the name of the interaction.
// resourceGroupName is the name of the resource group. hubName is the name of the hub. interactionName is the name of
// the interaction.
func (client InteractionsClient) SuggestRelationshipLinks(resourceGroupName string, hubName string, interactionName string) (result SuggestRelationshipLinksResponse, err error) {
req, err := client.SuggestRelationshipLinksPreparer(resourceGroupName, hubName, interactionName)
if err != nil {
@@ -342,7 +381,7 @@ func (client InteractionsClient) SuggestRelationshipLinksPreparer(resourceGroupN
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}