vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2018-01-16 13:20:59 +00:00
parent 8e83fb6fb9
commit 7d3a17725d
4878 changed files with 1974213 additions and 201199 deletions
+2
View File
@@ -1,6 +1,8 @@
// Package eventhub implements the Azure ARM Eventhub service API version 2017-04-01.
//
// Azure Event Hubs client
//
// Deprecated: Please instead use github.com/Azure/azure-sdk-for-go/services/eventhub/mgmt/2017-04-01/event
package eventhub
// Copyright (c) Microsoft and contributors. All rights reserved.
+12 -4
View File
@@ -108,7 +108,9 @@ func (client ConsumerGroupsClient) CreateOrUpdatePreparer(resourceGroupName stri
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client ConsumerGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
@@ -190,7 +192,9 @@ func (client ConsumerGroupsClient) DeletePreparer(resourceGroupName string, name
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client ConsumerGroupsClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteResponder handles the response to the Delete request. The method always
@@ -271,7 +275,9 @@ func (client ConsumerGroupsClient) GetPreparer(resourceGroupName string, namespa
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client ConsumerGroupsClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
@@ -351,7 +357,9 @@ func (client ConsumerGroupsClient) ListByEventHubPreparer(resourceGroupName stri
// ListByEventHubSender sends the ListByEventHub request. The method will close the
// http.Response Body if it receives an error.
func (client ConsumerGroupsClient) ListByEventHubSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// ListByEventHubResponder handles the response to the ListByEventHub request. The method always
+30 -10
View File
@@ -125,7 +125,9 @@ func (client EventHubsClient) CreateOrUpdatePreparer(resourceGroupName string, n
// CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the
// http.Response Body if it receives an error.
func (client EventHubsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always
@@ -210,7 +212,9 @@ func (client EventHubsClient) CreateOrUpdateAuthorizationRulePreparer(resourceGr
// CreateOrUpdateAuthorizationRuleSender sends the CreateOrUpdateAuthorizationRule request. The method will close the
// http.Response Body if it receives an error.
func (client EventHubsClient) CreateOrUpdateAuthorizationRuleSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// CreateOrUpdateAuthorizationRuleResponder handles the response to the CreateOrUpdateAuthorizationRule request. The method always
@@ -289,7 +293,9 @@ func (client EventHubsClient) DeletePreparer(resourceGroupName string, namespace
// DeleteSender sends the Delete request. The method will close the
// http.Response Body if it receives an error.
func (client EventHubsClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteResponder handles the response to the Delete request. The method always
@@ -370,7 +376,9 @@ func (client EventHubsClient) DeleteAuthorizationRulePreparer(resourceGroupName
// DeleteAuthorizationRuleSender sends the DeleteAuthorizationRule request. The method will close the
// http.Response Body if it receives an error.
func (client EventHubsClient) DeleteAuthorizationRuleSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteAuthorizationRuleResponder handles the response to the DeleteAuthorizationRule request. The method always
@@ -448,7 +456,9 @@ func (client EventHubsClient) GetPreparer(resourceGroupName string, namespaceNam
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client EventHubsClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
@@ -530,7 +540,9 @@ func (client EventHubsClient) GetAuthorizationRulePreparer(resourceGroupName str
// GetAuthorizationRuleSender sends the GetAuthorizationRule request. The method will close the
// http.Response Body if it receives an error.
func (client EventHubsClient) GetAuthorizationRuleSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// GetAuthorizationRuleResponder handles the response to the GetAuthorizationRule request. The method always
@@ -609,7 +621,9 @@ func (client EventHubsClient) ListAuthorizationRulesPreparer(resourceGroupName s
// ListAuthorizationRulesSender sends the ListAuthorizationRules request. The method will close the
// http.Response Body if it receives an error.
func (client EventHubsClient) ListAuthorizationRulesSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// ListAuthorizationRulesResponder handles the response to the ListAuthorizationRules request. The method always
@@ -753,7 +767,9 @@ func (client EventHubsClient) ListByNamespacePreparer(resourceGroupName string,
// ListByNamespaceSender sends the ListByNamespace request. The method will close the
// http.Response Body if it receives an error.
func (client EventHubsClient) ListByNamespaceSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// ListByNamespaceResponder handles the response to the ListByNamespace request. The method always
@@ -904,7 +920,9 @@ func (client EventHubsClient) ListKeysPreparer(resourceGroupName string, namespa
// ListKeysSender sends the ListKeys request. The method will close the
// http.Response Body if it receives an error.
func (client EventHubsClient) ListKeysSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// ListKeysResponder handles the response to the ListKeys request. The method always
@@ -989,7 +1007,9 @@ func (client EventHubsClient) RegenerateKeysPreparer(resourceGroupName string, n
// RegenerateKeysSender sends the RegenerateKeys request. The method will close the
// http.Response Body if it receives an error.
func (client EventHubsClient) RegenerateKeysSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// RegenerateKeysResponder handles the response to the RegenerateKeys request. The method always
+23 -23
View File
@@ -138,11 +138,6 @@ type AuthorizationRule struct {
*AuthorizationRuleProperties `json:"properties,omitempty"`
}
// AuthorizationRuleProperties is properties supplied to create or update AuthorizationRule
type AuthorizationRuleProperties struct {
Rights *[]AccessRights `json:"rights,omitempty"`
}
// AuthorizationRuleListResult is the response from the List namespace operation.
type AuthorizationRuleListResult struct {
autorest.Response `json:"-"`
@@ -162,6 +157,11 @@ func (client AuthorizationRuleListResult) AuthorizationRuleListResultPreparer()
autorest.WithBaseURL(to.String(client.NextLink)))
}
// AuthorizationRuleProperties is properties supplied to create or update AuthorizationRule
type AuthorizationRuleProperties struct {
Rights *[]AccessRights `json:"rights,omitempty"`
}
// CaptureDescription is properties to configure capture description for eventhub
type CaptureDescription struct {
Enabled *bool `json:"enabled,omitempty"`
@@ -193,13 +193,6 @@ type ConsumerGroup struct {
*ConsumerGroupProperties `json:"properties,omitempty"`
}
// ConsumerGroupProperties is single item in List or Get Consumer group operation
type ConsumerGroupProperties struct {
CreatedAt *date.Time `json:"createdAt,omitempty"`
UpdatedAt *date.Time `json:"updatedAt,omitempty"`
UserMetadata *string `json:"userMetadata,omitempty"`
}
// ConsumerGroupListResult is the result to the List Consumer Group operation.
type ConsumerGroupListResult struct {
autorest.Response `json:"-"`
@@ -219,6 +212,13 @@ func (client ConsumerGroupListResult) ConsumerGroupListResultPreparer() (*http.R
autorest.WithBaseURL(to.String(client.NextLink)))
}
// ConsumerGroupProperties is single item in List or Get Consumer group operation
type ConsumerGroupProperties struct {
CreatedAt *date.Time `json:"createdAt,omitempty"`
UpdatedAt *date.Time `json:"updatedAt,omitempty"`
UserMetadata *string `json:"userMetadata,omitempty"`
}
// Destination is capture storage details for capture description
type Destination struct {
Name *string `json:"name,omitempty"`
@@ -245,17 +245,6 @@ type EHNamespace struct {
*EHNamespaceProperties `json:"properties,omitempty"`
}
// EHNamespaceProperties is namespace properties supplied for create namespace operation.
type EHNamespaceProperties struct {
ProvisioningState *string `json:"provisioningState,omitempty"`
CreatedAt *date.Time `json:"createdAt,omitempty"`
UpdatedAt *date.Time `json:"updatedAt,omitempty"`
ServiceBusEndpoint *string `json:"serviceBusEndpoint,omitempty"`
MetricID *string `json:"metricId,omitempty"`
IsAutoInflateEnabled *bool `json:"isAutoInflateEnabled,omitempty"`
MaximumThroughputUnits *int32 `json:"maximumThroughputUnits,omitempty"`
}
// EHNamespaceListResult is the response of the List Namespace operation
type EHNamespaceListResult struct {
autorest.Response `json:"-"`
@@ -275,6 +264,17 @@ func (client EHNamespaceListResult) EHNamespaceListResultPreparer() (*http.Reque
autorest.WithBaseURL(to.String(client.NextLink)))
}
// EHNamespaceProperties is namespace properties supplied for create namespace operation.
type EHNamespaceProperties struct {
ProvisioningState *string `json:"provisioningState,omitempty"`
CreatedAt *date.Time `json:"createdAt,omitempty"`
UpdatedAt *date.Time `json:"updatedAt,omitempty"`
ServiceBusEndpoint *string `json:"serviceBusEndpoint,omitempty"`
MetricID *string `json:"metricId,omitempty"`
IsAutoInflateEnabled *bool `json:"isAutoInflateEnabled,omitempty"`
MaximumThroughputUnits *int32 `json:"maximumThroughputUnits,omitempty"`
}
// ErrorResponse is error reponse indicates EventHub service is not able to process the incoming request. The reason is
// provided in the error message.
type ErrorResponse struct {
+35 -11
View File
@@ -94,7 +94,9 @@ func (client NamespacesClient) CheckNameAvailabilityPreparer(parameters CheckNam
// CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the
// http.Response Body if it receives an error.
func (client NamespacesClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always
@@ -205,6 +207,7 @@ func (client NamespacesClient) CreateOrUpdatePreparer(resourceGroupName string,
func (client NamespacesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client),
azure.DoPollForAsynchronous(client.PollingDelay))
}
@@ -286,7 +289,9 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRulePreparer(resourceG
// CreateOrUpdateAuthorizationRuleSender sends the CreateOrUpdateAuthorizationRule request. The method will close the
// http.Response Body if it receives an error.
func (client NamespacesClient) CreateOrUpdateAuthorizationRuleSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// CreateOrUpdateAuthorizationRuleResponder handles the response to the CreateOrUpdateAuthorizationRule request. The method always
@@ -381,6 +386,7 @@ func (client NamespacesClient) DeletePreparer(resourceGroupName string, namespac
func (client NamespacesClient) DeleteSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client),
azure.DoPollForAsynchronous(client.PollingDelay))
}
@@ -459,7 +465,9 @@ func (client NamespacesClient) DeleteAuthorizationRulePreparer(resourceGroupName
// DeleteAuthorizationRuleSender sends the DeleteAuthorizationRule request. The method will close the
// http.Response Body if it receives an error.
func (client NamespacesClient) DeleteAuthorizationRuleSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// DeleteAuthorizationRuleResponder handles the response to the DeleteAuthorizationRule request. The method always
@@ -533,7 +541,9 @@ func (client NamespacesClient) GetPreparer(resourceGroupName string, namespaceNa
// GetSender sends the Get request. The method will close the
// http.Response Body if it receives an error.
func (client NamespacesClient) GetSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// GetResponder handles the response to the Get request. The method always
@@ -612,7 +622,9 @@ func (client NamespacesClient) GetAuthorizationRulePreparer(resourceGroupName st
// GetAuthorizationRuleSender sends the GetAuthorizationRule request. The method will close the
// http.Response Body if it receives an error.
func (client NamespacesClient) GetAuthorizationRuleSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// GetAuthorizationRuleResponder handles the response to the GetAuthorizationRule request. The method always
@@ -673,7 +685,9 @@ func (client NamespacesClient) ListPreparer() (*http.Request, error) {
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client NamespacesClient) ListSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// ListResponder handles the response to the List request. The method always
@@ -817,7 +831,9 @@ func (client NamespacesClient) ListAuthorizationRulesPreparer(resourceGroupName
// ListAuthorizationRulesSender sends the ListAuthorizationRules request. The method will close the
// http.Response Body if it receives an error.
func (client NamespacesClient) ListAuthorizationRulesSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// ListAuthorizationRulesResponder handles the response to the ListAuthorizationRules request. The method always
@@ -957,7 +973,9 @@ func (client NamespacesClient) ListByResourceGroupPreparer(resourceGroupName str
// ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the
// http.Response Body if it receives an error.
func (client NamespacesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always
@@ -1105,7 +1123,9 @@ func (client NamespacesClient) ListKeysPreparer(resourceGroupName string, namesp
// ListKeysSender sends the ListKeys request. The method will close the
// http.Response Body if it receives an error.
func (client NamespacesClient) ListKeysSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// ListKeysResponder handles the response to the ListKeys request. The method always
@@ -1187,7 +1207,9 @@ func (client NamespacesClient) RegenerateKeysPreparer(resourceGroupName string,
// RegenerateKeysSender sends the RegenerateKeys request. The method will close the
// http.Response Body if it receives an error.
func (client NamespacesClient) RegenerateKeysSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// RegenerateKeysResponder handles the response to the RegenerateKeys request. The method always
@@ -1266,7 +1288,9 @@ func (client NamespacesClient) UpdatePreparer(resourceGroupName string, namespac
// UpdateSender sends the Update request. The method will close the
// http.Response Body if it receives an error.
func (client NamespacesClient) UpdateSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
azure.DoRetryWithRegistration(client.Client))
}
// UpdateResponder handles the response to the Update request. The method always
+3 -1
View File
@@ -79,7 +79,9 @@ func (client OperationsClient) ListPreparer() (*http.Request, error) {
// ListSender sends the List request. The method will close the
// http.Response Body if it receives an error.
func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error) {
return autorest.SendWithSender(client, req)
return autorest.SendWithSender(client,
req,
autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...))
}
// ListResponder handles the response to the List request. The method always
+2 -2
View File
@@ -19,10 +19,10 @@ package eventhub
// UserAgent returns the UserAgent string to use when sending http.Requests.
func UserAgent() string {
return "Azure-SDK-For-Go/v11.0.0-beta arm-eventhub/2017-04-01"
return "Azure-SDK-For-Go/v12.2.0-beta arm-eventhub/2017-04-01"
}
// Version returns the semantic version (see http://semver.org) of the client.
func Version() string {
return "v11.0.0-beta"
return "v12.2.0-beta"
}