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,36 +24,29 @@ import (
"net/http"
)
// RelationshipLinksClient 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.
// RelationshipLinksClient 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 RelationshipLinksClient struct {
ManagementClient
}
// NewRelationshipLinksClient creates an instance of the
// RelationshipLinksClient client.
// NewRelationshipLinksClient creates an instance of the RelationshipLinksClient client.
func NewRelationshipLinksClient(subscriptionID string) RelationshipLinksClient {
return NewRelationshipLinksClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewRelationshipLinksClientWithBaseURI creates an instance of the
// RelationshipLinksClient client.
// NewRelationshipLinksClientWithBaseURI creates an instance of the RelationshipLinksClient client.
func NewRelationshipLinksClientWithBaseURI(baseURI string, subscriptionID string) RelationshipLinksClient {
return RelationshipLinksClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate creates a relationship link or updates an existing
// relationship link 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.
// CreateOrUpdate creates a relationship link or updates an existing relationship link 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. relationshipLinkName is the name of the relationship link.
// parameters is parameters supplied to the CreateOrUpdate relationship link
// operation.
// resourceGroupName is the name of the resource group. hubName is the name of the hub. relationshipLinkName is the
// name of the relationship link. parameters is parameters supplied to the CreateOrUpdate relationship link operation.
func (client RelationshipLinksClient) CreateOrUpdate(resourceGroupName string, hubName string, relationshipLinkName string, parameters RelationshipLinkResourceFormat, cancel <-chan struct{}) (<-chan RelationshipLinkResourceFormat, <-chan error) {
resultChan := make(chan RelationshipLinkResourceFormat, 1)
errChan := make(chan error, 1)
@@ -80,8 +72,10 @@ func (client RelationshipLinksClient) CreateOrUpdate(resourceGroupName string, h
var err error
var result RelationshipLinkResourceFormat
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()
@@ -115,7 +109,7 @@ func (client RelationshipLinksClient) CreateOrUpdatePreparer(resourceGroupName s
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -151,13 +145,11 @@ func (client RelationshipLinksClient) CreateOrUpdateResponder(resp *http.Respons
return
}
// Delete deletes a relationship link 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.
// Delete deletes a relationship link 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. relationshipLinkName is the name of the relationship.
// resourceGroupName is the name of the resource group. hubName is the name of the hub. relationshipLinkName is the
// name of the relationship.
func (client RelationshipLinksClient) Delete(resourceGroupName string, hubName string, relationshipLinkName string, cancel <-chan struct{}) (<-chan autorest.Response, <-chan error) {
resultChan := make(chan autorest.Response, 1)
errChan := make(chan error, 1)
@@ -165,8 +157,10 @@ func (client RelationshipLinksClient) Delete(resourceGroupName string, hubName s
var err error
var result autorest.Response
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()
@@ -200,7 +194,7 @@ func (client RelationshipLinksClient) DeletePreparer(resourceGroupName string, h
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -235,8 +229,8 @@ func (client RelationshipLinksClient) DeleteResponder(resp *http.Response) (resu
// Get gets information about the specified relationship Link.
//
// resourceGroupName is the name of the resource group. hubName is the name of
// the hub. relationshipLinkName is the name of the relationship link.
// resourceGroupName is the name of the resource group. hubName is the name of the hub. relationshipLinkName is the
// name of the relationship link.
func (client RelationshipLinksClient) Get(resourceGroupName string, hubName string, relationshipLinkName string) (result RelationshipLinkResourceFormat, err error) {
req, err := client.GetPreparer(resourceGroupName, hubName, relationshipLinkName)
if err != nil {
@@ -268,7 +262,7 @@ func (client RelationshipLinksClient) GetPreparer(resourceGroupName string, hubN
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -302,8 +296,7 @@ func (client RelationshipLinksClient) GetResponder(resp *http.Response) (result
// ListByHub gets all relationship links in 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 RelationshipLinksClient) ListByHub(resourceGroupName string, hubName string) (result RelationshipLinkListResult, err error) {
req, err := client.ListByHubPreparer(resourceGroupName, hubName)
if err != nil {
@@ -334,7 +327,7 @@ func (client RelationshipLinksClient) ListByHubPreparer(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,
}
@@ -389,3 +382,48 @@ func (client RelationshipLinksClient) ListByHubNextResults(lastResults Relations
return
}
// ListByHubComplete gets all elements from the list without paging.
func (client RelationshipLinksClient) ListByHubComplete(resourceGroupName string, hubName string, cancel <-chan struct{}) (<-chan RelationshipLinkResourceFormat, <-chan error) {
resultChan := make(chan RelationshipLinkResourceFormat)
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
}