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,35 +24,29 @@ import (
"net/http"
)
// RoleAssignmentsClient 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.
// RoleAssignmentsClient 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 RoleAssignmentsClient struct {
ManagementClient
}
// NewRoleAssignmentsClient creates an instance of the RoleAssignmentsClient
// client.
// NewRoleAssignmentsClient creates an instance of the RoleAssignmentsClient client.
func NewRoleAssignmentsClient(subscriptionID string) RoleAssignmentsClient {
return NewRoleAssignmentsClientWithBaseURI(DefaultBaseURI, subscriptionID)
}
// NewRoleAssignmentsClientWithBaseURI creates an instance of the
// RoleAssignmentsClient client.
// NewRoleAssignmentsClientWithBaseURI creates an instance of the RoleAssignmentsClient client.
func NewRoleAssignmentsClientWithBaseURI(baseURI string, subscriptionID string) RoleAssignmentsClient {
return RoleAssignmentsClient{NewWithBaseURI(baseURI, subscriptionID)}
}
// CreateOrUpdate creates or updates a role assignment in the 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 or updates a role assignment in the 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. assignmentName is the assignment name parameters is parameters
// supplied to the CreateOrUpdate RoleAssignment operation.
// resourceGroupName is the name of the resource group. hubName is the name of the hub. assignmentName is the
// assignment name parameters is parameters supplied to the CreateOrUpdate RoleAssignment operation.
func (client RoleAssignmentsClient) CreateOrUpdate(resourceGroupName string, hubName string, assignmentName string, parameters RoleAssignmentResourceFormat, cancel <-chan struct{}) (<-chan RoleAssignmentResourceFormat, <-chan error) {
resultChan := make(chan RoleAssignmentResourceFormat, 1)
errChan := make(chan error, 1)
@@ -75,8 +68,10 @@ func (client RoleAssignmentsClient) CreateOrUpdate(resourceGroupName string, hub
var err error
var result RoleAssignmentResourceFormat
defer func() {
if err != nil {
errChan <- err
}
resultChan <- result
errChan <- err
close(resultChan)
close(errChan)
}()
@@ -110,7 +105,7 @@ func (client RoleAssignmentsClient) CreateOrUpdatePreparer(resourceGroupName str
"subscriptionId": autorest.Encode("path", client.SubscriptionID),
}
const APIVersion = "2017-01-01"
const APIVersion = "2017-04-26"
queryParameters := map[string]interface{}{
"api-version": APIVersion,
}
@@ -148,8 +143,8 @@ func (client RoleAssignmentsClient) CreateOrUpdateResponder(resp *http.Response)
// Delete deletes the role assignment in the hub.
//
// resourceGroupName is the name of the resource group. hubName is the name of
// the hub. assignmentName is the name of the role assignment.
// resourceGroupName is the name of the resource group. hubName is the name of the hub. assignmentName is the name of
// the role assignment.
func (client RoleAssignmentsClient) Delete(resourceGroupName string, hubName string, assignmentName string) (result autorest.Response, err error) {
req, err := client.DeletePreparer(resourceGroupName, hubName, assignmentName)
if err != nil {
@@ -181,7 +176,7 @@ func (client RoleAssignmentsClient) DeletePreparer(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,
}
@@ -214,8 +209,8 @@ func (client RoleAssignmentsClient) DeleteResponder(resp *http.Response) (result
// Get gets the role assignment in the hub.
//
// resourceGroupName is the name of the resource group. hubName is the name of
// the hub. assignmentName is the name of the role assignment.
// resourceGroupName is the name of the resource group. hubName is the name of the hub. assignmentName is the name of
// the role assignment.
func (client RoleAssignmentsClient) Get(resourceGroupName string, hubName string, assignmentName string) (result RoleAssignmentResourceFormat, err error) {
req, err := client.GetPreparer(resourceGroupName, hubName, assignmentName)
if err != nil {
@@ -247,7 +242,7 @@ func (client RoleAssignmentsClient) GetPreparer(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,
}
@@ -281,8 +276,7 @@ func (client RoleAssignmentsClient) GetResponder(resp *http.Response) (result Ro
// ListByHub gets all the role assignments for 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 RoleAssignmentsClient) ListByHub(resourceGroupName string, hubName string) (result RoleAssignmentListResult, err error) {
req, err := client.ListByHubPreparer(resourceGroupName, hubName)
if err != nil {
@@ -313,7 +307,7 @@ func (client RoleAssignmentsClient) 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,
}
@@ -368,3 +362,48 @@ func (client RoleAssignmentsClient) ListByHubNextResults(lastResults RoleAssignm
return
}
// ListByHubComplete gets all elements from the list without paging.
func (client RoleAssignmentsClient) ListByHubComplete(resourceGroupName string, hubName string, cancel <-chan struct{}) (<-chan RoleAssignmentResourceFormat, <-chan error) {
resultChan := make(chan RoleAssignmentResourceFormat)
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
}