diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/consumergroups.go b/services/eventhub/mgmt/2017-04-01/eventhub/consumergroups.go index 472eb4d59ee5..7ca90859176c 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/consumergroups.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/consumergroups.go @@ -133,7 +133,6 @@ func (client ConsumerGroupsClient) CreateOrUpdateSender(req *http.Request) (*htt func (client ConsumerGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ConsumerGroup, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -229,7 +228,6 @@ func (client ConsumerGroupsClient) DeleteSender(req *http.Request) (*http.Respon func (client ConsumerGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -324,7 +322,6 @@ func (client ConsumerGroupsClient) GetSender(req *http.Request) (*http.Response, func (client ConsumerGroupsClient) GetResponder(resp *http.Response) (result ConsumerGroup, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -437,7 +434,6 @@ func (client ConsumerGroupsClient) ListByEventHubSender(req *http.Request) (*htt func (client ConsumerGroupsClient) ListByEventHubResponder(resp *http.Response) (result ConsumerGroupListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/disasterrecoveryconfigs.go b/services/eventhub/mgmt/2017-04-01/eventhub/disasterrecoveryconfigs.go index 9fba41a5e88e..cf41745c176e 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/disasterrecoveryconfigs.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/disasterrecoveryconfigs.go @@ -127,7 +127,6 @@ func (client DisasterRecoveryConfigsClient) BreakPairingSender(req *http.Request func (client DisasterRecoveryConfigsClient) BreakPairingResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -200,7 +199,7 @@ func (client DisasterRecoveryConfigsClient) CheckNameAvailabilityPreparer(ctx co autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPost(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/CheckNameAvailability", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/checkNameAvailability", pathParameters), autorest.WithJSON(parameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) @@ -217,7 +216,6 @@ func (client DisasterRecoveryConfigsClient) CheckNameAvailabilitySender(req *htt func (client DisasterRecoveryConfigsClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -311,7 +309,6 @@ func (client DisasterRecoveryConfigsClient) CreateOrUpdateSender(req *http.Reque func (client DisasterRecoveryConfigsClient) CreateOrUpdateResponder(resp *http.Response) (result ArmDisasterRecovery, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -402,7 +399,6 @@ func (client DisasterRecoveryConfigsClient) DeleteSender(req *http.Request) (*ht func (client DisasterRecoveryConfigsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -492,7 +488,6 @@ func (client DisasterRecoveryConfigsClient) FailOverSender(req *http.Request) (* func (client DisasterRecoveryConfigsClient) FailOverResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByClosing()) result.Response = resp @@ -582,7 +577,6 @@ func (client DisasterRecoveryConfigsClient) GetSender(req *http.Request) (*http. func (client DisasterRecoveryConfigsClient) GetResponder(resp *http.Response) (result ArmDisasterRecovery, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -661,7 +655,7 @@ func (client DisasterRecoveryConfigsClient) GetAuthorizationRulePreparer(ctx con preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } @@ -677,7 +671,6 @@ func (client DisasterRecoveryConfigsClient) GetAuthorizationRuleSender(req *http func (client DisasterRecoveryConfigsClient) GetAuthorizationRuleResponder(resp *http.Response) (result AuthorizationRule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -764,7 +757,6 @@ func (client DisasterRecoveryConfigsClient) ListSender(req *http.Request) (*http func (client DisasterRecoveryConfigsClient) ListResponder(resp *http.Response) (result ArmDisasterRecoveryListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -877,7 +869,7 @@ func (client DisasterRecoveryConfigsClient) ListAuthorizationRulesPreparer(ctx c preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } @@ -893,7 +885,6 @@ func (client DisasterRecoveryConfigsClient) ListAuthorizationRulesSender(req *ht func (client DisasterRecoveryConfigsClient) ListAuthorizationRulesResponder(resp *http.Response) (result AuthorizationRuleListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1009,7 +1000,7 @@ func (client DisasterRecoveryConfigsClient) ListKeysPreparer(ctx context.Context preparer := autorest.CreatePreparer( autorest.AsPost(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}/listKeys", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}/listKeys", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } @@ -1025,7 +1016,6 @@ func (client DisasterRecoveryConfigsClient) ListKeysSender(req *http.Request) (* func (client DisasterRecoveryConfigsClient) ListKeysResponder(resp *http.Response) (result AccessKeys, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/eventhubapi/interfaces.go b/services/eventhub/mgmt/2017-04-01/eventhub/eventhubapi/interfaces.go index 2fe1bf45b111..d732b373c2e9 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/eventhubapi/interfaces.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/eventhubapi/interfaces.go @@ -23,14 +23,6 @@ import ( "github.com/Azure/go-autorest/autorest" ) -// OperationsClientAPI contains the set of methods on the OperationsClient type. -type OperationsClientAPI interface { - List(ctx context.Context) (result eventhub.OperationListResultPage, err error) - ListComplete(ctx context.Context) (result eventhub.OperationListResultIterator, err error) -} - -var _ OperationsClientAPI = (*eventhub.OperationsClient)(nil) - // NamespacesClientAPI contains the set of methods on the NamespacesClient type. type NamespacesClientAPI interface { CheckNameAvailability(ctx context.Context, parameters eventhub.CheckNameAvailabilityParameter) (result eventhub.CheckNameAvailabilityResult, err error) @@ -105,6 +97,14 @@ type ConsumerGroupsClientAPI interface { var _ ConsumerGroupsClientAPI = (*eventhub.ConsumerGroupsClient)(nil) +// OperationsClientAPI contains the set of methods on the OperationsClient type. +type OperationsClientAPI interface { + List(ctx context.Context) (result eventhub.OperationListResultPage, err error) + ListComplete(ctx context.Context) (result eventhub.OperationListResultIterator, err error) +} + +var _ OperationsClientAPI = (*eventhub.OperationsClient)(nil) + // RegionsClientAPI contains the set of methods on the RegionsClient type. type RegionsClientAPI interface { ListBySku(ctx context.Context, sku string) (result eventhub.MessagingRegionsListResultPage, err error) diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/eventhubs.go b/services/eventhub/mgmt/2017-04-01/eventhub/eventhubs.go index 214d8c946d5c..2685d0ecc624 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/eventhubs.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/eventhubs.go @@ -145,7 +145,6 @@ func (client EventHubsClient) CreateOrUpdateSender(req *http.Request) (*http.Res func (client EventHubsClient) CreateOrUpdateResponder(resp *http.Response) (result Model, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -247,7 +246,6 @@ func (client EventHubsClient) CreateOrUpdateAuthorizationRuleSender(req *http.Re func (client EventHubsClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.Response) (result AuthorizationRule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -338,7 +336,6 @@ func (client EventHubsClient) DeleteSender(req *http.Request) (*http.Response, e func (client EventHubsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -432,7 +429,6 @@ func (client EventHubsClient) DeleteAuthorizationRuleSender(req *http.Request) ( func (client EventHubsClient) DeleteAuthorizationRuleResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -522,7 +518,6 @@ func (client EventHubsClient) GetSender(req *http.Request) (*http.Response, erro func (client EventHubsClient) GetResponder(resp *http.Response) (result Model, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -617,7 +612,6 @@ func (client EventHubsClient) GetAuthorizationRuleSender(req *http.Request) (*ht func (client EventHubsClient) GetAuthorizationRuleResponder(resp *http.Response) (result AuthorizationRule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -709,7 +703,6 @@ func (client EventHubsClient) ListAuthorizationRulesSender(req *http.Request) (* func (client EventHubsClient) ListAuthorizationRulesResponder(resp *http.Response) (result AuthorizationRuleListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -853,7 +846,6 @@ func (client EventHubsClient) ListByNamespaceSender(req *http.Request) (*http.Re func (client EventHubsClient) ListByNamespaceResponder(resp *http.Response) (result ListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -969,7 +961,7 @@ func (client EventHubsClient) ListKeysPreparer(ctx context.Context, resourceGrou preparer := autorest.CreatePreparer( autorest.AsPost(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/ListKeys", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/listKeys", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } @@ -985,7 +977,6 @@ func (client EventHubsClient) ListKeysSender(req *http.Request) (*http.Response, func (client EventHubsClient) ListKeysResponder(resp *http.Response) (result AccessKeys, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1083,7 +1074,6 @@ func (client EventHubsClient) RegenerateKeysSender(req *http.Request) (*http.Res func (client EventHubsClient) RegenerateKeysResponder(resp *http.Response) (result AccessKeys, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/models.go b/services/eventhub/mgmt/2017-04-01/eventhub/models.go index 76ef7508385a..25e93267da3b 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/models.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/models.go @@ -39,13 +39,13 @@ const ( Listen AccessRights = "Listen" // Manage ... Manage AccessRights = "Manage" - // Send ... - Send AccessRights = "Send" + // SendEnumValue ... + SendEnumValue AccessRights = "Send" ) // PossibleAccessRightsValues returns an array of possible values for the AccessRights const type. func PossibleAccessRightsValues() []AccessRights { - return []AccessRights{Listen, Manage, Send} + return []AccessRights{Listen, Manage, SendEnumValue} } // DefaultAction enumerates the values for default action. @@ -246,11 +246,11 @@ type ArmDisasterRecovery struct { autorest.Response `json:"-"` // ArmDisasterRecoveryProperties - Properties required to the Create Or Update Alias(Disaster Recovery configurations) *ArmDisasterRecoveryProperties `json:"properties,omitempty"` - // ID - READ-ONLY; Resource Id + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -481,11 +481,11 @@ type AuthorizationRule struct { autorest.Response `json:"-"` // AuthorizationRuleProperties - Properties supplied to create or update AuthorizationRule *AuthorizationRuleProperties `json:"properties,omitempty"` - // ID - READ-ONLY; Resource Id + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -739,11 +739,11 @@ type ConsumerGroup struct { autorest.Response `json:"-"` // ConsumerGroupProperties - Single item in List or Get Consumer group operation *ConsumerGroupProperties `json:"properties,omitempty"` - // ID - READ-ONLY; Resource Id + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1034,15 +1034,15 @@ type EHNamespace struct { Sku *Sku `json:"sku,omitempty"` // EHNamespaceProperties - Namespace properties supplied for create namespace operation. *EHNamespaceProperties `json:"properties,omitempty"` - // Location - Resource location + // Location - Resource location. Location *string `json:"location,omitempty"` - // Tags - Resource tags + // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - READ-ONLY; Resource Id + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1308,8 +1308,8 @@ type EHNamespaceProperties struct { KafkaEnabled *bool `json:"kafkaEnabled,omitempty"` } -// ErrorResponse error response indicates EventHub service is not able to process the incoming request. The -// reason is provided in the error message. +// ErrorResponse error response indicates Event Hub service is not able to process the incoming request. +// The reason is provided in the error message. type ErrorResponse struct { // Code - Error code. Code *string `json:"code,omitempty"` @@ -1467,15 +1467,15 @@ func NewListResultPage(getNextPage func(context.Context, ListResult) (ListResult type MessagingPlan struct { autorest.Response `json:"-"` *MessagingPlanProperties `json:"properties,omitempty"` - // Location - Resource location + // Location - Resource location. Location *string `json:"location,omitempty"` - // Tags - Resource tags + // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - READ-ONLY; Resource Id + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1577,16 +1577,17 @@ type MessagingPlanProperties struct { // MessagingRegions messaging Region type MessagingRegions struct { + // Properties - Properties of Messaging Region Properties *MessagingRegionsProperties `json:"properties,omitempty"` - // Location - Resource location + // Location - Resource location. Location *string `json:"location,omitempty"` - // Tags - Resource tags + // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - READ-ONLY; Resource Id + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1751,7 +1752,7 @@ func NewMessagingRegionsListResultPage(getNextPage func(context.Context, Messagi return MessagingRegionsListResultPage{fn: getNextPage} } -// MessagingRegionsProperties ... +// MessagingRegionsProperties properties of Messaging Region type MessagingRegionsProperties struct { // Code - READ-ONLY; Region code Code *string `json:"code,omitempty"` @@ -1764,11 +1765,11 @@ type Model struct { autorest.Response `json:"-"` // Properties - Properties supplied to the Create Or Update Event Hub operation. *Properties `json:"properties,omitempty"` - // ID - READ-ONLY; Resource Id + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -1889,11 +1890,11 @@ type NetworkRuleSet struct { autorest.Response `json:"-"` // NetworkRuleSetProperties - NetworkRuleSet properties *NetworkRuleSetProperties `json:"properties,omitempty"` - // ID - READ-ONLY; Resource Id + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2321,13 +2322,13 @@ type RegenerateAccessKeyParameters struct { Key *string `json:"key,omitempty"` } -// Resource the Resource definition +// Resource the resource definition. type Resource struct { - // ID - READ-ONLY; Resource Id + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } @@ -2347,17 +2348,17 @@ type Subnet struct { ID *string `json:"id,omitempty"` } -// TrackedResource definition of Resource +// TrackedResource definition of resource. type TrackedResource struct { - // Location - Resource location + // Location - Resource location. Location *string `json:"location,omitempty"` - // Tags - Resource tags + // Tags - Resource tags. Tags map[string]*string `json:"tags"` - // ID - READ-ONLY; Resource Id + // ID - READ-ONLY; Resource ID. ID *string `json:"id,omitempty"` - // Name - READ-ONLY; Resource name + // Name - READ-ONLY; Resource name. Name *string `json:"name,omitempty"` - // Type - READ-ONLY; Resource type + // Type - READ-ONLY; Resource type. Type *string `json:"type,omitempty"` } diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go b/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go index 33a18ba85eb3..fc1543de5c24 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/namespaces.go @@ -98,7 +98,7 @@ func (client NamespacesClient) CheckNameAvailabilityPreparer(ctx context.Context autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPost(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/CheckNameAvailability", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/checkNameAvailability", pathParameters), autorest.WithJSON(parameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) @@ -115,7 +115,6 @@ func (client NamespacesClient) CheckNameAvailabilitySender(req *http.Request) (* func (client NamespacesClient) CheckNameAvailabilityResponder(resp *http.Response) (result CheckNameAvailabilityResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -218,7 +217,6 @@ func (client NamespacesClient) CreateOrUpdateSender(req *http.Request) (future N func (client NamespacesClient) CreateOrUpdateResponder(resp *http.Response) (result EHNamespace, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -297,7 +295,7 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRulePreparer(ctx conte autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", pathParameters), autorest.WithJSON(parameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) @@ -314,7 +312,6 @@ func (client NamespacesClient) CreateOrUpdateAuthorizationRuleSender(req *http.R func (client NamespacesClient) CreateOrUpdateAuthorizationRuleResponder(resp *http.Response) (result AuthorizationRule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -403,7 +400,6 @@ func (client NamespacesClient) CreateOrUpdateNetworkRuleSetSender(req *http.Requ func (client NamespacesClient) CreateOrUpdateNetworkRuleSetResponder(resp *http.Response) (result NetworkRuleSet, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -489,7 +485,6 @@ func (client NamespacesClient) DeleteSender(req *http.Request) (future Namespace func (client NamespacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -562,7 +557,7 @@ func (client NamespacesClient) DeleteAuthorizationRulePreparer(ctx context.Conte preparer := autorest.CreatePreparer( autorest.AsDelete(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } @@ -578,7 +573,6 @@ func (client NamespacesClient) DeleteAuthorizationRuleSender(req *http.Request) func (client NamespacesClient) DeleteAuthorizationRuleResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -663,7 +657,6 @@ func (client NamespacesClient) GetSender(req *http.Request) (*http.Response, err func (client NamespacesClient) GetResponder(resp *http.Response) (result EHNamespace, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -737,7 +730,7 @@ func (client NamespacesClient) GetAuthorizationRulePreparer(ctx context.Context, preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } @@ -753,7 +746,6 @@ func (client NamespacesClient) GetAuthorizationRuleSender(req *http.Request) (*h func (client NamespacesClient) GetAuthorizationRuleResponder(resp *http.Response) (result AuthorizationRule, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -839,7 +831,6 @@ func (client NamespacesClient) GetMessagingPlanSender(req *http.Request) (*http. func (client NamespacesClient) GetMessagingPlanResponder(resp *http.Response) (result MessagingPlan, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -925,7 +916,6 @@ func (client NamespacesClient) GetNetworkRuleSetSender(req *http.Request) (*http func (client NamespacesClient) GetNetworkRuleSetResponder(resp *http.Response) (result NetworkRuleSet, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -997,7 +987,6 @@ func (client NamespacesClient) ListSender(req *http.Request) (*http.Response, er func (client NamespacesClient) ListResponder(resp *http.Response) (result EHNamespaceListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1105,7 +1094,7 @@ func (client NamespacesClient) ListAuthorizationRulesPreparer(ctx context.Contex preparer := autorest.CreatePreparer( autorest.AsGet(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } @@ -1121,7 +1110,6 @@ func (client NamespacesClient) ListAuthorizationRulesSender(req *http.Request) ( func (client NamespacesClient) ListAuthorizationRulesResponder(resp *http.Response) (result AuthorizationRuleListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1240,7 +1228,6 @@ func (client NamespacesClient) ListByResourceGroupSender(req *http.Request) (*ht func (client NamespacesClient) ListByResourceGroupResponder(resp *http.Response) (result EHNamespaceListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1351,7 +1338,7 @@ func (client NamespacesClient) ListKeysPreparer(ctx context.Context, resourceGro preparer := autorest.CreatePreparer( autorest.AsPost(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys", pathParameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) } @@ -1367,7 +1354,6 @@ func (client NamespacesClient) ListKeysSender(req *http.Request) (*http.Response func (client NamespacesClient) ListKeysResponder(resp *http.Response) (result AccessKeys, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1454,7 +1440,6 @@ func (client NamespacesClient) ListNetworkRuleSetsSender(req *http.Request) (*ht func (client NamespacesClient) ListNetworkRuleSetsResponder(resp *http.Response) (result NetworkRuleSetListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1567,7 +1552,7 @@ func (client NamespacesClient) RegenerateKeysPreparer(ctx context.Context, resou autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPost(), autorest.WithBaseURL(client.BaseURI), - autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys", pathParameters), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys", pathParameters), autorest.WithJSON(parameters), autorest.WithQueryParameters(queryParameters)) return preparer.Prepare((&http.Request{}).WithContext(ctx)) @@ -1584,7 +1569,6 @@ func (client NamespacesClient) RegenerateKeysSender(req *http.Request) (*http.Re func (client NamespacesClient) RegenerateKeysResponder(resp *http.Response) (result AccessKeys, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1674,7 +1658,6 @@ func (client NamespacesClient) UpdateSender(req *http.Request) (*http.Response, func (client NamespacesClient) UpdateResponder(resp *http.Response) (result EHNamespace, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/operations.go b/services/eventhub/mgmt/2017-04-01/eventhub/operations.go index 3198ceb45d11..71d181c29d8a 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/operations.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/operations.go @@ -101,7 +101,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/regions.go b/services/eventhub/mgmt/2017-04-01/eventhub/regions.go index 576fa3ab5357..0774269d27a6 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/regions.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/regions.go @@ -116,7 +116,6 @@ func (client RegionsClient) ListBySkuSender(req *http.Request) (*http.Response, func (client RegionsClient) ListBySkuResponder(resp *http.Response) (result MessagingRegionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/eventhub/mgmt/2017-04-01/eventhub/version.go b/services/eventhub/mgmt/2017-04-01/eventhub/version.go index 11d960128b5b..952a830689fa 100644 --- a/services/eventhub/mgmt/2017-04-01/eventhub/version.go +++ b/services/eventhub/mgmt/2017-04-01/eventhub/version.go @@ -21,7 +21,7 @@ import "github.com/Azure/azure-sdk-for-go/version" // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " eventhub/2017-04-01" + return "Azure-SDK-For-Go/" + Version() + " eventhub/2017-04-01" } // Version returns the semantic version (see http://semver.org) of the client.