From 77f98565db0161e506dce3bdd5c418b66d92306e Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Wed, 29 Jan 2020 20:43:46 +0000 Subject: [PATCH] Generated from 3692c0dfdf033256237ab43721f93d3442c0063c fix code style issues --- .../resources/mgmt/2019-05-01/resources/client.go | 3 ++- .../2019-05-01/resources/deploymentoperations.go | 4 +++- .../mgmt/2019-05-01/resources/deployments.go | 3 ++- .../resources/mgmt/2019-05-01/resources/groups.go | 3 ++- .../mgmt/2019-05-01/resources/operations.go | 3 ++- .../resources/mgmt/2019-05-01/resources/providers.go | 3 ++- .../resources/mgmt/2019-05-01/resources/resources.go | 3 ++- .../2019-05-01/resources/resourcesapi/interfaces.go | 12 ++++++++++++ services/resources/mgmt/2019-05-01/resources/tags.go | 3 ++- 9 files changed, 29 insertions(+), 8 deletions(-) diff --git a/services/resources/mgmt/2019-05-01/resources/client.go b/services/resources/mgmt/2019-05-01/resources/client.go index c6dfd6ee6654..ab582ee03692 100644 --- a/services/resources/mgmt/2019-05-01/resources/client.go +++ b/services/resources/mgmt/2019-05-01/resources/client.go @@ -41,7 +41,8 @@ func New(subscriptionID string) BaseClient { return NewWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewWithBaseURI creates an instance of the BaseClient client. +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return BaseClient{ Client: autorest.NewClientWithUserAgent(UserAgent()), diff --git a/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go b/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go index 0e21a0971e90..94f3c1de4b8c 100644 --- a/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go +++ b/services/resources/mgmt/2019-05-01/resources/deploymentoperations.go @@ -36,7 +36,9 @@ func NewDeploymentOperationsClient(subscriptionID string) DeploymentOperationsCl return NewDeploymentOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewDeploymentOperationsClientWithBaseURI creates an instance of the DeploymentOperationsClient client. +// NewDeploymentOperationsClientWithBaseURI creates an instance of the DeploymentOperationsClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). func NewDeploymentOperationsClientWithBaseURI(baseURI string, subscriptionID string) DeploymentOperationsClient { return DeploymentOperationsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/resources/mgmt/2019-05-01/resources/deployments.go b/services/resources/mgmt/2019-05-01/resources/deployments.go index 5046f3d6d829..0137bbacaf5c 100644 --- a/services/resources/mgmt/2019-05-01/resources/deployments.go +++ b/services/resources/mgmt/2019-05-01/resources/deployments.go @@ -36,7 +36,8 @@ func NewDeploymentsClient(subscriptionID string) DeploymentsClient { return NewDeploymentsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewDeploymentsClientWithBaseURI creates an instance of the DeploymentsClient client. +// NewDeploymentsClientWithBaseURI creates an instance of the DeploymentsClient client using a custom endpoint. Use +// this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewDeploymentsClientWithBaseURI(baseURI string, subscriptionID string) DeploymentsClient { return DeploymentsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/resources/mgmt/2019-05-01/resources/groups.go b/services/resources/mgmt/2019-05-01/resources/groups.go index 1ab3b4c26852..261ded458da8 100644 --- a/services/resources/mgmt/2019-05-01/resources/groups.go +++ b/services/resources/mgmt/2019-05-01/resources/groups.go @@ -36,7 +36,8 @@ func NewGroupsClient(subscriptionID string) GroupsClient { return NewGroupsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewGroupsClientWithBaseURI creates an instance of the GroupsClient client. +// NewGroupsClientWithBaseURI creates an instance of the GroupsClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewGroupsClientWithBaseURI(baseURI string, subscriptionID string) GroupsClient { return GroupsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/resources/mgmt/2019-05-01/resources/operations.go b/services/resources/mgmt/2019-05-01/resources/operations.go index 106f060776ff..36fd2b95f271 100644 --- a/services/resources/mgmt/2019-05-01/resources/operations.go +++ b/services/resources/mgmt/2019-05-01/resources/operations.go @@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient { return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/resources/mgmt/2019-05-01/resources/providers.go b/services/resources/mgmt/2019-05-01/resources/providers.go index a66c6a1209ca..b5c835c8f07b 100644 --- a/services/resources/mgmt/2019-05-01/resources/providers.go +++ b/services/resources/mgmt/2019-05-01/resources/providers.go @@ -35,7 +35,8 @@ func NewProvidersClient(subscriptionID string) ProvidersClient { return NewProvidersClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewProvidersClientWithBaseURI creates an instance of the ProvidersClient client. +// NewProvidersClientWithBaseURI creates an instance of the ProvidersClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewProvidersClientWithBaseURI(baseURI string, subscriptionID string) ProvidersClient { return ProvidersClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/resources/mgmt/2019-05-01/resources/resources.go b/services/resources/mgmt/2019-05-01/resources/resources.go index ad1e1dda2a55..a287bbf02dc9 100644 --- a/services/resources/mgmt/2019-05-01/resources/resources.go +++ b/services/resources/mgmt/2019-05-01/resources/resources.go @@ -36,7 +36,8 @@ func NewClient(subscriptionID string) Client { return NewClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewClientWithBaseURI creates an instance of the Client client. +// NewClientWithBaseURI creates an instance of the Client client using a custom endpoint. Use this when interacting +// with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewClientWithBaseURI(baseURI string, subscriptionID string) Client { return Client{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/resources/mgmt/2019-05-01/resources/resourcesapi/interfaces.go b/services/resources/mgmt/2019-05-01/resources/resourcesapi/interfaces.go index b38cca08d14f..7eafa95b8db7 100644 --- a/services/resources/mgmt/2019-05-01/resources/resourcesapi/interfaces.go +++ b/services/resources/mgmt/2019-05-01/resources/resourcesapi/interfaces.go @@ -26,6 +26,7 @@ import ( // OperationsClientAPI contains the set of methods on the OperationsClient type. type OperationsClientAPI interface { List(ctx context.Context) (result resources.OperationListResultPage, err error) + ListComplete(ctx context.Context) (result resources.OperationListResultIterator, err error) } var _ OperationsClientAPI = (*resources.OperationsClient)(nil) @@ -52,8 +53,11 @@ type DeploymentsClientAPI interface { GetAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string) (result resources.DeploymentExtended, err error) GetAtSubscriptionScope(ctx context.Context, deploymentName string) (result resources.DeploymentExtended, err error) ListAtManagementGroupScope(ctx context.Context, groupID string, filter string, top *int32) (result resources.DeploymentListResultPage, err error) + ListAtManagementGroupScopeComplete(ctx context.Context, groupID string, filter string, top *int32) (result resources.DeploymentListResultIterator, err error) ListAtSubscriptionScope(ctx context.Context, filter string, top *int32) (result resources.DeploymentListResultPage, err error) + ListAtSubscriptionScopeComplete(ctx context.Context, filter string, top *int32) (result resources.DeploymentListResultIterator, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, top *int32) (result resources.DeploymentListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, top *int32) (result resources.DeploymentListResultIterator, err error) Validate(ctx context.Context, resourceGroupName string, deploymentName string, parameters resources.Deployment) (result resources.DeploymentValidateResult, err error) ValidateAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string, parameters resources.Deployment) (result resources.DeploymentValidateResult, err error) ValidateAtSubscriptionScope(ctx context.Context, deploymentName string, parameters resources.Deployment) (result resources.DeploymentValidateResult, err error) @@ -65,6 +69,7 @@ var _ DeploymentsClientAPI = (*resources.DeploymentsClient)(nil) type ProvidersClientAPI interface { Get(ctx context.Context, resourceProviderNamespace string, expand string) (result resources.Provider, err error) List(ctx context.Context, top *int32, expand string) (result resources.ProviderListResultPage, err error) + ListComplete(ctx context.Context, top *int32, expand string) (result resources.ProviderListResultIterator, err error) Register(ctx context.Context, resourceProviderNamespace string) (result resources.Provider, err error) Unregister(ctx context.Context, resourceProviderNamespace string) (result resources.Provider, err error) } @@ -82,7 +87,9 @@ type ClientAPI interface { Get(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, APIVersion string) (result resources.GenericResource, err error) GetByID(ctx context.Context, resourceID string, APIVersion string) (result resources.GenericResource, err error) List(ctx context.Context, filter string, expand string, top *int32) (result resources.ListResultPage, err error) + ListComplete(ctx context.Context, filter string, expand string, top *int32) (result resources.ListResultIterator, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (result resources.ListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (result resources.ListResultIterator, err error) MoveResources(ctx context.Context, sourceResourceGroupName string, parameters resources.MoveInfo) (result resources.MoveResourcesFuture, err error) Update(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, APIVersion string, parameters resources.GenericResource) (result resources.UpdateFuture, err error) UpdateByID(ctx context.Context, resourceID string, APIVersion string, parameters resources.GenericResource) (result resources.UpdateByIDFuture, err error) @@ -99,6 +106,7 @@ type GroupsClientAPI interface { ExportTemplate(ctx context.Context, resourceGroupName string, parameters resources.ExportTemplateRequest) (result resources.GroupExportResult, err error) Get(ctx context.Context, resourceGroupName string) (result resources.Group, err error) List(ctx context.Context, filter string, top *int32) (result resources.GroupListResultPage, err error) + ListComplete(ctx context.Context, filter string, top *int32) (result resources.GroupListResultIterator, err error) Update(ctx context.Context, resourceGroupName string, parameters resources.GroupPatchable) (result resources.Group, err error) } @@ -111,6 +119,7 @@ type TagsClientAPI interface { Delete(ctx context.Context, tagName string) (result autorest.Response, err error) DeleteValue(ctx context.Context, tagName string, tagValue string) (result autorest.Response, err error) List(ctx context.Context) (result resources.TagsListResultPage, err error) + ListComplete(ctx context.Context) (result resources.TagsListResultIterator, err error) } var _ TagsClientAPI = (*resources.TagsClient)(nil) @@ -121,8 +130,11 @@ type DeploymentOperationsClientAPI interface { GetAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string, operationID string) (result resources.DeploymentOperation, err error) GetAtSubscriptionScope(ctx context.Context, deploymentName string, operationID string) (result resources.DeploymentOperation, err error) List(ctx context.Context, resourceGroupName string, deploymentName string, top *int32) (result resources.DeploymentOperationsListResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, deploymentName string, top *int32) (result resources.DeploymentOperationsListResultIterator, err error) ListAtManagementGroupScope(ctx context.Context, groupID string, deploymentName string, top *int32) (result resources.DeploymentOperationsListResultPage, err error) + ListAtManagementGroupScopeComplete(ctx context.Context, groupID string, deploymentName string, top *int32) (result resources.DeploymentOperationsListResultIterator, err error) ListAtSubscriptionScope(ctx context.Context, deploymentName string, top *int32) (result resources.DeploymentOperationsListResultPage, err error) + ListAtSubscriptionScopeComplete(ctx context.Context, deploymentName string, top *int32) (result resources.DeploymentOperationsListResultIterator, err error) } var _ DeploymentOperationsClientAPI = (*resources.DeploymentOperationsClient)(nil) diff --git a/services/resources/mgmt/2019-05-01/resources/tags.go b/services/resources/mgmt/2019-05-01/resources/tags.go index 41a085642d83..625e800a28f4 100644 --- a/services/resources/mgmt/2019-05-01/resources/tags.go +++ b/services/resources/mgmt/2019-05-01/resources/tags.go @@ -35,7 +35,8 @@ func NewTagsClient(subscriptionID string) TagsClient { return NewTagsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewTagsClientWithBaseURI creates an instance of the TagsClient client. +// NewTagsClientWithBaseURI creates an instance of the TagsClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewTagsClientWithBaseURI(baseURI string, subscriptionID string) TagsClient { return TagsClient{NewWithBaseURI(baseURI, subscriptionID)} }