From 22a8ac9c33892b7ffd90f89e84738f0ee836dba1 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 14 Nov 2018 07:53:40 -0800 Subject: [PATCH 1/2] [AutoPR apimanagement/resource-manager] Added missing PATCH operation to Api Issue resource (#3269) * Generated from 73c3ebb5e203fc53ce5cdb52d31170729775848f Added missing PATCH operation to Api Issue resource * Generated from dcb5eb7ef83a50275a7d92747baaad3a850286a4 Added missing PATCH operation to Api Issue resource * Generated from ccc27d4c2f7026867aa2bcf3e67b6359c3ec0f11 Added missing PATCH operation to Api Issue resource --- .../mgmt/apimanagement/models.go | 3 + .../mgmt/apimanagement/models.go | 3 + .../mgmt/2018-01-01/apimanagement/apiissue.go | 105 +++ .../mgmt/2018-01-01/apimanagement/models.go | 65 ++ .../mgmt/2018-01-01/apimanagement/api.go | 33 - .../2018-01-01/apimanagement/apidiagnostic.go | 28 - .../apimanagement/apidiagnosticlogger.go | 20 - .../2018-01-01/apimanagement/apiexport.go | 7 - .../mgmt/2018-01-01/apimanagement/apiissue.go | 130 ++- .../apimanagement/apiissueattachment.go | 24 - .../apimanagement/apiissuecomment.go | 24 - .../2018-01-01/apimanagement/apioperation.go | 28 - .../apimanagement/apioperationpolicy.go | 23 - .../2018-01-01/apimanagement/apipolicy.go | 23 - .../2018-01-01/apimanagement/apiproduct.go | 8 - .../2018-01-01/apimanagement/apirelease.go | 28 - .../2018-01-01/apimanagement/apirevisions.go | 8 - .../2018-01-01/apimanagement/apischema.go | 24 - .../2018-01-01/apimanagement/apiversionset.go | 28 - .../apimanagement/authorizationserver.go | 28 - .../mgmt/2018-01-01/apimanagement/backend.go | 32 - .../2018-01-01/apimanagement/certificate.go | 24 - .../mgmt/2018-01-01/apimanagement/client.go | 3 - .../apimanagement/delegationsettings.go | 19 - .../2018-01-01/apimanagement/diagnostic.go | 28 - .../apimanagement/diagnosticlogger.go | 20 - .../2018-01-01/apimanagement/emailtemplate.go | 28 - .../mgmt/2018-01-01/apimanagement/group.go | 28 - .../2018-01-01/apimanagement/groupuser.go | 20 - .../apimanagement/identityprovider.go | 28 - .../mgmt/2018-01-01/apimanagement/logger.go | 28 - .../mgmt/2018-01-01/apimanagement/models.go | 839 ------------------ .../2018-01-01/apimanagement/networkstatus.go | 11 - .../2018-01-01/apimanagement/notification.go | 16 - .../notificationrecipientemail.go | 19 - .../notificationrecipientuser.go | 19 - .../apimanagement/openidconnectprovider.go | 28 - .../2018-01-01/apimanagement/operation.go | 8 - .../2018-01-01/apimanagement/operations.go | 8 - .../mgmt/2018-01-01/apimanagement/policy.go | 23 - .../apimanagement/policysnippets.go | 7 - .../mgmt/2018-01-01/apimanagement/product.go | 28 - .../2018-01-01/apimanagement/productapi.go | 20 - .../2018-01-01/apimanagement/productgroup.go | 20 - .../2018-01-01/apimanagement/productpolicy.go | 23 - .../apimanagement/productsubscriptions.go | 8 - .../mgmt/2018-01-01/apimanagement/property.go | 28 - .../apimanagement/quotabycounterkeys.go | 11 - .../apimanagement/quotabyperiodkeys.go | 11 - .../mgmt/2018-01-01/apimanagement/regions.go | 8 - .../mgmt/2018-01-01/apimanagement/reports.go | 42 - .../mgmt/2018-01-01/apimanagement/service.go | 57 -- .../apimanagement/signinsettings.go | 19 - .../apimanagement/signupsettings.go | 19 - .../2018-01-01/apimanagement/subscription.go | 36 - .../mgmt/2018-01-01/apimanagement/tag.go | 91 -- .../apimanagement/tagdescription.go | 24 - .../2018-01-01/apimanagement/tagresource.go | 8 - .../2018-01-01/apimanagement/tenantaccess.go | 19 - .../apimanagement/tenantaccessgit.go | 15 - .../apimanagement/tenantconfiguration.go | 19 - .../mgmt/2018-01-01/apimanagement/user.go | 36 - .../2018-01-01/apimanagement/usergroup.go | 8 - .../apimanagement/useridentities.go | 8 - .../apimanagement/usersubscription.go | 8 - .../mgmt/2018-01-01/apimanagement/version.go | 3 +- .../apimanagement/apiissue.go | 105 +++ .../apimanagement/models.go | 65 ++ 68 files changed, 453 insertions(+), 2162 deletions(-) diff --git a/profiles/preview/apimanagement/mgmt/apimanagement/models.go b/profiles/preview/apimanagement/mgmt/apimanagement/models.go index 3b9fc46ba06f..9e7ac3191a34 100644 --- a/profiles/preview/apimanagement/mgmt/apimanagement/models.go +++ b/profiles/preview/apimanagement/mgmt/apimanagement/models.go @@ -466,7 +466,10 @@ type IssueCommentCollectionPage = original.IssueCommentCollectionPage type IssueCommentContract = original.IssueCommentContract type IssueCommentContractProperties = original.IssueCommentContractProperties type IssueContract = original.IssueContract +type IssueContractBaseProperties = original.IssueContractBaseProperties type IssueContractProperties = original.IssueContractProperties +type IssueUpdateContract = original.IssueUpdateContract +type IssueUpdateContractProperties = original.IssueUpdateContractProperties type ListNetworkStatusContractByLocation = original.ListNetworkStatusContractByLocation type LoggerCollection = original.LoggerCollection type LoggerCollectionIterator = original.LoggerCollectionIterator diff --git a/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go b/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go index b0f25fd82615..5014b9294990 100644 --- a/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go +++ b/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go @@ -478,7 +478,10 @@ type IssueCommentCollectionPage = original.IssueCommentCollectionPage type IssueCommentContract = original.IssueCommentContract type IssueCommentContractProperties = original.IssueCommentContractProperties type IssueContract = original.IssueContract +type IssueContractBaseProperties = original.IssueContractBaseProperties type IssueContractProperties = original.IssueContractProperties +type IssueUpdateContract = original.IssueUpdateContract +type IssueUpdateContractProperties = original.IssueUpdateContractProperties type ListNetworkStatusContractByLocation = original.ListNetworkStatusContractByLocation type LoggerCollection = original.LoggerCollection type LoggerCollectionIterator = original.LoggerCollectionIterator diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go index 4a8154dfffc0..a021791d3313 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go @@ -595,3 +595,108 @@ func (client APIIssueClient) ListByServiceComplete(ctx context.Context, resource result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) return } + +// Update updates an existing issue for an API. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the API Management service. +// apiid - API identifier. Must be unique in the current API Management service instance. +// issueID - issue identifier. Must be unique in the current API Management service instance. +// parameters - update parameters. +// ifMatch - eTag of the Issue Entity. ETag should match the current entity state from the header response of +// the GET request or it should be * for unconditional update. +func (client APIIssueClient) Update(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, parameters IssueUpdateContract, ifMatch string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueClient.Update") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: serviceName, + Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, + {TargetValue: apiid, + Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, + {TargetValue: issueID, + Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, + {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("apimanagement.APIIssueClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, apiid, issueID, parameters, ifMatch) + if err != nil { + err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", resp, "Failure responding to request") + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client APIIssueClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, parameters IssueUpdateContract, ifMatch string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "apiId": autorest.Encode("path", apiid), + "issueId": autorest.Encode("path", issueID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + if len(ifMatch) > 0 { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithHeader("If-Match", autorest.String(ifMatch))) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client APIIssueClient) UpdateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client APIIssueClient) UpdateResponder(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 + return +} diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go index 5a2c50ca6f87..d1b3cf87f0bb 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go @@ -5077,18 +5077,83 @@ func (ic *IssueContract) UnmarshalJSON(body []byte) error { return nil } +// IssueContractBaseProperties issue contract Base Properties. +type IssueContractBaseProperties struct { + // CreatedDate - Date and time when the issue was created. + CreatedDate *date.Time `json:"createdDate,omitempty"` + // State - Status of the issue. Possible values include: 'Proposed', 'Open', 'Removed', 'Resolved', 'Closed' + State State `json:"state,omitempty"` + // APIID - A resource identifier for the API the issue was created for. + APIID *string `json:"apiId,omitempty"` +} + // IssueContractProperties issue contract Properties. type IssueContractProperties struct { // Title - The issue title. Title *string `json:"title,omitempty"` // Description - Text describing the issue. Description *string `json:"description,omitempty"` + // UserID - A resource identifier for the user created the issue. + UserID *string `json:"userId,omitempty"` // CreatedDate - Date and time when the issue was created. CreatedDate *date.Time `json:"createdDate,omitempty"` // State - Status of the issue. Possible values include: 'Proposed', 'Open', 'Removed', 'Resolved', 'Closed' State State `json:"state,omitempty"` + // APIID - A resource identifier for the API the issue was created for. + APIID *string `json:"apiId,omitempty"` +} + +// IssueUpdateContract issue update Parameters. +type IssueUpdateContract struct { + // IssueUpdateContractProperties - Issue entity Update contract properties. + *IssueUpdateContractProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for IssueUpdateContract. +func (iuc IssueUpdateContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if iuc.IssueUpdateContractProperties != nil { + objectMap["properties"] = iuc.IssueUpdateContractProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IssueUpdateContract struct. +func (iuc *IssueUpdateContract) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var issueUpdateContractProperties IssueUpdateContractProperties + err = json.Unmarshal(*v, &issueUpdateContractProperties) + if err != nil { + return err + } + iuc.IssueUpdateContractProperties = &issueUpdateContractProperties + } + } + } + + return nil +} + +// IssueUpdateContractProperties issue contract Update Properties. +type IssueUpdateContractProperties struct { + // Title - The issue title. + Title *string `json:"title,omitempty"` + // Description - Text describing the issue. + Description *string `json:"description,omitempty"` // UserID - A resource identifier for the user created the issue. UserID *string `json:"userId,omitempty"` + // CreatedDate - Date and time when the issue was created. + CreatedDate *date.Time `json:"createdDate,omitempty"` + // State - Status of the issue. Possible values include: 'Proposed', 'Open', 'Removed', 'Resolved', 'Closed' + State State `json:"state,omitempty"` // APIID - A resource identifier for the API the issue was created for. APIID *string `json:"apiId,omitempty"` } diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/api.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/api.go index 8ac11d24342b..29f6710f910b 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/api.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/api.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIClient is the apiManagement Client type APIClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIClient creates an instance of the APIClient client. func NewAPIClient(subscriptionID string) APIClient { return NewAPIClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIClientWithBaseURI creates an instance of the APIClient client. func NewAPIClientWithBaseURI(baseURI string, subscriptionID string) APIClient { return APIClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates new or updates existing specified API of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -97,7 +93,6 @@ func (client APIClient) CreateOrUpdate(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client APIClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters APICreateOrUpdateParameter, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -126,7 +121,6 @@ func (client APIClient) CreateOrUpdatePreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client APIClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -134,7 +128,6 @@ func (client APIClient) CreateOrUpdateSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client APIClient) CreateOrUpdateResponder(resp *http.Response) (result APIContract, err error) { @@ -148,7 +141,6 @@ func (client APIClient) CreateOrUpdateResponder(resp *http.Response) (result API return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified API of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -202,7 +194,6 @@ func (client APIClient) Delete(ctx context.Context, resourceGroupName string, se return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APIClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, ifMatch string, deleteRevisions *bool) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -229,7 +220,6 @@ func (client APIClient) DeletePreparer(ctx context.Context, resourceGroupName st return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APIClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -237,7 +227,6 @@ func (client APIClient) DeleteSender(req *http.Request) (*http.Response, error) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APIClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -250,7 +239,6 @@ func (client APIClient) DeleteResponder(resp *http.Response) (result autorest.Re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -301,7 +289,6 @@ func (client APIClient) Get(ctx context.Context, resourceGroupName string, servi return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APIClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -324,7 +311,6 @@ func (client APIClient) GetPreparer(ctx context.Context, resourceGroupName strin return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APIClient) GetSender(req *http.Request) (*http.Response, error) { @@ -332,7 +318,6 @@ func (client APIClient) GetSender(req *http.Request) (*http.Response, error) { azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APIClient) GetResponder(resp *http.Response) (result APIContract, err error) { @@ -346,7 +331,6 @@ func (client APIClient) GetResponder(resp *http.Response) (result APIContract, e return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -397,7 +381,6 @@ func (client APIClient) GetEntityTag(ctx context.Context, resourceGroupName stri return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client APIClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -420,7 +403,6 @@ func (client APIClient) GetEntityTagPreparer(ctx context.Context, resourceGroupN return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client APIClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -428,7 +410,6 @@ func (client APIClient) GetEntityTagSender(req *http.Request) (*http.Response, e azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client APIClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -441,7 +422,6 @@ func (client APIClient) GetEntityTagResponder(resp *http.Response) (result autor return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all APIs of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -503,7 +483,6 @@ func (client APIClient) ListByService(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client APIClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32, expandAPIVersionSet *bool) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -539,7 +518,6 @@ func (client APIClient) ListByServicePreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client APIClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -547,7 +525,6 @@ func (client APIClient) ListByServiceSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client APIClient) ListByServiceResponder(resp *http.Response) (result APICollection, err error) { @@ -582,7 +559,6 @@ func (client APIClient) listByServiceNextResults(ctx context.Context, lastResult return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client APIClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32, expandAPIVersionSet *bool) (result APICollectionIterator, err error) { if tracing.IsEnabled() { @@ -599,7 +575,6 @@ func (client APIClient) ListByServiceComplete(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTags lists a collection of apis associated with tags. // Parameters: // resourceGroupName - the name of the resource group. @@ -663,7 +638,6 @@ func (client APIClient) ListByTags(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTagsPreparer prepares the ListByTags request. func (client APIClient) ListByTagsPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -694,7 +668,6 @@ func (client APIClient) ListByTagsPreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTagsSender sends the ListByTags request. The method will close the // http.Response Body if it receives an error. func (client APIClient) ListByTagsSender(req *http.Request) (*http.Response, error) { @@ -702,7 +675,6 @@ func (client APIClient) ListByTagsSender(req *http.Request) (*http.Response, err azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTagsResponder handles the response to the ListByTags request. The method always // closes the http.Response Body. func (client APIClient) ListByTagsResponder(resp *http.Response) (result TagResourceCollection, err error) { @@ -737,7 +709,6 @@ func (client APIClient) listByTagsNextResults(ctx context.Context, lastResults T return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTagsComplete enumerates all values, automatically crossing page boundaries as required. func (client APIClient) ListByTagsComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result TagResourceCollectionIterator, err error) { if tracing.IsEnabled() { @@ -754,7 +725,6 @@ func (client APIClient) ListByTagsComplete(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the specified API of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -808,7 +778,6 @@ func (client APIClient) Update(ctx context.Context, resourceGroupName string, se return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client APIClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters APIUpdateContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -834,7 +803,6 @@ func (client APIClient) UpdatePreparer(ctx context.Context, resourceGroupName st return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client APIClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -842,7 +810,6 @@ func (client APIClient) UpdateSender(req *http.Request) (*http.Response, error) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client APIClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnostic.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnostic.go index c1d822606c8c..ca85f39ce6cb 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnostic.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnostic.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIDiagnosticClient is the apiManagement Client type APIDiagnosticClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIDiagnosticClient creates an instance of the APIDiagnosticClient client. func NewAPIDiagnosticClient(subscriptionID string) APIDiagnosticClient { return NewAPIDiagnosticClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIDiagnosticClientWithBaseURI creates an instance of the APIDiagnosticClient client. func NewAPIDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticClient { return APIDiagnosticClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates a new Diagnostic for an API or updates an existing one. // Parameters: // resourceGroupName - the name of the resource group. @@ -104,7 +100,6 @@ func (client APIDiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client APIDiagnosticClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -134,7 +129,6 @@ func (client APIDiagnosticClient) CreateOrUpdatePreparer(ctx context.Context, re return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client APIDiagnosticClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -142,7 +136,6 @@ func (client APIDiagnosticClient) CreateOrUpdateSender(req *http.Request) (*http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client APIDiagnosticClient) CreateOrUpdateResponder(resp *http.Response) (result DiagnosticContract, err error) { @@ -156,7 +149,6 @@ func (client APIDiagnosticClient) CreateOrUpdateResponder(resp *http.Response) ( return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified Diagnostic from an API. // Parameters: // resourceGroupName - the name of the resource group. @@ -213,7 +205,6 @@ func (client APIDiagnosticClient) Delete(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APIDiagnosticClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -238,7 +229,6 @@ func (client APIDiagnosticClient) DeletePreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APIDiagnosticClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -246,7 +236,6 @@ func (client APIDiagnosticClient) DeleteSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APIDiagnosticClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -259,7 +248,6 @@ func (client APIDiagnosticClient) DeleteResponder(resp *http.Response) (result a return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the Diagnostic for an API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -314,7 +302,6 @@ func (client APIDiagnosticClient) Get(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APIDiagnosticClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -338,7 +325,6 @@ func (client APIDiagnosticClient) GetPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APIDiagnosticClient) GetSender(req *http.Request) (*http.Response, error) { @@ -346,7 +332,6 @@ func (client APIDiagnosticClient) GetSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APIDiagnosticClient) GetResponder(resp *http.Response) (result DiagnosticContract, err error) { @@ -360,7 +345,6 @@ func (client APIDiagnosticClient) GetResponder(resp *http.Response) (result Diag return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the Diagnostic for an API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -415,7 +399,6 @@ func (client APIDiagnosticClient) GetEntityTag(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client APIDiagnosticClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -439,7 +422,6 @@ func (client APIDiagnosticClient) GetEntityTagPreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client APIDiagnosticClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -447,7 +429,6 @@ func (client APIDiagnosticClient) GetEntityTagSender(req *http.Request) (*http.R azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client APIDiagnosticClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -460,7 +441,6 @@ func (client APIDiagnosticClient) GetEntityTagResponder(resp *http.Response) (re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all diagnostics of an API. // Parameters: // resourceGroupName - the name of the resource group. @@ -522,7 +502,6 @@ func (client APIDiagnosticClient) ListByService(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client APIDiagnosticClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -554,7 +533,6 @@ func (client APIDiagnosticClient) ListByServicePreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client APIDiagnosticClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -562,7 +540,6 @@ func (client APIDiagnosticClient) ListByServiceSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client APIDiagnosticClient) ListByServiceResponder(resp *http.Response) (result DiagnosticCollection, err error) { @@ -597,7 +574,6 @@ func (client APIDiagnosticClient) listByServiceNextResults(ctx context.Context, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client APIDiagnosticClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result DiagnosticCollectionIterator, err error) { if tracing.IsEnabled() { @@ -614,7 +590,6 @@ func (client APIDiagnosticClient) ListByServiceComplete(ctx context.Context, res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the details of the Diagnostic for an API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -672,7 +647,6 @@ func (client APIDiagnosticClient) Update(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client APIDiagnosticClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -699,7 +673,6 @@ func (client APIDiagnosticClient) UpdatePreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client APIDiagnosticClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -707,7 +680,6 @@ func (client APIDiagnosticClient) UpdateSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client APIDiagnosticClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnosticlogger.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnosticlogger.go index 0029484313e6..b2275d6a34d8 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnosticlogger.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apidiagnosticlogger.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIDiagnosticLoggerClient is the apiManagement Client type APIDiagnosticLoggerClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIDiagnosticLoggerClient creates an instance of the APIDiagnosticLoggerClient client. func NewAPIDiagnosticLoggerClient(subscriptionID string) APIDiagnosticLoggerClient { return NewAPIDiagnosticLoggerClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIDiagnosticLoggerClientWithBaseURI creates an instance of the APIDiagnosticLoggerClient client. func NewAPIDiagnosticLoggerClientWithBaseURI(baseURI string, subscriptionID string) APIDiagnosticLoggerClient { return APIDiagnosticLoggerClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExists checks that logger entity specified by identifier is associated with the diagnostics entity. // Parameters: // resourceGroupName - the name of the resource group. @@ -103,7 +99,6 @@ func (client APIDiagnosticLoggerClient) CheckEntityExists(ctx context.Context, r return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsPreparer prepares the CheckEntityExists request. func (client APIDiagnosticLoggerClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, loggerid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -128,7 +123,6 @@ func (client APIDiagnosticLoggerClient) CheckEntityExistsPreparer(ctx context.Co return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsSender sends the CheckEntityExists request. The method will close the // http.Response Body if it receives an error. func (client APIDiagnosticLoggerClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { @@ -136,7 +130,6 @@ func (client APIDiagnosticLoggerClient) CheckEntityExistsSender(req *http.Reques azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always // closes the http.Response Body. func (client APIDiagnosticLoggerClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { @@ -149,7 +142,6 @@ func (client APIDiagnosticLoggerClient) CheckEntityExistsResponder(resp *http.Re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate attaches a logger to a dignostic for an API. // Parameters: // resourceGroupName - the name of the resource group. @@ -208,7 +200,6 @@ func (client APIDiagnosticLoggerClient) CreateOrUpdate(ctx context.Context, reso return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client APIDiagnosticLoggerClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, loggerid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -233,7 +224,6 @@ func (client APIDiagnosticLoggerClient) CreateOrUpdatePreparer(ctx context.Conte return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client APIDiagnosticLoggerClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -241,7 +231,6 @@ func (client APIDiagnosticLoggerClient) CreateOrUpdateSender(req *http.Request) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client APIDiagnosticLoggerClient) CreateOrUpdateResponder(resp *http.Response) (result LoggerContract, err error) { @@ -255,7 +244,6 @@ func (client APIDiagnosticLoggerClient) CreateOrUpdateResponder(resp *http.Respo return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified Logger from Diagnostic for an API. // Parameters: // resourceGroupName - the name of the resource group. @@ -314,7 +302,6 @@ func (client APIDiagnosticLoggerClient) Delete(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APIDiagnosticLoggerClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, loggerid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -339,7 +326,6 @@ func (client APIDiagnosticLoggerClient) DeletePreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APIDiagnosticLoggerClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -347,7 +333,6 @@ func (client APIDiagnosticLoggerClient) DeleteSender(req *http.Request) (*http.R azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APIDiagnosticLoggerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -360,7 +345,6 @@ func (client APIDiagnosticLoggerClient) DeleteResponder(resp *http.Response) (re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all loggers assosiated with the specified Diagnostic of an API. // Parameters: // resourceGroupName - the name of the resource group. @@ -428,7 +412,6 @@ func (client APIDiagnosticLoggerClient) ListByService(ctx context.Context, resou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client APIDiagnosticLoggerClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -461,7 +444,6 @@ func (client APIDiagnosticLoggerClient) ListByServicePreparer(ctx context.Contex return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client APIDiagnosticLoggerClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -469,7 +451,6 @@ func (client APIDiagnosticLoggerClient) ListByServiceSender(req *http.Request) ( azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client APIDiagnosticLoggerClient) ListByServiceResponder(resp *http.Response) (result LoggerCollection, err error) { @@ -504,7 +485,6 @@ func (client APIDiagnosticLoggerClient) listByServiceNextResults(ctx context.Con return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client APIDiagnosticLoggerClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, diagnosticID string, filter string, top *int32, skip *int32) (result LoggerCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiexport.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiexport.go index 7644b01979f6..b00aa7225d10 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiexport.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiexport.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIExportClient is the apiManagement Client type APIExportClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIExportClient creates an instance of the APIExportClient client. func NewAPIExportClient(subscriptionID string) APIExportClient { return NewAPIExportClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIExportClientWithBaseURI creates an instance of the APIExportClient client. func NewAPIExportClientWithBaseURI(baseURI string, subscriptionID string) APIExportClient { return APIExportClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the API specified by its identifier in the format specified to the Storage Blob with SAS Key // valid for 5 minutes. // Parameters: @@ -98,7 +94,6 @@ func (client APIExportClient) Get(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APIExportClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, formatParameter ExportFormat) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -123,7 +118,6 @@ func (client APIExportClient) GetPreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APIExportClient) GetSender(req *http.Request) (*http.Response, error) { @@ -131,7 +125,6 @@ func (client APIExportClient) GetSender(req *http.Request) (*http.Response, erro azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APIExportClient) GetResponder(resp *http.Response) (result APIExportResult, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go index 82da0f4f8a80..dc7ffbe1e0b6 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissue.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIIssueClient is the apiManagement Client type APIIssueClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIIssueClient creates an instance of the APIIssueClient client. func NewAPIIssueClient(subscriptionID string) APIIssueClient { return NewAPIIssueClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIIssueClientWithBaseURI creates an instance of the APIIssueClient client. func NewAPIIssueClientWithBaseURI(baseURI string, subscriptionID string) APIIssueClient { return APIIssueClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates a new Issue for an API or updates an existing one. // Parameters: // resourceGroupName - the name of the resource group. @@ -108,7 +104,6 @@ func (client APIIssueClient) CreateOrUpdate(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client APIIssueClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, parameters IssueContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -138,7 +133,6 @@ func (client APIIssueClient) CreateOrUpdatePreparer(ctx context.Context, resourc return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client APIIssueClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -146,7 +140,6 @@ func (client APIIssueClient) CreateOrUpdateSender(req *http.Request) (*http.Resp azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client APIIssueClient) CreateOrUpdateResponder(resp *http.Response) (result IssueContract, err error) { @@ -160,7 +153,6 @@ func (client APIIssueClient) CreateOrUpdateResponder(resp *http.Response) (resul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified Issue from an API. // Parameters: // resourceGroupName - the name of the resource group. @@ -217,7 +209,6 @@ func (client APIIssueClient) Delete(ctx context.Context, resourceGroupName strin return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APIIssueClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -242,7 +233,6 @@ func (client APIIssueClient) DeletePreparer(ctx context.Context, resourceGroupNa return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APIIssueClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -250,7 +240,6 @@ func (client APIIssueClient) DeleteSender(req *http.Request) (*http.Response, er azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APIIssueClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -263,7 +252,6 @@ func (client APIIssueClient) DeleteResponder(resp *http.Response) (result autore return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the Issue for an API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -318,7 +306,6 @@ func (client APIIssueClient) Get(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APIIssueClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -342,7 +329,6 @@ func (client APIIssueClient) GetPreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APIIssueClient) GetSender(req *http.Request) (*http.Response, error) { @@ -350,7 +336,6 @@ func (client APIIssueClient) GetSender(req *http.Request) (*http.Response, error azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APIIssueClient) GetResponder(resp *http.Response) (result IssueContract, err error) { @@ -364,7 +349,6 @@ func (client APIIssueClient) GetResponder(resp *http.Response) (result IssueCont return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the Issue for an API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -419,7 +403,6 @@ func (client APIIssueClient) GetEntityTag(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client APIIssueClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -443,7 +426,6 @@ func (client APIIssueClient) GetEntityTagPreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client APIIssueClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -451,7 +433,6 @@ func (client APIIssueClient) GetEntityTagSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client APIIssueClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -464,7 +445,6 @@ func (client APIIssueClient) GetEntityTagResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all issues assosiated with the specified API. // Parameters: // resourceGroupName - the name of the resource group. @@ -528,7 +508,6 @@ func (client APIIssueClient) ListByService(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client APIIssueClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -560,7 +539,6 @@ func (client APIIssueClient) ListByServicePreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client APIIssueClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -568,7 +546,6 @@ func (client APIIssueClient) ListByServiceSender(req *http.Request) (*http.Respo azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client APIIssueClient) ListByServiceResponder(resp *http.Response) (result IssueCollection, err error) { @@ -603,7 +580,6 @@ func (client APIIssueClient) listByServiceNextResults(ctx context.Context, lastR return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client APIIssueClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result IssueCollectionIterator, err error) { if tracing.IsEnabled() { @@ -619,3 +595,109 @@ func (client APIIssueClient) ListByServiceComplete(ctx context.Context, resource result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) return } + +// Update updates an existing issue for an API. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the API Management service. +// apiid - API identifier. Must be unique in the current API Management service instance. +// issueID - issue identifier. Must be unique in the current API Management service instance. +// parameters - update parameters. +// ifMatch - eTag of the Issue Entity. ETag should match the current entity state from the header response of +// the GET request or it should be * for unconditional update. +func (client APIIssueClient) Update(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, parameters IssueContract, ifMatch string) (result IssueContract, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueClient.Update") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: serviceName, + Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, + {TargetValue: apiid, + Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, + {TargetValue: issueID, + Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, + {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("apimanagement.APIIssueClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, apiid, issueID, parameters, ifMatch) + if err != nil { + err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", resp, "Failure responding to request") + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client APIIssueClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, parameters IssueContract, ifMatch string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "apiId": autorest.Encode("path", apiid), + "issueId": autorest.Encode("path", issueID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + if len(ifMatch) > 0 { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithHeader("If-Match", autorest.String(ifMatch))) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client APIIssueClient) UpdateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client APIIssueClient) UpdateResponder(resp *http.Response) (result IssueContract, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissueattachment.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissueattachment.go index 270830205c74..e113e8042e88 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissueattachment.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissueattachment.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIIssueAttachmentClient is the apiManagement Client type APIIssueAttachmentClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIIssueAttachmentClient creates an instance of the APIIssueAttachmentClient client. func NewAPIIssueAttachmentClient(subscriptionID string) APIIssueAttachmentClient { return NewAPIIssueAttachmentClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIIssueAttachmentClientWithBaseURI creates an instance of the APIIssueAttachmentClient client. func NewAPIIssueAttachmentClientWithBaseURI(baseURI string, subscriptionID string) APIIssueAttachmentClient { return APIIssueAttachmentClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates a new Attachment for the Issue in an API or updates an existing one. // Parameters: // resourceGroupName - the name of the resource group. @@ -113,7 +109,6 @@ func (client APIIssueAttachmentClient) CreateOrUpdate(ctx context.Context, resou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client APIIssueAttachmentClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string, parameters IssueAttachmentContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -144,7 +139,6 @@ func (client APIIssueAttachmentClient) CreateOrUpdatePreparer(ctx context.Contex return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client APIIssueAttachmentClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -152,7 +146,6 @@ func (client APIIssueAttachmentClient) CreateOrUpdateSender(req *http.Request) ( azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client APIIssueAttachmentClient) CreateOrUpdateResponder(resp *http.Response) (result IssueAttachmentContract, err error) { @@ -166,7 +159,6 @@ func (client APIIssueAttachmentClient) CreateOrUpdateResponder(resp *http.Respon return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified comment from an Issue. // Parameters: // resourceGroupName - the name of the resource group. @@ -228,7 +220,6 @@ func (client APIIssueAttachmentClient) Delete(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APIIssueAttachmentClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -254,7 +245,6 @@ func (client APIIssueAttachmentClient) DeletePreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APIIssueAttachmentClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -262,7 +252,6 @@ func (client APIIssueAttachmentClient) DeleteSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APIIssueAttachmentClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -275,7 +264,6 @@ func (client APIIssueAttachmentClient) DeleteResponder(resp *http.Response) (res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the issue Attachment for an API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -335,7 +323,6 @@ func (client APIIssueAttachmentClient) Get(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APIIssueAttachmentClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -360,7 +347,6 @@ func (client APIIssueAttachmentClient) GetPreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APIIssueAttachmentClient) GetSender(req *http.Request) (*http.Response, error) { @@ -368,7 +354,6 @@ func (client APIIssueAttachmentClient) GetSender(req *http.Request) (*http.Respo azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APIIssueAttachmentClient) GetResponder(resp *http.Response) (result IssueAttachmentContract, err error) { @@ -382,7 +367,6 @@ func (client APIIssueAttachmentClient) GetResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the issue Attachment for an API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -442,7 +426,6 @@ func (client APIIssueAttachmentClient) GetEntityTag(ctx context.Context, resourc return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client APIIssueAttachmentClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, attachmentID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -467,7 +450,6 @@ func (client APIIssueAttachmentClient) GetEntityTagPreparer(ctx context.Context, return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client APIIssueAttachmentClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -475,7 +457,6 @@ func (client APIIssueAttachmentClient) GetEntityTagSender(req *http.Request) (*h azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client APIIssueAttachmentClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -488,7 +469,6 @@ func (client APIIssueAttachmentClient) GetEntityTagResponder(resp *http.Response return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all comments for the Issue assosiated with the specified API. // Parameters: // resourceGroupName - the name of the resource group. @@ -556,7 +536,6 @@ func (client APIIssueAttachmentClient) ListByService(ctx context.Context, resour return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client APIIssueAttachmentClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -589,7 +568,6 @@ func (client APIIssueAttachmentClient) ListByServicePreparer(ctx context.Context return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client APIIssueAttachmentClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -597,7 +575,6 @@ func (client APIIssueAttachmentClient) ListByServiceSender(req *http.Request) (* azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client APIIssueAttachmentClient) ListByServiceResponder(resp *http.Response) (result IssueAttachmentCollection, err error) { @@ -632,7 +609,6 @@ func (client APIIssueAttachmentClient) listByServiceNextResults(ctx context.Cont return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client APIIssueAttachmentClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, filter string, top *int32, skip *int32) (result IssueAttachmentCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissuecomment.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissuecomment.go index 65bc1d059fde..f843401e4333 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissuecomment.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiissuecomment.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIIssueCommentClient is the apiManagement Client type APIIssueCommentClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIIssueCommentClient creates an instance of the APIIssueCommentClient client. func NewAPIIssueCommentClient(subscriptionID string) APIIssueCommentClient { return NewAPIIssueCommentClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIIssueCommentClientWithBaseURI creates an instance of the APIIssueCommentClient client. func NewAPIIssueCommentClientWithBaseURI(baseURI string, subscriptionID string) APIIssueCommentClient { return APIIssueCommentClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates a new Comment for the Issue in an API or updates an existing one. // Parameters: // resourceGroupName - the name of the resource group. @@ -112,7 +108,6 @@ func (client APIIssueCommentClient) CreateOrUpdate(ctx context.Context, resource return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client APIIssueCommentClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string, parameters IssueCommentContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -143,7 +138,6 @@ func (client APIIssueCommentClient) CreateOrUpdatePreparer(ctx context.Context, return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client APIIssueCommentClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -151,7 +145,6 @@ func (client APIIssueCommentClient) CreateOrUpdateSender(req *http.Request) (*ht azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client APIIssueCommentClient) CreateOrUpdateResponder(resp *http.Response) (result IssueCommentContract, err error) { @@ -165,7 +158,6 @@ func (client APIIssueCommentClient) CreateOrUpdateResponder(resp *http.Response) return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified comment from an Issue. // Parameters: // resourceGroupName - the name of the resource group. @@ -227,7 +219,6 @@ func (client APIIssueCommentClient) Delete(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APIIssueCommentClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -253,7 +244,6 @@ func (client APIIssueCommentClient) DeletePreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APIIssueCommentClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -261,7 +251,6 @@ func (client APIIssueCommentClient) DeleteSender(req *http.Request) (*http.Respo azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APIIssueCommentClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -274,7 +263,6 @@ func (client APIIssueCommentClient) DeleteResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the issue Comment for an API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -334,7 +322,6 @@ func (client APIIssueCommentClient) Get(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APIIssueCommentClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -359,7 +346,6 @@ func (client APIIssueCommentClient) GetPreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APIIssueCommentClient) GetSender(req *http.Request) (*http.Response, error) { @@ -367,7 +353,6 @@ func (client APIIssueCommentClient) GetSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APIIssueCommentClient) GetResponder(resp *http.Response) (result IssueCommentContract, err error) { @@ -381,7 +366,6 @@ func (client APIIssueCommentClient) GetResponder(resp *http.Response) (result Is return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the issue Comment for an API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -441,7 +425,6 @@ func (client APIIssueCommentClient) GetEntityTag(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client APIIssueCommentClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, commentID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -466,7 +449,6 @@ func (client APIIssueCommentClient) GetEntityTagPreparer(ctx context.Context, re return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client APIIssueCommentClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -474,7 +456,6 @@ func (client APIIssueCommentClient) GetEntityTagSender(req *http.Request) (*http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client APIIssueCommentClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -487,7 +468,6 @@ func (client APIIssueCommentClient) GetEntityTagResponder(resp *http.Response) ( return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all comments for the Issue assosiated with the specified API. // Parameters: // resourceGroupName - the name of the resource group. @@ -555,7 +535,6 @@ func (client APIIssueCommentClient) ListByService(ctx context.Context, resourceG return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client APIIssueCommentClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -588,7 +567,6 @@ func (client APIIssueCommentClient) ListByServicePreparer(ctx context.Context, r return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client APIIssueCommentClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -596,7 +574,6 @@ func (client APIIssueCommentClient) ListByServiceSender(req *http.Request) (*htt azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client APIIssueCommentClient) ListByServiceResponder(resp *http.Response) (result IssueCommentCollection, err error) { @@ -631,7 +608,6 @@ func (client APIIssueCommentClient) listByServiceNextResults(ctx context.Context return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client APIIssueCommentClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, filter string, top *int32, skip *int32) (result IssueCommentCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperation.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperation.go index c5bd4312e47f..00a0255a5a43 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperation.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperation.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIOperationClient is the apiManagement Client type APIOperationClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIOperationClient creates an instance of the APIOperationClient client. func NewAPIOperationClient(subscriptionID string) APIOperationClient { return NewAPIOperationClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIOperationClientWithBaseURI creates an instance of the APIOperationClient client. func NewAPIOperationClientWithBaseURI(baseURI string, subscriptionID string) APIOperationClient { return APIOperationClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates a new operation in the API or updates an existing one. // Parameters: // resourceGroupName - the name of the resource group. @@ -115,7 +111,6 @@ func (client APIOperationClient) CreateOrUpdate(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client APIOperationClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters OperationContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -145,7 +140,6 @@ func (client APIOperationClient) CreateOrUpdatePreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client APIOperationClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -153,7 +147,6 @@ func (client APIOperationClient) CreateOrUpdateSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client APIOperationClient) CreateOrUpdateResponder(resp *http.Response) (result OperationContract, err error) { @@ -167,7 +160,6 @@ func (client APIOperationClient) CreateOrUpdateResponder(resp *http.Response) (r return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified operation in the API. // Parameters: // resourceGroupName - the name of the resource group. @@ -226,7 +218,6 @@ func (client APIOperationClient) Delete(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APIOperationClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -251,7 +242,6 @@ func (client APIOperationClient) DeletePreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APIOperationClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -259,7 +249,6 @@ func (client APIOperationClient) DeleteSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APIOperationClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -272,7 +261,6 @@ func (client APIOperationClient) DeleteResponder(resp *http.Response) (result au return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the API Operation specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -329,7 +317,6 @@ func (client APIOperationClient) Get(ctx context.Context, resourceGroupName stri return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APIOperationClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -353,7 +340,6 @@ func (client APIOperationClient) GetPreparer(ctx context.Context, resourceGroupN return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APIOperationClient) GetSender(req *http.Request) (*http.Response, error) { @@ -361,7 +347,6 @@ func (client APIOperationClient) GetSender(req *http.Request) (*http.Response, e azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APIOperationClient) GetResponder(resp *http.Response) (result OperationContract, err error) { @@ -375,7 +360,6 @@ func (client APIOperationClient) GetResponder(resp *http.Response) (result Opera return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the API operation specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -432,7 +416,6 @@ func (client APIOperationClient) GetEntityTag(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client APIOperationClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -456,7 +439,6 @@ func (client APIOperationClient) GetEntityTagPreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client APIOperationClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -464,7 +446,6 @@ func (client APIOperationClient) GetEntityTagSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client APIOperationClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -477,7 +458,6 @@ func (client APIOperationClient) GetEntityTagResponder(resp *http.Response) (res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPI lists a collection of the operations for the specified API. // Parameters: // resourceGroupName - the name of the resource group. @@ -543,7 +523,6 @@ func (client APIOperationClient) ListByAPI(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIPreparer prepares the ListByAPI request. func (client APIOperationClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -575,7 +554,6 @@ func (client APIOperationClient) ListByAPIPreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPISender sends the ListByAPI request. The method will close the // http.Response Body if it receives an error. func (client APIOperationClient) ListByAPISender(req *http.Request) (*http.Response, error) { @@ -583,7 +561,6 @@ func (client APIOperationClient) ListByAPISender(req *http.Request) (*http.Respo azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIResponder handles the response to the ListByAPI request. The method always // closes the http.Response Body. func (client APIOperationClient) ListByAPIResponder(resp *http.Response) (result OperationCollection, err error) { @@ -618,7 +595,6 @@ func (client APIOperationClient) listByAPINextResults(ctx context.Context, lastR return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIComplete enumerates all values, automatically crossing page boundaries as required. func (client APIOperationClient) ListByAPIComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result OperationCollectionIterator, err error) { if tracing.IsEnabled() { @@ -635,7 +611,6 @@ func (client APIOperationClient) ListByAPIComplete(ctx context.Context, resource return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the details of the operation in the API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -695,7 +670,6 @@ func (client APIOperationClient) Update(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client APIOperationClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters OperationUpdateContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -722,7 +696,6 @@ func (client APIOperationClient) UpdatePreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client APIOperationClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -730,7 +703,6 @@ func (client APIOperationClient) UpdateSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client APIOperationClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperationpolicy.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperationpolicy.go index aeeb3f0abf44..e95f0a6df844 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperationpolicy.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apioperationpolicy.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIOperationPolicyClient is the apiManagement Client type APIOperationPolicyClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIOperationPolicyClient creates an instance of the APIOperationPolicyClient client. func NewAPIOperationPolicyClient(subscriptionID string) APIOperationPolicyClient { return NewAPIOperationPolicyClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIOperationPolicyClientWithBaseURI creates an instance of the APIOperationPolicyClient client. func NewAPIOperationPolicyClientWithBaseURI(baseURI string, subscriptionID string) APIOperationPolicyClient { return APIOperationPolicyClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or updates policy configuration for the API Operation level. // Parameters: // resourceGroupName - the name of the resource group. @@ -106,7 +102,6 @@ func (client APIOperationPolicyClient) CreateOrUpdate(ctx context.Context, resou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client APIOperationPolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, parameters PolicyContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -137,7 +132,6 @@ func (client APIOperationPolicyClient) CreateOrUpdatePreparer(ctx context.Contex return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client APIOperationPolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -145,7 +139,6 @@ func (client APIOperationPolicyClient) CreateOrUpdateSender(req *http.Request) ( azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client APIOperationPolicyClient) CreateOrUpdateResponder(resp *http.Response) (result PolicyContract, err error) { @@ -159,7 +152,6 @@ func (client APIOperationPolicyClient) CreateOrUpdateResponder(resp *http.Respon return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the policy configuration at the Api Operation. // Parameters: // resourceGroupName - the name of the resource group. @@ -218,7 +210,6 @@ func (client APIOperationPolicyClient) Delete(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APIOperationPolicyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -244,7 +235,6 @@ func (client APIOperationPolicyClient) DeletePreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APIOperationPolicyClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -252,7 +242,6 @@ func (client APIOperationPolicyClient) DeleteSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APIOperationPolicyClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -265,7 +254,6 @@ func (client APIOperationPolicyClient) DeleteResponder(resp *http.Response) (res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get get the policy configuration at the API Operation level. // Parameters: // resourceGroupName - the name of the resource group. @@ -322,7 +310,6 @@ func (client APIOperationPolicyClient) Get(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APIOperationPolicyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -347,7 +334,6 @@ func (client APIOperationPolicyClient) GetPreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APIOperationPolicyClient) GetSender(req *http.Request) (*http.Response, error) { @@ -355,7 +341,6 @@ func (client APIOperationPolicyClient) GetSender(req *http.Request) (*http.Respo azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APIOperationPolicyClient) GetResponder(resp *http.Response) (result PolicyContract, err error) { @@ -369,7 +354,6 @@ func (client APIOperationPolicyClient) GetResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the API operation policy specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -426,7 +410,6 @@ func (client APIOperationPolicyClient) GetEntityTag(ctx context.Context, resourc return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client APIOperationPolicyClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -451,7 +434,6 @@ func (client APIOperationPolicyClient) GetEntityTagPreparer(ctx context.Context, return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client APIOperationPolicyClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -459,7 +441,6 @@ func (client APIOperationPolicyClient) GetEntityTagSender(req *http.Request) (*h azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client APIOperationPolicyClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -472,7 +453,6 @@ func (client APIOperationPolicyClient) GetEntityTagResponder(resp *http.Response return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperation get the list of policy configuration at the API Operation level. // Parameters: // resourceGroupName - the name of the resource group. @@ -529,7 +509,6 @@ func (client APIOperationPolicyClient) ListByOperation(ctx context.Context, reso return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperationPreparer prepares the ListByOperation request. func (client APIOperationPolicyClient) ListByOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -553,7 +532,6 @@ func (client APIOperationPolicyClient) ListByOperationPreparer(ctx context.Conte return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperationSender sends the ListByOperation request. The method will close the // http.Response Body if it receives an error. func (client APIOperationPolicyClient) ListByOperationSender(req *http.Request) (*http.Response, error) { @@ -561,7 +539,6 @@ func (client APIOperationPolicyClient) ListByOperationSender(req *http.Request) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperationResponder handles the response to the ListByOperation request. The method always // closes the http.Response Body. func (client APIOperationPolicyClient) ListByOperationResponder(resp *http.Response) (result PolicyCollection, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apipolicy.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apipolicy.go index 0b13ab2aeafc..faf5b212c3b7 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apipolicy.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apipolicy.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIPolicyClient is the apiManagement Client type APIPolicyClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIPolicyClient creates an instance of the APIPolicyClient client. func NewAPIPolicyClient(subscriptionID string) APIPolicyClient { return NewAPIPolicyClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIPolicyClientWithBaseURI creates an instance of the APIPolicyClient client. func NewAPIPolicyClientWithBaseURI(baseURI string, subscriptionID string) APIPolicyClient { return APIPolicyClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or updates policy configuration for the API. // Parameters: // resourceGroupName - the name of the resource group. @@ -100,7 +96,6 @@ func (client APIPolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupN return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client APIPolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, parameters PolicyContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -130,7 +125,6 @@ func (client APIPolicyClient) CreateOrUpdatePreparer(ctx context.Context, resour return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client APIPolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -138,7 +132,6 @@ func (client APIPolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Res azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client APIPolicyClient) CreateOrUpdateResponder(resp *http.Response) (result PolicyContract, err error) { @@ -152,7 +145,6 @@ func (client APIPolicyClient) CreateOrUpdateResponder(resp *http.Response) (resu return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the policy configuration at the Api. // Parameters: // resourceGroupName - the name of the resource group. @@ -205,7 +197,6 @@ func (client APIPolicyClient) Delete(ctx context.Context, resourceGroupName stri return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APIPolicyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -230,7 +221,6 @@ func (client APIPolicyClient) DeletePreparer(ctx context.Context, resourceGroupN return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APIPolicyClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -238,7 +228,6 @@ func (client APIPolicyClient) DeleteSender(req *http.Request) (*http.Response, e azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APIPolicyClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -251,7 +240,6 @@ func (client APIPolicyClient) DeleteResponder(resp *http.Response) (result autor return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get get the policy configuration at the API level. // Parameters: // resourceGroupName - the name of the resource group. @@ -302,7 +290,6 @@ func (client APIPolicyClient) Get(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APIPolicyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -326,7 +313,6 @@ func (client APIPolicyClient) GetPreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APIPolicyClient) GetSender(req *http.Request) (*http.Response, error) { @@ -334,7 +320,6 @@ func (client APIPolicyClient) GetSender(req *http.Request) (*http.Response, erro azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APIPolicyClient) GetResponder(resp *http.Response) (result PolicyContract, err error) { @@ -348,7 +333,6 @@ func (client APIPolicyClient) GetResponder(resp *http.Response) (result PolicyCo return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the API policy specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -399,7 +383,6 @@ func (client APIPolicyClient) GetEntityTag(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client APIPolicyClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -423,7 +406,6 @@ func (client APIPolicyClient) GetEntityTagPreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client APIPolicyClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -431,7 +413,6 @@ func (client APIPolicyClient) GetEntityTagSender(req *http.Request) (*http.Respo azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client APIPolicyClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -444,7 +425,6 @@ func (client APIPolicyClient) GetEntityTagResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPI get the policy configuration at the API level. // Parameters: // resourceGroupName - the name of the resource group. @@ -495,7 +475,6 @@ func (client APIPolicyClient) ListByAPI(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIPreparer prepares the ListByAPI request. func (client APIPolicyClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -518,7 +497,6 @@ func (client APIPolicyClient) ListByAPIPreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPISender sends the ListByAPI request. The method will close the // http.Response Body if it receives an error. func (client APIPolicyClient) ListByAPISender(req *http.Request) (*http.Response, error) { @@ -526,7 +504,6 @@ func (client APIPolicyClient) ListByAPISender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIResponder handles the response to the ListByAPI request. The method always // closes the http.Response Body. func (client APIPolicyClient) ListByAPIResponder(resp *http.Response) (result PolicyCollection, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiproduct.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiproduct.go index e300a407b1a7..ce0ec03a39fb 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiproduct.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiproduct.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIProductClient is the apiManagement Client type APIProductClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIProductClient creates an instance of the APIProductClient client. func NewAPIProductClient(subscriptionID string) APIProductClient { return NewAPIProductClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIProductClientWithBaseURI creates an instance of the APIProductClient client. func NewAPIProductClientWithBaseURI(baseURI string, subscriptionID string) APIProductClient { return APIProductClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByApis lists all Products, which the API is part of. // Parameters: // resourceGroupName - the name of the resource group. @@ -106,7 +102,6 @@ func (client APIProductClient) ListByApis(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByApisPreparer prepares the ListByApis request. func (client APIProductClient) ListByApisPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -138,7 +133,6 @@ func (client APIProductClient) ListByApisPreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByApisSender sends the ListByApis request. The method will close the // http.Response Body if it receives an error. func (client APIProductClient) ListByApisSender(req *http.Request) (*http.Response, error) { @@ -146,7 +140,6 @@ func (client APIProductClient) ListByApisSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByApisResponder handles the response to the ListByApis request. The method always // closes the http.Response Body. func (client APIProductClient) ListByApisResponder(resp *http.Response) (result ProductCollection, err error) { @@ -181,7 +174,6 @@ func (client APIProductClient) listByApisNextResults(ctx context.Context, lastRe return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByApisComplete enumerates all values, automatically crossing page boundaries as required. func (client APIProductClient) ListByApisComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result ProductCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirelease.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirelease.go index 006c4e586639..f8404eea5427 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirelease.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirelease.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIReleaseClient is the apiManagement Client type APIReleaseClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIReleaseClient creates an instance of the APIReleaseClient client. func NewAPIReleaseClient(subscriptionID string) APIReleaseClient { return NewAPIReleaseClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIReleaseClientWithBaseURI creates an instance of the APIReleaseClient client. func NewAPIReleaseClientWithBaseURI(baseURI string, subscriptionID string) APIReleaseClient { return APIReleaseClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Create creates a new Release for the API. // Parameters: // resourceGroupName - the name of the resource group. @@ -100,7 +96,6 @@ func (client APIReleaseClient) Create(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreatePreparer prepares the Create request. func (client APIReleaseClient) CreatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string, parameters APIReleaseContract) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -126,7 +121,6 @@ func (client APIReleaseClient) CreatePreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateSender sends the Create request. The method will close the // http.Response Body if it receives an error. func (client APIReleaseClient) CreateSender(req *http.Request) (*http.Response, error) { @@ -134,7 +128,6 @@ func (client APIReleaseClient) CreateSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateResponder handles the response to the Create request. The method always // closes the http.Response Body. func (client APIReleaseClient) CreateResponder(resp *http.Response) (result APIReleaseContract, err error) { @@ -148,7 +141,6 @@ func (client APIReleaseClient) CreateResponder(resp *http.Response) (result APIR return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified release in the API. // Parameters: // resourceGroupName - the name of the resource group. @@ -205,7 +197,6 @@ func (client APIReleaseClient) Delete(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APIReleaseClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -230,7 +221,6 @@ func (client APIReleaseClient) DeletePreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APIReleaseClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -238,7 +228,6 @@ func (client APIReleaseClient) DeleteSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APIReleaseClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -251,7 +240,6 @@ func (client APIReleaseClient) DeleteResponder(resp *http.Response) (result auto return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get returns the details of an API release. // Parameters: // resourceGroupName - the name of the resource group. @@ -306,7 +294,6 @@ func (client APIReleaseClient) Get(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APIReleaseClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -330,7 +317,6 @@ func (client APIReleaseClient) GetPreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APIReleaseClient) GetSender(req *http.Request) (*http.Response, error) { @@ -338,7 +324,6 @@ func (client APIReleaseClient) GetSender(req *http.Request) (*http.Response, err azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APIReleaseClient) GetResponder(resp *http.Response) (result APIReleaseContract, err error) { @@ -352,7 +337,6 @@ func (client APIReleaseClient) GetResponder(resp *http.Response) (result APIRele return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag returns the etag of an API release. // Parameters: // resourceGroupName - the name of the resource group. @@ -407,7 +391,6 @@ func (client APIReleaseClient) GetEntityTag(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client APIReleaseClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -431,7 +414,6 @@ func (client APIReleaseClient) GetEntityTagPreparer(ctx context.Context, resourc return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client APIReleaseClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -439,7 +421,6 @@ func (client APIReleaseClient) GetEntityTagSender(req *http.Request) (*http.Resp azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client APIReleaseClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -452,7 +433,6 @@ func (client APIReleaseClient) GetEntityTagResponder(resp *http.Response) (resul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // List lists all releases of an API. An API release is created when making an API Revision current. Releases are also // used to rollback to previous revisions. Results will be paged and can be constrained by the $top and $skip // parameters. @@ -517,7 +497,6 @@ func (client APIReleaseClient) List(ctx context.Context, resourceGroupName strin return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListPreparer prepares the List request. func (client APIReleaseClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -549,7 +528,6 @@ func (client APIReleaseClient) ListPreparer(ctx context.Context, resourceGroupNa return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client APIReleaseClient) ListSender(req *http.Request) (*http.Response, error) { @@ -557,7 +535,6 @@ func (client APIReleaseClient) ListSender(req *http.Request) (*http.Response, er azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListResponder handles the response to the List request. The method always // closes the http.Response Body. func (client APIReleaseClient) ListResponder(resp *http.Response) (result APIReleaseCollection, err error) { @@ -592,7 +569,6 @@ func (client APIReleaseClient) listNextResults(ctx context.Context, lastResults return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListComplete enumerates all values, automatically crossing page boundaries as required. func (client APIReleaseClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result APIReleaseCollectionIterator, err error) { if tracing.IsEnabled() { @@ -609,7 +585,6 @@ func (client APIReleaseClient) ListComplete(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the details of the release of the API specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -667,7 +642,6 @@ func (client APIReleaseClient) Update(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client APIReleaseClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, releaseID string, parameters APIReleaseContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -694,7 +668,6 @@ func (client APIReleaseClient) UpdatePreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client APIReleaseClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -702,7 +675,6 @@ func (client APIReleaseClient) UpdateSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client APIReleaseClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirevisions.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirevisions.go index ed4e6bdba6ec..3fd8552511f5 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirevisions.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apirevisions.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIRevisionsClient is the apiManagement Client type APIRevisionsClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIRevisionsClient creates an instance of the APIRevisionsClient client. func NewAPIRevisionsClient(subscriptionID string) APIRevisionsClient { return NewAPIRevisionsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIRevisionsClientWithBaseURI creates an instance of the APIRevisionsClient client. func NewAPIRevisionsClientWithBaseURI(baseURI string, subscriptionID string) APIRevisionsClient { return APIRevisionsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // List lists all revisions of an API. // Parameters: // resourceGroupName - the name of the resource group. @@ -107,7 +103,6 @@ func (client APIRevisionsClient) List(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListPreparer prepares the List request. func (client APIRevisionsClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -139,7 +134,6 @@ func (client APIRevisionsClient) ListPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client APIRevisionsClient) ListSender(req *http.Request) (*http.Response, error) { @@ -147,7 +141,6 @@ func (client APIRevisionsClient) ListSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListResponder handles the response to the List request. The method always // closes the http.Response Body. func (client APIRevisionsClient) ListResponder(resp *http.Response) (result APIRevisionCollection, err error) { @@ -182,7 +175,6 @@ func (client APIRevisionsClient) listNextResults(ctx context.Context, lastResult return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListComplete enumerates all values, automatically crossing page boundaries as required. func (client APIRevisionsClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result APIRevisionCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apischema.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apischema.go index 5f7856dda54b..dc26569e541f 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apischema.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apischema.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APISchemaClient is the apiManagement Client type APISchemaClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPISchemaClient creates an instance of the APISchemaClient client. func NewAPISchemaClient(subscriptionID string) APISchemaClient { return NewAPISchemaClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPISchemaClientWithBaseURI creates an instance of the APISchemaClient client. func NewAPISchemaClientWithBaseURI(baseURI string, subscriptionID string) APISchemaClient { return APISchemaClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or updates schema configuration for the API. // Parameters: // resourceGroupName - the name of the resource group. @@ -105,7 +101,6 @@ func (client APISchemaClient) CreateOrUpdate(ctx context.Context, resourceGroupN return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client APISchemaClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string, parameters SchemaContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -135,7 +130,6 @@ func (client APISchemaClient) CreateOrUpdatePreparer(ctx context.Context, resour return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client APISchemaClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -143,7 +137,6 @@ func (client APISchemaClient) CreateOrUpdateSender(req *http.Request) (*http.Res azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client APISchemaClient) CreateOrUpdateResponder(resp *http.Response) (result SchemaContract, err error) { @@ -157,7 +150,6 @@ func (client APISchemaClient) CreateOrUpdateResponder(resp *http.Response) (resu return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the schema configuration at the Api. // Parameters: // resourceGroupName - the name of the resource group. @@ -215,7 +207,6 @@ func (client APISchemaClient) Delete(ctx context.Context, resourceGroupName stri return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APISchemaClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -240,7 +231,6 @@ func (client APISchemaClient) DeletePreparer(ctx context.Context, resourceGroupN return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APISchemaClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -248,7 +238,6 @@ func (client APISchemaClient) DeleteSender(req *http.Request) (*http.Response, e azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APISchemaClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -261,7 +250,6 @@ func (client APISchemaClient) DeleteResponder(resp *http.Response) (result autor return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get get the schema configuration at the API level. // Parameters: // resourceGroupName - the name of the resource group. @@ -317,7 +305,6 @@ func (client APISchemaClient) Get(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APISchemaClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -341,7 +328,6 @@ func (client APISchemaClient) GetPreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APISchemaClient) GetSender(req *http.Request) (*http.Response, error) { @@ -349,7 +335,6 @@ func (client APISchemaClient) GetSender(req *http.Request) (*http.Response, erro azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APISchemaClient) GetResponder(resp *http.Response) (result SchemaContract, err error) { @@ -363,7 +348,6 @@ func (client APISchemaClient) GetResponder(resp *http.Response) (result SchemaCo return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the schema specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -419,7 +403,6 @@ func (client APISchemaClient) GetEntityTag(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client APISchemaClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, schemaID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -443,7 +426,6 @@ func (client APISchemaClient) GetEntityTagPreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client APISchemaClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -451,7 +433,6 @@ func (client APISchemaClient) GetEntityTagSender(req *http.Request) (*http.Respo azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client APISchemaClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -464,7 +445,6 @@ func (client APISchemaClient) GetEntityTagResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPI get the schema configuration at the API level. // Parameters: // resourceGroupName - the name of the resource group. @@ -516,7 +496,6 @@ func (client APISchemaClient) ListByAPI(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIPreparer prepares the ListByAPI request. func (client APISchemaClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -539,7 +518,6 @@ func (client APISchemaClient) ListByAPIPreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPISender sends the ListByAPI request. The method will close the // http.Response Body if it receives an error. func (client APISchemaClient) ListByAPISender(req *http.Request) (*http.Response, error) { @@ -547,7 +525,6 @@ func (client APISchemaClient) ListByAPISender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIResponder handles the response to the ListByAPI request. The method always // closes the http.Response Body. func (client APISchemaClient) ListByAPIResponder(resp *http.Response) (result SchemaCollection, err error) { @@ -582,7 +559,6 @@ func (client APISchemaClient) listByAPINextResults(ctx context.Context, lastResu return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIComplete enumerates all values, automatically crossing page boundaries as required. func (client APISchemaClient) ListByAPIComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string) (result SchemaCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiversionset.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiversionset.go index 98d1b438c13e..3e96eff6c9a4 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiversionset.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/apiversionset.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIVersionSetClient is the apiManagement Client type APIVersionSetClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIVersionSetClient creates an instance of the APIVersionSetClient client. func NewAPIVersionSetClient(subscriptionID string) APIVersionSetClient { return NewAPIVersionSetClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAPIVersionSetClientWithBaseURI creates an instance of the APIVersionSetClient client. func NewAPIVersionSetClientWithBaseURI(baseURI string, subscriptionID string) APIVersionSetClient { return APIVersionSetClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or Updates a Api Version Set. // Parameters: // resourceGroupName - the name of the resource group. @@ -103,7 +99,6 @@ func (client APIVersionSetClient) CreateOrUpdate(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client APIVersionSetClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string, parameters APIVersionSetContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -132,7 +127,6 @@ func (client APIVersionSetClient) CreateOrUpdatePreparer(ctx context.Context, re return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client APIVersionSetClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -140,7 +134,6 @@ func (client APIVersionSetClient) CreateOrUpdateSender(req *http.Request) (*http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client APIVersionSetClient) CreateOrUpdateResponder(resp *http.Response) (result APIVersionSetContract, err error) { @@ -154,7 +147,6 @@ func (client APIVersionSetClient) CreateOrUpdateResponder(resp *http.Response) ( return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes specific Api Version Set. // Parameters: // resourceGroupName - the name of the resource group. @@ -206,7 +198,6 @@ func (client APIVersionSetClient) Delete(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client APIVersionSetClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -230,7 +221,6 @@ func (client APIVersionSetClient) DeletePreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client APIVersionSetClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -238,7 +228,6 @@ func (client APIVersionSetClient) DeleteSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client APIVersionSetClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -251,7 +240,6 @@ func (client APIVersionSetClient) DeleteResponder(resp *http.Response) (result a return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the Api Version Set specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -301,7 +289,6 @@ func (client APIVersionSetClient) Get(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client APIVersionSetClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -324,7 +311,6 @@ func (client APIVersionSetClient) GetPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client APIVersionSetClient) GetSender(req *http.Request) (*http.Response, error) { @@ -332,7 +318,6 @@ func (client APIVersionSetClient) GetSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client APIVersionSetClient) GetResponder(resp *http.Response) (result APIVersionSetContract, err error) { @@ -346,7 +331,6 @@ func (client APIVersionSetClient) GetResponder(resp *http.Response) (result APIV return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the Api Version Set specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -396,7 +380,6 @@ func (client APIVersionSetClient) GetEntityTag(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client APIVersionSetClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -419,7 +402,6 @@ func (client APIVersionSetClient) GetEntityTagPreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client APIVersionSetClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -427,7 +409,6 @@ func (client APIVersionSetClient) GetEntityTagSender(req *http.Request) (*http.R azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client APIVersionSetClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -440,7 +421,6 @@ func (client APIVersionSetClient) GetEntityTagResponder(resp *http.Response) (re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of API Version Sets in the specified service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -503,7 +483,6 @@ func (client APIVersionSetClient) ListByService(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client APIVersionSetClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -534,7 +513,6 @@ func (client APIVersionSetClient) ListByServicePreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client APIVersionSetClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -542,7 +520,6 @@ func (client APIVersionSetClient) ListByServiceSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client APIVersionSetClient) ListByServiceResponder(resp *http.Response) (result APIVersionSetCollection, err error) { @@ -577,7 +554,6 @@ func (client APIVersionSetClient) listByServiceNextResults(ctx context.Context, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client APIVersionSetClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result APIVersionSetCollectionIterator, err error) { if tracing.IsEnabled() { @@ -594,7 +570,6 @@ func (client APIVersionSetClient) ListByServiceComplete(ctx context.Context, res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the details of the Api VersionSet specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -647,7 +622,6 @@ func (client APIVersionSetClient) Update(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client APIVersionSetClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, versionSetID string, parameters APIVersionSetUpdateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -673,7 +647,6 @@ func (client APIVersionSetClient) UpdatePreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client APIVersionSetClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -681,7 +654,6 @@ func (client APIVersionSetClient) UpdateSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client APIVersionSetClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/authorizationserver.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/authorizationserver.go index 917b9a75fb7c..ef62a2d25892 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/authorizationserver.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/authorizationserver.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AuthorizationServerClient is the apiManagement Client type AuthorizationServerClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAuthorizationServerClient creates an instance of the AuthorizationServerClient client. func NewAuthorizationServerClient(subscriptionID string) AuthorizationServerClient { return NewAuthorizationServerClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewAuthorizationServerClientWithBaseURI creates an instance of the AuthorizationServerClient client. func NewAuthorizationServerClientWithBaseURI(baseURI string, subscriptionID string) AuthorizationServerClient { return AuthorizationServerClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates new authorization server or updates an existing authorization server. // Parameters: // resourceGroupName - the name of the resource group. @@ -107,7 +103,6 @@ func (client AuthorizationServerClient) CreateOrUpdate(ctx context.Context, reso return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client AuthorizationServerClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string, parameters AuthorizationServerContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -136,7 +131,6 @@ func (client AuthorizationServerClient) CreateOrUpdatePreparer(ctx context.Conte return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client AuthorizationServerClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -144,7 +138,6 @@ func (client AuthorizationServerClient) CreateOrUpdateSender(req *http.Request) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client AuthorizationServerClient) CreateOrUpdateResponder(resp *http.Response) (result AuthorizationServerContract, err error) { @@ -158,7 +151,6 @@ func (client AuthorizationServerClient) CreateOrUpdateResponder(resp *http.Respo return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes specific authorization server instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -210,7 +202,6 @@ func (client AuthorizationServerClient) Delete(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client AuthorizationServerClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -234,7 +225,6 @@ func (client AuthorizationServerClient) DeletePreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client AuthorizationServerClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -242,7 +232,6 @@ func (client AuthorizationServerClient) DeleteSender(req *http.Request) (*http.R azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client AuthorizationServerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -255,7 +244,6 @@ func (client AuthorizationServerClient) DeleteResponder(resp *http.Response) (re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the authorization server specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -305,7 +293,6 @@ func (client AuthorizationServerClient) Get(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client AuthorizationServerClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -328,7 +315,6 @@ func (client AuthorizationServerClient) GetPreparer(ctx context.Context, resourc return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client AuthorizationServerClient) GetSender(req *http.Request) (*http.Response, error) { @@ -336,7 +322,6 @@ func (client AuthorizationServerClient) GetSender(req *http.Request) (*http.Resp azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client AuthorizationServerClient) GetResponder(resp *http.Response) (result AuthorizationServerContract, err error) { @@ -350,7 +335,6 @@ func (client AuthorizationServerClient) GetResponder(resp *http.Response) (resul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the authorizationServer specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -400,7 +384,6 @@ func (client AuthorizationServerClient) GetEntityTag(ctx context.Context, resour return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client AuthorizationServerClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -423,7 +406,6 @@ func (client AuthorizationServerClient) GetEntityTagPreparer(ctx context.Context return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client AuthorizationServerClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -431,7 +413,6 @@ func (client AuthorizationServerClient) GetEntityTagSender(req *http.Request) (* azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client AuthorizationServerClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -444,7 +425,6 @@ func (client AuthorizationServerClient) GetEntityTagResponder(resp *http.Respons return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of authorization servers defined within a service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -502,7 +482,6 @@ func (client AuthorizationServerClient) ListByService(ctx context.Context, resou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client AuthorizationServerClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -533,7 +512,6 @@ func (client AuthorizationServerClient) ListByServicePreparer(ctx context.Contex return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client AuthorizationServerClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -541,7 +519,6 @@ func (client AuthorizationServerClient) ListByServiceSender(req *http.Request) ( azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client AuthorizationServerClient) ListByServiceResponder(resp *http.Response) (result AuthorizationServerCollection, err error) { @@ -576,7 +553,6 @@ func (client AuthorizationServerClient) listByServiceNextResults(ctx context.Con return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client AuthorizationServerClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result AuthorizationServerCollectionIterator, err error) { if tracing.IsEnabled() { @@ -593,7 +569,6 @@ func (client AuthorizationServerClient) ListByServiceComplete(ctx context.Contex return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the details of the authorization server specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -646,7 +621,6 @@ func (client AuthorizationServerClient) Update(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client AuthorizationServerClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, authsid string, parameters AuthorizationServerUpdateContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -672,7 +646,6 @@ func (client AuthorizationServerClient) UpdatePreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client AuthorizationServerClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -680,7 +653,6 @@ func (client AuthorizationServerClient) UpdateSender(req *http.Request) (*http.R azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client AuthorizationServerClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/backend.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/backend.go index f3e3cba3a8f8..96f91a993644 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/backend.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/backend.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendClient is the apiManagement Client type BackendClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewBackendClient creates an instance of the BackendClient client. func NewBackendClient(subscriptionID string) BackendClient { return NewBackendClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewBackendClientWithBaseURI creates an instance of the BackendClient client. func NewBackendClientWithBaseURI(baseURI string, subscriptionID string) BackendClient { return BackendClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or Updates a backend. // Parameters: // resourceGroupName - the name of the resource group. @@ -103,7 +99,6 @@ func (client BackendClient) CreateOrUpdate(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client BackendClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters BackendContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -132,7 +127,6 @@ func (client BackendClient) CreateOrUpdatePreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client BackendClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -140,7 +134,6 @@ func (client BackendClient) CreateOrUpdateSender(req *http.Request) (*http.Respo azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client BackendClient) CreateOrUpdateResponder(resp *http.Response) (result BackendContract, err error) { @@ -154,7 +147,6 @@ func (client BackendClient) CreateOrUpdateResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified backend. // Parameters: // resourceGroupName - the name of the resource group. @@ -206,7 +198,6 @@ func (client BackendClient) Delete(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client BackendClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -230,7 +221,6 @@ func (client BackendClient) DeletePreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client BackendClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -238,7 +228,6 @@ func (client BackendClient) DeleteSender(req *http.Request) (*http.Response, err azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client BackendClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -251,7 +240,6 @@ func (client BackendClient) DeleteResponder(resp *http.Response) (result autores return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the backend specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -301,7 +289,6 @@ func (client BackendClient) Get(ctx context.Context, resourceGroupName string, s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client BackendClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -324,7 +311,6 @@ func (client BackendClient) GetPreparer(ctx context.Context, resourceGroupName s return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client BackendClient) GetSender(req *http.Request) (*http.Response, error) { @@ -332,7 +318,6 @@ func (client BackendClient) GetSender(req *http.Request) (*http.Response, error) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client BackendClient) GetResponder(resp *http.Response) (result BackendContract, err error) { @@ -346,7 +331,6 @@ func (client BackendClient) GetResponder(resp *http.Response) (result BackendCon return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the backend specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -396,7 +380,6 @@ func (client BackendClient) GetEntityTag(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client BackendClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -419,7 +402,6 @@ func (client BackendClient) GetEntityTagPreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client BackendClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -427,7 +409,6 @@ func (client BackendClient) GetEntityTagSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client BackendClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -440,7 +421,6 @@ func (client BackendClient) GetEntityTagResponder(resp *http.Response) (result a return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of backends in the specified service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -498,7 +478,6 @@ func (client BackendClient) ListByService(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client BackendClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -529,7 +508,6 @@ func (client BackendClient) ListByServicePreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client BackendClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -537,7 +515,6 @@ func (client BackendClient) ListByServiceSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client BackendClient) ListByServiceResponder(resp *http.Response) (result BackendCollection, err error) { @@ -572,7 +549,6 @@ func (client BackendClient) listByServiceNextResults(ctx context.Context, lastRe return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client BackendClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result BackendCollectionIterator, err error) { if tracing.IsEnabled() { @@ -589,7 +565,6 @@ func (client BackendClient) ListByServiceComplete(ctx context.Context, resourceG return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Reconnect notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no // timeout was specified, timeout of 2 minutes is used. // Parameters: @@ -641,7 +616,6 @@ func (client BackendClient) Reconnect(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ReconnectPreparer prepares the Reconnect request. func (client BackendClient) ReconnectPreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters *BackendReconnectContract) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -669,7 +643,6 @@ func (client BackendClient) ReconnectPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ReconnectSender sends the Reconnect request. The method will close the // http.Response Body if it receives an error. func (client BackendClient) ReconnectSender(req *http.Request) (*http.Response, error) { @@ -677,7 +650,6 @@ func (client BackendClient) ReconnectSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ReconnectResponder handles the response to the Reconnect request. The method always // closes the http.Response Body. func (client BackendClient) ReconnectResponder(resp *http.Response) (result autorest.Response, err error) { @@ -690,7 +662,6 @@ func (client BackendClient) ReconnectResponder(resp *http.Response) (result auto return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates an existing backend. // Parameters: // resourceGroupName - the name of the resource group. @@ -743,7 +714,6 @@ func (client BackendClient) Update(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client BackendClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, backendid string, parameters BackendUpdateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -769,7 +739,6 @@ func (client BackendClient) UpdatePreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client BackendClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -777,7 +746,6 @@ func (client BackendClient) UpdateSender(req *http.Request) (*http.Response, err azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client BackendClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/certificate.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/certificate.go index 8dfa7f50621e..389389662506 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/certificate.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/certificate.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CertificateClient is the apiManagement Client type CertificateClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewCertificateClient creates an instance of the CertificateClient client. func NewCertificateClient(subscriptionID string) CertificateClient { return NewCertificateClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewCertificateClientWithBaseURI creates an instance of the CertificateClient client. func NewCertificateClientWithBaseURI(baseURI string, subscriptionID string) CertificateClient { return CertificateClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or updates the certificate being used for authentication with the backend. // Parameters: // resourceGroupName - the name of the resource group. @@ -102,7 +98,6 @@ func (client CertificateClient) CreateOrUpdate(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client CertificateClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, certificateID string, parameters CertificateCreateOrUpdateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -131,7 +126,6 @@ func (client CertificateClient) CreateOrUpdatePreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client CertificateClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -139,7 +133,6 @@ func (client CertificateClient) CreateOrUpdateSender(req *http.Request) (*http.R azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client CertificateClient) CreateOrUpdateResponder(resp *http.Response) (result CertificateContract, err error) { @@ -153,7 +146,6 @@ func (client CertificateClient) CreateOrUpdateResponder(resp *http.Response) (re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes specific certificate. // Parameters: // resourceGroupName - the name of the resource group. @@ -206,7 +198,6 @@ func (client CertificateClient) Delete(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client CertificateClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, certificateID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -230,7 +221,6 @@ func (client CertificateClient) DeletePreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client CertificateClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -238,7 +228,6 @@ func (client CertificateClient) DeleteSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client CertificateClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -251,7 +240,6 @@ func (client CertificateClient) DeleteResponder(resp *http.Response) (result aut return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the certificate specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -302,7 +290,6 @@ func (client CertificateClient) Get(ctx context.Context, resourceGroupName strin return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client CertificateClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, certificateID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -325,7 +312,6 @@ func (client CertificateClient) GetPreparer(ctx context.Context, resourceGroupNa return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client CertificateClient) GetSender(req *http.Request) (*http.Response, error) { @@ -333,7 +319,6 @@ func (client CertificateClient) GetSender(req *http.Request) (*http.Response, er azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client CertificateClient) GetResponder(resp *http.Response) (result CertificateContract, err error) { @@ -347,7 +332,6 @@ func (client CertificateClient) GetResponder(resp *http.Response) (result Certif return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the certificate specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -398,7 +382,6 @@ func (client CertificateClient) GetEntityTag(ctx context.Context, resourceGroupN return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client CertificateClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, certificateID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -421,7 +404,6 @@ func (client CertificateClient) GetEntityTagPreparer(ctx context.Context, resour return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client CertificateClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -429,7 +411,6 @@ func (client CertificateClient) GetEntityTagSender(req *http.Request) (*http.Res azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client CertificateClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -442,7 +423,6 @@ func (client CertificateClient) GetEntityTagResponder(resp *http.Response) (resu return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of all certificates in the specified service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -502,7 +482,6 @@ func (client CertificateClient) ListByService(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client CertificateClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -533,7 +512,6 @@ func (client CertificateClient) ListByServicePreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client CertificateClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -541,7 +519,6 @@ func (client CertificateClient) ListByServiceSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client CertificateClient) ListByServiceResponder(resp *http.Response) (result CertificateCollection, err error) { @@ -576,7 +553,6 @@ func (client CertificateClient) listByServiceNextResults(ctx context.Context, la return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client CertificateClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result CertificateCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/client.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/client.go index 5c48a461b767..a1e4456c4fa7 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/client.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/client.go @@ -29,7 +29,6 @@ const ( DefaultBaseURI = "https://management.azure.com" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BaseClient is the base client for Apimanagement. type BaseClient struct { autorest.Client @@ -37,13 +36,11 @@ type BaseClient struct { SubscriptionID string } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // New creates an instance of the BaseClient client. func New(subscriptionID string) BaseClient { return NewWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewWithBaseURI creates an instance of the BaseClient client. func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return BaseClient{ diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/delegationsettings.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/delegationsettings.go index 995e0dab8351..c9fd21e6de02 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/delegationsettings.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/delegationsettings.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DelegationSettingsClient is the apiManagement Client type DelegationSettingsClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewDelegationSettingsClient creates an instance of the DelegationSettingsClient client. func NewDelegationSettingsClient(subscriptionID string) DelegationSettingsClient { return NewDelegationSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewDelegationSettingsClientWithBaseURI creates an instance of the DelegationSettingsClient client. func NewDelegationSettingsClientWithBaseURI(baseURI string, subscriptionID string) DelegationSettingsClient { return DelegationSettingsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate create or Update Delegation settings. // Parameters: // resourceGroupName - the name of the resource group. @@ -90,7 +86,6 @@ func (client DelegationSettingsClient) CreateOrUpdate(ctx context.Context, resou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client DelegationSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalDelegationSettings) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -114,7 +109,6 @@ func (client DelegationSettingsClient) CreateOrUpdatePreparer(ctx context.Contex return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client DelegationSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -122,7 +116,6 @@ func (client DelegationSettingsClient) CreateOrUpdateSender(req *http.Request) ( azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client DelegationSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result PortalDelegationSettings, err error) { @@ -136,7 +129,6 @@ func (client DelegationSettingsClient) CreateOrUpdateResponder(resp *http.Respon return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get get Delegation settings. // Parameters: // resourceGroupName - the name of the resource group. @@ -181,7 +173,6 @@ func (client DelegationSettingsClient) Get(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client DelegationSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -203,7 +194,6 @@ func (client DelegationSettingsClient) GetPreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client DelegationSettingsClient) GetSender(req *http.Request) (*http.Response, error) { @@ -211,7 +201,6 @@ func (client DelegationSettingsClient) GetSender(req *http.Request) (*http.Respo azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client DelegationSettingsClient) GetResponder(resp *http.Response) (result PortalDelegationSettings, err error) { @@ -225,7 +214,6 @@ func (client DelegationSettingsClient) GetResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the DelegationSettings. // Parameters: // resourceGroupName - the name of the resource group. @@ -270,7 +258,6 @@ func (client DelegationSettingsClient) GetEntityTag(ctx context.Context, resourc return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client DelegationSettingsClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -292,7 +279,6 @@ func (client DelegationSettingsClient) GetEntityTagPreparer(ctx context.Context, return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client DelegationSettingsClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -300,7 +286,6 @@ func (client DelegationSettingsClient) GetEntityTagSender(req *http.Request) (*h azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client DelegationSettingsClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -313,7 +298,6 @@ func (client DelegationSettingsClient) GetEntityTagResponder(resp *http.Response return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update update Delegation settings. // Parameters: // resourceGroupName - the name of the resource group. @@ -361,7 +345,6 @@ func (client DelegationSettingsClient) Update(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client DelegationSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalDelegationSettings, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -386,7 +369,6 @@ func (client DelegationSettingsClient) UpdatePreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client DelegationSettingsClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -394,7 +376,6 @@ func (client DelegationSettingsClient) UpdateSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client DelegationSettingsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnostic.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnostic.go index e423b3c91a99..2fa671933e33 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnostic.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnostic.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DiagnosticClient is the apiManagement Client type DiagnosticClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewDiagnosticClient creates an instance of the DiagnosticClient client. func NewDiagnosticClient(subscriptionID string) DiagnosticClient { return NewDiagnosticClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewDiagnosticClientWithBaseURI creates an instance of the DiagnosticClient client. func NewDiagnosticClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticClient { return DiagnosticClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates a new Diagnostic or updates an existing one. // Parameters: // resourceGroupName - the name of the resource group. @@ -99,7 +95,6 @@ func (client DiagnosticClient) CreateOrUpdate(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client DiagnosticClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -128,7 +123,6 @@ func (client DiagnosticClient) CreateOrUpdatePreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client DiagnosticClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -136,7 +130,6 @@ func (client DiagnosticClient) CreateOrUpdateSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client DiagnosticClient) CreateOrUpdateResponder(resp *http.Response) (result DiagnosticContract, err error) { @@ -150,7 +143,6 @@ func (client DiagnosticClient) CreateOrUpdateResponder(resp *http.Response) (res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified Diagnostic. // Parameters: // resourceGroupName - the name of the resource group. @@ -202,7 +194,6 @@ func (client DiagnosticClient) Delete(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client DiagnosticClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -226,7 +217,6 @@ func (client DiagnosticClient) DeletePreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client DiagnosticClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -234,7 +224,6 @@ func (client DiagnosticClient) DeleteSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client DiagnosticClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -247,7 +236,6 @@ func (client DiagnosticClient) DeleteResponder(resp *http.Response) (result auto return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the Diagnostic specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -297,7 +285,6 @@ func (client DiagnosticClient) Get(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client DiagnosticClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -320,7 +307,6 @@ func (client DiagnosticClient) GetPreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client DiagnosticClient) GetSender(req *http.Request) (*http.Response, error) { @@ -328,7 +314,6 @@ func (client DiagnosticClient) GetSender(req *http.Request) (*http.Response, err azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client DiagnosticClient) GetResponder(resp *http.Response) (result DiagnosticContract, err error) { @@ -342,7 +327,6 @@ func (client DiagnosticClient) GetResponder(resp *http.Response) (result Diagnos return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the Diagnostic specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -392,7 +376,6 @@ func (client DiagnosticClient) GetEntityTag(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client DiagnosticClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -415,7 +398,6 @@ func (client DiagnosticClient) GetEntityTagPreparer(ctx context.Context, resourc return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client DiagnosticClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -423,7 +405,6 @@ func (client DiagnosticClient) GetEntityTagSender(req *http.Request) (*http.Resp azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client DiagnosticClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -436,7 +417,6 @@ func (client DiagnosticClient) GetEntityTagResponder(resp *http.Response) (resul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all diagnostics of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -493,7 +473,6 @@ func (client DiagnosticClient) ListByService(ctx context.Context, resourceGroupN return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client DiagnosticClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -524,7 +503,6 @@ func (client DiagnosticClient) ListByServicePreparer(ctx context.Context, resour return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client DiagnosticClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -532,7 +510,6 @@ func (client DiagnosticClient) ListByServiceSender(req *http.Request) (*http.Res azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client DiagnosticClient) ListByServiceResponder(resp *http.Response) (result DiagnosticCollection, err error) { @@ -567,7 +544,6 @@ func (client DiagnosticClient) listByServiceNextResults(ctx context.Context, las return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client DiagnosticClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result DiagnosticCollectionIterator, err error) { if tracing.IsEnabled() { @@ -584,7 +560,6 @@ func (client DiagnosticClient) ListByServiceComplete(ctx context.Context, resour return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the details of the Diagnostic specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -637,7 +612,6 @@ func (client DiagnosticClient) Update(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client DiagnosticClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, parameters DiagnosticContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -663,7 +637,6 @@ func (client DiagnosticClient) UpdatePreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client DiagnosticClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -671,7 +644,6 @@ func (client DiagnosticClient) UpdateSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client DiagnosticClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnosticlogger.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnosticlogger.go index e8b01ae25bc4..ae70691ff46f 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnosticlogger.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/diagnosticlogger.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DiagnosticLoggerClient is the apiManagement Client type DiagnosticLoggerClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewDiagnosticLoggerClient creates an instance of the DiagnosticLoggerClient client. func NewDiagnosticLoggerClient(subscriptionID string) DiagnosticLoggerClient { return NewDiagnosticLoggerClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewDiagnosticLoggerClientWithBaseURI creates an instance of the DiagnosticLoggerClient client. func NewDiagnosticLoggerClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticLoggerClient { return DiagnosticLoggerClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExists checks that logger entity specified by identifier is associated with the diagnostics entity. // Parameters: // resourceGroupName - the name of the resource group. @@ -98,7 +94,6 @@ func (client DiagnosticLoggerClient) CheckEntityExists(ctx context.Context, reso return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsPreparer prepares the CheckEntityExists request. func (client DiagnosticLoggerClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, loggerid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -122,7 +117,6 @@ func (client DiagnosticLoggerClient) CheckEntityExistsPreparer(ctx context.Conte return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsSender sends the CheckEntityExists request. The method will close the // http.Response Body if it receives an error. func (client DiagnosticLoggerClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { @@ -130,7 +124,6 @@ func (client DiagnosticLoggerClient) CheckEntityExistsSender(req *http.Request) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always // closes the http.Response Body. func (client DiagnosticLoggerClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { @@ -143,7 +136,6 @@ func (client DiagnosticLoggerClient) CheckEntityExistsResponder(resp *http.Respo return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate attaches a logger to a dignostic. // Parameters: // resourceGroupName - the name of the resource group. @@ -197,7 +189,6 @@ func (client DiagnosticLoggerClient) CreateOrUpdate(ctx context.Context, resourc return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client DiagnosticLoggerClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, loggerid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -221,7 +212,6 @@ func (client DiagnosticLoggerClient) CreateOrUpdatePreparer(ctx context.Context, return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client DiagnosticLoggerClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -229,7 +219,6 @@ func (client DiagnosticLoggerClient) CreateOrUpdateSender(req *http.Request) (*h azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client DiagnosticLoggerClient) CreateOrUpdateResponder(resp *http.Response) (result LoggerContract, err error) { @@ -243,7 +232,6 @@ func (client DiagnosticLoggerClient) CreateOrUpdateResponder(resp *http.Response return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified Logger from Diagnostic. // Parameters: // resourceGroupName - the name of the resource group. @@ -297,7 +285,6 @@ func (client DiagnosticLoggerClient) Delete(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client DiagnosticLoggerClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, loggerid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -321,7 +308,6 @@ func (client DiagnosticLoggerClient) DeletePreparer(ctx context.Context, resourc return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client DiagnosticLoggerClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -329,7 +315,6 @@ func (client DiagnosticLoggerClient) DeleteSender(req *http.Request) (*http.Resp azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client DiagnosticLoggerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -342,7 +327,6 @@ func (client DiagnosticLoggerClient) DeleteResponder(resp *http.Response) (resul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all loggers assosiated with the specified Diagnostic of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -405,7 +389,6 @@ func (client DiagnosticLoggerClient) ListByService(ctx context.Context, resource return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client DiagnosticLoggerClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -437,7 +420,6 @@ func (client DiagnosticLoggerClient) ListByServicePreparer(ctx context.Context, return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client DiagnosticLoggerClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -445,7 +427,6 @@ func (client DiagnosticLoggerClient) ListByServiceSender(req *http.Request) (*ht azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client DiagnosticLoggerClient) ListByServiceResponder(resp *http.Response) (result LoggerCollection, err error) { @@ -480,7 +461,6 @@ func (client DiagnosticLoggerClient) listByServiceNextResults(ctx context.Contex return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client DiagnosticLoggerClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, diagnosticID string, filter string, top *int32, skip *int32) (result LoggerCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/emailtemplate.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/emailtemplate.go index a7f4740edfa8..e4f7e2f9b944 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/emailtemplate.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/emailtemplate.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // EmailTemplateClient is the apiManagement Client type EmailTemplateClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewEmailTemplateClient creates an instance of the EmailTemplateClient client. func NewEmailTemplateClient(subscriptionID string) EmailTemplateClient { return NewEmailTemplateClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewEmailTemplateClientWithBaseURI creates an instance of the EmailTemplateClient client. func NewEmailTemplateClientWithBaseURI(baseURI string, subscriptionID string) EmailTemplateClient { return EmailTemplateClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate updates an Email Template. // Parameters: // resourceGroupName - the name of the resource group. @@ -101,7 +97,6 @@ func (client EmailTemplateClient) CreateOrUpdate(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client EmailTemplateClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName, parameters EmailTemplateUpdateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -130,7 +125,6 @@ func (client EmailTemplateClient) CreateOrUpdatePreparer(ctx context.Context, re return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client EmailTemplateClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -138,7 +132,6 @@ func (client EmailTemplateClient) CreateOrUpdateSender(req *http.Request) (*http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client EmailTemplateClient) CreateOrUpdateResponder(resp *http.Response) (result EmailTemplateContract, err error) { @@ -152,7 +145,6 @@ func (client EmailTemplateClient) CreateOrUpdateResponder(resp *http.Response) ( return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete reset the Email Template to default template provided by the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -200,7 +192,6 @@ func (client EmailTemplateClient) Delete(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client EmailTemplateClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -224,7 +215,6 @@ func (client EmailTemplateClient) DeletePreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client EmailTemplateClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -232,7 +222,6 @@ func (client EmailTemplateClient) DeleteSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client EmailTemplateClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -245,7 +234,6 @@ func (client EmailTemplateClient) DeleteResponder(resp *http.Response) (result a return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the email template specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -291,7 +279,6 @@ func (client EmailTemplateClient) Get(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client EmailTemplateClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -314,7 +301,6 @@ func (client EmailTemplateClient) GetPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client EmailTemplateClient) GetSender(req *http.Request) (*http.Response, error) { @@ -322,7 +308,6 @@ func (client EmailTemplateClient) GetSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client EmailTemplateClient) GetResponder(resp *http.Response) (result EmailTemplateContract, err error) { @@ -336,7 +321,6 @@ func (client EmailTemplateClient) GetResponder(resp *http.Response) (result Emai return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the email template specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -382,7 +366,6 @@ func (client EmailTemplateClient) GetEntityTag(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client EmailTemplateClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -405,7 +388,6 @@ func (client EmailTemplateClient) GetEntityTagPreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client EmailTemplateClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -413,7 +395,6 @@ func (client EmailTemplateClient) GetEntityTagSender(req *http.Request) (*http.R azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client EmailTemplateClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -426,7 +407,6 @@ func (client EmailTemplateClient) GetEntityTagResponder(resp *http.Response) (re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of properties defined within a service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -480,7 +460,6 @@ func (client EmailTemplateClient) ListByService(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client EmailTemplateClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -508,7 +487,6 @@ func (client EmailTemplateClient) ListByServicePreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client EmailTemplateClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -516,7 +494,6 @@ func (client EmailTemplateClient) ListByServiceSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client EmailTemplateClient) ListByServiceResponder(resp *http.Response) (result EmailTemplateCollection, err error) { @@ -551,7 +528,6 @@ func (client EmailTemplateClient) listByServiceNextResults(ctx context.Context, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client EmailTemplateClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, top *int32, skip *int32) (result EmailTemplateCollectionIterator, err error) { if tracing.IsEnabled() { @@ -568,7 +544,6 @@ func (client EmailTemplateClient) ListByServiceComplete(ctx context.Context, res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the specific Email Template. // Parameters: // resourceGroupName - the name of the resource group. @@ -615,7 +590,6 @@ func (client EmailTemplateClient) Update(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client EmailTemplateClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, templateName TemplateName, parameters EmailTemplateUpdateParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -640,7 +614,6 @@ func (client EmailTemplateClient) UpdatePreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client EmailTemplateClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -648,7 +621,6 @@ func (client EmailTemplateClient) UpdateSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client EmailTemplateClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/group.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/group.go index 4726e2a4e8c1..25b4b7e010bb 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/group.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/group.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupClient is the apiManagement Client type GroupClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewGroupClient creates an instance of the GroupClient client. func NewGroupClient(subscriptionID string) GroupClient { return NewGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewGroupClientWithBaseURI creates an instance of the GroupClient client. func NewGroupClientWithBaseURI(baseURI string, subscriptionID string) GroupClient { return GroupClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or Updates a group. // Parameters: // resourceGroupName - the name of the resource group. @@ -103,7 +99,6 @@ func (client GroupClient) CreateOrUpdate(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client GroupClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, parameters GroupCreateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -132,7 +127,6 @@ func (client GroupClient) CreateOrUpdatePreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client GroupClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -140,7 +134,6 @@ func (client GroupClient) CreateOrUpdateSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client GroupClient) CreateOrUpdateResponder(resp *http.Response) (result GroupContract, err error) { @@ -154,7 +147,6 @@ func (client GroupClient) CreateOrUpdateResponder(resp *http.Response) (result G return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes specific group of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -206,7 +198,6 @@ func (client GroupClient) Delete(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client GroupClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -230,7 +221,6 @@ func (client GroupClient) DeletePreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client GroupClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -238,7 +228,6 @@ func (client GroupClient) DeleteSender(req *http.Request) (*http.Response, error azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client GroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -251,7 +240,6 @@ func (client GroupClient) DeleteResponder(resp *http.Response) (result autorest. return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the group specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -301,7 +289,6 @@ func (client GroupClient) Get(ctx context.Context, resourceGroupName string, ser return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client GroupClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -324,7 +311,6 @@ func (client GroupClient) GetPreparer(ctx context.Context, resourceGroupName str return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client GroupClient) GetSender(req *http.Request) (*http.Response, error) { @@ -332,7 +318,6 @@ func (client GroupClient) GetSender(req *http.Request) (*http.Response, error) { azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client GroupClient) GetResponder(resp *http.Response) (result GroupContract, err error) { @@ -346,7 +331,6 @@ func (client GroupClient) GetResponder(resp *http.Response) (result GroupContrac return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the group specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -396,7 +380,6 @@ func (client GroupClient) GetEntityTag(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client GroupClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -419,7 +402,6 @@ func (client GroupClient) GetEntityTagPreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client GroupClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -427,7 +409,6 @@ func (client GroupClient) GetEntityTagSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client GroupClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -440,7 +421,6 @@ func (client GroupClient) GetEntityTagResponder(resp *http.Response) (result aut return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of groups defined within a service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -500,7 +480,6 @@ func (client GroupClient) ListByService(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client GroupClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -531,7 +510,6 @@ func (client GroupClient) ListByServicePreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client GroupClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -539,7 +517,6 @@ func (client GroupClient) ListByServiceSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client GroupClient) ListByServiceResponder(resp *http.Response) (result GroupCollection, err error) { @@ -574,7 +551,6 @@ func (client GroupClient) listByServiceNextResults(ctx context.Context, lastResu return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client GroupClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result GroupCollectionIterator, err error) { if tracing.IsEnabled() { @@ -591,7 +567,6 @@ func (client GroupClient) ListByServiceComplete(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the details of the group specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -644,7 +619,6 @@ func (client GroupClient) Update(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client GroupClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, parameters GroupUpdateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -670,7 +644,6 @@ func (client GroupClient) UpdatePreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client GroupClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -678,7 +651,6 @@ func (client GroupClient) UpdateSender(req *http.Request) (*http.Response, error azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client GroupClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/groupuser.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/groupuser.go index 22ef549a4bca..8b8418323f80 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/groupuser.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/groupuser.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupUserClient is the apiManagement Client type GroupUserClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewGroupUserClient creates an instance of the GroupUserClient client. func NewGroupUserClient(subscriptionID string) GroupUserClient { return NewGroupUserClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewGroupUserClientWithBaseURI creates an instance of the GroupUserClient client. func NewGroupUserClientWithBaseURI(baseURI string, subscriptionID string) GroupUserClient { return GroupUserClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExists checks that user entity specified by identifier is associated with the group entity. // Parameters: // resourceGroupName - the name of the resource group. @@ -99,7 +95,6 @@ func (client GroupUserClient) CheckEntityExists(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsPreparer prepares the CheckEntityExists request. func (client GroupUserClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -123,7 +118,6 @@ func (client GroupUserClient) CheckEntityExistsPreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsSender sends the CheckEntityExists request. The method will close the // http.Response Body if it receives an error. func (client GroupUserClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { @@ -131,7 +125,6 @@ func (client GroupUserClient) CheckEntityExistsSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always // closes the http.Response Body. func (client GroupUserClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { @@ -144,7 +137,6 @@ func (client GroupUserClient) CheckEntityExistsResponder(resp *http.Response) (r return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Create adds a user to the specified group. // Parameters: // resourceGroupName - the name of the resource group. @@ -199,7 +191,6 @@ func (client GroupUserClient) Create(ctx context.Context, resourceGroupName stri return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreatePreparer prepares the Create request. func (client GroupUserClient) CreatePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -223,7 +214,6 @@ func (client GroupUserClient) CreatePreparer(ctx context.Context, resourceGroupN return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateSender sends the Create request. The method will close the // http.Response Body if it receives an error. func (client GroupUserClient) CreateSender(req *http.Request) (*http.Response, error) { @@ -231,7 +221,6 @@ func (client GroupUserClient) CreateSender(req *http.Request) (*http.Response, e azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateResponder handles the response to the Create request. The method always // closes the http.Response Body. func (client GroupUserClient) CreateResponder(resp *http.Response) (result UserContract, err error) { @@ -245,7 +234,6 @@ func (client GroupUserClient) CreateResponder(resp *http.Response) (result UserC return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete remove existing user from existing group. // Parameters: // resourceGroupName - the name of the resource group. @@ -300,7 +288,6 @@ func (client GroupUserClient) Delete(ctx context.Context, resourceGroupName stri return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client GroupUserClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, UID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -324,7 +311,6 @@ func (client GroupUserClient) DeletePreparer(ctx context.Context, resourceGroupN return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client GroupUserClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -332,7 +318,6 @@ func (client GroupUserClient) DeleteSender(req *http.Request) (*http.Response, e azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client GroupUserClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -345,7 +330,6 @@ func (client GroupUserClient) DeleteResponder(resp *http.Response) (result autor return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // List lists a collection of the members of the group, specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -413,7 +397,6 @@ func (client GroupUserClient) List(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListPreparer prepares the List request. func (client GroupUserClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, groupID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -445,7 +428,6 @@ func (client GroupUserClient) ListPreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client GroupUserClient) ListSender(req *http.Request) (*http.Response, error) { @@ -453,7 +435,6 @@ func (client GroupUserClient) ListSender(req *http.Request) (*http.Response, err azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListResponder handles the response to the List request. The method always // closes the http.Response Body. func (client GroupUserClient) ListResponder(resp *http.Response) (result UserCollection, err error) { @@ -488,7 +469,6 @@ func (client GroupUserClient) listNextResults(ctx context.Context, lastResults U return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListComplete enumerates all values, automatically crossing page boundaries as required. func (client GroupUserClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, groupID string, filter string, top *int32, skip *int32) (result UserCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/identityprovider.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/identityprovider.go index a3e631be45ab..16d2a80365e6 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/identityprovider.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/identityprovider.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IdentityProviderClient is the apiManagement Client type IdentityProviderClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewIdentityProviderClient creates an instance of the IdentityProviderClient client. func NewIdentityProviderClient(subscriptionID string) IdentityProviderClient { return NewIdentityProviderClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewIdentityProviderClientWithBaseURI creates an instance of the IdentityProviderClient client. func NewIdentityProviderClientWithBaseURI(baseURI string, subscriptionID string) IdentityProviderClient { return IdentityProviderClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or Updates the IdentityProvider configuration. // Parameters: // resourceGroupName - the name of the resource group. @@ -99,7 +95,6 @@ func (client IdentityProviderClient) CreateOrUpdate(ctx context.Context, resourc return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client IdentityProviderClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType, parameters IdentityProviderContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -128,7 +123,6 @@ func (client IdentityProviderClient) CreateOrUpdatePreparer(ctx context.Context, return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client IdentityProviderClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -136,7 +130,6 @@ func (client IdentityProviderClient) CreateOrUpdateSender(req *http.Request) (*h azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client IdentityProviderClient) CreateOrUpdateResponder(resp *http.Response) (result IdentityProviderContract, err error) { @@ -150,7 +143,6 @@ func (client IdentityProviderClient) CreateOrUpdateResponder(resp *http.Response return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified identity provider configuration. // Parameters: // resourceGroupName - the name of the resource group. @@ -198,7 +190,6 @@ func (client IdentityProviderClient) Delete(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client IdentityProviderClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -222,7 +213,6 @@ func (client IdentityProviderClient) DeletePreparer(ctx context.Context, resourc return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client IdentityProviderClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -230,7 +220,6 @@ func (client IdentityProviderClient) DeleteSender(req *http.Request) (*http.Resp azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client IdentityProviderClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -243,7 +232,6 @@ func (client IdentityProviderClient) DeleteResponder(resp *http.Response) (resul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the configuration details of the identity Provider configured in specified service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -289,7 +277,6 @@ func (client IdentityProviderClient) Get(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client IdentityProviderClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -312,7 +299,6 @@ func (client IdentityProviderClient) GetPreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client IdentityProviderClient) GetSender(req *http.Request) (*http.Response, error) { @@ -320,7 +306,6 @@ func (client IdentityProviderClient) GetSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client IdentityProviderClient) GetResponder(resp *http.Response) (result IdentityProviderContract, err error) { @@ -334,7 +319,6 @@ func (client IdentityProviderClient) GetResponder(resp *http.Response) (result I return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the identityProvider specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -380,7 +364,6 @@ func (client IdentityProviderClient) GetEntityTag(ctx context.Context, resourceG return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client IdentityProviderClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -403,7 +386,6 @@ func (client IdentityProviderClient) GetEntityTagPreparer(ctx context.Context, r return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client IdentityProviderClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -411,7 +393,6 @@ func (client IdentityProviderClient) GetEntityTagSender(req *http.Request) (*htt azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client IdentityProviderClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -424,7 +405,6 @@ func (client IdentityProviderClient) GetEntityTagResponder(resp *http.Response) return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of Identity Provider configured in the specified service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -470,7 +450,6 @@ func (client IdentityProviderClient) ListByService(ctx context.Context, resource return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client IdentityProviderClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -492,7 +471,6 @@ func (client IdentityProviderClient) ListByServicePreparer(ctx context.Context, return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client IdentityProviderClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -500,7 +478,6 @@ func (client IdentityProviderClient) ListByServiceSender(req *http.Request) (*ht azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client IdentityProviderClient) ListByServiceResponder(resp *http.Response) (result IdentityProviderList, err error) { @@ -535,7 +512,6 @@ func (client IdentityProviderClient) listByServiceNextResults(ctx context.Contex return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client IdentityProviderClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string) (result IdentityProviderListIterator, err error) { if tracing.IsEnabled() { @@ -552,7 +528,6 @@ func (client IdentityProviderClient) ListByServiceComplete(ctx context.Context, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates an existing IdentityProvider configuration. // Parameters: // resourceGroupName - the name of the resource group. @@ -601,7 +576,6 @@ func (client IdentityProviderClient) Update(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client IdentityProviderClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, identityProviderName IdentityProviderType, parameters IdentityProviderUpdateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -627,7 +601,6 @@ func (client IdentityProviderClient) UpdatePreparer(ctx context.Context, resourc return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client IdentityProviderClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -635,7 +608,6 @@ func (client IdentityProviderClient) UpdateSender(req *http.Request) (*http.Resp azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client IdentityProviderClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/logger.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/logger.go index ece8e96a2d47..620b59f425c1 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/logger.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/logger.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // LoggerClient is the apiManagement Client type LoggerClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewLoggerClient creates an instance of the LoggerClient client. func NewLoggerClient(subscriptionID string) LoggerClient { return NewLoggerClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewLoggerClientWithBaseURI creates an instance of the LoggerClient client. func NewLoggerClientWithBaseURI(baseURI string, subscriptionID string) LoggerClient { return LoggerClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or Updates a logger. // Parameters: // resourceGroupName - the name of the resource group. @@ -101,7 +97,6 @@ func (client LoggerClient) CreateOrUpdate(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client LoggerClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, parameters LoggerContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -130,7 +125,6 @@ func (client LoggerClient) CreateOrUpdatePreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client LoggerClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -138,7 +132,6 @@ func (client LoggerClient) CreateOrUpdateSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client LoggerClient) CreateOrUpdateResponder(resp *http.Response) (result LoggerContract, err error) { @@ -152,7 +145,6 @@ func (client LoggerClient) CreateOrUpdateResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified logger. // Parameters: // resourceGroupName - the name of the resource group. @@ -203,7 +195,6 @@ func (client LoggerClient) Delete(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client LoggerClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -227,7 +218,6 @@ func (client LoggerClient) DeletePreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client LoggerClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -235,7 +225,6 @@ func (client LoggerClient) DeleteSender(req *http.Request) (*http.Response, erro azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client LoggerClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -248,7 +237,6 @@ func (client LoggerClient) DeleteResponder(resp *http.Response) (result autorest return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the logger specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -297,7 +285,6 @@ func (client LoggerClient) Get(ctx context.Context, resourceGroupName string, se return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client LoggerClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -320,7 +307,6 @@ func (client LoggerClient) GetPreparer(ctx context.Context, resourceGroupName st return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client LoggerClient) GetSender(req *http.Request) (*http.Response, error) { @@ -328,7 +314,6 @@ func (client LoggerClient) GetSender(req *http.Request) (*http.Response, error) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client LoggerClient) GetResponder(resp *http.Response) (result LoggerContract, err error) { @@ -342,7 +327,6 @@ func (client LoggerClient) GetResponder(resp *http.Response) (result LoggerContr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the logger specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -391,7 +375,6 @@ func (client LoggerClient) GetEntityTag(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client LoggerClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -414,7 +397,6 @@ func (client LoggerClient) GetEntityTagPreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client LoggerClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -422,7 +404,6 @@ func (client LoggerClient) GetEntityTagSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client LoggerClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -435,7 +416,6 @@ func (client LoggerClient) GetEntityTagResponder(resp *http.Response) (result au return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of loggers in the specified service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -493,7 +473,6 @@ func (client LoggerClient) ListByService(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client LoggerClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -524,7 +503,6 @@ func (client LoggerClient) ListByServicePreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client LoggerClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -532,7 +510,6 @@ func (client LoggerClient) ListByServiceSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client LoggerClient) ListByServiceResponder(resp *http.Response) (result LoggerCollection, err error) { @@ -567,7 +544,6 @@ func (client LoggerClient) listByServiceNextResults(ctx context.Context, lastRes return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client LoggerClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result LoggerCollectionIterator, err error) { if tracing.IsEnabled() { @@ -584,7 +560,6 @@ func (client LoggerClient) ListByServiceComplete(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates an existing logger. // Parameters: // resourceGroupName - the name of the resource group. @@ -636,7 +611,6 @@ func (client LoggerClient) Update(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client LoggerClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, loggerid string, parameters LoggerUpdateContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -662,7 +636,6 @@ func (client LoggerClient) UpdatePreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client LoggerClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -670,7 +643,6 @@ func (client LoggerClient) UpdateSender(req *http.Request) (*http.Response, erro azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client LoggerClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/models.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/models.go index 401e26270839..7d21aa0b07bc 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/models.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/models.go @@ -29,11 +29,9 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // The package's fully qualified name. const fqdn = "github.com/Azure/azure-sdk-for-go/services/preview/apimanagement/mgmt/2018-01-01/apimanagement" -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIType enumerates the values for api type. type APIType string @@ -44,13 +42,11 @@ const ( Soap APIType = "soap" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleAPITypeValues returns an array of possible values for the APIType const type. func PossibleAPITypeValues() []APIType { return []APIType{HTTP, Soap} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AsyncOperationStatus enumerates the values for async operation status. type AsyncOperationStatus string @@ -65,13 +61,11 @@ const ( Succeeded AsyncOperationStatus = "Succeeded" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleAsyncOperationStatusValues returns an array of possible values for the AsyncOperationStatus const type. func PossibleAsyncOperationStatusValues() []AsyncOperationStatus { return []AsyncOperationStatus{Failed, InProgress, Started, Succeeded} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AuthorizationMethod enumerates the values for authorization method. type AuthorizationMethod string @@ -94,13 +88,11 @@ const ( TRACE AuthorizationMethod = "TRACE" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleAuthorizationMethodValues returns an array of possible values for the AuthorizationMethod const type. func PossibleAuthorizationMethodValues() []AuthorizationMethod { return []AuthorizationMethod{DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendProtocol enumerates the values for backend protocol. type BackendProtocol string @@ -111,13 +103,11 @@ const ( BackendProtocolSoap BackendProtocol = "soap" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleBackendProtocolValues returns an array of possible values for the BackendProtocol const type. func PossibleBackendProtocolValues() []BackendProtocol { return []BackendProtocol{BackendProtocolHTTP, BackendProtocolSoap} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BearerTokenSendingMethod enumerates the values for bearer token sending method. type BearerTokenSendingMethod string @@ -128,13 +118,11 @@ const ( Query BearerTokenSendingMethod = "query" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleBearerTokenSendingMethodValues returns an array of possible values for the BearerTokenSendingMethod const type. func PossibleBearerTokenSendingMethodValues() []BearerTokenSendingMethod { return []BearerTokenSendingMethod{AuthorizationHeader, Query} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BearerTokenSendingMethods enumerates the values for bearer token sending methods. type BearerTokenSendingMethods string @@ -146,13 +134,11 @@ const ( BearerTokenSendingMethodsQuery BearerTokenSendingMethods = "query" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleBearerTokenSendingMethodsValues returns an array of possible values for the BearerTokenSendingMethods const type. func PossibleBearerTokenSendingMethodsValues() []BearerTokenSendingMethods { return []BearerTokenSendingMethods{BearerTokenSendingMethodsAuthorizationHeader, BearerTokenSendingMethodsQuery} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ClientAuthenticationMethod enumerates the values for client authentication method. type ClientAuthenticationMethod string @@ -163,13 +149,11 @@ const ( Body ClientAuthenticationMethod = "Body" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleClientAuthenticationMethodValues returns an array of possible values for the ClientAuthenticationMethod const type. func PossibleClientAuthenticationMethodValues() []ClientAuthenticationMethod { return []ClientAuthenticationMethod{Basic, Body} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Confirmation enumerates the values for confirmation. type Confirmation string @@ -180,13 +164,11 @@ const ( Signup Confirmation = "signup" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleConfirmationValues returns an array of possible values for the Confirmation const type. func PossibleConfirmationValues() []Confirmation { return []Confirmation{Invite, Signup} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ConnectivityStatusType enumerates the values for connectivity status type. type ConnectivityStatusType string @@ -199,13 +181,11 @@ const ( Success ConnectivityStatusType = "success" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleConnectivityStatusTypeValues returns an array of possible values for the ConnectivityStatusType const type. func PossibleConnectivityStatusTypeValues() []ConnectivityStatusType { return []ConnectivityStatusType{Failure, Initializing, Success} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ContentFormat enumerates the values for content format. type ContentFormat string @@ -224,13 +204,11 @@ const ( WsdlLink ContentFormat = "wsdl-link" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleContentFormatValues returns an array of possible values for the ContentFormat const type. func PossibleContentFormatValues() []ContentFormat { return []ContentFormat{SwaggerJSON, SwaggerLinkJSON, WadlLinkJSON, WadlXML, Wsdl, WsdlLink} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ExportFormat enumerates the values for export format. type ExportFormat string @@ -244,13 +222,11 @@ const ( ExportFormatWsdl ExportFormat = "wsdl-link" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleExportFormatValues returns an array of possible values for the ExportFormat const type. func PossibleExportFormatValues() []ExportFormat { return []ExportFormat{ExportFormatSwagger, ExportFormatWadl, ExportFormatWsdl} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GrantType enumerates the values for grant type. type GrantType string @@ -268,13 +244,11 @@ const ( ResourceOwnerPassword GrantType = "resourceOwnerPassword" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleGrantTypeValues returns an array of possible values for the GrantType const type. func PossibleGrantTypeValues() []GrantType { return []GrantType{AuthorizationCode, ClientCredentials, Implicit, ResourceOwnerPassword} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupType enumerates the values for group type. type GroupType string @@ -287,13 +261,11 @@ const ( System GroupType = "system" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleGroupTypeValues returns an array of possible values for the GroupType const type. func PossibleGroupTypeValues() []GroupType { return []GroupType{Custom, External, System} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // HostnameType enumerates the values for hostname type. type HostnameType string @@ -308,13 +280,11 @@ const ( Scm HostnameType = "Scm" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleHostnameTypeValues returns an array of possible values for the HostnameType const type. func PossibleHostnameTypeValues() []HostnameType { return []HostnameType{Management, Portal, Proxy, Scm} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IdentityProviderType enumerates the values for identity provider type. type IdentityProviderType string @@ -333,13 +303,11 @@ const ( Twitter IdentityProviderType = "twitter" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleIdentityProviderTypeValues returns an array of possible values for the IdentityProviderType const type. func PossibleIdentityProviderTypeValues() []IdentityProviderType { return []IdentityProviderType{Aad, AadB2C, Facebook, Google, Microsoft, Twitter} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // KeyType enumerates the values for key type. type KeyType string @@ -350,13 +318,11 @@ const ( Secondary KeyType = "secondary" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleKeyTypeValues returns an array of possible values for the KeyType const type. func PossibleKeyTypeValues() []KeyType { return []KeyType{Primary, Secondary} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // LoggerType enumerates the values for logger type. type LoggerType string @@ -367,13 +333,11 @@ const ( AzureEventHub LoggerType = "azureEventHub" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleLoggerTypeValues returns an array of possible values for the LoggerType const type. func PossibleLoggerTypeValues() []LoggerType { return []LoggerType{ApplicationInsights, AzureEventHub} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NameAvailabilityReason enumerates the values for name availability reason. type NameAvailabilityReason string @@ -386,13 +350,11 @@ const ( Valid NameAvailabilityReason = "Valid" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleNameAvailabilityReasonValues returns an array of possible values for the NameAvailabilityReason const type. func PossibleNameAvailabilityReasonValues() []NameAvailabilityReason { return []NameAvailabilityReason{AlreadyExists, Invalid, Valid} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotificationName enumerates the values for notification name. type NotificationName string @@ -419,13 +381,11 @@ const ( RequestPublisherNotificationMessage NotificationName = "RequestPublisherNotificationMessage" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleNotificationNameValues returns an array of possible values for the NotificationName const type. func PossibleNotificationNameValues() []NotificationName { return []NotificationName{AccountClosedPublisher, BCC, NewApplicationNotificationMessage, NewIssuePublisherNotificationMessage, PurchasePublisherNotificationMessage, QuotaLimitApproachingPublisherNotificationMessage, RequestPublisherNotificationMessage} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PolicyContentFormat enumerates the values for policy content format. type PolicyContentFormat string @@ -441,13 +401,11 @@ const ( XMLLink PolicyContentFormat = "xml-link" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossiblePolicyContentFormatValues returns an array of possible values for the PolicyContentFormat const type. func PossiblePolicyContentFormatValues() []PolicyContentFormat { return []PolicyContentFormat{Rawxml, RawxmlLink, XML, XMLLink} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PolicyScopeContract enumerates the values for policy scope contract. type PolicyScopeContract string @@ -464,13 +422,11 @@ const ( PolicyScopeContractTenant PolicyScopeContract = "Tenant" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossiblePolicyScopeContractValues returns an array of possible values for the PolicyScopeContract const type. func PossiblePolicyScopeContractValues() []PolicyScopeContract { return []PolicyScopeContract{PolicyScopeContractAll, PolicyScopeContractAPI, PolicyScopeContractOperation, PolicyScopeContractProduct, PolicyScopeContractTenant} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductState enumerates the values for product state. type ProductState string @@ -481,13 +437,11 @@ const ( Published ProductState = "published" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleProductStateValues returns an array of possible values for the ProductState const type. func PossibleProductStateValues() []ProductState { return []ProductState{NotPublished, Published} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Protocol enumerates the values for protocol. type Protocol string @@ -498,13 +452,11 @@ const ( ProtocolHTTPS Protocol = "https" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleProtocolValues returns an array of possible values for the Protocol const type. func PossibleProtocolValues() []Protocol { return []Protocol{ProtocolHTTP, ProtocolHTTPS} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SkuType enumerates the values for sku type. type SkuType string @@ -519,13 +471,11 @@ const ( SkuTypeStandard SkuType = "Standard" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleSkuTypeValues returns an array of possible values for the SkuType const type. func PossibleSkuTypeValues() []SkuType { return []SkuType{SkuTypeBasic, SkuTypeDeveloper, SkuTypePremium, SkuTypeStandard} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SoapAPIType enumerates the values for soap api type. type SoapAPIType string @@ -536,13 +486,11 @@ const ( SoapToRest SoapAPIType = "http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleSoapAPITypeValues returns an array of possible values for the SoapAPIType const type. func PossibleSoapAPITypeValues() []SoapAPIType { return []SoapAPIType{SoapPassThrough, SoapToRest} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // State enumerates the values for state. type State string @@ -559,13 +507,11 @@ const ( Resolved State = "resolved" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleStateValues returns an array of possible values for the State const type. func PossibleStateValues() []State { return []State{Closed, Open, Proposed, Removed, Resolved} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // StoreName enumerates the values for store name. type StoreName string @@ -576,13 +522,11 @@ const ( Root StoreName = "Root" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleStoreNameValues returns an array of possible values for the StoreName const type. func PossibleStoreNameValues() []StoreName { return []StoreName{CertificateAuthority, Root} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionState enumerates the values for subscription state. type SubscriptionState string @@ -601,13 +545,11 @@ const ( Suspended SubscriptionState = "suspended" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleSubscriptionStateValues returns an array of possible values for the SubscriptionState const type. func PossibleSubscriptionStateValues() []SubscriptionState { return []SubscriptionState{Active, Cancelled, Expired, Rejected, Submitted, Suspended} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TemplateName enumerates the values for template name. type TemplateName string @@ -642,13 +584,11 @@ const ( RequestDeveloperNotificationMessage TemplateName = "requestDeveloperNotificationMessage" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleTemplateNameValues returns an array of possible values for the TemplateName const type. func PossibleTemplateNameValues() []TemplateName { return []TemplateName{AccountClosedDeveloper, ApplicationApprovedNotificationMessage, ConfirmSignUpIdentityDefault, EmailChangeIdentityDefault, InviteUserNotificationMessage, NewCommentNotificationMessage, NewDeveloperNotificationMessage, NewIssueNotificationMessage, PasswordResetByAdminNotificationMessage, PasswordResetIdentityDefault, PurchaseDeveloperNotificationMessage, QuotaLimitApproachingDeveloperNotificationMessage, RejectDeveloperNotificationMessage, RequestDeveloperNotificationMessage} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserState enumerates the values for user state. type UserState string @@ -663,13 +603,11 @@ const ( UserStatePending UserState = "pending" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleUserStateValues returns an array of possible values for the UserState const type. func PossibleUserStateValues() []UserState { return []UserState{UserStateActive, UserStateBlocked, UserStateDeleted, UserStatePending} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // VersioningScheme enumerates the values for versioning scheme. type VersioningScheme string @@ -682,13 +620,11 @@ const ( VersioningSchemeSegment VersioningScheme = "Segment" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleVersioningSchemeValues returns an array of possible values for the VersioningScheme const type. func PossibleVersioningSchemeValues() []VersioningScheme { return []VersioningScheme{VersioningSchemeHeader, VersioningSchemeQuery, VersioningSchemeSegment} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // VersioningScheme1 enumerates the values for versioning scheme 1. type VersioningScheme1 string @@ -701,13 +637,11 @@ const ( VersioningScheme1Segment VersioningScheme1 = "Segment" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleVersioningScheme1Values returns an array of possible values for the VersioningScheme1 const type. func PossibleVersioningScheme1Values() []VersioningScheme1 { return []VersioningScheme1{VersioningScheme1Header, VersioningScheme1Query, VersioningScheme1Segment} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // VirtualNetworkType enumerates the values for virtual network type. type VirtualNetworkType string @@ -721,13 +655,11 @@ const ( VirtualNetworkTypeNone VirtualNetworkType = "None" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PossibleVirtualNetworkTypeValues returns an array of possible values for the VirtualNetworkType const type. func PossibleVirtualNetworkTypeValues() []VirtualNetworkType { return []VirtualNetworkType{VirtualNetworkTypeExternal, VirtualNetworkTypeInternal, VirtualNetworkTypeNone} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AccessInformationContract tenant access information contract of the API Management service. type AccessInformationContract struct { autorest.Response `json:"-"` @@ -741,7 +673,6 @@ type AccessInformationContract struct { Enabled *bool `json:"enabled,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AccessInformationUpdateParameters tenant access information update parameters of the API Management // service. type AccessInformationUpdateParameters struct { @@ -749,7 +680,6 @@ type AccessInformationUpdateParameters struct { Enabled *bool `json:"enabled,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AdditionalLocation description of an additional API Management resource location. type AdditionalLocation struct { // Location - The location name of the additional region among Azure Data center regions. @@ -766,7 +696,6 @@ type AdditionalLocation struct { GatewayRegionalURL *string `json:"gatewayRegionalUrl,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APICollection paged Api list representation. type APICollection struct { autorest.Response `json:"-"` @@ -776,14 +705,12 @@ type APICollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APICollectionIterator provides access to a complete listing of APIContract values. type APICollectionIterator struct { i int page APICollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *APICollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -810,7 +737,6 @@ func (iter *APICollectionIterator) NextWithContext(ctx context.Context) (err err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -818,19 +744,16 @@ func (iter *APICollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter APICollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter APICollectionIterator) Response() APICollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter APICollectionIterator) Value() APIContract { @@ -840,7 +763,6 @@ func (iter APICollectionIterator) Value() APIContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (ac APICollection) IsEmpty() bool { return ac.Value == nil || len(*ac.Value) == 0 @@ -858,14 +780,12 @@ func (ac APICollection) aPICollectionPreparer(ctx context.Context) (*http.Reques autorest.WithBaseURL(to.String(ac.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APICollectionPage contains a page of APIContract values. type APICollectionPage struct { fn func(context.Context, APICollection) (APICollection, error) ac APICollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *APICollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -887,7 +807,6 @@ func (page *APICollectionPage) NextWithContext(ctx context.Context) (err error) return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -895,19 +814,16 @@ func (page *APICollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page APICollectionPage) NotDone() bool { return !page.ac.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page APICollectionPage) Response() APICollection { return page.ac } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page APICollectionPage) Values() []APIContract { if page.ac.IsEmpty() { @@ -916,7 +832,6 @@ func (page APICollectionPage) Values() []APIContract { return *page.ac.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIContract API details. type APIContract struct { autorest.Response `json:"-"` @@ -930,7 +845,6 @@ type APIContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for APIContract. func (ac APIContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -949,7 +863,6 @@ func (ac APIContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for APIContract struct. func (ac *APIContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -1001,7 +914,6 @@ func (ac *APIContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIContractProperties api Entity Properties type APIContractProperties struct { // DisplayName - API name. @@ -1037,7 +949,6 @@ type APIContractProperties struct { APIVersionSetID *string `json:"apiVersionSetId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIContractUpdateProperties API update contract properties. type APIContractUpdateProperties struct { // DisplayName - API name. @@ -1072,14 +983,12 @@ type APIContractUpdateProperties struct { APIVersionSetID *string `json:"apiVersionSetId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APICreateOrUpdateParameter API Create or Update Parameters. type APICreateOrUpdateParameter struct { // APICreateOrUpdateProperties - Api entity create of update properties. *APICreateOrUpdateProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for APICreateOrUpdateParameter. func (acoup APICreateOrUpdateParameter) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -1089,7 +998,6 @@ func (acoup APICreateOrUpdateParameter) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for APICreateOrUpdateParameter struct. func (acoup *APICreateOrUpdateParameter) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -1114,7 +1022,6 @@ func (acoup *APICreateOrUpdateParameter) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APICreateOrUpdateProperties api Create or Update Properties. type APICreateOrUpdateProperties struct { // ContentValue - Content value when Importing an API. @@ -1160,7 +1067,6 @@ type APICreateOrUpdateProperties struct { APIVersionSetID *string `json:"apiVersionSetId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APICreateOrUpdatePropertiesWsdlSelector criteria to limit import of WSDL to a subset of the document. type APICreateOrUpdatePropertiesWsdlSelector struct { // WsdlServiceName - Name of service to import from WSDL @@ -1169,7 +1075,6 @@ type APICreateOrUpdatePropertiesWsdlSelector struct { WsdlEndpointName *string `json:"wsdlEndpointName,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIEntityBaseContract API base contract details. type APIEntityBaseContract struct { // Description - Description of the API. May include HTML formatting tags. @@ -1196,7 +1101,6 @@ type APIEntityBaseContract struct { APIVersionSetID *string `json:"apiVersionSetId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIExportResult API Export result Blob Uri. type APIExportResult struct { autorest.Response `json:"-"` @@ -1204,7 +1108,6 @@ type APIExportResult struct { Link *string `json:"link,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ApimResource the Resource definition. type ApimResource struct { // ID - Resource ID. @@ -1217,7 +1120,6 @@ type ApimResource struct { Tags map[string]*string `json:"tags"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for ApimResource. func (ar ApimResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -1236,7 +1138,6 @@ func (ar ApimResource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIReleaseCollection paged Api Revision list representation. type APIReleaseCollection struct { autorest.Response `json:"-"` @@ -1246,14 +1147,12 @@ type APIReleaseCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIReleaseCollectionIterator provides access to a complete listing of APIReleaseContract values. type APIReleaseCollectionIterator struct { i int page APIReleaseCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *APIReleaseCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -1280,7 +1179,6 @@ func (iter *APIReleaseCollectionIterator) NextWithContext(ctx context.Context) ( return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -1288,19 +1186,16 @@ func (iter *APIReleaseCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter APIReleaseCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter APIReleaseCollectionIterator) Response() APIReleaseCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter APIReleaseCollectionIterator) Value() APIReleaseContract { @@ -1310,7 +1205,6 @@ func (iter APIReleaseCollectionIterator) Value() APIReleaseContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (arc APIReleaseCollection) IsEmpty() bool { return arc.Value == nil || len(*arc.Value) == 0 @@ -1328,14 +1222,12 @@ func (arc APIReleaseCollection) aPIReleaseCollectionPreparer(ctx context.Context autorest.WithBaseURL(to.String(arc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIReleaseCollectionPage contains a page of APIReleaseContract values. type APIReleaseCollectionPage struct { fn func(context.Context, APIReleaseCollection) (APIReleaseCollection, error) arc APIReleaseCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *APIReleaseCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -1357,7 +1249,6 @@ func (page *APIReleaseCollectionPage) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -1365,19 +1256,16 @@ func (page *APIReleaseCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page APIReleaseCollectionPage) NotDone() bool { return !page.arc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page APIReleaseCollectionPage) Response() APIReleaseCollection { return page.arc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page APIReleaseCollectionPage) Values() []APIReleaseContract { if page.arc.IsEmpty() { @@ -1386,7 +1274,6 @@ func (page APIReleaseCollectionPage) Values() []APIReleaseContract { return *page.arc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIReleaseContract api Release details. type APIReleaseContract struct { autorest.Response `json:"-"` @@ -1400,7 +1287,6 @@ type APIReleaseContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for APIReleaseContract. func (arc APIReleaseContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -1419,7 +1305,6 @@ func (arc APIReleaseContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for APIReleaseContract struct. func (arc *APIReleaseContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -1471,7 +1356,6 @@ func (arc *APIReleaseContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIReleaseContractProperties API Release details type APIReleaseContractProperties struct { // APIID - Identifier of the API the release belongs to. @@ -1484,7 +1368,6 @@ type APIReleaseContractProperties struct { Notes *string `json:"notes,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIRevisionCollection paged Api Revision list representation. type APIRevisionCollection struct { autorest.Response `json:"-"` @@ -1494,14 +1377,12 @@ type APIRevisionCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIRevisionCollectionIterator provides access to a complete listing of APIRevisionContract values. type APIRevisionCollectionIterator struct { i int page APIRevisionCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *APIRevisionCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -1528,7 +1409,6 @@ func (iter *APIRevisionCollectionIterator) NextWithContext(ctx context.Context) return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -1536,19 +1416,16 @@ func (iter *APIRevisionCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter APIRevisionCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter APIRevisionCollectionIterator) Response() APIRevisionCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter APIRevisionCollectionIterator) Value() APIRevisionContract { @@ -1558,7 +1435,6 @@ func (iter APIRevisionCollectionIterator) Value() APIRevisionContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (arc APIRevisionCollection) IsEmpty() bool { return arc.Value == nil || len(*arc.Value) == 0 @@ -1576,14 +1452,12 @@ func (arc APIRevisionCollection) aPIRevisionCollectionPreparer(ctx context.Conte autorest.WithBaseURL(to.String(arc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIRevisionCollectionPage contains a page of APIRevisionContract values. type APIRevisionCollectionPage struct { fn func(context.Context, APIRevisionCollection) (APIRevisionCollection, error) arc APIRevisionCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *APIRevisionCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -1605,7 +1479,6 @@ func (page *APIRevisionCollectionPage) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -1613,19 +1486,16 @@ func (page *APIRevisionCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page APIRevisionCollectionPage) NotDone() bool { return !page.arc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page APIRevisionCollectionPage) Response() APIRevisionCollection { return page.arc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page APIRevisionCollectionPage) Values() []APIRevisionContract { if page.arc.IsEmpty() { @@ -1634,7 +1504,6 @@ func (page APIRevisionCollectionPage) Values() []APIRevisionContract { return *page.arc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIRevisionContract summary of revision metadata. type APIRevisionContract struct { // APIID - Identifier of the API Revision. @@ -1655,7 +1524,6 @@ type APIRevisionContract struct { IsCurrent *bool `json:"isCurrent,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIRevisionInfoContract object used to create an API Revision or Version based on an existing API // Revision type APIRevisionInfoContract struct { @@ -1669,7 +1537,6 @@ type APIRevisionInfoContract struct { APIVersionSet *APIVersionSetContractDetails `json:"apiVersionSet,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APITagResourceContractProperties API contract properties for the Tag Resources. type APITagResourceContractProperties struct { // ID - API identifier in the form /apis/{apiId}. @@ -1706,14 +1573,12 @@ type APITagResourceContractProperties struct { APIVersionSetID *string `json:"apiVersionSetId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIUpdateContract API update contract details. type APIUpdateContract struct { // APIContractUpdateProperties - Properties of the API entity that can be updated. *APIContractUpdateProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for APIUpdateContract. func (auc APIUpdateContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -1723,7 +1588,6 @@ func (auc APIUpdateContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for APIUpdateContract struct. func (auc *APIUpdateContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -1748,7 +1612,6 @@ func (auc *APIUpdateContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIVersionSetCollection paged Api Version Set list representation. type APIVersionSetCollection struct { autorest.Response `json:"-"` @@ -1758,14 +1621,12 @@ type APIVersionSetCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIVersionSetCollectionIterator provides access to a complete listing of APIVersionSetContract values. type APIVersionSetCollectionIterator struct { i int page APIVersionSetCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *APIVersionSetCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -1792,7 +1653,6 @@ func (iter *APIVersionSetCollectionIterator) NextWithContext(ctx context.Context return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -1800,19 +1660,16 @@ func (iter *APIVersionSetCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter APIVersionSetCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter APIVersionSetCollectionIterator) Response() APIVersionSetCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter APIVersionSetCollectionIterator) Value() APIVersionSetContract { @@ -1822,7 +1679,6 @@ func (iter APIVersionSetCollectionIterator) Value() APIVersionSetContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (avsc APIVersionSetCollection) IsEmpty() bool { return avsc.Value == nil || len(*avsc.Value) == 0 @@ -1840,14 +1696,12 @@ func (avsc APIVersionSetCollection) aPIVersionSetCollectionPreparer(ctx context. autorest.WithBaseURL(to.String(avsc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIVersionSetCollectionPage contains a page of APIVersionSetContract values. type APIVersionSetCollectionPage struct { fn func(context.Context, APIVersionSetCollection) (APIVersionSetCollection, error) avsc APIVersionSetCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *APIVersionSetCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -1869,7 +1723,6 @@ func (page *APIVersionSetCollectionPage) NextWithContext(ctx context.Context) (e return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -1877,19 +1730,16 @@ func (page *APIVersionSetCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page APIVersionSetCollectionPage) NotDone() bool { return !page.avsc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page APIVersionSetCollectionPage) Response() APIVersionSetCollection { return page.avsc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page APIVersionSetCollectionPage) Values() []APIVersionSetContract { if page.avsc.IsEmpty() { @@ -1898,7 +1748,6 @@ func (page APIVersionSetCollectionPage) Values() []APIVersionSetContract { return *page.avsc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIVersionSetContract api Version Set Contract details. type APIVersionSetContract struct { autorest.Response `json:"-"` @@ -1912,7 +1761,6 @@ type APIVersionSetContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for APIVersionSetContract. func (avsc APIVersionSetContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -1931,7 +1779,6 @@ func (avsc APIVersionSetContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for APIVersionSetContract struct. func (avsc *APIVersionSetContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -1983,7 +1830,6 @@ func (avsc *APIVersionSetContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIVersionSetContractDetails an API Version Set contains the common configuration for a set of API // Versions relating type APIVersionSetContractDetails struct { @@ -1999,7 +1845,6 @@ type APIVersionSetContractDetails struct { VersionHeaderName *string `json:"versionHeaderName,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIVersionSetContractProperties properties of an API Version Set. type APIVersionSetContractProperties struct { // DisplayName - Name of API Version Set @@ -2014,7 +1859,6 @@ type APIVersionSetContractProperties struct { VersionHeaderName *string `json:"versionHeaderName,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIVersionSetEntityBase api Version set base parameters type APIVersionSetEntityBase struct { // Description - Description of API Version Set. @@ -2025,14 +1869,12 @@ type APIVersionSetEntityBase struct { VersionHeaderName *string `json:"versionHeaderName,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIVersionSetUpdateParameters parameters to update or create an Api Version Set Contract. type APIVersionSetUpdateParameters struct { // APIVersionSetUpdateParametersProperties - Parameters to update or create an Api Version Set Contract. *APIVersionSetUpdateParametersProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for APIVersionSetUpdateParameters. func (avsup APIVersionSetUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -2042,7 +1884,6 @@ func (avsup APIVersionSetUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for APIVersionSetUpdateParameters struct. func (avsup *APIVersionSetUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -2067,7 +1908,6 @@ func (avsup *APIVersionSetUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // APIVersionSetUpdateParametersProperties properties used to create or update an API Version Set. type APIVersionSetUpdateParametersProperties struct { // DisplayName - Name of API Version Set @@ -2082,7 +1922,6 @@ type APIVersionSetUpdateParametersProperties struct { VersionHeaderName *string `json:"versionHeaderName,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AuthenticationSettingsContract API Authentication Settings. type AuthenticationSettingsContract struct { // OAuth2 - OAuth2 Authentication settings @@ -2093,7 +1932,6 @@ type AuthenticationSettingsContract struct { SubscriptionKeyRequired *bool `json:"subscriptionKeyRequired,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AuthorizationServerCollection paged OAuth2 Authorization Servers list representation. type AuthorizationServerCollection struct { autorest.Response `json:"-"` @@ -2105,7 +1943,6 @@ type AuthorizationServerCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AuthorizationServerCollectionIterator provides access to a complete listing of // AuthorizationServerContract values. type AuthorizationServerCollectionIterator struct { @@ -2113,7 +1950,6 @@ type AuthorizationServerCollectionIterator struct { page AuthorizationServerCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *AuthorizationServerCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -2140,7 +1976,6 @@ func (iter *AuthorizationServerCollectionIterator) NextWithContext(ctx context.C return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -2148,19 +1983,16 @@ func (iter *AuthorizationServerCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter AuthorizationServerCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter AuthorizationServerCollectionIterator) Response() AuthorizationServerCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter AuthorizationServerCollectionIterator) Value() AuthorizationServerContract { @@ -2170,7 +2002,6 @@ func (iter AuthorizationServerCollectionIterator) Value() AuthorizationServerCon return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (asc AuthorizationServerCollection) IsEmpty() bool { return asc.Value == nil || len(*asc.Value) == 0 @@ -2188,14 +2019,12 @@ func (asc AuthorizationServerCollection) authorizationServerCollectionPreparer(c autorest.WithBaseURL(to.String(asc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AuthorizationServerCollectionPage contains a page of AuthorizationServerContract values. type AuthorizationServerCollectionPage struct { fn func(context.Context, AuthorizationServerCollection) (AuthorizationServerCollection, error) asc AuthorizationServerCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *AuthorizationServerCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -2217,7 +2046,6 @@ func (page *AuthorizationServerCollectionPage) NextWithContext(ctx context.Conte return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -2225,19 +2053,16 @@ func (page *AuthorizationServerCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page AuthorizationServerCollectionPage) NotDone() bool { return !page.asc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page AuthorizationServerCollectionPage) Response() AuthorizationServerCollection { return page.asc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page AuthorizationServerCollectionPage) Values() []AuthorizationServerContract { if page.asc.IsEmpty() { @@ -2246,7 +2071,6 @@ func (page AuthorizationServerCollectionPage) Values() []AuthorizationServerCont return *page.asc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AuthorizationServerContract external OAuth authorization server settings. type AuthorizationServerContract struct { autorest.Response `json:"-"` @@ -2260,7 +2084,6 @@ type AuthorizationServerContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for AuthorizationServerContract. func (asc AuthorizationServerContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -2279,7 +2102,6 @@ func (asc AuthorizationServerContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for AuthorizationServerContract struct. func (asc *AuthorizationServerContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -2331,7 +2153,6 @@ func (asc *AuthorizationServerContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AuthorizationServerContractBaseProperties external OAuth authorization server Update settings contract. type AuthorizationServerContractBaseProperties struct { // Description - Description of the authorization server. Can contain HTML formatting tags. @@ -2358,7 +2179,6 @@ type AuthorizationServerContractBaseProperties struct { ResourceOwnerPassword *string `json:"resourceOwnerPassword,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AuthorizationServerContractProperties external OAuth authorization server settings Properties. type AuthorizationServerContractProperties struct { // DisplayName - User-friendly authorization server name. @@ -2395,7 +2215,6 @@ type AuthorizationServerContractProperties struct { ResourceOwnerPassword *string `json:"resourceOwnerPassword,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AuthorizationServerUpdateContract external OAuth authorization server settings. type AuthorizationServerUpdateContract struct { // AuthorizationServerUpdateContractProperties - Properties of the External OAuth authorization server update Contract. @@ -2408,7 +2227,6 @@ type AuthorizationServerUpdateContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for AuthorizationServerUpdateContract. func (asuc AuthorizationServerUpdateContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -2427,7 +2245,6 @@ func (asuc AuthorizationServerUpdateContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for AuthorizationServerUpdateContract struct. func (asuc *AuthorizationServerUpdateContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -2479,7 +2296,6 @@ func (asuc *AuthorizationServerUpdateContract) UnmarshalJSON(body []byte) error return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AuthorizationServerUpdateContractProperties external OAuth authorization server Update settings // contract. type AuthorizationServerUpdateContractProperties struct { @@ -2517,7 +2333,6 @@ type AuthorizationServerUpdateContractProperties struct { ResourceOwnerPassword *string `json:"resourceOwnerPassword,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendAuthorizationHeaderCredentials authorization header information. type BackendAuthorizationHeaderCredentials struct { // Scheme - Authentication Scheme name. @@ -2526,7 +2341,6 @@ type BackendAuthorizationHeaderCredentials struct { Parameter *string `json:"parameter,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendBaseParameters backend entity base Parameter set. type BackendBaseParameters struct { // Title - Backend Title. @@ -2545,7 +2359,6 @@ type BackendBaseParameters struct { TLS *BackendTLSProperties `json:"tls,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendCollection paged Backend list representation. type BackendCollection struct { autorest.Response `json:"-"` @@ -2555,14 +2368,12 @@ type BackendCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendCollectionIterator provides access to a complete listing of BackendContract values. type BackendCollectionIterator struct { i int page BackendCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *BackendCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -2589,7 +2400,6 @@ func (iter *BackendCollectionIterator) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -2597,19 +2407,16 @@ func (iter *BackendCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter BackendCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter BackendCollectionIterator) Response() BackendCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter BackendCollectionIterator) Value() BackendContract { @@ -2619,7 +2426,6 @@ func (iter BackendCollectionIterator) Value() BackendContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (bc BackendCollection) IsEmpty() bool { return bc.Value == nil || len(*bc.Value) == 0 @@ -2637,14 +2443,12 @@ func (bc BackendCollection) backendCollectionPreparer(ctx context.Context) (*htt autorest.WithBaseURL(to.String(bc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendCollectionPage contains a page of BackendContract values. type BackendCollectionPage struct { fn func(context.Context, BackendCollection) (BackendCollection, error) bc BackendCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *BackendCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -2666,7 +2470,6 @@ func (page *BackendCollectionPage) NextWithContext(ctx context.Context) (err err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -2674,19 +2477,16 @@ func (page *BackendCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page BackendCollectionPage) NotDone() bool { return !page.bc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page BackendCollectionPage) Response() BackendCollection { return page.bc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page BackendCollectionPage) Values() []BackendContract { if page.bc.IsEmpty() { @@ -2695,7 +2495,6 @@ func (page BackendCollectionPage) Values() []BackendContract { return *page.bc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendContract backend details. type BackendContract struct { autorest.Response `json:"-"` @@ -2709,7 +2508,6 @@ type BackendContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for BackendContract. func (bc BackendContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -2728,7 +2526,6 @@ func (bc BackendContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for BackendContract struct. func (bc *BackendContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -2780,7 +2577,6 @@ func (bc *BackendContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendContractProperties parameters supplied to the Create Backend operation. type BackendContractProperties struct { // URL - Runtime Url of the Backend. @@ -2803,7 +2599,6 @@ type BackendContractProperties struct { TLS *BackendTLSProperties `json:"tls,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendCredentialsContract details of the Credentials used to connect to Backend. type BackendCredentialsContract struct { // Certificate - List of Client Certificate Thumbprint. @@ -2816,7 +2611,6 @@ type BackendCredentialsContract struct { Authorization *BackendAuthorizationHeaderCredentials `json:"authorization,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for BackendCredentialsContract. func (bcc BackendCredentialsContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -2835,14 +2629,12 @@ func (bcc BackendCredentialsContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendProperties properties specific to the Backend Type. type BackendProperties struct { // ServiceFabricCluster - Backend Service Fabric Cluster Properties ServiceFabricCluster *BackendServiceFabricClusterProperties `json:"serviceFabricCluster,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendProxyContract details of the Backend WebProxy Server to use in the Request to Backend. type BackendProxyContract struct { // URL - WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings. @@ -2853,7 +2645,6 @@ type BackendProxyContract struct { Password *string `json:"password,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendReconnectContract reconnect request parameters. type BackendReconnectContract struct { // BackendReconnectProperties - Reconnect request properties. @@ -2866,7 +2657,6 @@ type BackendReconnectContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for BackendReconnectContract. func (brc BackendReconnectContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -2885,7 +2675,6 @@ func (brc BackendReconnectContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for BackendReconnectContract struct. func (brc *BackendReconnectContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -2937,14 +2726,12 @@ func (brc *BackendReconnectContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendReconnectProperties properties to control reconnect requests. type BackendReconnectProperties struct { // After - Duration in ISO8601 format after which reconnect will be initiated. Minimum duration of the Reconect is PT2M. After *string `json:"after,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendServiceFabricClusterProperties properties of the Service Fabric Type Backend. type BackendServiceFabricClusterProperties struct { // ClientCertificatethumbprint - The client certificate thumbprint for the management endpoint. @@ -2959,7 +2746,6 @@ type BackendServiceFabricClusterProperties struct { ServerX509Names *[]X509CertificateName `json:"serverX509Names,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendTLSProperties properties controlling TLS Certificate Validation. type BackendTLSProperties struct { // ValidateCertificateChain - Flag indicating whether SSL certificate chain validation should be done when using self-signed certificates for this backend host. @@ -2968,7 +2754,6 @@ type BackendTLSProperties struct { ValidateCertificateName *bool `json:"validateCertificateName,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendUpdateParameterProperties parameters supplied to the Update Backend operation. type BackendUpdateParameterProperties struct { // URL - Runtime Url of the Backend. @@ -2991,14 +2776,12 @@ type BackendUpdateParameterProperties struct { TLS *BackendTLSProperties `json:"tls,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackendUpdateParameters backend update parameters. type BackendUpdateParameters struct { // BackendUpdateParameterProperties - Backend entity update contract properties. *BackendUpdateParameterProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for BackendUpdateParameters. func (bup BackendUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -3008,7 +2791,6 @@ func (bup BackendUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for BackendUpdateParameters struct. func (bup *BackendUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -3033,7 +2815,6 @@ func (bup *BackendUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CertificateCollection paged Certificates list representation. type CertificateCollection struct { autorest.Response `json:"-"` @@ -3043,14 +2824,12 @@ type CertificateCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CertificateCollectionIterator provides access to a complete listing of CertificateContract values. type CertificateCollectionIterator struct { i int page CertificateCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *CertificateCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -3077,7 +2856,6 @@ func (iter *CertificateCollectionIterator) NextWithContext(ctx context.Context) return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -3085,19 +2863,16 @@ func (iter *CertificateCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter CertificateCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter CertificateCollectionIterator) Response() CertificateCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter CertificateCollectionIterator) Value() CertificateContract { @@ -3107,7 +2882,6 @@ func (iter CertificateCollectionIterator) Value() CertificateContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (cc CertificateCollection) IsEmpty() bool { return cc.Value == nil || len(*cc.Value) == 0 @@ -3125,14 +2899,12 @@ func (cc CertificateCollection) certificateCollectionPreparer(ctx context.Contex autorest.WithBaseURL(to.String(cc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CertificateCollectionPage contains a page of CertificateContract values. type CertificateCollectionPage struct { fn func(context.Context, CertificateCollection) (CertificateCollection, error) cc CertificateCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *CertificateCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -3154,7 +2926,6 @@ func (page *CertificateCollectionPage) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -3162,19 +2933,16 @@ func (page *CertificateCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page CertificateCollectionPage) NotDone() bool { return !page.cc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page CertificateCollectionPage) Response() CertificateCollection { return page.cc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page CertificateCollectionPage) Values() []CertificateContract { if page.cc.IsEmpty() { @@ -3183,7 +2951,6 @@ func (page CertificateCollectionPage) Values() []CertificateContract { return *page.cc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CertificateConfiguration certificate configuration which consist of non-trusted intermediates and root // certificates. type CertificateConfiguration struct { @@ -3197,7 +2964,6 @@ type CertificateConfiguration struct { Certificate *CertificateInformation `json:"certificate,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CertificateContract certificate details. type CertificateContract struct { autorest.Response `json:"-"` @@ -3211,7 +2977,6 @@ type CertificateContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for CertificateContract. func (cc CertificateContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -3230,7 +2995,6 @@ func (cc CertificateContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for CertificateContract struct. func (cc *CertificateContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -3282,7 +3046,6 @@ func (cc *CertificateContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CertificateContractProperties properties of the Certificate contract. type CertificateContractProperties struct { // Subject - Subject attribute of the certificate. @@ -3293,14 +3056,12 @@ type CertificateContractProperties struct { ExpirationDate *date.Time `json:"expirationDate,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CertificateCreateOrUpdateParameters certificate create or update details. type CertificateCreateOrUpdateParameters struct { // CertificateCreateOrUpdateProperties - Certificate create or update properties details. *CertificateCreateOrUpdateProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for CertificateCreateOrUpdateParameters. func (ccoup CertificateCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -3310,7 +3071,6 @@ func (ccoup CertificateCreateOrUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for CertificateCreateOrUpdateParameters struct. func (ccoup *CertificateCreateOrUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -3335,7 +3095,6 @@ func (ccoup *CertificateCreateOrUpdateParameters) UnmarshalJSON(body []byte) err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CertificateCreateOrUpdateProperties parameters supplied to the CreateOrUpdate certificate operation. type CertificateCreateOrUpdateProperties struct { // Data - Base 64 encoded certificate using the application/x-pkcs12 representation. @@ -3344,7 +3103,6 @@ type CertificateCreateOrUpdateProperties struct { Password *string `json:"password,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CertificateInformation SSL certificate information. type CertificateInformation struct { autorest.Response `json:"-"` @@ -3356,7 +3114,6 @@ type CertificateInformation struct { Subject *string `json:"subject,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ConnectivityStatusContract details about connectivity to a resource. type ConnectivityStatusContract struct { // Name - The hostname of the resource which the service depends on. This can be the database, storage or any other azure resource on which the service depends upon. @@ -3371,7 +3128,6 @@ type ConnectivityStatusContract struct { LastStatusChange *date.Time `json:"lastStatusChange,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeployConfigurationParameters parameters supplied to the Deploy Configuration operation. type DeployConfigurationParameters struct { // Branch - The name of the Git branch from which the configuration is to be deployed to the configuration database. @@ -3380,7 +3136,6 @@ type DeployConfigurationParameters struct { Force *bool `json:"force,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DiagnosticCollection paged Diagnostic list representation. type DiagnosticCollection struct { autorest.Response `json:"-"` @@ -3390,14 +3145,12 @@ type DiagnosticCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DiagnosticCollectionIterator provides access to a complete listing of DiagnosticContract values. type DiagnosticCollectionIterator struct { i int page DiagnosticCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *DiagnosticCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -3424,7 +3177,6 @@ func (iter *DiagnosticCollectionIterator) NextWithContext(ctx context.Context) ( return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -3432,19 +3184,16 @@ func (iter *DiagnosticCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter DiagnosticCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter DiagnosticCollectionIterator) Response() DiagnosticCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter DiagnosticCollectionIterator) Value() DiagnosticContract { @@ -3454,7 +3203,6 @@ func (iter DiagnosticCollectionIterator) Value() DiagnosticContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (dc DiagnosticCollection) IsEmpty() bool { return dc.Value == nil || len(*dc.Value) == 0 @@ -3472,14 +3220,12 @@ func (dc DiagnosticCollection) diagnosticCollectionPreparer(ctx context.Context) autorest.WithBaseURL(to.String(dc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DiagnosticCollectionPage contains a page of DiagnosticContract values. type DiagnosticCollectionPage struct { fn func(context.Context, DiagnosticCollection) (DiagnosticCollection, error) dc DiagnosticCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *DiagnosticCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -3501,7 +3247,6 @@ func (page *DiagnosticCollectionPage) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -3509,19 +3254,16 @@ func (page *DiagnosticCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page DiagnosticCollectionPage) NotDone() bool { return !page.dc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page DiagnosticCollectionPage) Response() DiagnosticCollection { return page.dc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page DiagnosticCollectionPage) Values() []DiagnosticContract { if page.dc.IsEmpty() { @@ -3530,7 +3272,6 @@ func (page DiagnosticCollectionPage) Values() []DiagnosticContract { return *page.dc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DiagnosticContract diagnostic details. type DiagnosticContract struct { autorest.Response `json:"-"` @@ -3544,7 +3285,6 @@ type DiagnosticContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for DiagnosticContract. func (dc DiagnosticContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -3563,7 +3303,6 @@ func (dc DiagnosticContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for DiagnosticContract struct. func (dc *DiagnosticContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -3615,14 +3354,12 @@ func (dc *DiagnosticContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DiagnosticContractProperties diagnostic Entity Properties type DiagnosticContractProperties struct { // Enabled - Indicates whether a diagnostic should receive data or not. Enabled *bool `json:"enabled,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // EmailTemplateCollection paged email template list representation. type EmailTemplateCollection struct { autorest.Response `json:"-"` @@ -3632,14 +3369,12 @@ type EmailTemplateCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // EmailTemplateCollectionIterator provides access to a complete listing of EmailTemplateContract values. type EmailTemplateCollectionIterator struct { i int page EmailTemplateCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *EmailTemplateCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -3666,7 +3401,6 @@ func (iter *EmailTemplateCollectionIterator) NextWithContext(ctx context.Context return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -3674,19 +3408,16 @@ func (iter *EmailTemplateCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter EmailTemplateCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter EmailTemplateCollectionIterator) Response() EmailTemplateCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter EmailTemplateCollectionIterator) Value() EmailTemplateContract { @@ -3696,7 +3427,6 @@ func (iter EmailTemplateCollectionIterator) Value() EmailTemplateContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (etc EmailTemplateCollection) IsEmpty() bool { return etc.Value == nil || len(*etc.Value) == 0 @@ -3714,14 +3444,12 @@ func (etc EmailTemplateCollection) emailTemplateCollectionPreparer(ctx context.C autorest.WithBaseURL(to.String(etc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // EmailTemplateCollectionPage contains a page of EmailTemplateContract values. type EmailTemplateCollectionPage struct { fn func(context.Context, EmailTemplateCollection) (EmailTemplateCollection, error) etc EmailTemplateCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *EmailTemplateCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -3743,7 +3471,6 @@ func (page *EmailTemplateCollectionPage) NextWithContext(ctx context.Context) (e return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -3751,19 +3478,16 @@ func (page *EmailTemplateCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page EmailTemplateCollectionPage) NotDone() bool { return !page.etc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page EmailTemplateCollectionPage) Response() EmailTemplateCollection { return page.etc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page EmailTemplateCollectionPage) Values() []EmailTemplateContract { if page.etc.IsEmpty() { @@ -3772,7 +3496,6 @@ func (page EmailTemplateCollectionPage) Values() []EmailTemplateContract { return *page.etc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // EmailTemplateContract email Template details. type EmailTemplateContract struct { autorest.Response `json:"-"` @@ -3786,7 +3509,6 @@ type EmailTemplateContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for EmailTemplateContract. func (etc EmailTemplateContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -3805,7 +3527,6 @@ func (etc EmailTemplateContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for EmailTemplateContract struct. func (etc *EmailTemplateContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -3857,7 +3578,6 @@ func (etc *EmailTemplateContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // EmailTemplateContractProperties email Template Contract properties. type EmailTemplateContractProperties struct { // Subject - Subject of the Template. @@ -3874,7 +3594,6 @@ type EmailTemplateContractProperties struct { Parameters *[]EmailTemplateParametersContractProperties `json:"parameters,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // EmailTemplateParametersContractProperties email Template Parameter contract. type EmailTemplateParametersContractProperties struct { // Name - Template parameter name. @@ -3885,7 +3604,6 @@ type EmailTemplateParametersContractProperties struct { Description *string `json:"description,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // EmailTemplateUpdateParameterProperties email Template Update Contract properties. type EmailTemplateUpdateParameterProperties struct { // Subject - Subject of the Template. @@ -3900,14 +3618,12 @@ type EmailTemplateUpdateParameterProperties struct { Parameters *[]EmailTemplateParametersContractProperties `json:"parameters,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // EmailTemplateUpdateParameters email Template update Parameters. type EmailTemplateUpdateParameters struct { // EmailTemplateUpdateParameterProperties - Email Template Update contract properties. *EmailTemplateUpdateParameterProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for EmailTemplateUpdateParameters. func (etup EmailTemplateUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -3917,7 +3633,6 @@ func (etup EmailTemplateUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for EmailTemplateUpdateParameters struct. func (etup *EmailTemplateUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -3942,7 +3657,6 @@ func (etup *EmailTemplateUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ErrorFieldContract error Field contract. type ErrorFieldContract struct { // Code - Property level error code. @@ -3953,14 +3667,12 @@ type ErrorFieldContract struct { Target *string `json:"target,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ErrorResponse error Response. type ErrorResponse struct { // ErrorResponseBody - Properties of the Error Response. *ErrorResponseBody `json:"error,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for ErrorResponse. func (er ErrorResponse) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -3970,7 +3682,6 @@ func (er ErrorResponse) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for ErrorResponse struct. func (er *ErrorResponse) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -3995,7 +3706,6 @@ func (er *ErrorResponse) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ErrorResponseBody error Body contract. type ErrorResponseBody struct { // Code - Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. @@ -4006,7 +3716,6 @@ type ErrorResponseBody struct { Details *[]ErrorFieldContract `json:"details,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GenerateSsoURLResult generate SSO Url operations response details. type GenerateSsoURLResult struct { autorest.Response `json:"-"` @@ -4014,7 +3723,6 @@ type GenerateSsoURLResult struct { Value *string `json:"value,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupCollection paged Group list representation. type GroupCollection struct { autorest.Response `json:"-"` @@ -4024,14 +3732,12 @@ type GroupCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupCollectionIterator provides access to a complete listing of GroupContract values. type GroupCollectionIterator struct { i int page GroupCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *GroupCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -4058,7 +3764,6 @@ func (iter *GroupCollectionIterator) NextWithContext(ctx context.Context) (err e return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -4066,19 +3771,16 @@ func (iter *GroupCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter GroupCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter GroupCollectionIterator) Response() GroupCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter GroupCollectionIterator) Value() GroupContract { @@ -4088,7 +3790,6 @@ func (iter GroupCollectionIterator) Value() GroupContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (gc GroupCollection) IsEmpty() bool { return gc.Value == nil || len(*gc.Value) == 0 @@ -4106,14 +3807,12 @@ func (gc GroupCollection) groupCollectionPreparer(ctx context.Context) (*http.Re autorest.WithBaseURL(to.String(gc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupCollectionPage contains a page of GroupContract values. type GroupCollectionPage struct { fn func(context.Context, GroupCollection) (GroupCollection, error) gc GroupCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *GroupCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -4135,7 +3834,6 @@ func (page *GroupCollectionPage) NextWithContext(ctx context.Context) (err error return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -4143,19 +3841,16 @@ func (page *GroupCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page GroupCollectionPage) NotDone() bool { return !page.gc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page GroupCollectionPage) Response() GroupCollection { return page.gc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page GroupCollectionPage) Values() []GroupContract { if page.gc.IsEmpty() { @@ -4164,7 +3859,6 @@ func (page GroupCollectionPage) Values() []GroupContract { return *page.gc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupContract contract details. type GroupContract struct { autorest.Response `json:"-"` @@ -4178,7 +3872,6 @@ type GroupContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for GroupContract. func (gc GroupContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -4197,7 +3890,6 @@ func (gc GroupContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for GroupContract struct. func (gc *GroupContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -4249,7 +3941,6 @@ func (gc *GroupContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupContractProperties group contract Properties. type GroupContractProperties struct { // DisplayName - Group name. @@ -4264,14 +3955,12 @@ type GroupContractProperties struct { ExternalID *string `json:"externalId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupCreateParameters parameters supplied to the Create Group operation. type GroupCreateParameters struct { // GroupCreateParametersProperties - Properties supplied to Create Group operation. *GroupCreateParametersProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for GroupCreateParameters. func (gcp GroupCreateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -4281,7 +3970,6 @@ func (gcp GroupCreateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for GroupCreateParameters struct. func (gcp *GroupCreateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -4306,7 +3994,6 @@ func (gcp *GroupCreateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupCreateParametersProperties parameters supplied to the Create Group operation. type GroupCreateParametersProperties struct { // DisplayName - Group name. @@ -4319,14 +4006,12 @@ type GroupCreateParametersProperties struct { ExternalID *string `json:"externalId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupUpdateParameters parameters supplied to the Update Group operation. type GroupUpdateParameters struct { // GroupUpdateParametersProperties - Group entity update contract properties. *GroupUpdateParametersProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for GroupUpdateParameters. func (gup GroupUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -4336,7 +4021,6 @@ func (gup GroupUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for GroupUpdateParameters struct. func (gup *GroupUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -4361,7 +4045,6 @@ func (gup *GroupUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GroupUpdateParametersProperties parameters supplied to the Update Group operation. type GroupUpdateParametersProperties struct { // DisplayName - Group name. @@ -4374,7 +4057,6 @@ type GroupUpdateParametersProperties struct { ExternalID *string `json:"externalId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // HostnameConfiguration custom hostname configuration. type HostnameConfiguration struct { // Type - Hostname type. Possible values include: 'Proxy', 'Portal', 'Management', 'Scm' @@ -4395,7 +4077,6 @@ type HostnameConfiguration struct { Certificate *CertificateInformation `json:"certificate,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // HostnameConfigurationOld custom hostname configuration. type HostnameConfigurationOld struct { // Type - Hostname type. Possible values include: 'Proxy', 'Portal', 'Management', 'Scm' @@ -4406,7 +4087,6 @@ type HostnameConfigurationOld struct { Certificate *CertificateInformation `json:"certificate,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IdentityProviderBaseParameters identity Provider Base Parameter Properties. type IdentityProviderBaseParameters struct { // Type - Identity Provider Type identifier. Possible values include: 'Facebook', 'Google', 'Microsoft', 'Twitter', 'Aad', 'AadB2C' @@ -4423,7 +4103,6 @@ type IdentityProviderBaseParameters struct { PasswordResetPolicyName *string `json:"passwordResetPolicyName,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IdentityProviderContract identity Provider details. type IdentityProviderContract struct { autorest.Response `json:"-"` @@ -4437,7 +4116,6 @@ type IdentityProviderContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for IdentityProviderContract. func (ipc IdentityProviderContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -4456,7 +4134,6 @@ func (ipc IdentityProviderContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for IdentityProviderContract struct. func (ipc *IdentityProviderContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -4508,7 +4185,6 @@ func (ipc *IdentityProviderContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IdentityProviderContractProperties the external Identity Providers like Facebook, Google, Microsoft, // Twitter or Azure Active Directory which can be used to enable access to the API Management service // developer portal for all users. @@ -4531,7 +4207,6 @@ type IdentityProviderContractProperties struct { PasswordResetPolicyName *string `json:"passwordResetPolicyName,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IdentityProviderList list of all the Identity Providers configured on the service instance. type IdentityProviderList struct { autorest.Response `json:"-"` @@ -4541,14 +4216,12 @@ type IdentityProviderList struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IdentityProviderListIterator provides access to a complete listing of IdentityProviderContract values. type IdentityProviderListIterator struct { i int page IdentityProviderListPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *IdentityProviderListIterator) NextWithContext(ctx context.Context) (err error) { @@ -4575,7 +4248,6 @@ func (iter *IdentityProviderListIterator) NextWithContext(ctx context.Context) ( return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -4583,19 +4255,16 @@ func (iter *IdentityProviderListIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter IdentityProviderListIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter IdentityProviderListIterator) Response() IdentityProviderList { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter IdentityProviderListIterator) Value() IdentityProviderContract { @@ -4605,7 +4274,6 @@ func (iter IdentityProviderListIterator) Value() IdentityProviderContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (ipl IdentityProviderList) IsEmpty() bool { return ipl.Value == nil || len(*ipl.Value) == 0 @@ -4623,14 +4291,12 @@ func (ipl IdentityProviderList) identityProviderListPreparer(ctx context.Context autorest.WithBaseURL(to.String(ipl.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IdentityProviderListPage contains a page of IdentityProviderContract values. type IdentityProviderListPage struct { fn func(context.Context, IdentityProviderList) (IdentityProviderList, error) ipl IdentityProviderList } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *IdentityProviderListPage) NextWithContext(ctx context.Context) (err error) { @@ -4652,7 +4318,6 @@ func (page *IdentityProviderListPage) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -4660,19 +4325,16 @@ func (page *IdentityProviderListPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page IdentityProviderListPage) NotDone() bool { return !page.ipl.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page IdentityProviderListPage) Response() IdentityProviderList { return page.ipl } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page IdentityProviderListPage) Values() []IdentityProviderContract { if page.ipl.IsEmpty() { @@ -4681,14 +4343,12 @@ func (page IdentityProviderListPage) Values() []IdentityProviderContract { return *page.ipl.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IdentityProviderUpdateParameters parameters supplied to update Identity Provider type IdentityProviderUpdateParameters struct { // IdentityProviderUpdateProperties - Identity Provider update properties. *IdentityProviderUpdateProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for IdentityProviderUpdateParameters. func (ipup IdentityProviderUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -4698,7 +4358,6 @@ func (ipup IdentityProviderUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for IdentityProviderUpdateParameters struct. func (ipup *IdentityProviderUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -4723,7 +4382,6 @@ func (ipup *IdentityProviderUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IdentityProviderUpdateProperties parameters supplied to the Update Identity Provider operation. type IdentityProviderUpdateProperties struct { // ClientID - Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft. @@ -4744,7 +4402,6 @@ type IdentityProviderUpdateProperties struct { PasswordResetPolicyName *string `json:"passwordResetPolicyName,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueAttachmentCollection paged Issue Attachment list representation. type IssueAttachmentCollection struct { autorest.Response `json:"-"` @@ -4754,7 +4411,6 @@ type IssueAttachmentCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueAttachmentCollectionIterator provides access to a complete listing of IssueAttachmentContract // values. type IssueAttachmentCollectionIterator struct { @@ -4762,7 +4418,6 @@ type IssueAttachmentCollectionIterator struct { page IssueAttachmentCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *IssueAttachmentCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -4789,7 +4444,6 @@ func (iter *IssueAttachmentCollectionIterator) NextWithContext(ctx context.Conte return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -4797,19 +4451,16 @@ func (iter *IssueAttachmentCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter IssueAttachmentCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter IssueAttachmentCollectionIterator) Response() IssueAttachmentCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter IssueAttachmentCollectionIterator) Value() IssueAttachmentContract { @@ -4819,7 +4470,6 @@ func (iter IssueAttachmentCollectionIterator) Value() IssueAttachmentContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (iac IssueAttachmentCollection) IsEmpty() bool { return iac.Value == nil || len(*iac.Value) == 0 @@ -4837,14 +4487,12 @@ func (iac IssueAttachmentCollection) issueAttachmentCollectionPreparer(ctx conte autorest.WithBaseURL(to.String(iac.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueAttachmentCollectionPage contains a page of IssueAttachmentContract values. type IssueAttachmentCollectionPage struct { fn func(context.Context, IssueAttachmentCollection) (IssueAttachmentCollection, error) iac IssueAttachmentCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *IssueAttachmentCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -4866,7 +4514,6 @@ func (page *IssueAttachmentCollectionPage) NextWithContext(ctx context.Context) return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -4874,19 +4521,16 @@ func (page *IssueAttachmentCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page IssueAttachmentCollectionPage) NotDone() bool { return !page.iac.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page IssueAttachmentCollectionPage) Response() IssueAttachmentCollection { return page.iac } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page IssueAttachmentCollectionPage) Values() []IssueAttachmentContract { if page.iac.IsEmpty() { @@ -4895,7 +4539,6 @@ func (page IssueAttachmentCollectionPage) Values() []IssueAttachmentContract { return *page.iac.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueAttachmentContract issue Attachment Contract details. type IssueAttachmentContract struct { autorest.Response `json:"-"` @@ -4909,7 +4552,6 @@ type IssueAttachmentContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for IssueAttachmentContract. func (iac IssueAttachmentContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -4928,7 +4570,6 @@ func (iac IssueAttachmentContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for IssueAttachmentContract struct. func (iac *IssueAttachmentContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -4980,7 +4621,6 @@ func (iac *IssueAttachmentContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueAttachmentContractProperties issue Attachment contract Properties. type IssueAttachmentContractProperties struct { // Title - Filename by which the binary data will be saved. @@ -4991,7 +4631,6 @@ type IssueAttachmentContractProperties struct { Content *string `json:"content,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueCollection paged Issue list representation. type IssueCollection struct { autorest.Response `json:"-"` @@ -5001,14 +4640,12 @@ type IssueCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueCollectionIterator provides access to a complete listing of IssueContract values. type IssueCollectionIterator struct { i int page IssueCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *IssueCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -5035,7 +4672,6 @@ func (iter *IssueCollectionIterator) NextWithContext(ctx context.Context) (err e return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -5043,19 +4679,16 @@ func (iter *IssueCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter IssueCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter IssueCollectionIterator) Response() IssueCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter IssueCollectionIterator) Value() IssueContract { @@ -5065,7 +4698,6 @@ func (iter IssueCollectionIterator) Value() IssueContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (ic IssueCollection) IsEmpty() bool { return ic.Value == nil || len(*ic.Value) == 0 @@ -5083,14 +4715,12 @@ func (ic IssueCollection) issueCollectionPreparer(ctx context.Context) (*http.Re autorest.WithBaseURL(to.String(ic.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueCollectionPage contains a page of IssueContract values. type IssueCollectionPage struct { fn func(context.Context, IssueCollection) (IssueCollection, error) ic IssueCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *IssueCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -5112,7 +4742,6 @@ func (page *IssueCollectionPage) NextWithContext(ctx context.Context) (err error return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -5120,19 +4749,16 @@ func (page *IssueCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page IssueCollectionPage) NotDone() bool { return !page.ic.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page IssueCollectionPage) Response() IssueCollection { return page.ic } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page IssueCollectionPage) Values() []IssueContract { if page.ic.IsEmpty() { @@ -5141,7 +4767,6 @@ func (page IssueCollectionPage) Values() []IssueContract { return *page.ic.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueCommentCollection paged Issue Comment list representation. type IssueCommentCollection struct { autorest.Response `json:"-"` @@ -5151,14 +4776,12 @@ type IssueCommentCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueCommentCollectionIterator provides access to a complete listing of IssueCommentContract values. type IssueCommentCollectionIterator struct { i int page IssueCommentCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *IssueCommentCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -5185,7 +4808,6 @@ func (iter *IssueCommentCollectionIterator) NextWithContext(ctx context.Context) return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -5193,19 +4815,16 @@ func (iter *IssueCommentCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter IssueCommentCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter IssueCommentCollectionIterator) Response() IssueCommentCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter IssueCommentCollectionIterator) Value() IssueCommentContract { @@ -5215,7 +4834,6 @@ func (iter IssueCommentCollectionIterator) Value() IssueCommentContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (icc IssueCommentCollection) IsEmpty() bool { return icc.Value == nil || len(*icc.Value) == 0 @@ -5233,14 +4851,12 @@ func (icc IssueCommentCollection) issueCommentCollectionPreparer(ctx context.Con autorest.WithBaseURL(to.String(icc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueCommentCollectionPage contains a page of IssueCommentContract values. type IssueCommentCollectionPage struct { fn func(context.Context, IssueCommentCollection) (IssueCommentCollection, error) icc IssueCommentCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *IssueCommentCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -5262,7 +4878,6 @@ func (page *IssueCommentCollectionPage) NextWithContext(ctx context.Context) (er return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -5270,19 +4885,16 @@ func (page *IssueCommentCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page IssueCommentCollectionPage) NotDone() bool { return !page.icc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page IssueCommentCollectionPage) Response() IssueCommentCollection { return page.icc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page IssueCommentCollectionPage) Values() []IssueCommentContract { if page.icc.IsEmpty() { @@ -5291,7 +4903,6 @@ func (page IssueCommentCollectionPage) Values() []IssueCommentContract { return *page.icc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueCommentContract issue Comment Contract details. type IssueCommentContract struct { autorest.Response `json:"-"` @@ -5305,7 +4916,6 @@ type IssueCommentContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for IssueCommentContract. func (icc IssueCommentContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -5324,7 +4934,6 @@ func (icc IssueCommentContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for IssueCommentContract struct. func (icc *IssueCommentContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -5376,7 +4985,6 @@ func (icc *IssueCommentContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueCommentContractProperties issue Comment contract Properties. type IssueCommentContractProperties struct { // Text - Comment text. @@ -5387,7 +4995,6 @@ type IssueCommentContractProperties struct { UserID *string `json:"userId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueContract issue Contract details. type IssueContract struct { autorest.Response `json:"-"` @@ -5401,7 +5008,6 @@ type IssueContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for IssueContract. func (ic IssueContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -5420,7 +5026,6 @@ func (ic IssueContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for IssueContract struct. func (ic *IssueContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -5472,7 +5077,6 @@ func (ic *IssueContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IssueContractProperties issue contract Properties. type IssueContractProperties struct { // Title - The issue title. @@ -5489,14 +5093,12 @@ type IssueContractProperties struct { APIID *string `json:"apiId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListNetworkStatusContractByLocation ... type ListNetworkStatusContractByLocation struct { autorest.Response `json:"-"` Value *[]NetworkStatusContractByLocation `json:"value,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // LoggerCollection paged Logger list representation. type LoggerCollection struct { autorest.Response `json:"-"` @@ -5508,14 +5110,12 @@ type LoggerCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // LoggerCollectionIterator provides access to a complete listing of LoggerContract values. type LoggerCollectionIterator struct { i int page LoggerCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *LoggerCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -5542,7 +5142,6 @@ func (iter *LoggerCollectionIterator) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -5550,19 +5149,16 @@ func (iter *LoggerCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter LoggerCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter LoggerCollectionIterator) Response() LoggerCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter LoggerCollectionIterator) Value() LoggerContract { @@ -5572,7 +5168,6 @@ func (iter LoggerCollectionIterator) Value() LoggerContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (lc LoggerCollection) IsEmpty() bool { return lc.Value == nil || len(*lc.Value) == 0 @@ -5590,14 +5185,12 @@ func (lc LoggerCollection) loggerCollectionPreparer(ctx context.Context) (*http. autorest.WithBaseURL(to.String(lc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // LoggerCollectionPage contains a page of LoggerContract values. type LoggerCollectionPage struct { fn func(context.Context, LoggerCollection) (LoggerCollection, error) lc LoggerCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *LoggerCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -5619,7 +5212,6 @@ func (page *LoggerCollectionPage) NextWithContext(ctx context.Context) (err erro return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -5627,19 +5219,16 @@ func (page *LoggerCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page LoggerCollectionPage) NotDone() bool { return !page.lc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page LoggerCollectionPage) Response() LoggerCollection { return page.lc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page LoggerCollectionPage) Values() []LoggerContract { if page.lc.IsEmpty() { @@ -5648,7 +5237,6 @@ func (page LoggerCollectionPage) Values() []LoggerContract { return *page.lc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // LoggerContract logger details. type LoggerContract struct { autorest.Response `json:"-"` @@ -5662,7 +5250,6 @@ type LoggerContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for LoggerContract. func (lc LoggerContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -5681,7 +5268,6 @@ func (lc LoggerContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for LoggerContract struct. func (lc *LoggerContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -5733,7 +5319,6 @@ func (lc *LoggerContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // LoggerContractProperties the Logger entity in API Management represents an event sink that you can use // to log API Management events. Currently the Logger entity supports logging API Management events to // Azure Event Hubs. @@ -5749,7 +5334,6 @@ type LoggerContractProperties struct { IsBuffered *bool `json:"isBuffered,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for LoggerContractProperties. func (lcp LoggerContractProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -5768,14 +5352,12 @@ func (lcp LoggerContractProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // LoggerUpdateContract logger update contract. type LoggerUpdateContract struct { // LoggerUpdateParameters - Logger entity update contract properties. *LoggerUpdateParameters `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for LoggerUpdateContract. func (luc LoggerUpdateContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -5785,7 +5367,6 @@ func (luc LoggerUpdateContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for LoggerUpdateContract struct. func (luc *LoggerUpdateContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -5810,7 +5391,6 @@ func (luc *LoggerUpdateContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // LoggerUpdateParameters parameters supplied to the Update Logger operation. type LoggerUpdateParameters struct { // LoggerType - Logger type. Possible values include: 'AzureEventHub', 'ApplicationInsights' @@ -5823,7 +5403,6 @@ type LoggerUpdateParameters struct { IsBuffered *bool `json:"isBuffered,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for LoggerUpdateParameters. func (lup LoggerUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -5842,7 +5421,6 @@ func (lup LoggerUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NetworkStatusContract network Status details. type NetworkStatusContract struct { autorest.Response `json:"-"` @@ -5852,7 +5430,6 @@ type NetworkStatusContract struct { ConnectivityStatus *[]ConnectivityStatusContract `json:"connectivityStatus,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NetworkStatusContractByLocation network Status in the Location type NetworkStatusContractByLocation struct { // Location - Location of service @@ -5861,7 +5438,6 @@ type NetworkStatusContractByLocation struct { NetworkStatus *NetworkStatusContract `json:"networkStatus,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotificationCollection paged Notification list representation. type NotificationCollection struct { autorest.Response `json:"-"` @@ -5871,14 +5447,12 @@ type NotificationCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotificationCollectionIterator provides access to a complete listing of NotificationContract values. type NotificationCollectionIterator struct { i int page NotificationCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *NotificationCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -5905,7 +5479,6 @@ func (iter *NotificationCollectionIterator) NextWithContext(ctx context.Context) return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -5913,19 +5486,16 @@ func (iter *NotificationCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter NotificationCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter NotificationCollectionIterator) Response() NotificationCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter NotificationCollectionIterator) Value() NotificationContract { @@ -5935,7 +5505,6 @@ func (iter NotificationCollectionIterator) Value() NotificationContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (nc NotificationCollection) IsEmpty() bool { return nc.Value == nil || len(*nc.Value) == 0 @@ -5953,14 +5522,12 @@ func (nc NotificationCollection) notificationCollectionPreparer(ctx context.Cont autorest.WithBaseURL(to.String(nc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotificationCollectionPage contains a page of NotificationContract values. type NotificationCollectionPage struct { fn func(context.Context, NotificationCollection) (NotificationCollection, error) nc NotificationCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *NotificationCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -5982,7 +5549,6 @@ func (page *NotificationCollectionPage) NextWithContext(ctx context.Context) (er return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -5990,19 +5556,16 @@ func (page *NotificationCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page NotificationCollectionPage) NotDone() bool { return !page.nc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page NotificationCollectionPage) Response() NotificationCollection { return page.nc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page NotificationCollectionPage) Values() []NotificationContract { if page.nc.IsEmpty() { @@ -6011,7 +5574,6 @@ func (page NotificationCollectionPage) Values() []NotificationContract { return *page.nc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotificationContract notification details. type NotificationContract struct { autorest.Response `json:"-"` @@ -6025,7 +5587,6 @@ type NotificationContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for NotificationContract. func (nc NotificationContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6044,7 +5605,6 @@ func (nc NotificationContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for NotificationContract struct. func (nc *NotificationContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -6096,7 +5656,6 @@ func (nc *NotificationContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotificationContractProperties notification Contract properties. type NotificationContractProperties struct { // Title - Title of the Notification. @@ -6107,7 +5666,6 @@ type NotificationContractProperties struct { Recipients *RecipientsContractProperties `json:"recipients,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OAuth2AuthenticationSettingsContract API OAuth2 Authentication settings details. type OAuth2AuthenticationSettingsContract struct { // AuthorizationServerID - OAuth authorization server identifier. @@ -6116,7 +5674,6 @@ type OAuth2AuthenticationSettingsContract struct { Scope *string `json:"scope,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OpenIDAuthenticationSettingsContract API OAuth2 Authentication settings details. type OpenIDAuthenticationSettingsContract struct { // OpenidProviderID - OAuth authorization server identifier. @@ -6125,7 +5682,6 @@ type OpenIDAuthenticationSettingsContract struct { BearerTokenSendingMethods *[]BearerTokenSendingMethods `json:"bearerTokenSendingMethods,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OpenIDConnectProviderCollection paged OpenIdProviders list representation. type OpenIDConnectProviderCollection struct { autorest.Response `json:"-"` @@ -6135,7 +5691,6 @@ type OpenIDConnectProviderCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OpenIDConnectProviderCollectionIterator provides access to a complete listing of // OpenidConnectProviderContract values. type OpenIDConnectProviderCollectionIterator struct { @@ -6143,7 +5698,6 @@ type OpenIDConnectProviderCollectionIterator struct { page OpenIDConnectProviderCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *OpenIDConnectProviderCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -6170,7 +5724,6 @@ func (iter *OpenIDConnectProviderCollectionIterator) NextWithContext(ctx context return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -6178,19 +5731,16 @@ func (iter *OpenIDConnectProviderCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter OpenIDConnectProviderCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter OpenIDConnectProviderCollectionIterator) Response() OpenIDConnectProviderCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter OpenIDConnectProviderCollectionIterator) Value() OpenidConnectProviderContract { @@ -6200,7 +5750,6 @@ func (iter OpenIDConnectProviderCollectionIterator) Value() OpenidConnectProvide return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (oicpc OpenIDConnectProviderCollection) IsEmpty() bool { return oicpc.Value == nil || len(*oicpc.Value) == 0 @@ -6218,14 +5767,12 @@ func (oicpc OpenIDConnectProviderCollection) openIDConnectProviderCollectionPrep autorest.WithBaseURL(to.String(oicpc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OpenIDConnectProviderCollectionPage contains a page of OpenidConnectProviderContract values. type OpenIDConnectProviderCollectionPage struct { fn func(context.Context, OpenIDConnectProviderCollection) (OpenIDConnectProviderCollection, error) oicpc OpenIDConnectProviderCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *OpenIDConnectProviderCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -6247,7 +5794,6 @@ func (page *OpenIDConnectProviderCollectionPage) NextWithContext(ctx context.Con return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -6255,19 +5801,16 @@ func (page *OpenIDConnectProviderCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page OpenIDConnectProviderCollectionPage) NotDone() bool { return !page.oicpc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page OpenIDConnectProviderCollectionPage) Response() OpenIDConnectProviderCollection { return page.oicpc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page OpenIDConnectProviderCollectionPage) Values() []OpenidConnectProviderContract { if page.oicpc.IsEmpty() { @@ -6276,7 +5819,6 @@ func (page OpenIDConnectProviderCollectionPage) Values() []OpenidConnectProvider return *page.oicpc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OpenidConnectProviderContract openId Connect Provider details. type OpenidConnectProviderContract struct { autorest.Response `json:"-"` @@ -6290,7 +5832,6 @@ type OpenidConnectProviderContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for OpenidConnectProviderContract. func (ocpc OpenidConnectProviderContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6309,7 +5850,6 @@ func (ocpc OpenidConnectProviderContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for OpenidConnectProviderContract struct. func (ocpc *OpenidConnectProviderContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -6361,7 +5901,6 @@ func (ocpc *OpenidConnectProviderContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OpenidConnectProviderContractProperties openID Connect Providers Contract. type OpenidConnectProviderContractProperties struct { // DisplayName - User-friendly OpenID Connect Provider name. @@ -6376,14 +5915,12 @@ type OpenidConnectProviderContractProperties struct { ClientSecret *string `json:"clientSecret,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OpenidConnectProviderUpdateContract parameters supplied to the Update OpenID Connect Provider operation. type OpenidConnectProviderUpdateContract struct { // OpenidConnectProviderUpdateContractProperties - OpenId Connect Provider Update contract properties. *OpenidConnectProviderUpdateContractProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for OpenidConnectProviderUpdateContract. func (ocpuc OpenidConnectProviderUpdateContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6393,7 +5930,6 @@ func (ocpuc OpenidConnectProviderUpdateContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for OpenidConnectProviderUpdateContract struct. func (ocpuc *OpenidConnectProviderUpdateContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -6418,7 +5954,6 @@ func (ocpuc *OpenidConnectProviderUpdateContract) UnmarshalJSON(body []byte) err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OpenidConnectProviderUpdateContractProperties parameters supplied to the Update OpenID Connect Provider // operation. type OpenidConnectProviderUpdateContractProperties struct { @@ -6434,7 +5969,6 @@ type OpenidConnectProviderUpdateContractProperties struct { ClientSecret *string `json:"clientSecret,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Operation REST API operation type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} @@ -6447,7 +5981,6 @@ type Operation struct { Properties interface{} `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationCollection paged Operation list representation. type OperationCollection struct { autorest.Response `json:"-"` @@ -6457,14 +5990,12 @@ type OperationCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationCollectionIterator provides access to a complete listing of OperationContract values. type OperationCollectionIterator struct { i int page OperationCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *OperationCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -6491,7 +6022,6 @@ func (iter *OperationCollectionIterator) NextWithContext(ctx context.Context) (e return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -6499,19 +6029,16 @@ func (iter *OperationCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter OperationCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter OperationCollectionIterator) Response() OperationCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter OperationCollectionIterator) Value() OperationContract { @@ -6521,7 +6048,6 @@ func (iter OperationCollectionIterator) Value() OperationContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (oc OperationCollection) IsEmpty() bool { return oc.Value == nil || len(*oc.Value) == 0 @@ -6539,14 +6065,12 @@ func (oc OperationCollection) operationCollectionPreparer(ctx context.Context) ( autorest.WithBaseURL(to.String(oc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationCollectionPage contains a page of OperationContract values. type OperationCollectionPage struct { fn func(context.Context, OperationCollection) (OperationCollection, error) oc OperationCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *OperationCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -6568,7 +6092,6 @@ func (page *OperationCollectionPage) NextWithContext(ctx context.Context) (err e return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -6576,19 +6099,16 @@ func (page *OperationCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page OperationCollectionPage) NotDone() bool { return !page.oc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page OperationCollectionPage) Response() OperationCollection { return page.oc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page OperationCollectionPage) Values() []OperationContract { if page.oc.IsEmpty() { @@ -6597,7 +6117,6 @@ func (page OperationCollectionPage) Values() []OperationContract { return *page.oc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationContract api Operation details. type OperationContract struct { autorest.Response `json:"-"` @@ -6611,7 +6130,6 @@ type OperationContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for OperationContract. func (oc OperationContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6630,7 +6148,6 @@ func (oc OperationContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for OperationContract struct. func (oc *OperationContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -6682,7 +6199,6 @@ func (oc *OperationContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationContractProperties operation Contract Properties type OperationContractProperties struct { // DisplayName - Operation Name. @@ -6703,7 +6219,6 @@ type OperationContractProperties struct { Policies *string `json:"policies,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationDisplay the object that describes the operation. type OperationDisplay struct { // Provider - Friendly name of the resource provider @@ -6716,7 +6231,6 @@ type OperationDisplay struct { Description *string `json:"description,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationEntityBaseContract api Operation Entity Base Contract details. type OperationEntityBaseContract struct { // TemplateParameters - Collection of URL template parameters. @@ -6731,7 +6245,6 @@ type OperationEntityBaseContract struct { Policies *string `json:"policies,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationListResult result of the request to list REST API operations. It contains a list of operations // and a URL nextLink to get the next set of results. type OperationListResult struct { @@ -6742,14 +6255,12 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationListResultIterator provides access to a complete listing of Operation values. type OperationListResultIterator struct { i int page OperationListResultPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error) { @@ -6776,7 +6287,6 @@ func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (e return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -6784,19 +6294,16 @@ func (iter *OperationListResultIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter OperationListResultIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter OperationListResultIterator) Response() OperationListResult { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter OperationListResultIterator) Value() Operation { @@ -6806,7 +6313,6 @@ func (iter OperationListResultIterator) Value() Operation { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (olr OperationListResult) IsEmpty() bool { return olr.Value == nil || len(*olr.Value) == 0 @@ -6824,14 +6330,12 @@ func (olr OperationListResult) operationListResultPreparer(ctx context.Context) autorest.WithBaseURL(to.String(olr.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationListResultPage contains a page of Operation values. type OperationListResultPage struct { fn func(context.Context, OperationListResult) (OperationListResult, error) olr OperationListResult } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error) { @@ -6853,7 +6357,6 @@ func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err e return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -6861,19 +6364,16 @@ func (page *OperationListResultPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page OperationListResultPage) NotDone() bool { return !page.olr.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page OperationListResultPage) Response() OperationListResult { return page.olr } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page OperationListResultPage) Values() []Operation { if page.olr.IsEmpty() { @@ -6882,7 +6382,6 @@ func (page OperationListResultPage) Values() []Operation { return *page.olr.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationResultContract operation Result. type OperationResultContract struct { autorest.Response `json:"-"` @@ -6902,7 +6401,6 @@ type OperationResultContract struct { ActionLog *[]OperationResultLogItemContract `json:"actionLog,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationResultLogItemContract log of the entity being created, updated or deleted. type OperationResultLogItemContract struct { // ObjectType - The type of entity contract. @@ -6913,7 +6411,6 @@ type OperationResultLogItemContract struct { ObjectKey *string `json:"objectKey,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationTagResourceContractProperties operation Entity contract Properties. type OperationTagResourceContractProperties struct { // ID - Identifier of the operation in form /operations/{operationId}. @@ -6934,14 +6431,12 @@ type OperationTagResourceContractProperties struct { URLTemplate *string `json:"urlTemplate,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationUpdateContract api Operation Update Contract details. type OperationUpdateContract struct { // OperationUpdateContractProperties - Properties of the API Operation entity that can be updated. *OperationUpdateContractProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for OperationUpdateContract. func (ouc OperationUpdateContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -6951,7 +6446,6 @@ func (ouc OperationUpdateContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for OperationUpdateContract struct. func (ouc *OperationUpdateContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -6976,7 +6470,6 @@ func (ouc *OperationUpdateContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationUpdateContractProperties operation Update Contract Properties. type OperationUpdateContractProperties struct { // DisplayName - Operation Name. @@ -6997,7 +6490,6 @@ type OperationUpdateContractProperties struct { Policies *string `json:"policies,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ParameterContract operation parameters details. type ParameterContract struct { // Name - Parameter name. @@ -7014,7 +6506,6 @@ type ParameterContract struct { Values *[]string `json:"values,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PolicyCollection the response of the list policy operation. type PolicyCollection struct { autorest.Response `json:"-"` @@ -7024,7 +6515,6 @@ type PolicyCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PolicyContract policy Contract details. type PolicyContract struct { autorest.Response `json:"-"` @@ -7038,7 +6528,6 @@ type PolicyContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for PolicyContract. func (pc PolicyContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -7057,7 +6546,6 @@ func (pc PolicyContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for PolicyContract struct. func (pc *PolicyContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -7109,7 +6597,6 @@ func (pc *PolicyContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PolicyContractProperties policy contract Properties. type PolicyContractProperties struct { // PolicyContent - Json escaped Xml Encoded contents of the Policy. @@ -7118,7 +6605,6 @@ type PolicyContractProperties struct { ContentFormat PolicyContentFormat `json:"contentFormat,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PolicySnippetContract policy snippet. type PolicySnippetContract struct { // Name - Snippet name. @@ -7131,7 +6617,6 @@ type PolicySnippetContract struct { Scope *int32 `json:"scope,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PolicySnippetsCollection the response of the list policy snippets operation. type PolicySnippetsCollection struct { autorest.Response `json:"-"` @@ -7139,7 +6624,6 @@ type PolicySnippetsCollection struct { Value *[]PolicySnippetContract `json:"value,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PortalDelegationSettings delegation settings for a developer portal. type PortalDelegationSettings struct { autorest.Response `json:"-"` @@ -7153,7 +6637,6 @@ type PortalDelegationSettings struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for PortalDelegationSettings. func (pds PortalDelegationSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -7172,7 +6655,6 @@ func (pds PortalDelegationSettings) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for PortalDelegationSettings struct. func (pds *PortalDelegationSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -7224,7 +6706,6 @@ func (pds *PortalDelegationSettings) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PortalDelegationSettingsProperties delegation settings contract properties. type PortalDelegationSettingsProperties struct { // URL - A delegation Url. @@ -7237,14 +6718,12 @@ type PortalDelegationSettingsProperties struct { UserRegistration *RegistrationDelegationSettingsProperties `json:"userRegistration,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PortalSigninSettingProperties sign-in settings contract properties. type PortalSigninSettingProperties struct { // Enabled - Redirect Anonymous users to the Sign-In page. Enabled *bool `json:"enabled,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PortalSigninSettings sign-In settings for the Developer Portal. type PortalSigninSettings struct { autorest.Response `json:"-"` @@ -7258,7 +6737,6 @@ type PortalSigninSettings struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for PortalSigninSettings. func (pss PortalSigninSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -7277,7 +6755,6 @@ func (pss PortalSigninSettings) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for PortalSigninSettings struct. func (pss *PortalSigninSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -7329,7 +6806,6 @@ func (pss *PortalSigninSettings) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PortalSignupSettings sign-Up settings for a developer portal. type PortalSignupSettings struct { autorest.Response `json:"-"` @@ -7343,7 +6819,6 @@ type PortalSignupSettings struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for PortalSignupSettings. func (pss PortalSignupSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -7362,7 +6837,6 @@ func (pss PortalSignupSettings) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for PortalSignupSettings struct. func (pss *PortalSignupSettings) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -7414,7 +6888,6 @@ func (pss *PortalSignupSettings) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PortalSignupSettingsProperties sign-up settings contract properties. type PortalSignupSettingsProperties struct { // Enabled - Allow users to sign up on a developer portal. @@ -7423,7 +6896,6 @@ type PortalSignupSettingsProperties struct { TermsOfService *TermsOfServiceProperties `json:"termsOfService,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductCollection paged Products list representation. type ProductCollection struct { autorest.Response `json:"-"` @@ -7433,14 +6905,12 @@ type ProductCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductCollectionIterator provides access to a complete listing of ProductContract values. type ProductCollectionIterator struct { i int page ProductCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *ProductCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -7467,7 +6937,6 @@ func (iter *ProductCollectionIterator) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -7475,19 +6944,16 @@ func (iter *ProductCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter ProductCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter ProductCollectionIterator) Response() ProductCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter ProductCollectionIterator) Value() ProductContract { @@ -7497,7 +6963,6 @@ func (iter ProductCollectionIterator) Value() ProductContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (pc ProductCollection) IsEmpty() bool { return pc.Value == nil || len(*pc.Value) == 0 @@ -7515,14 +6980,12 @@ func (pc ProductCollection) productCollectionPreparer(ctx context.Context) (*htt autorest.WithBaseURL(to.String(pc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductCollectionPage contains a page of ProductContract values. type ProductCollectionPage struct { fn func(context.Context, ProductCollection) (ProductCollection, error) pc ProductCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *ProductCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -7544,7 +7007,6 @@ func (page *ProductCollectionPage) NextWithContext(ctx context.Context) (err err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -7552,19 +7014,16 @@ func (page *ProductCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page ProductCollectionPage) NotDone() bool { return !page.pc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page ProductCollectionPage) Response() ProductCollection { return page.pc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page ProductCollectionPage) Values() []ProductContract { if page.pc.IsEmpty() { @@ -7573,7 +7032,6 @@ func (page ProductCollectionPage) Values() []ProductContract { return *page.pc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductContract product details. type ProductContract struct { autorest.Response `json:"-"` @@ -7587,7 +7045,6 @@ type ProductContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for ProductContract. func (pc ProductContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -7606,7 +7063,6 @@ func (pc ProductContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for ProductContract struct. func (pc *ProductContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -7658,7 +7114,6 @@ func (pc *ProductContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductContractProperties product profile. type ProductContractProperties struct { // DisplayName - Product name. @@ -7677,7 +7132,6 @@ type ProductContractProperties struct { State ProductState `json:"state,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductEntityBaseParameters product Entity Base Parameters type ProductEntityBaseParameters struct { // Description - Product description. May include HTML formatting tags. @@ -7694,7 +7148,6 @@ type ProductEntityBaseParameters struct { State ProductState `json:"state,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductTagResourceContractProperties product profile. type ProductTagResourceContractProperties struct { // ID - Identifier of the product in the form of /products/{productId} @@ -7715,14 +7168,12 @@ type ProductTagResourceContractProperties struct { State ProductState `json:"state,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductUpdateParameters product Update parameters. type ProductUpdateParameters struct { // ProductUpdateProperties - Product entity Update contract properties. *ProductUpdateProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for ProductUpdateParameters. func (pup ProductUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -7732,7 +7183,6 @@ func (pup ProductUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for ProductUpdateParameters struct. func (pup *ProductUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -7757,7 +7207,6 @@ func (pup *ProductUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductUpdateProperties parameters supplied to the Update Product operation. type ProductUpdateProperties struct { // DisplayName - Product name. @@ -7776,7 +7225,6 @@ type ProductUpdateProperties struct { State ProductState `json:"state,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PropertyCollection paged Property list representation. type PropertyCollection struct { autorest.Response `json:"-"` @@ -7786,14 +7234,12 @@ type PropertyCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PropertyCollectionIterator provides access to a complete listing of PropertyContract values. type PropertyCollectionIterator struct { i int page PropertyCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *PropertyCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -7820,7 +7266,6 @@ func (iter *PropertyCollectionIterator) NextWithContext(ctx context.Context) (er return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -7828,19 +7273,16 @@ func (iter *PropertyCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter PropertyCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter PropertyCollectionIterator) Response() PropertyCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter PropertyCollectionIterator) Value() PropertyContract { @@ -7850,7 +7292,6 @@ func (iter PropertyCollectionIterator) Value() PropertyContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (pc PropertyCollection) IsEmpty() bool { return pc.Value == nil || len(*pc.Value) == 0 @@ -7868,14 +7309,12 @@ func (pc PropertyCollection) propertyCollectionPreparer(ctx context.Context) (*h autorest.WithBaseURL(to.String(pc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PropertyCollectionPage contains a page of PropertyContract values. type PropertyCollectionPage struct { fn func(context.Context, PropertyCollection) (PropertyCollection, error) pc PropertyCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *PropertyCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -7897,7 +7336,6 @@ func (page *PropertyCollectionPage) NextWithContext(ctx context.Context) (err er return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -7905,19 +7343,16 @@ func (page *PropertyCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page PropertyCollectionPage) NotDone() bool { return !page.pc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page PropertyCollectionPage) Response() PropertyCollection { return page.pc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page PropertyCollectionPage) Values() []PropertyContract { if page.pc.IsEmpty() { @@ -7926,7 +7361,6 @@ func (page PropertyCollectionPage) Values() []PropertyContract { return *page.pc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PropertyContract property details. type PropertyContract struct { autorest.Response `json:"-"` @@ -7940,7 +7374,6 @@ type PropertyContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for PropertyContract. func (pc PropertyContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -7959,7 +7392,6 @@ func (pc PropertyContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for PropertyContract struct. func (pc *PropertyContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -8011,7 +7443,6 @@ func (pc *PropertyContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PropertyContractProperties property Contract properties. type PropertyContractProperties struct { // DisplayName - Unique name of Property. It may contain only letters, digits, period, dash, and underscore characters. @@ -8024,7 +7455,6 @@ type PropertyContractProperties struct { Secret *bool `json:"secret,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PropertyEntityBaseParameters property Entity Base Parameters set. type PropertyEntityBaseParameters struct { // Tags - Optional tags that when provided can be used to filter the property list. @@ -8033,7 +7463,6 @@ type PropertyEntityBaseParameters struct { Secret *bool `json:"secret,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PropertyUpdateParameterProperties property Contract properties. type PropertyUpdateParameterProperties struct { // DisplayName - Unique name of Property. It may contain only letters, digits, period, dash, and underscore characters. @@ -8046,14 +7475,12 @@ type PropertyUpdateParameterProperties struct { Secret *bool `json:"secret,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PropertyUpdateParameters property update Parameters. type PropertyUpdateParameters struct { // PropertyUpdateParameterProperties - Property entity Update contract properties. *PropertyUpdateParameterProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for PropertyUpdateParameters. func (pup PropertyUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -8063,7 +7490,6 @@ func (pup PropertyUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for PropertyUpdateParameters struct. func (pup *PropertyUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -8088,7 +7514,6 @@ func (pup *PropertyUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // QuotaCounterCollection paged Quota Counter list representation. type QuotaCounterCollection struct { autorest.Response `json:"-"` @@ -8100,7 +7525,6 @@ type QuotaCounterCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // QuotaCounterContract quota counter details. type QuotaCounterContract struct { autorest.Response `json:"-"` @@ -8116,14 +7540,12 @@ type QuotaCounterContract struct { Value *QuotaCounterValueContractProperties `json:"value,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // QuotaCounterValueContract quota counter value details. type QuotaCounterValueContract struct { // QuotaCounterValueContractProperties - Quota counter Value Properties. *QuotaCounterValueContractProperties `json:"value,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for QuotaCounterValueContract. func (qcvc QuotaCounterValueContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -8133,7 +7555,6 @@ func (qcvc QuotaCounterValueContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for QuotaCounterValueContract struct. func (qcvc *QuotaCounterValueContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -8158,7 +7579,6 @@ func (qcvc *QuotaCounterValueContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // QuotaCounterValueContractProperties quota counter value details. type QuotaCounterValueContractProperties struct { // CallsCount - Number of times Counter was called. @@ -8167,7 +7587,6 @@ type QuotaCounterValueContractProperties struct { KbTransferred *float64 `json:"kbTransferred,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RecipientEmailCollection paged Recipient User list representation. type RecipientEmailCollection struct { autorest.Response `json:"-"` @@ -8177,7 +7596,6 @@ type RecipientEmailCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RecipientEmailContract recipient Email details. type RecipientEmailContract struct { autorest.Response `json:"-"` @@ -8191,7 +7609,6 @@ type RecipientEmailContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for RecipientEmailContract. func (rec RecipientEmailContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -8210,7 +7627,6 @@ func (rec RecipientEmailContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for RecipientEmailContract struct. func (rec *RecipientEmailContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -8262,14 +7678,12 @@ func (rec *RecipientEmailContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RecipientEmailContractProperties recipient Email Contract Properties. type RecipientEmailContractProperties struct { // Email - User Email subscribed to notification. Email *string `json:"email,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RecipientsContractProperties notification Parameter contract. type RecipientsContractProperties struct { // Emails - List of Emails subscribed for the notification. @@ -8278,7 +7692,6 @@ type RecipientsContractProperties struct { Users *[]string `json:"users,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RecipientUserCollection paged Recipient User list representation. type RecipientUserCollection struct { autorest.Response `json:"-"` @@ -8288,7 +7701,6 @@ type RecipientUserCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RecipientUserContract recipient User details. type RecipientUserContract struct { autorest.Response `json:"-"` @@ -8302,7 +7714,6 @@ type RecipientUserContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for RecipientUserContract. func (ruc RecipientUserContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -8321,7 +7732,6 @@ func (ruc RecipientUserContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for RecipientUserContract struct. func (ruc *RecipientUserContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -8373,14 +7783,12 @@ func (ruc *RecipientUserContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RecipientUsersContractProperties recipient User Contract Properties. type RecipientUsersContractProperties struct { // UserID - API Management UserId subscribed to notification. UserID *string `json:"userId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegionContract region profile. type RegionContract struct { // Name - Region name. @@ -8391,7 +7799,6 @@ type RegionContract struct { IsDeleted *bool `json:"isDeleted,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegionListResult lists Regions operation response details. type RegionListResult struct { autorest.Response `json:"-"` @@ -8403,14 +7810,12 @@ type RegionListResult struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegionListResultIterator provides access to a complete listing of RegionContract values. type RegionListResultIterator struct { i int page RegionListResultPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *RegionListResultIterator) NextWithContext(ctx context.Context) (err error) { @@ -8437,7 +7842,6 @@ func (iter *RegionListResultIterator) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -8445,19 +7849,16 @@ func (iter *RegionListResultIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter RegionListResultIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter RegionListResultIterator) Response() RegionListResult { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter RegionListResultIterator) Value() RegionContract { @@ -8467,7 +7868,6 @@ func (iter RegionListResultIterator) Value() RegionContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (rlr RegionListResult) IsEmpty() bool { return rlr.Value == nil || len(*rlr.Value) == 0 @@ -8485,14 +7885,12 @@ func (rlr RegionListResult) regionListResultPreparer(ctx context.Context) (*http autorest.WithBaseURL(to.String(rlr.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegionListResultPage contains a page of RegionContract values. type RegionListResultPage struct { fn func(context.Context, RegionListResult) (RegionListResult, error) rlr RegionListResult } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *RegionListResultPage) NextWithContext(ctx context.Context) (err error) { @@ -8514,7 +7912,6 @@ func (page *RegionListResultPage) NextWithContext(ctx context.Context) (err erro return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -8522,19 +7919,16 @@ func (page *RegionListResultPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page RegionListResultPage) NotDone() bool { return !page.rlr.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page RegionListResultPage) Response() RegionListResult { return page.rlr } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page RegionListResultPage) Values() []RegionContract { if page.rlr.IsEmpty() { @@ -8543,14 +7937,12 @@ func (page RegionListResultPage) Values() []RegionContract { return *page.rlr.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegistrationDelegationSettingsProperties user registration delegation settings properties. type RegistrationDelegationSettingsProperties struct { // Enabled - Enable or disable delegation for user registration. Enabled *bool `json:"enabled,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ReportCollection paged Report records list representation. type ReportCollection struct { autorest.Response `json:"-"` @@ -8562,14 +7954,12 @@ type ReportCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ReportCollectionIterator provides access to a complete listing of ReportRecordContract values. type ReportCollectionIterator struct { i int page ReportCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *ReportCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -8596,7 +7986,6 @@ func (iter *ReportCollectionIterator) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -8604,19 +7993,16 @@ func (iter *ReportCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter ReportCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter ReportCollectionIterator) Response() ReportCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter ReportCollectionIterator) Value() ReportRecordContract { @@ -8626,7 +8012,6 @@ func (iter ReportCollectionIterator) Value() ReportRecordContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (rc ReportCollection) IsEmpty() bool { return rc.Value == nil || len(*rc.Value) == 0 @@ -8644,14 +8029,12 @@ func (rc ReportCollection) reportCollectionPreparer(ctx context.Context) (*http. autorest.WithBaseURL(to.String(rc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ReportCollectionPage contains a page of ReportRecordContract values. type ReportCollectionPage struct { fn func(context.Context, ReportCollection) (ReportCollection, error) rc ReportCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *ReportCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -8673,7 +8056,6 @@ func (page *ReportCollectionPage) NextWithContext(ctx context.Context) (err erro return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -8681,19 +8063,16 @@ func (page *ReportCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page ReportCollectionPage) NotDone() bool { return !page.rc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page ReportCollectionPage) Response() ReportCollection { return page.rc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page ReportCollectionPage) Values() []ReportRecordContract { if page.rc.IsEmpty() { @@ -8702,7 +8081,6 @@ func (page ReportCollectionPage) Values() []ReportRecordContract { return *page.rc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ReportRecordContract report data. type ReportRecordContract struct { // Name - Name depending on report endpoint specifies product, API, operation or developer name. @@ -8759,7 +8137,6 @@ type ReportRecordContract struct { ServiceTimeMax *float64 `json:"serviceTimeMax,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RepresentationContract operation request/response representation details. type RepresentationContract struct { // ContentType - Specifies a registered or custom content type for this representation, e.g. application/xml. @@ -8774,7 +8151,6 @@ type RepresentationContract struct { FormParameters *[]ParameterContract `json:"formParameters,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RequestContract operation request details. type RequestContract struct { // Description - Operation request description. @@ -8787,7 +8163,6 @@ type RequestContract struct { Representations *[]RepresentationContract `json:"representations,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RequestReportCollection paged Report records list representation. type RequestReportCollection struct { autorest.Response `json:"-"` @@ -8797,7 +8172,6 @@ type RequestReportCollection struct { Count *int64 `json:"count,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RequestReportRecordContract request Report data. type RequestReportRecordContract struct { // APIID - API identifier path. /apis/{apiId} @@ -8838,7 +8212,6 @@ type RequestReportRecordContract struct { RequestSize *int32 `json:"requestSize,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Resource the Resource definition. type Resource struct { // ID - Resource ID. @@ -8849,7 +8222,6 @@ type Resource struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ResponseContract operation response details. type ResponseContract struct { // StatusCode - Operation response HTTP status code. @@ -8862,7 +8234,6 @@ type ResponseContract struct { Headers *[]ParameterContract `json:"headers,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SaveConfigurationParameter parameters supplied to the Save Tenant Configuration operation. type SaveConfigurationParameter struct { // Branch - The name of the Git branch in which to commit the current configuration snapshot. @@ -8871,7 +8242,6 @@ type SaveConfigurationParameter struct { Force *bool `json:"force,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SchemaCollection the response of the list schema operation. type SchemaCollection struct { autorest.Response `json:"-"` @@ -8881,14 +8251,12 @@ type SchemaCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SchemaCollectionIterator provides access to a complete listing of SchemaContract values. type SchemaCollectionIterator struct { i int page SchemaCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *SchemaCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -8915,7 +8283,6 @@ func (iter *SchemaCollectionIterator) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -8923,19 +8290,16 @@ func (iter *SchemaCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter SchemaCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter SchemaCollectionIterator) Response() SchemaCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter SchemaCollectionIterator) Value() SchemaContract { @@ -8945,7 +8309,6 @@ func (iter SchemaCollectionIterator) Value() SchemaContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (sc SchemaCollection) IsEmpty() bool { return sc.Value == nil || len(*sc.Value) == 0 @@ -8963,14 +8326,12 @@ func (sc SchemaCollection) schemaCollectionPreparer(ctx context.Context) (*http. autorest.WithBaseURL(to.String(sc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SchemaCollectionPage contains a page of SchemaContract values. type SchemaCollectionPage struct { fn func(context.Context, SchemaCollection) (SchemaCollection, error) sc SchemaCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *SchemaCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -8992,7 +8353,6 @@ func (page *SchemaCollectionPage) NextWithContext(ctx context.Context) (err erro return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -9000,19 +8360,16 @@ func (page *SchemaCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page SchemaCollectionPage) NotDone() bool { return !page.sc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page SchemaCollectionPage) Response() SchemaCollection { return page.sc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page SchemaCollectionPage) Values() []SchemaContract { if page.sc.IsEmpty() { @@ -9021,7 +8378,6 @@ func (page SchemaCollectionPage) Values() []SchemaContract { return *page.sc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SchemaContract schema Contract details. type SchemaContract struct { autorest.Response `json:"-"` @@ -9035,7 +8391,6 @@ type SchemaContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for SchemaContract. func (sc SchemaContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -9054,7 +8409,6 @@ func (sc SchemaContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for SchemaContract struct. func (sc *SchemaContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -9106,7 +8460,6 @@ func (sc *SchemaContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SchemaContractProperties schema contract Properties. type SchemaContractProperties struct { // ContentType - Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). @@ -9115,7 +8468,6 @@ type SchemaContractProperties struct { *SchemaDocumentProperties `json:"document,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for SchemaContractProperties. func (scp SchemaContractProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -9128,7 +8480,6 @@ func (scp SchemaContractProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for SchemaContractProperties struct. func (scp *SchemaContractProperties) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -9162,14 +8513,12 @@ func (scp *SchemaContractProperties) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SchemaDocumentProperties schema Document Properties. type SchemaDocumentProperties struct { // Value - Json escaped string defining the document representing the Schema. Value *string `json:"value,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceApplyNetworkConfigurationParameters parameter supplied to the Apply Network configuration // operation. type ServiceApplyNetworkConfigurationParameters struct { @@ -9177,14 +8526,12 @@ type ServiceApplyNetworkConfigurationParameters struct { Location *string `json:"location,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceApplyNetworkConfigurationUpdatesFuture an abstraction for monitoring and retrieving the results // of a long-running operation. type ServiceApplyNetworkConfigurationUpdatesFuture struct { azure.Future } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. func (future *ServiceApplyNetworkConfigurationUpdatesFuture) Result(client ServiceClient) (sr ServiceResource, err error) { @@ -9208,14 +8555,12 @@ func (future *ServiceApplyNetworkConfigurationUpdatesFuture) Result(client Servi return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceBackupFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServiceBackupFuture struct { azure.Future } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. func (future *ServiceBackupFuture) Result(client ServiceClient) (sr ServiceResource, err error) { @@ -9239,7 +8584,6 @@ func (future *ServiceBackupFuture) Result(client ServiceClient) (sr ServiceResou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceBackupRestoreParameters parameters supplied to the Backup/Restore of an API Management service // operation. type ServiceBackupRestoreParameters struct { @@ -9253,7 +8597,6 @@ type ServiceBackupRestoreParameters struct { BackupName *string `json:"backupName,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceBaseProperties base Properties of an API Management service resource description. type ServiceBaseProperties struct { // NotificationSenderEmail - Email address from which the notification will be sent. @@ -9292,7 +8635,6 @@ type ServiceBaseProperties struct { VirtualNetworkType VirtualNetworkType `json:"virtualNetworkType,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for ServiceBaseProperties. func (sbp ServiceBaseProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -9350,21 +8692,18 @@ func (sbp ServiceBaseProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceCheckNameAvailabilityParameters parameters supplied to the CheckNameAvailability operation. type ServiceCheckNameAvailabilityParameters struct { // Name - The name to check for availability. Name *string `json:"name,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServiceCreateOrUpdateFuture struct { azure.Future } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. func (future *ServiceCreateOrUpdateFuture) Result(client ServiceClient) (sr ServiceResource, err error) { @@ -9388,7 +8727,6 @@ func (future *ServiceCreateOrUpdateFuture) Result(client ServiceClient) (sr Serv return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceGetSsoTokenResult the response of the GetSsoToken operation. type ServiceGetSsoTokenResult struct { autorest.Response `json:"-"` @@ -9396,7 +8734,6 @@ type ServiceGetSsoTokenResult struct { RedirectURI *string `json:"redirectUri,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceIdentity identity properties of the Api Management service resource. type ServiceIdentity struct { // Type - The identity type. Currently the only supported type is 'SystemAssigned'. @@ -9407,7 +8744,6 @@ type ServiceIdentity struct { TenantID *uuid.UUID `json:"tenantId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceListResult the response of the List API Management services operation. type ServiceListResult struct { autorest.Response `json:"-"` @@ -9417,14 +8753,12 @@ type ServiceListResult struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceListResultIterator provides access to a complete listing of ServiceResource values. type ServiceListResultIterator struct { i int page ServiceListResultPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *ServiceListResultIterator) NextWithContext(ctx context.Context) (err error) { @@ -9451,7 +8785,6 @@ func (iter *ServiceListResultIterator) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -9459,19 +8792,16 @@ func (iter *ServiceListResultIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter ServiceListResultIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter ServiceListResultIterator) Response() ServiceListResult { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter ServiceListResultIterator) Value() ServiceResource { @@ -9481,7 +8811,6 @@ func (iter ServiceListResultIterator) Value() ServiceResource { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (slr ServiceListResult) IsEmpty() bool { return slr.Value == nil || len(*slr.Value) == 0 @@ -9499,14 +8828,12 @@ func (slr ServiceListResult) serviceListResultPreparer(ctx context.Context) (*ht autorest.WithBaseURL(to.String(slr.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceListResultPage contains a page of ServiceResource values. type ServiceListResultPage struct { fn func(context.Context, ServiceListResult) (ServiceListResult, error) slr ServiceListResult } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *ServiceListResultPage) NextWithContext(ctx context.Context) (err error) { @@ -9528,7 +8855,6 @@ func (page *ServiceListResultPage) NextWithContext(ctx context.Context) (err err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -9536,19 +8862,16 @@ func (page *ServiceListResultPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page ServiceListResultPage) NotDone() bool { return !page.slr.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page ServiceListResultPage) Response() ServiceListResult { return page.slr } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page ServiceListResultPage) Values() []ServiceResource { if page.slr.IsEmpty() { @@ -9557,7 +8880,6 @@ func (page ServiceListResultPage) Values() []ServiceResource { return *page.slr.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceNameAvailabilityResult response of the CheckNameAvailability operation. type ServiceNameAvailabilityResult struct { autorest.Response `json:"-"` @@ -9569,7 +8891,6 @@ type ServiceNameAvailabilityResult struct { Reason NameAvailabilityReason `json:"reason,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceProperties properties of an API Management service resource description. type ServiceProperties struct { // PublisherEmail - Publisher email. @@ -9612,7 +8933,6 @@ type ServiceProperties struct { VirtualNetworkType VirtualNetworkType `json:"virtualNetworkType,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for ServiceProperties. func (sp ServiceProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -9676,7 +8996,6 @@ func (sp ServiceProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceResource a single API Management service resource in List or Get response. type ServiceResource struct { autorest.Response `json:"-"` @@ -9700,7 +9019,6 @@ type ServiceResource struct { Tags map[string]*string `json:"tags"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for ServiceResource. func (sr ServiceResource) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -9734,7 +9052,6 @@ func (sr ServiceResource) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for ServiceResource struct. func (sr *ServiceResource) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -9831,14 +9148,12 @@ func (sr *ServiceResource) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceRestoreFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServiceRestoreFuture struct { azure.Future } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. func (future *ServiceRestoreFuture) Result(client ServiceClient) (sr ServiceResource, err error) { @@ -9862,7 +9177,6 @@ func (future *ServiceRestoreFuture) Result(client ServiceClient) (sr ServiceReso return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceSkuProperties API Management service resource SKU properties. type ServiceSkuProperties struct { // Name - Name of the Sku. Possible values include: 'SkuTypeDeveloper', 'SkuTypeStandard', 'SkuTypePremium', 'SkuTypeBasic' @@ -9871,14 +9185,12 @@ type ServiceSkuProperties struct { Capacity *int32 `json:"capacity,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceUpdateFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServiceUpdateFuture struct { azure.Future } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. func (future *ServiceUpdateFuture) Result(client ServiceClient) (sr ServiceResource, err error) { @@ -9902,14 +9214,12 @@ func (future *ServiceUpdateFuture) Result(client ServiceClient) (sr ServiceResou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceUpdateHostnameFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ServiceUpdateHostnameFuture struct { azure.Future } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. func (future *ServiceUpdateHostnameFuture) Result(client ServiceClient) (sr ServiceResource, err error) { @@ -9933,7 +9243,6 @@ func (future *ServiceUpdateHostnameFuture) Result(client ServiceClient) (sr Serv return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceUpdateHostnameParameters parameters supplied to the UpdateHostname operation. type ServiceUpdateHostnameParameters struct { // Update - Hostnames to create or update. @@ -9942,7 +9251,6 @@ type ServiceUpdateHostnameParameters struct { Delete *[]HostnameType `json:"delete,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceUpdateParameters parameter supplied to Update Api Management Service. type ServiceUpdateParameters struct { // ServiceUpdateProperties - Properties of the API Management service. @@ -9963,7 +9271,6 @@ type ServiceUpdateParameters struct { Tags map[string]*string `json:"tags"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for ServiceUpdateParameters. func (sup ServiceUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -9994,7 +9301,6 @@ func (sup ServiceUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for ServiceUpdateParameters struct. func (sup *ServiceUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -10082,7 +9388,6 @@ func (sup *ServiceUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceUpdateProperties properties of an API Management service resource description. type ServiceUpdateProperties struct { // PublisherEmail - Publisher email. @@ -10125,7 +9430,6 @@ type ServiceUpdateProperties struct { VirtualNetworkType VirtualNetworkType `json:"virtualNetworkType,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for ServiceUpdateProperties. func (sup ServiceUpdateProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -10189,7 +9493,6 @@ func (sup ServiceUpdateProperties) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceUploadCertificateParameters parameters supplied to the Upload SSL certificate for an API // Management service operation. type ServiceUploadCertificateParameters struct { @@ -10201,7 +9504,6 @@ type ServiceUploadCertificateParameters struct { CertificatePassword *string `json:"certificate_password,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionCollection paged Subscriptions list representation. type SubscriptionCollection struct { autorest.Response `json:"-"` @@ -10211,14 +9513,12 @@ type SubscriptionCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionCollectionIterator provides access to a complete listing of SubscriptionContract values. type SubscriptionCollectionIterator struct { i int page SubscriptionCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *SubscriptionCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -10245,7 +9545,6 @@ func (iter *SubscriptionCollectionIterator) NextWithContext(ctx context.Context) return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -10253,19 +9552,16 @@ func (iter *SubscriptionCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter SubscriptionCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter SubscriptionCollectionIterator) Response() SubscriptionCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter SubscriptionCollectionIterator) Value() SubscriptionContract { @@ -10275,7 +9571,6 @@ func (iter SubscriptionCollectionIterator) Value() SubscriptionContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (sc SubscriptionCollection) IsEmpty() bool { return sc.Value == nil || len(*sc.Value) == 0 @@ -10293,14 +9588,12 @@ func (sc SubscriptionCollection) subscriptionCollectionPreparer(ctx context.Cont autorest.WithBaseURL(to.String(sc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionCollectionPage contains a page of SubscriptionContract values. type SubscriptionCollectionPage struct { fn func(context.Context, SubscriptionCollection) (SubscriptionCollection, error) sc SubscriptionCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *SubscriptionCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -10322,7 +9615,6 @@ func (page *SubscriptionCollectionPage) NextWithContext(ctx context.Context) (er return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -10330,19 +9622,16 @@ func (page *SubscriptionCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page SubscriptionCollectionPage) NotDone() bool { return !page.sc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page SubscriptionCollectionPage) Response() SubscriptionCollection { return page.sc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page SubscriptionCollectionPage) Values() []SubscriptionContract { if page.sc.IsEmpty() { @@ -10351,7 +9640,6 @@ func (page SubscriptionCollectionPage) Values() []SubscriptionContract { return *page.sc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionContract subscription details. type SubscriptionContract struct { autorest.Response `json:"-"` @@ -10365,7 +9653,6 @@ type SubscriptionContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for SubscriptionContract. func (sc SubscriptionContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -10384,7 +9671,6 @@ func (sc SubscriptionContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for SubscriptionContract struct. func (sc *SubscriptionContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -10436,7 +9722,6 @@ func (sc *SubscriptionContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionContractProperties subscription details. type SubscriptionContractProperties struct { // UserID - The user resource identifier of the subscription owner. The value is a valid relative URL in the format of /users/{uid} where {uid} is a user identifier. @@ -10465,7 +9750,6 @@ type SubscriptionContractProperties struct { StateComment *string `json:"stateComment,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionCreateParameterProperties parameters supplied to the Create subscription operation. type SubscriptionCreateParameterProperties struct { // UserID - User (user id path) for whom subscription is being created in form /users/{uid} @@ -10482,14 +9766,12 @@ type SubscriptionCreateParameterProperties struct { State SubscriptionState `json:"state,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionCreateParameters subscription create details. type SubscriptionCreateParameters struct { // SubscriptionCreateParameterProperties - Subscription contract properties. *SubscriptionCreateParameterProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for SubscriptionCreateParameters. func (scp SubscriptionCreateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -10499,7 +9781,6 @@ func (scp SubscriptionCreateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for SubscriptionCreateParameters struct. func (scp *SubscriptionCreateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -10524,7 +9805,6 @@ func (scp *SubscriptionCreateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionKeyParameterNamesContract subscription key parameter names details. type SubscriptionKeyParameterNamesContract struct { // Header - Subscription key header name. @@ -10533,14 +9813,12 @@ type SubscriptionKeyParameterNamesContract struct { Query *string `json:"query,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionsDelegationSettingsProperties subscriptions delegation settings properties. type SubscriptionsDelegationSettingsProperties struct { // Enabled - Enable or disable delegation for subscriptions. Enabled *bool `json:"enabled,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionUpdateParameterProperties parameters supplied to the Update subscription operation. type SubscriptionUpdateParameterProperties struct { // UserID - User identifier path: /users/{uid} @@ -10561,14 +9839,12 @@ type SubscriptionUpdateParameterProperties struct { StateComment *string `json:"stateComment,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionUpdateParameters subscription update details. type SubscriptionUpdateParameters struct { // SubscriptionUpdateParameterProperties - Subscription Update contract properties. *SubscriptionUpdateParameterProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for SubscriptionUpdateParameters. func (sup SubscriptionUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -10578,7 +9854,6 @@ func (sup SubscriptionUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for SubscriptionUpdateParameters struct. func (sup *SubscriptionUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -10603,7 +9878,6 @@ func (sup *SubscriptionUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagCollection paged Tag list representation. type TagCollection struct { autorest.Response `json:"-"` @@ -10613,14 +9887,12 @@ type TagCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagCollectionIterator provides access to a complete listing of TagContract values. type TagCollectionIterator struct { i int page TagCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *TagCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -10647,7 +9919,6 @@ func (iter *TagCollectionIterator) NextWithContext(ctx context.Context) (err err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -10655,19 +9926,16 @@ func (iter *TagCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter TagCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter TagCollectionIterator) Response() TagCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter TagCollectionIterator) Value() TagContract { @@ -10677,7 +9945,6 @@ func (iter TagCollectionIterator) Value() TagContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (tc TagCollection) IsEmpty() bool { return tc.Value == nil || len(*tc.Value) == 0 @@ -10695,14 +9962,12 @@ func (tc TagCollection) tagCollectionPreparer(ctx context.Context) (*http.Reques autorest.WithBaseURL(to.String(tc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagCollectionPage contains a page of TagContract values. type TagCollectionPage struct { fn func(context.Context, TagCollection) (TagCollection, error) tc TagCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *TagCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -10724,7 +9989,6 @@ func (page *TagCollectionPage) NextWithContext(ctx context.Context) (err error) return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -10732,19 +9996,16 @@ func (page *TagCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page TagCollectionPage) NotDone() bool { return !page.tc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page TagCollectionPage) Response() TagCollection { return page.tc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page TagCollectionPage) Values() []TagContract { if page.tc.IsEmpty() { @@ -10753,7 +10014,6 @@ func (page TagCollectionPage) Values() []TagContract { return *page.tc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagContract tag Contract details. type TagContract struct { autorest.Response `json:"-"` @@ -10767,7 +10027,6 @@ type TagContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for TagContract. func (tc TagContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -10786,7 +10045,6 @@ func (tc TagContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for TagContract struct. func (tc *TagContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -10838,21 +10096,18 @@ func (tc *TagContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagContractProperties tag contract Properties. type TagContractProperties struct { // DisplayName - Tag name. DisplayName *string `json:"displayName,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagCreateUpdateParameters parameters supplied to Create/Update Tag operations. type TagCreateUpdateParameters struct { // TagContractProperties - Properties supplied to Create Tag operation. *TagContractProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for TagCreateUpdateParameters. func (tcup TagCreateUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -10862,7 +10117,6 @@ func (tcup TagCreateUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for TagCreateUpdateParameters struct. func (tcup *TagCreateUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -10887,7 +10141,6 @@ func (tcup *TagCreateUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagDescriptionBaseProperties parameters supplied to the Create TagDescription operation. type TagDescriptionBaseProperties struct { // Description - Description of the Tag. @@ -10898,7 +10151,6 @@ type TagDescriptionBaseProperties struct { ExternalDocsDescription *string `json:"externalDocsDescription,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagDescriptionCollection paged TagDescription list representation. type TagDescriptionCollection struct { autorest.Response `json:"-"` @@ -10908,14 +10160,12 @@ type TagDescriptionCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagDescriptionCollectionIterator provides access to a complete listing of TagDescriptionContract values. type TagDescriptionCollectionIterator struct { i int page TagDescriptionCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *TagDescriptionCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -10942,7 +10192,6 @@ func (iter *TagDescriptionCollectionIterator) NextWithContext(ctx context.Contex return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -10950,19 +10199,16 @@ func (iter *TagDescriptionCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter TagDescriptionCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter TagDescriptionCollectionIterator) Response() TagDescriptionCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter TagDescriptionCollectionIterator) Value() TagDescriptionContract { @@ -10972,7 +10218,6 @@ func (iter TagDescriptionCollectionIterator) Value() TagDescriptionContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (tdc TagDescriptionCollection) IsEmpty() bool { return tdc.Value == nil || len(*tdc.Value) == 0 @@ -10990,14 +10235,12 @@ func (tdc TagDescriptionCollection) tagDescriptionCollectionPreparer(ctx context autorest.WithBaseURL(to.String(tdc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagDescriptionCollectionPage contains a page of TagDescriptionContract values. type TagDescriptionCollectionPage struct { fn func(context.Context, TagDescriptionCollection) (TagDescriptionCollection, error) tdc TagDescriptionCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *TagDescriptionCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -11019,7 +10262,6 @@ func (page *TagDescriptionCollectionPage) NextWithContext(ctx context.Context) ( return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -11027,19 +10269,16 @@ func (page *TagDescriptionCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page TagDescriptionCollectionPage) NotDone() bool { return !page.tdc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page TagDescriptionCollectionPage) Response() TagDescriptionCollection { return page.tdc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page TagDescriptionCollectionPage) Values() []TagDescriptionContract { if page.tdc.IsEmpty() { @@ -11048,7 +10287,6 @@ func (page TagDescriptionCollectionPage) Values() []TagDescriptionContract { return *page.tdc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagDescriptionContract contract details. type TagDescriptionContract struct { autorest.Response `json:"-"` @@ -11062,7 +10300,6 @@ type TagDescriptionContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for TagDescriptionContract. func (tdc TagDescriptionContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -11081,7 +10318,6 @@ func (tdc TagDescriptionContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for TagDescriptionContract struct. func (tdc *TagDescriptionContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -11133,7 +10369,6 @@ func (tdc *TagDescriptionContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagDescriptionContractProperties tagDescription contract Properties. type TagDescriptionContractProperties struct { // DisplayName - Tag name. @@ -11146,14 +10381,12 @@ type TagDescriptionContractProperties struct { ExternalDocsDescription *string `json:"externalDocsDescription,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagDescriptionCreateParameters parameters supplied to the Create TagDescription operation. type TagDescriptionCreateParameters struct { // TagDescriptionBaseProperties - Properties supplied to Create TagDescription operation. *TagDescriptionBaseProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for TagDescriptionCreateParameters. func (tdcp TagDescriptionCreateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -11163,7 +10396,6 @@ func (tdcp TagDescriptionCreateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for TagDescriptionCreateParameters struct. func (tdcp *TagDescriptionCreateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -11188,7 +10420,6 @@ func (tdcp *TagDescriptionCreateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagResourceCollection paged Tag list representation. type TagResourceCollection struct { autorest.Response `json:"-"` @@ -11200,14 +10431,12 @@ type TagResourceCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagResourceCollectionIterator provides access to a complete listing of TagResourceContract values. type TagResourceCollectionIterator struct { i int page TagResourceCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *TagResourceCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -11234,7 +10463,6 @@ func (iter *TagResourceCollectionIterator) NextWithContext(ctx context.Context) return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -11242,19 +10470,16 @@ func (iter *TagResourceCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter TagResourceCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter TagResourceCollectionIterator) Response() TagResourceCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter TagResourceCollectionIterator) Value() TagResourceContract { @@ -11264,7 +10489,6 @@ func (iter TagResourceCollectionIterator) Value() TagResourceContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (trc TagResourceCollection) IsEmpty() bool { return trc.Value == nil || len(*trc.Value) == 0 @@ -11282,14 +10506,12 @@ func (trc TagResourceCollection) tagResourceCollectionPreparer(ctx context.Conte autorest.WithBaseURL(to.String(trc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagResourceCollectionPage contains a page of TagResourceContract values. type TagResourceCollectionPage struct { fn func(context.Context, TagResourceCollection) (TagResourceCollection, error) trc TagResourceCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *TagResourceCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -11311,7 +10533,6 @@ func (page *TagResourceCollectionPage) NextWithContext(ctx context.Context) (err return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -11319,19 +10540,16 @@ func (page *TagResourceCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page TagResourceCollectionPage) NotDone() bool { return !page.trc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page TagResourceCollectionPage) Response() TagResourceCollection { return page.trc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page TagResourceCollectionPage) Values() []TagResourceContract { if page.trc.IsEmpty() { @@ -11340,7 +10558,6 @@ func (page TagResourceCollectionPage) Values() []TagResourceContract { return *page.trc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagResourceContract tagResource contract properties. type TagResourceContract struct { // Tag - Tag associated with the resource. @@ -11353,7 +10570,6 @@ type TagResourceContract struct { Product *ProductTagResourceContractProperties `json:"product,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagTagResourceContractProperties contract defining the Tag property in the Tag Resource Contract type TagTagResourceContractProperties struct { // ID - Tag identifier @@ -11362,14 +10578,12 @@ type TagTagResourceContractProperties struct { Name *string `json:"name,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TenantConfigurationDeployFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type TenantConfigurationDeployFuture struct { azure.Future } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. func (future *TenantConfigurationDeployFuture) Result(client TenantConfigurationClient) (orc OperationResultContract, err error) { @@ -11393,14 +10607,12 @@ func (future *TenantConfigurationDeployFuture) Result(client TenantConfiguration return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TenantConfigurationSaveFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type TenantConfigurationSaveFuture struct { azure.Future } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. func (future *TenantConfigurationSaveFuture) Result(client TenantConfigurationClient) (orc OperationResultContract, err error) { @@ -11424,7 +10636,6 @@ func (future *TenantConfigurationSaveFuture) Result(client TenantConfigurationCl return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TenantConfigurationSyncStateContract tenant Configuration Synchronization State. type TenantConfigurationSyncStateContract struct { autorest.Response `json:"-"` @@ -11444,14 +10655,12 @@ type TenantConfigurationSyncStateContract struct { ConfigurationChangeDate *date.Time `json:"configurationChangeDate,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TenantConfigurationValidateFuture an abstraction for monitoring and retrieving the results of a // long-running operation. type TenantConfigurationValidateFuture struct { azure.Future } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. func (future *TenantConfigurationValidateFuture) Result(client TenantConfigurationClient) (orc OperationResultContract, err error) { @@ -11475,7 +10684,6 @@ func (future *TenantConfigurationValidateFuture) Result(client TenantConfigurati return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TermsOfServiceProperties terms of service contract properties. type TermsOfServiceProperties struct { // Text - A terms of service text. @@ -11486,7 +10694,6 @@ type TermsOfServiceProperties struct { ConsentRequired *bool `json:"consentRequired,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TokenBodyParameterContract oAuth acquire token request body parameter (www-url-form-encoded). type TokenBodyParameterContract struct { // Name - body parameter name. @@ -11495,7 +10702,6 @@ type TokenBodyParameterContract struct { Value *string `json:"value,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserCollection paged Users list representation. type UserCollection struct { autorest.Response `json:"-"` @@ -11505,14 +10711,12 @@ type UserCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserCollectionIterator provides access to a complete listing of UserContract values. type UserCollectionIterator struct { i int page UserCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *UserCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -11539,7 +10743,6 @@ func (iter *UserCollectionIterator) NextWithContext(ctx context.Context) (err er return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -11547,19 +10750,16 @@ func (iter *UserCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter UserCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter UserCollectionIterator) Response() UserCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter UserCollectionIterator) Value() UserContract { @@ -11569,7 +10769,6 @@ func (iter UserCollectionIterator) Value() UserContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (uc UserCollection) IsEmpty() bool { return uc.Value == nil || len(*uc.Value) == 0 @@ -11587,14 +10786,12 @@ func (uc UserCollection) userCollectionPreparer(ctx context.Context) (*http.Requ autorest.WithBaseURL(to.String(uc.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserCollectionPage contains a page of UserContract values. type UserCollectionPage struct { fn func(context.Context, UserCollection) (UserCollection, error) uc UserCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *UserCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -11616,7 +10813,6 @@ func (page *UserCollectionPage) NextWithContext(ctx context.Context) (err error) return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -11624,19 +10820,16 @@ func (page *UserCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page UserCollectionPage) NotDone() bool { return !page.uc.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page UserCollectionPage) Response() UserCollection { return page.uc } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page UserCollectionPage) Values() []UserContract { if page.uc.IsEmpty() { @@ -11645,7 +10838,6 @@ func (page UserCollectionPage) Values() []UserContract { return *page.uc.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserContract user details. type UserContract struct { autorest.Response `json:"-"` @@ -11659,7 +10851,6 @@ type UserContract struct { Type *string `json:"type,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for UserContract. func (uc UserContract) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -11678,7 +10869,6 @@ func (uc UserContract) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for UserContract struct. func (uc *UserContract) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -11730,7 +10920,6 @@ func (uc *UserContract) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserContractProperties user profile. type UserContractProperties struct { // FirstName - First name. @@ -11751,7 +10940,6 @@ type UserContractProperties struct { Identities *[]UserIdentityContract `json:"identities,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserCreateParameterProperties parameters supplied to the Create User operation. type UserCreateParameterProperties struct { // Email - Email address. Must not be empty and must be unique within the service instance. @@ -11772,14 +10960,12 @@ type UserCreateParameterProperties struct { Identities *[]UserIdentityContract `json:"identities,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserCreateParameters user create details. type UserCreateParameters struct { // UserCreateParameterProperties - User entity create contract properties. *UserCreateParameterProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for UserCreateParameters. func (ucp UserCreateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -11789,7 +10975,6 @@ func (ucp UserCreateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for UserCreateParameters struct. func (ucp *UserCreateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -11814,7 +10999,6 @@ func (ucp *UserCreateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserEntityBaseParameters user Entity Base Parameters set. type UserEntityBaseParameters struct { // State - Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. Possible values include: 'UserStateActive', 'UserStateBlocked', 'UserStatePending', 'UserStateDeleted' @@ -11825,7 +11009,6 @@ type UserEntityBaseParameters struct { Identities *[]UserIdentityContract `json:"identities,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserIdentityCollection list of Users Identity list representation. type UserIdentityCollection struct { autorest.Response `json:"-"` @@ -11837,14 +11020,12 @@ type UserIdentityCollection struct { NextLink *string `json:"nextLink,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserIdentityCollectionIterator provides access to a complete listing of UserIdentityContract values. type UserIdentityCollectionIterator struct { i int page UserIdentityCollectionPage } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. func (iter *UserIdentityCollectionIterator) NextWithContext(ctx context.Context) (err error) { @@ -11871,7 +11052,6 @@ func (iter *UserIdentityCollectionIterator) NextWithContext(ctx context.Context) return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next value. If there was an error making // the request the iterator does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -11879,19 +11059,16 @@ func (iter *UserIdentityCollectionIterator) Next() error { return iter.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the enumeration should be started or is not yet complete. func (iter UserIdentityCollectionIterator) NotDone() bool { return iter.page.NotDone() && iter.i < len(iter.page.Values()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (iter UserIdentityCollectionIterator) Response() UserIdentityCollection { return iter.page.Response() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Value returns the current value or a zero-initialized value if the // iterator has advanced beyond the end of the collection. func (iter UserIdentityCollectionIterator) Value() UserIdentityContract { @@ -11901,7 +11078,6 @@ func (iter UserIdentityCollectionIterator) Value() UserIdentityContract { return iter.page.Values()[iter.i] } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // IsEmpty returns true if the ListResult contains no values. func (uic UserIdentityCollection) IsEmpty() bool { return uic.Value == nil || len(*uic.Value) == 0 @@ -11919,14 +11095,12 @@ func (uic UserIdentityCollection) userIdentityCollectionPreparer(ctx context.Con autorest.WithBaseURL(to.String(uic.NextLink))) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserIdentityCollectionPage contains a page of UserIdentityContract values. type UserIdentityCollectionPage struct { fn func(context.Context, UserIdentityCollection) (UserIdentityCollection, error) uic UserIdentityCollection } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NextWithContext advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. func (page *UserIdentityCollectionPage) NextWithContext(ctx context.Context) (err error) { @@ -11948,7 +11122,6 @@ func (page *UserIdentityCollectionPage) NextWithContext(ctx context.Context) (er return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Next advances to the next page of values. If there was an error making // the request the page does not advance and the error is returned. // Deprecated: Use NextWithContext() instead. @@ -11956,19 +11129,16 @@ func (page *UserIdentityCollectionPage) Next() error { return page.NextWithContext(context.Background()) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotDone returns true if the page enumeration should be started or is not yet complete. func (page UserIdentityCollectionPage) NotDone() bool { return !page.uic.IsEmpty() } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Response returns the raw server response from the last page request. func (page UserIdentityCollectionPage) Response() UserIdentityCollection { return page.uic } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Values returns the slice of values for the current page or nil if there are no values. func (page UserIdentityCollectionPage) Values() []UserIdentityContract { if page.uic.IsEmpty() { @@ -11977,7 +11147,6 @@ func (page UserIdentityCollectionPage) Values() []UserIdentityContract { return *page.uic.Value } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserIdentityContract user identity details. type UserIdentityContract struct { // Provider - Identity provider name. @@ -11986,7 +11155,6 @@ type UserIdentityContract struct { ID *string `json:"id,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserTokenParameters parameters supplied to the Get User Token operation. type UserTokenParameters struct { // KeyType - The Key to be used to generate token for user. Possible values include: 'Primary', 'Secondary' @@ -11995,7 +11163,6 @@ type UserTokenParameters struct { Expiry *date.Time `json:"expiry,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserTokenResult get User Token response details. type UserTokenResult struct { autorest.Response `json:"-"` @@ -12003,14 +11170,12 @@ type UserTokenResult struct { Value *string `json:"value,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserUpdateParameters user update parameters. type UserUpdateParameters struct { // UserUpdateParametersProperties - User entity update contract properties. *UserUpdateParametersProperties `json:"properties,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // MarshalJSON is the custom marshaler for UserUpdateParameters. func (uup UserUpdateParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) @@ -12020,7 +11185,6 @@ func (uup UserUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UnmarshalJSON is the custom unmarshaler for UserUpdateParameters struct. func (uup *UserUpdateParameters) UnmarshalJSON(body []byte) error { var m map[string]*json.RawMessage @@ -12045,7 +11209,6 @@ func (uup *UserUpdateParameters) UnmarshalJSON(body []byte) error { return nil } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserUpdateParametersProperties parameters supplied to the Update User operation. type UserUpdateParametersProperties struct { // Email - Email address. Must not be empty and must be unique within the service instance. @@ -12064,7 +11227,6 @@ type UserUpdateParametersProperties struct { Identities *[]UserIdentityContract `json:"identities,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // VirtualNetworkConfiguration configuration of a virtual network to which API Management service is // deployed. type VirtualNetworkConfiguration struct { @@ -12076,7 +11238,6 @@ type VirtualNetworkConfiguration struct { SubnetResourceID *string `json:"subnetResourceId,omitempty"` } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // X509CertificateName properties of server X509Names. type X509CertificateName struct { // Name - Common Name of the Certificate. diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/networkstatus.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/networkstatus.go index d20a8558c46d..d4374d7b4c36 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/networkstatus.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/networkstatus.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NetworkStatusClient is the apiManagement Client type NetworkStatusClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewNetworkStatusClient creates an instance of the NetworkStatusClient client. func NewNetworkStatusClient(subscriptionID string) NetworkStatusClient { return NewNetworkStatusClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewNetworkStatusClientWithBaseURI creates an instance of the NetworkStatusClient client. func NewNetworkStatusClientWithBaseURI(baseURI string, subscriptionID string) NetworkStatusClient { return NetworkStatusClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByLocation gets the Connectivity Status to the external resources on which the Api Management service depends // from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. // Parameters: @@ -94,7 +90,6 @@ func (client NetworkStatusClient) ListByLocation(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByLocationPreparer prepares the ListByLocation request. func (client NetworkStatusClient) ListByLocationPreparer(ctx context.Context, resourceGroupName string, serviceName string, locationName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -117,7 +112,6 @@ func (client NetworkStatusClient) ListByLocationPreparer(ctx context.Context, re return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByLocationSender sends the ListByLocation request. The method will close the // http.Response Body if it receives an error. func (client NetworkStatusClient) ListByLocationSender(req *http.Request) (*http.Response, error) { @@ -125,7 +119,6 @@ func (client NetworkStatusClient) ListByLocationSender(req *http.Request) (*http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByLocationResponder handles the response to the ListByLocation request. The method always // closes the http.Response Body. func (client NetworkStatusClient) ListByLocationResponder(resp *http.Response) (result NetworkStatusContract, err error) { @@ -139,7 +132,6 @@ func (client NetworkStatusClient) ListByLocationResponder(resp *http.Response) ( return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService gets the Connectivity Status to the external resources on which the Api Management service depends // from inside the Cloud Service. This also returns the DNS Servers as visible to the CloudService. // Parameters: @@ -185,7 +177,6 @@ func (client NetworkStatusClient) ListByService(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client NetworkStatusClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -207,7 +198,6 @@ func (client NetworkStatusClient) ListByServicePreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client NetworkStatusClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -215,7 +205,6 @@ func (client NetworkStatusClient) ListByServiceSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client NetworkStatusClient) ListByServiceResponder(resp *http.Response) (result ListNetworkStatusContractByLocation, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notification.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notification.go index d25c58194d8c..89f789c04707 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notification.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notification.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotificationClient is the apiManagement Client type NotificationClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewNotificationClient creates an instance of the NotificationClient client. func NewNotificationClient(subscriptionID string) NotificationClient { return NewNotificationClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewNotificationClientWithBaseURI creates an instance of the NotificationClient client. func NewNotificationClientWithBaseURI(baseURI string, subscriptionID string) NotificationClient { return NotificationClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate updates an Notification. // Parameters: // resourceGroupName - the name of the resource group. @@ -91,7 +87,6 @@ func (client NotificationClient) CreateOrUpdate(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client NotificationClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -118,7 +113,6 @@ func (client NotificationClient) CreateOrUpdatePreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client NotificationClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -126,7 +120,6 @@ func (client NotificationClient) CreateOrUpdateSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client NotificationClient) CreateOrUpdateResponder(resp *http.Response) (result NotificationContract, err error) { @@ -140,7 +133,6 @@ func (client NotificationClient) CreateOrUpdateResponder(resp *http.Response) (r return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the Notification specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -186,7 +178,6 @@ func (client NotificationClient) Get(ctx context.Context, resourceGroupName stri return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client NotificationClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -209,7 +200,6 @@ func (client NotificationClient) GetPreparer(ctx context.Context, resourceGroupN return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client NotificationClient) GetSender(req *http.Request) (*http.Response, error) { @@ -217,7 +207,6 @@ func (client NotificationClient) GetSender(req *http.Request) (*http.Response, e azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client NotificationClient) GetResponder(resp *http.Response) (result NotificationContract, err error) { @@ -231,7 +220,6 @@ func (client NotificationClient) GetResponder(resp *http.Response) (result Notif return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of properties defined within a service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -285,7 +273,6 @@ func (client NotificationClient) ListByService(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client NotificationClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -313,7 +300,6 @@ func (client NotificationClient) ListByServicePreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client NotificationClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -321,7 +307,6 @@ func (client NotificationClient) ListByServiceSender(req *http.Request) (*http.R azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client NotificationClient) ListByServiceResponder(resp *http.Response) (result NotificationCollection, err error) { @@ -356,7 +341,6 @@ func (client NotificationClient) listByServiceNextResults(ctx context.Context, l return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client NotificationClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, top *int32, skip *int32) (result NotificationCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientemail.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientemail.go index 87f531bf4df6..4c391059297f 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientemail.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientemail.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotificationRecipientEmailClient is the apiManagement Client type NotificationRecipientEmailClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewNotificationRecipientEmailClient creates an instance of the NotificationRecipientEmailClient client. func NewNotificationRecipientEmailClient(subscriptionID string) NotificationRecipientEmailClient { return NewNotificationRecipientEmailClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewNotificationRecipientEmailClientWithBaseURI creates an instance of the NotificationRecipientEmailClient client. func NewNotificationRecipientEmailClientWithBaseURI(baseURI string, subscriptionID string) NotificationRecipientEmailClient { return NotificationRecipientEmailClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExists determine if Notification Recipient Email subscribed to the notification. // Parameters: // resourceGroupName - the name of the resource group. @@ -91,7 +87,6 @@ func (client NotificationRecipientEmailClient) CheckEntityExists(ctx context.Con return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsPreparer prepares the CheckEntityExists request. func (client NotificationRecipientEmailClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, email string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -115,7 +110,6 @@ func (client NotificationRecipientEmailClient) CheckEntityExistsPreparer(ctx con return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsSender sends the CheckEntityExists request. The method will close the // http.Response Body if it receives an error. func (client NotificationRecipientEmailClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { @@ -123,7 +117,6 @@ func (client NotificationRecipientEmailClient) CheckEntityExistsSender(req *http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always // closes the http.Response Body. func (client NotificationRecipientEmailClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { @@ -136,7 +129,6 @@ func (client NotificationRecipientEmailClient) CheckEntityExistsResponder(resp * return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate adds the Email address to the list of Recipients for the Notification. // Parameters: // resourceGroupName - the name of the resource group. @@ -183,7 +175,6 @@ func (client NotificationRecipientEmailClient) CreateOrUpdate(ctx context.Contex return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client NotificationRecipientEmailClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, email string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -207,7 +198,6 @@ func (client NotificationRecipientEmailClient) CreateOrUpdatePreparer(ctx contex return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client NotificationRecipientEmailClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -215,7 +205,6 @@ func (client NotificationRecipientEmailClient) CreateOrUpdateSender(req *http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client NotificationRecipientEmailClient) CreateOrUpdateResponder(resp *http.Response) (result RecipientEmailContract, err error) { @@ -229,7 +218,6 @@ func (client NotificationRecipientEmailClient) CreateOrUpdateResponder(resp *htt return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete removes the email from the list of Notification. // Parameters: // resourceGroupName - the name of the resource group. @@ -276,7 +264,6 @@ func (client NotificationRecipientEmailClient) Delete(ctx context.Context, resou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client NotificationRecipientEmailClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, email string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -300,7 +287,6 @@ func (client NotificationRecipientEmailClient) DeletePreparer(ctx context.Contex return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client NotificationRecipientEmailClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -308,7 +294,6 @@ func (client NotificationRecipientEmailClient) DeleteSender(req *http.Request) ( azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client NotificationRecipientEmailClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -321,7 +306,6 @@ func (client NotificationRecipientEmailClient) DeleteResponder(resp *http.Respon return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByNotification gets the list of the Notification Recipient Emails subscribed to a notification. // Parameters: // resourceGroupName - the name of the resource group. @@ -367,7 +351,6 @@ func (client NotificationRecipientEmailClient) ListByNotification(ctx context.Co return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByNotificationPreparer prepares the ListByNotification request. func (client NotificationRecipientEmailClient) ListByNotificationPreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -390,7 +373,6 @@ func (client NotificationRecipientEmailClient) ListByNotificationPreparer(ctx co return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByNotificationSender sends the ListByNotification request. The method will close the // http.Response Body if it receives an error. func (client NotificationRecipientEmailClient) ListByNotificationSender(req *http.Request) (*http.Response, error) { @@ -398,7 +380,6 @@ func (client NotificationRecipientEmailClient) ListByNotificationSender(req *htt azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByNotificationResponder handles the response to the ListByNotification request. The method always // closes the http.Response Body. func (client NotificationRecipientEmailClient) ListByNotificationResponder(resp *http.Response) (result RecipientEmailCollection, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientuser.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientuser.go index d8f5dc931546..3e0bd294dd5b 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientuser.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/notificationrecipientuser.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NotificationRecipientUserClient is the apiManagement Client type NotificationRecipientUserClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewNotificationRecipientUserClient creates an instance of the NotificationRecipientUserClient client. func NewNotificationRecipientUserClient(subscriptionID string) NotificationRecipientUserClient { return NewNotificationRecipientUserClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewNotificationRecipientUserClientWithBaseURI creates an instance of the NotificationRecipientUserClient client. func NewNotificationRecipientUserClientWithBaseURI(baseURI string, subscriptionID string) NotificationRecipientUserClient { return NotificationRecipientUserClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExists determine if the Notification Recipient User is subscribed to the notification. // Parameters: // resourceGroupName - the name of the resource group. @@ -95,7 +91,6 @@ func (client NotificationRecipientUserClient) CheckEntityExists(ctx context.Cont return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsPreparer prepares the CheckEntityExists request. func (client NotificationRecipientUserClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, UID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -119,7 +114,6 @@ func (client NotificationRecipientUserClient) CheckEntityExistsPreparer(ctx cont return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsSender sends the CheckEntityExists request. The method will close the // http.Response Body if it receives an error. func (client NotificationRecipientUserClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { @@ -127,7 +121,6 @@ func (client NotificationRecipientUserClient) CheckEntityExistsSender(req *http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always // closes the http.Response Body. func (client NotificationRecipientUserClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { @@ -140,7 +133,6 @@ func (client NotificationRecipientUserClient) CheckEntityExistsResponder(resp *h return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate adds the API Management User to the list of Recipients for the Notification. // Parameters: // resourceGroupName - the name of the resource group. @@ -191,7 +183,6 @@ func (client NotificationRecipientUserClient) CreateOrUpdate(ctx context.Context return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client NotificationRecipientUserClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, UID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -215,7 +206,6 @@ func (client NotificationRecipientUserClient) CreateOrUpdatePreparer(ctx context return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client NotificationRecipientUserClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -223,7 +213,6 @@ func (client NotificationRecipientUserClient) CreateOrUpdateSender(req *http.Req azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client NotificationRecipientUserClient) CreateOrUpdateResponder(resp *http.Response) (result RecipientUserContract, err error) { @@ -237,7 +226,6 @@ func (client NotificationRecipientUserClient) CreateOrUpdateResponder(resp *http return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete removes the API Management user from the list of Notification. // Parameters: // resourceGroupName - the name of the resource group. @@ -288,7 +276,6 @@ func (client NotificationRecipientUserClient) Delete(ctx context.Context, resour return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client NotificationRecipientUserClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName, UID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -312,7 +299,6 @@ func (client NotificationRecipientUserClient) DeletePreparer(ctx context.Context return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client NotificationRecipientUserClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -320,7 +306,6 @@ func (client NotificationRecipientUserClient) DeleteSender(req *http.Request) (* azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client NotificationRecipientUserClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -333,7 +318,6 @@ func (client NotificationRecipientUserClient) DeleteResponder(resp *http.Respons return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByNotification gets the list of the Notification Recipient User subscribed to the notification. // Parameters: // resourceGroupName - the name of the resource group. @@ -379,7 +363,6 @@ func (client NotificationRecipientUserClient) ListByNotification(ctx context.Con return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByNotificationPreparer prepares the ListByNotification request. func (client NotificationRecipientUserClient) ListByNotificationPreparer(ctx context.Context, resourceGroupName string, serviceName string, notificationName NotificationName) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -402,7 +385,6 @@ func (client NotificationRecipientUserClient) ListByNotificationPreparer(ctx con return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByNotificationSender sends the ListByNotification request. The method will close the // http.Response Body if it receives an error. func (client NotificationRecipientUserClient) ListByNotificationSender(req *http.Request) (*http.Response, error) { @@ -410,7 +392,6 @@ func (client NotificationRecipientUserClient) ListByNotificationSender(req *http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByNotificationResponder handles the response to the ListByNotification request. The method always // closes the http.Response Body. func (client NotificationRecipientUserClient) ListByNotificationResponder(resp *http.Response) (result RecipientUserCollection, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/openidconnectprovider.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/openidconnectprovider.go index a5b57a5dca83..f5e55fc26271 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/openidconnectprovider.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/openidconnectprovider.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OpenIDConnectProviderClient is the apiManagement Client type OpenIDConnectProviderClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewOpenIDConnectProviderClient creates an instance of the OpenIDConnectProviderClient client. func NewOpenIDConnectProviderClient(subscriptionID string) OpenIDConnectProviderClient { return NewOpenIDConnectProviderClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewOpenIDConnectProviderClientWithBaseURI creates an instance of the OpenIDConnectProviderClient client. func NewOpenIDConnectProviderClientWithBaseURI(baseURI string, subscriptionID string) OpenIDConnectProviderClient { return OpenIDConnectProviderClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or updates the OpenID Connect Provider. // Parameters: // resourceGroupName - the name of the resource group. @@ -102,7 +98,6 @@ func (client OpenIDConnectProviderClient) CreateOrUpdate(ctx context.Context, re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client OpenIDConnectProviderClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string, parameters OpenidConnectProviderContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -131,7 +126,6 @@ func (client OpenIDConnectProviderClient) CreateOrUpdatePreparer(ctx context.Con return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client OpenIDConnectProviderClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -139,7 +133,6 @@ func (client OpenIDConnectProviderClient) CreateOrUpdateSender(req *http.Request azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client OpenIDConnectProviderClient) CreateOrUpdateResponder(resp *http.Response) (result OpenidConnectProviderContract, err error) { @@ -153,7 +146,6 @@ func (client OpenIDConnectProviderClient) CreateOrUpdateResponder(resp *http.Res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes specific OpenID Connect Provider of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -204,7 +196,6 @@ func (client OpenIDConnectProviderClient) Delete(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client OpenIDConnectProviderClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -228,7 +219,6 @@ func (client OpenIDConnectProviderClient) DeletePreparer(ctx context.Context, re return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client OpenIDConnectProviderClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -236,7 +226,6 @@ func (client OpenIDConnectProviderClient) DeleteSender(req *http.Request) (*http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client OpenIDConnectProviderClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -249,7 +238,6 @@ func (client OpenIDConnectProviderClient) DeleteResponder(resp *http.Response) ( return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets specific OpenID Connect Provider. // Parameters: // resourceGroupName - the name of the resource group. @@ -298,7 +286,6 @@ func (client OpenIDConnectProviderClient) Get(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client OpenIDConnectProviderClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -321,7 +308,6 @@ func (client OpenIDConnectProviderClient) GetPreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client OpenIDConnectProviderClient) GetSender(req *http.Request) (*http.Response, error) { @@ -329,7 +315,6 @@ func (client OpenIDConnectProviderClient) GetSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client OpenIDConnectProviderClient) GetResponder(resp *http.Response) (result OpenidConnectProviderContract, err error) { @@ -343,7 +328,6 @@ func (client OpenIDConnectProviderClient) GetResponder(resp *http.Response) (res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the openIdConnectProvider specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -392,7 +376,6 @@ func (client OpenIDConnectProviderClient) GetEntityTag(ctx context.Context, reso return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client OpenIDConnectProviderClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -415,7 +398,6 @@ func (client OpenIDConnectProviderClient) GetEntityTagPreparer(ctx context.Conte return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client OpenIDConnectProviderClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -423,7 +405,6 @@ func (client OpenIDConnectProviderClient) GetEntityTagSender(req *http.Request) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client OpenIDConnectProviderClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -436,7 +417,6 @@ func (client OpenIDConnectProviderClient) GetEntityTagResponder(resp *http.Respo return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all OpenID Connect Providers. // Parameters: // resourceGroupName - the name of the resource group. @@ -494,7 +474,6 @@ func (client OpenIDConnectProviderClient) ListByService(ctx context.Context, res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client OpenIDConnectProviderClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -525,7 +504,6 @@ func (client OpenIDConnectProviderClient) ListByServicePreparer(ctx context.Cont return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client OpenIDConnectProviderClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -533,7 +511,6 @@ func (client OpenIDConnectProviderClient) ListByServiceSender(req *http.Request) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client OpenIDConnectProviderClient) ListByServiceResponder(resp *http.Response) (result OpenIDConnectProviderCollection, err error) { @@ -568,7 +545,6 @@ func (client OpenIDConnectProviderClient) listByServiceNextResults(ctx context.C return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client OpenIDConnectProviderClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result OpenIDConnectProviderCollectionIterator, err error) { if tracing.IsEnabled() { @@ -585,7 +561,6 @@ func (client OpenIDConnectProviderClient) ListByServiceComplete(ctx context.Cont return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the specific OpenID Connect Provider. // Parameters: // resourceGroupName - the name of the resource group. @@ -637,7 +612,6 @@ func (client OpenIDConnectProviderClient) Update(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client OpenIDConnectProviderClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, opid string, parameters OpenidConnectProviderUpdateContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -663,7 +637,6 @@ func (client OpenIDConnectProviderClient) UpdatePreparer(ctx context.Context, re return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client OpenIDConnectProviderClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -671,7 +644,6 @@ func (client OpenIDConnectProviderClient) UpdateSender(req *http.Request) (*http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client OpenIDConnectProviderClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operation.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operation.go index 895a61a6a0c5..225a0098007d 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operation.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operation.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationClient is the apiManagement Client type OperationClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewOperationClient creates an instance of the OperationClient client. func NewOperationClient(subscriptionID string) OperationClient { return NewOperationClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewOperationClientWithBaseURI creates an instance of the OperationClient client. func NewOperationClientWithBaseURI(baseURI string, subscriptionID string) OperationClient { return OperationClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTags lists a collection of operations associated with tags. // Parameters: // resourceGroupName - the name of the resource group. @@ -112,7 +108,6 @@ func (client OperationClient) ListByTags(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTagsPreparer prepares the ListByTags request. func (client OperationClient) ListByTagsPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -144,7 +139,6 @@ func (client OperationClient) ListByTagsPreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTagsSender sends the ListByTags request. The method will close the // http.Response Body if it receives an error. func (client OperationClient) ListByTagsSender(req *http.Request) (*http.Response, error) { @@ -152,7 +146,6 @@ func (client OperationClient) ListByTagsSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTagsResponder handles the response to the ListByTags request. The method always // closes the http.Response Body. func (client OperationClient) ListByTagsResponder(resp *http.Response) (result TagResourceCollection, err error) { @@ -187,7 +180,6 @@ func (client OperationClient) listByTagsNextResults(ctx context.Context, lastRes return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTagsComplete enumerates all values, automatically crossing page boundaries as required. func (client OperationClient) ListByTagsComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result TagResourceCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operations.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operations.go index 707d8625af04..30ef72a43b4e 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operations.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/operations.go @@ -25,25 +25,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // OperationsClient is the apiManagement Client type OperationsClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewOperationsClient creates an instance of the OperationsClient client. func NewOperationsClient(subscriptionID string) OperationsClient { return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // List lists all of the available REST API operations of the Microsoft.ApiManagement provider. func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error) { if tracing.IsEnabled() { @@ -78,7 +74,6 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListPreparer prepares the List request. func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error) { const APIVersion = "2018-01-01" @@ -94,7 +89,6 @@ func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // 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) { @@ -102,7 +96,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListResponder handles the response to the List request. The method always // closes the http.Response Body. func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { @@ -137,7 +130,6 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListComplete enumerates all values, automatically crossing page boundaries as required. func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policy.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policy.go index 8938f649e207..66e5a4dba361 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policy.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policy.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PolicyClient is the apiManagement Client type PolicyClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewPolicyClient creates an instance of the PolicyClient client. func NewPolicyClient(subscriptionID string) PolicyClient { return NewPolicyClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewPolicyClientWithBaseURI creates an instance of the PolicyClient client. func NewPolicyClientWithBaseURI(baseURI string, subscriptionID string) PolicyClient { return PolicyClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or updates the global policy configuration of the Api Management service. // Parameters: // resourceGroupName - the name of the resource group. @@ -93,7 +89,6 @@ func (client PolicyClient) CreateOrUpdate(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client PolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PolicyContract) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -118,7 +113,6 @@ func (client PolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client PolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -126,7 +120,6 @@ func (client PolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client PolicyClient) CreateOrUpdateResponder(resp *http.Response) (result PolicyContract, err error) { @@ -140,7 +133,6 @@ func (client PolicyClient) CreateOrUpdateResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the global policy configuration of the Api Management Service. // Parameters: // resourceGroupName - the name of the resource group. @@ -187,7 +179,6 @@ func (client PolicyClient) Delete(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client PolicyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -211,7 +202,6 @@ func (client PolicyClient) DeletePreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client PolicyClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -219,7 +209,6 @@ func (client PolicyClient) DeleteSender(req *http.Request) (*http.Response, erro azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client PolicyClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -232,7 +221,6 @@ func (client PolicyClient) DeleteResponder(resp *http.Response) (result autorest return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get get the Global policy definition of the Api Management service. // Parameters: // resourceGroupName - the name of the resource group. @@ -277,7 +265,6 @@ func (client PolicyClient) Get(ctx context.Context, resourceGroupName string, se return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client PolicyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -300,7 +287,6 @@ func (client PolicyClient) GetPreparer(ctx context.Context, resourceGroupName st return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client PolicyClient) GetSender(req *http.Request) (*http.Response, error) { @@ -308,7 +294,6 @@ func (client PolicyClient) GetSender(req *http.Request) (*http.Response, error) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client PolicyClient) GetResponder(resp *http.Response) (result PolicyContract, err error) { @@ -322,7 +307,6 @@ func (client PolicyClient) GetResponder(resp *http.Response) (result PolicyContr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the Global policy definition in the Api Management service. // Parameters: // resourceGroupName - the name of the resource group. @@ -367,7 +351,6 @@ func (client PolicyClient) GetEntityTag(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client PolicyClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -390,7 +373,6 @@ func (client PolicyClient) GetEntityTagPreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client PolicyClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -398,7 +380,6 @@ func (client PolicyClient) GetEntityTagSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client PolicyClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -411,7 +392,6 @@ func (client PolicyClient) GetEntityTagResponder(resp *http.Response) (result au return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all the Global Policy definitions of the Api Management service. // Parameters: // resourceGroupName - the name of the resource group. @@ -457,7 +437,6 @@ func (client PolicyClient) ListByService(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client PolicyClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, scope PolicyScopeContract) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -482,7 +461,6 @@ func (client PolicyClient) ListByServicePreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client PolicyClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -490,7 +468,6 @@ func (client PolicyClient) ListByServiceSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client PolicyClient) ListByServiceResponder(resp *http.Response) (result PolicyCollection, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policysnippets.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policysnippets.go index 1c6679ca2938..e680cdb0b657 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policysnippets.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/policysnippets.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PolicySnippetsClient is the apiManagement Client type PolicySnippetsClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewPolicySnippetsClient creates an instance of the PolicySnippetsClient client. func NewPolicySnippetsClient(subscriptionID string) PolicySnippetsClient { return NewPolicySnippetsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewPolicySnippetsClientWithBaseURI creates an instance of the PolicySnippetsClient client. func NewPolicySnippetsClientWithBaseURI(baseURI string, subscriptionID string) PolicySnippetsClient { return PolicySnippetsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all policy snippets. // Parameters: // resourceGroupName - the name of the resource group. @@ -90,7 +86,6 @@ func (client PolicySnippetsClient) ListByService(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client PolicySnippetsClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, scope PolicyScopeContract) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -115,7 +110,6 @@ func (client PolicySnippetsClient) ListByServicePreparer(ctx context.Context, re return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client PolicySnippetsClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -123,7 +117,6 @@ func (client PolicySnippetsClient) ListByServiceSender(req *http.Request) (*http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client PolicySnippetsClient) ListByServiceResponder(resp *http.Response) (result PolicySnippetsCollection, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/product.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/product.go index 4c01bd10e353..8fce6712aee1 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/product.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/product.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductClient is the apiManagement Client type ProductClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewProductClient creates an instance of the ProductClient client. func NewProductClient(subscriptionID string) ProductClient { return NewProductClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewProductClientWithBaseURI creates an instance of the ProductClient client. func NewProductClientWithBaseURI(baseURI string, subscriptionID string) ProductClient { return ProductClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or Updates a product. // Parameters: // resourceGroupName - the name of the resource group. @@ -103,7 +99,6 @@ func (client ProductClient) CreateOrUpdate(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client ProductClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, parameters ProductContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -132,7 +127,6 @@ func (client ProductClient) CreateOrUpdatePreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client ProductClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -140,7 +134,6 @@ func (client ProductClient) CreateOrUpdateSender(req *http.Request) (*http.Respo azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client ProductClient) CreateOrUpdateResponder(resp *http.Response) (result ProductContract, err error) { @@ -154,7 +147,6 @@ func (client ProductClient) CreateOrUpdateResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete delete product. // Parameters: // resourceGroupName - the name of the resource group. @@ -207,7 +199,6 @@ func (client ProductClient) Delete(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client ProductClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, ifMatch string, deleteSubscriptions *bool) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -234,7 +225,6 @@ func (client ProductClient) DeletePreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client ProductClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -242,7 +232,6 @@ func (client ProductClient) DeleteSender(req *http.Request) (*http.Response, err azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client ProductClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -255,7 +244,6 @@ func (client ProductClient) DeleteResponder(resp *http.Response) (result autores return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the product specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -305,7 +293,6 @@ func (client ProductClient) Get(ctx context.Context, resourceGroupName string, s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client ProductClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -328,7 +315,6 @@ func (client ProductClient) GetPreparer(ctx context.Context, resourceGroupName s return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client ProductClient) GetSender(req *http.Request) (*http.Response, error) { @@ -336,7 +322,6 @@ func (client ProductClient) GetSender(req *http.Request) (*http.Response, error) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client ProductClient) GetResponder(resp *http.Response) (result ProductContract, err error) { @@ -350,7 +335,6 @@ func (client ProductClient) GetResponder(resp *http.Response) (result ProductCon return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the product specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -400,7 +384,6 @@ func (client ProductClient) GetEntityTag(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client ProductClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -423,7 +406,6 @@ func (client ProductClient) GetEntityTagPreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client ProductClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -431,7 +413,6 @@ func (client ProductClient) GetEntityTagSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client ProductClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -444,7 +425,6 @@ func (client ProductClient) GetEntityTagResponder(resp *http.Response) (result a return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of products in the specified service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -507,7 +487,6 @@ func (client ProductClient) ListByService(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client ProductClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32, expandGroups *bool) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -541,7 +520,6 @@ func (client ProductClient) ListByServicePreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client ProductClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -549,7 +527,6 @@ func (client ProductClient) ListByServiceSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client ProductClient) ListByServiceResponder(resp *http.Response) (result ProductCollection, err error) { @@ -584,7 +561,6 @@ func (client ProductClient) listByServiceNextResults(ctx context.Context, lastRe return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client ProductClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32, expandGroups *bool) (result ProductCollectionIterator, err error) { if tracing.IsEnabled() { @@ -601,7 +577,6 @@ func (client ProductClient) ListByServiceComplete(ctx context.Context, resourceG return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update update product. // Parameters: // resourceGroupName - the name of the resource group. @@ -654,7 +629,6 @@ func (client ProductClient) Update(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client ProductClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, parameters ProductUpdateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -680,7 +654,6 @@ func (client ProductClient) UpdatePreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client ProductClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -688,7 +661,6 @@ func (client ProductClient) UpdateSender(req *http.Request) (*http.Response, err azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client ProductClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productapi.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productapi.go index 0aff91649c06..6cf0dcede095 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productapi.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productapi.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductAPIClient is the apiManagement Client type ProductAPIClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewProductAPIClient creates an instance of the ProductAPIClient client. func NewProductAPIClient(subscriptionID string) ProductAPIClient { return NewProductAPIClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewProductAPIClientWithBaseURI creates an instance of the ProductAPIClient client. func NewProductAPIClientWithBaseURI(baseURI string, subscriptionID string) ProductAPIClient { return ProductAPIClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExists checks that API entity specified by identifier is associated with the Product entity. // Parameters: // resourceGroupName - the name of the resource group. @@ -100,7 +96,6 @@ func (client ProductAPIClient) CheckEntityExists(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsPreparer prepares the CheckEntityExists request. func (client ProductAPIClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -124,7 +119,6 @@ func (client ProductAPIClient) CheckEntityExistsPreparer(ctx context.Context, re return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsSender sends the CheckEntityExists request. The method will close the // http.Response Body if it receives an error. func (client ProductAPIClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { @@ -132,7 +126,6 @@ func (client ProductAPIClient) CheckEntityExistsSender(req *http.Request) (*http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always // closes the http.Response Body. func (client ProductAPIClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { @@ -145,7 +138,6 @@ func (client ProductAPIClient) CheckEntityExistsResponder(resp *http.Response) ( return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate adds an API to the specified product. // Parameters: // resourceGroupName - the name of the resource group. @@ -201,7 +193,6 @@ func (client ProductAPIClient) CreateOrUpdate(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client ProductAPIClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -225,7 +216,6 @@ func (client ProductAPIClient) CreateOrUpdatePreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client ProductAPIClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -233,7 +223,6 @@ func (client ProductAPIClient) CreateOrUpdateSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client ProductAPIClient) CreateOrUpdateResponder(resp *http.Response) (result APIContract, err error) { @@ -247,7 +236,6 @@ func (client ProductAPIClient) CreateOrUpdateResponder(resp *http.Response) (res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified API from the specified product. // Parameters: // resourceGroupName - the name of the resource group. @@ -303,7 +291,6 @@ func (client ProductAPIClient) Delete(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client ProductAPIClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, apiid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -327,7 +314,6 @@ func (client ProductAPIClient) DeletePreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client ProductAPIClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -335,7 +321,6 @@ func (client ProductAPIClient) DeleteSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client ProductAPIClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -348,7 +333,6 @@ func (client ProductAPIClient) DeleteResponder(resp *http.Response) (result auto return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProduct lists a collection of the APIs associated with a product. // Parameters: // resourceGroupName - the name of the resource group. @@ -414,7 +398,6 @@ func (client ProductAPIClient) ListByProduct(ctx context.Context, resourceGroupN return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductPreparer prepares the ListByProduct request. func (client ProductAPIClient) ListByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -446,7 +429,6 @@ func (client ProductAPIClient) ListByProductPreparer(ctx context.Context, resour return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductSender sends the ListByProduct request. The method will close the // http.Response Body if it receives an error. func (client ProductAPIClient) ListByProductSender(req *http.Request) (*http.Response, error) { @@ -454,7 +436,6 @@ func (client ProductAPIClient) ListByProductSender(req *http.Request) (*http.Res azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductResponder handles the response to the ListByProduct request. The method always // closes the http.Response Body. func (client ProductAPIClient) ListByProductResponder(resp *http.Response) (result APICollection, err error) { @@ -489,7 +470,6 @@ func (client ProductAPIClient) listByProductNextResults(ctx context.Context, las return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductComplete enumerates all values, automatically crossing page boundaries as required. func (client ProductAPIClient) ListByProductComplete(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result APICollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productgroup.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productgroup.go index 1ee8f458e629..9cdb145c2fe7 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productgroup.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productgroup.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductGroupClient is the apiManagement Client type ProductGroupClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewProductGroupClient creates an instance of the ProductGroupClient client. func NewProductGroupClient(subscriptionID string) ProductGroupClient { return NewProductGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewProductGroupClientWithBaseURI creates an instance of the ProductGroupClient client. func NewProductGroupClientWithBaseURI(baseURI string, subscriptionID string) ProductGroupClient { return ProductGroupClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExists checks that Group entity specified by identifier is associated with the Product entity. // Parameters: // resourceGroupName - the name of the resource group. @@ -99,7 +95,6 @@ func (client ProductGroupClient) CheckEntityExists(ctx context.Context, resource return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsPreparer prepares the CheckEntityExists request. func (client ProductGroupClient) CheckEntityExistsPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -123,7 +118,6 @@ func (client ProductGroupClient) CheckEntityExistsPreparer(ctx context.Context, return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsSender sends the CheckEntityExists request. The method will close the // http.Response Body if it receives an error. func (client ProductGroupClient) CheckEntityExistsSender(req *http.Request) (*http.Response, error) { @@ -131,7 +125,6 @@ func (client ProductGroupClient) CheckEntityExistsSender(req *http.Request) (*ht azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckEntityExistsResponder handles the response to the CheckEntityExists request. The method always // closes the http.Response Body. func (client ProductGroupClient) CheckEntityExistsResponder(resp *http.Response) (result autorest.Response, err error) { @@ -144,7 +137,6 @@ func (client ProductGroupClient) CheckEntityExistsResponder(resp *http.Response) return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate adds the association between the specified developer group with the specified product. // Parameters: // resourceGroupName - the name of the resource group. @@ -199,7 +191,6 @@ func (client ProductGroupClient) CreateOrUpdate(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client ProductGroupClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -223,7 +214,6 @@ func (client ProductGroupClient) CreateOrUpdatePreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client ProductGroupClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -231,7 +221,6 @@ func (client ProductGroupClient) CreateOrUpdateSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client ProductGroupClient) CreateOrUpdateResponder(resp *http.Response) (result GroupContract, err error) { @@ -245,7 +234,6 @@ func (client ProductGroupClient) CreateOrUpdateResponder(resp *http.Response) (r return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the association between the specified group and product. // Parameters: // resourceGroupName - the name of the resource group. @@ -300,7 +288,6 @@ func (client ProductGroupClient) Delete(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client ProductGroupClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, groupID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -324,7 +311,6 @@ func (client ProductGroupClient) DeletePreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client ProductGroupClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -332,7 +318,6 @@ func (client ProductGroupClient) DeleteSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client ProductGroupClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -345,7 +330,6 @@ func (client ProductGroupClient) DeleteResponder(resp *http.Response) (result au return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProduct lists the collection of developer groups associated with the specified product. // Parameters: // resourceGroupName - the name of the resource group. @@ -410,7 +394,6 @@ func (client ProductGroupClient) ListByProduct(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductPreparer prepares the ListByProduct request. func (client ProductGroupClient) ListByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -442,7 +425,6 @@ func (client ProductGroupClient) ListByProductPreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductSender sends the ListByProduct request. The method will close the // http.Response Body if it receives an error. func (client ProductGroupClient) ListByProductSender(req *http.Request) (*http.Response, error) { @@ -450,7 +432,6 @@ func (client ProductGroupClient) ListByProductSender(req *http.Request) (*http.R azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductResponder handles the response to the ListByProduct request. The method always // closes the http.Response Body. func (client ProductGroupClient) ListByProductResponder(resp *http.Response) (result GroupCollection, err error) { @@ -485,7 +466,6 @@ func (client ProductGroupClient) listByProductNextResults(ctx context.Context, l return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductComplete enumerates all values, automatically crossing page boundaries as required. func (client ProductGroupClient) ListByProductComplete(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result GroupCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productpolicy.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productpolicy.go index 4114d38c3bc1..e93f8e961932 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productpolicy.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productpolicy.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductPolicyClient is the apiManagement Client type ProductPolicyClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewProductPolicyClient creates an instance of the ProductPolicyClient client. func NewProductPolicyClient(subscriptionID string) ProductPolicyClient { return NewProductPolicyClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewProductPolicyClientWithBaseURI creates an instance of the ProductPolicyClient client. func NewProductPolicyClientWithBaseURI(baseURI string, subscriptionID string) ProductPolicyClient { return ProductPolicyClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or updates policy configuration for the Product. // Parameters: // resourceGroupName - the name of the resource group. @@ -99,7 +95,6 @@ func (client ProductPolicyClient) CreateOrUpdate(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client ProductPolicyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, parameters PolicyContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -129,7 +124,6 @@ func (client ProductPolicyClient) CreateOrUpdatePreparer(ctx context.Context, re return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client ProductPolicyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -137,7 +131,6 @@ func (client ProductPolicyClient) CreateOrUpdateSender(req *http.Request) (*http azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client ProductPolicyClient) CreateOrUpdateResponder(resp *http.Response) (result PolicyContract, err error) { @@ -151,7 +144,6 @@ func (client ProductPolicyClient) CreateOrUpdateResponder(resp *http.Response) ( return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the policy configuration at the Product. // Parameters: // resourceGroupName - the name of the resource group. @@ -203,7 +195,6 @@ func (client ProductPolicyClient) Delete(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client ProductPolicyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -228,7 +219,6 @@ func (client ProductPolicyClient) DeletePreparer(ctx context.Context, resourceGr return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client ProductPolicyClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -236,7 +226,6 @@ func (client ProductPolicyClient) DeleteSender(req *http.Request) (*http.Respons azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client ProductPolicyClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -249,7 +238,6 @@ func (client ProductPolicyClient) DeleteResponder(resp *http.Response) (result a return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get get the policy configuration at the Product level. // Parameters: // resourceGroupName - the name of the resource group. @@ -299,7 +287,6 @@ func (client ProductPolicyClient) Get(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client ProductPolicyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -323,7 +310,6 @@ func (client ProductPolicyClient) GetPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client ProductPolicyClient) GetSender(req *http.Request) (*http.Response, error) { @@ -331,7 +317,6 @@ func (client ProductPolicyClient) GetSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client ProductPolicyClient) GetResponder(resp *http.Response) (result PolicyContract, err error) { @@ -345,7 +330,6 @@ func (client ProductPolicyClient) GetResponder(resp *http.Response) (result Poli return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag get the ETag of the policy configuration at the Product level. // Parameters: // resourceGroupName - the name of the resource group. @@ -395,7 +379,6 @@ func (client ProductPolicyClient) GetEntityTag(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client ProductPolicyClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -419,7 +402,6 @@ func (client ProductPolicyClient) GetEntityTagPreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client ProductPolicyClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -427,7 +409,6 @@ func (client ProductPolicyClient) GetEntityTagSender(req *http.Request) (*http.R azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client ProductPolicyClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -440,7 +421,6 @@ func (client ProductPolicyClient) GetEntityTagResponder(resp *http.Response) (re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProduct get the policy configuration at the Product level. // Parameters: // resourceGroupName - the name of the resource group. @@ -490,7 +470,6 @@ func (client ProductPolicyClient) ListByProduct(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductPreparer prepares the ListByProduct request. func (client ProductPolicyClient) ListByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -513,7 +492,6 @@ func (client ProductPolicyClient) ListByProductPreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductSender sends the ListByProduct request. The method will close the // http.Response Body if it receives an error. func (client ProductPolicyClient) ListByProductSender(req *http.Request) (*http.Response, error) { @@ -521,7 +499,6 @@ func (client ProductPolicyClient) ListByProductSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductResponder handles the response to the ListByProduct request. The method always // closes the http.Response Body. func (client ProductPolicyClient) ListByProductResponder(resp *http.Response) (result PolicyCollection, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productsubscriptions.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productsubscriptions.go index a10069db7eeb..3157e94441d7 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productsubscriptions.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/productsubscriptions.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ProductSubscriptionsClient is the apiManagement Client type ProductSubscriptionsClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewProductSubscriptionsClient creates an instance of the ProductSubscriptionsClient client. func NewProductSubscriptionsClient(subscriptionID string) ProductSubscriptionsClient { return NewProductSubscriptionsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewProductSubscriptionsClientWithBaseURI creates an instance of the ProductSubscriptionsClient client. func NewProductSubscriptionsClientWithBaseURI(baseURI string, subscriptionID string) ProductSubscriptionsClient { return ProductSubscriptionsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // List lists the collection of subscriptions to the specified product. // Parameters: // resourceGroupName - the name of the resource group. @@ -111,7 +107,6 @@ func (client ProductSubscriptionsClient) List(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListPreparer prepares the List request. func (client ProductSubscriptionsClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -143,7 +138,6 @@ func (client ProductSubscriptionsClient) ListPreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client ProductSubscriptionsClient) ListSender(req *http.Request) (*http.Response, error) { @@ -151,7 +145,6 @@ func (client ProductSubscriptionsClient) ListSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListResponder handles the response to the List request. The method always // closes the http.Response Body. func (client ProductSubscriptionsClient) ListResponder(resp *http.Response) (result SubscriptionCollection, err error) { @@ -186,7 +179,6 @@ func (client ProductSubscriptionsClient) listNextResults(ctx context.Context, la return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListComplete enumerates all values, automatically crossing page boundaries as required. func (client ProductSubscriptionsClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result SubscriptionCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/property.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/property.go index f4c91c8664e0..7b9c9df4f7ee 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/property.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/property.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // PropertyClient is the apiManagement Client type PropertyClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewPropertyClient creates an instance of the PropertyClient client. func NewPropertyClient(subscriptionID string) PropertyClient { return NewPropertyClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewPropertyClientWithBaseURI creates an instance of the PropertyClient client. func NewPropertyClientWithBaseURI(baseURI string, subscriptionID string) PropertyClient { return PropertyClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or updates a property. // Parameters: // resourceGroupName - the name of the resource group. @@ -107,7 +103,6 @@ func (client PropertyClient) CreateOrUpdate(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client PropertyClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, propID string, parameters PropertyContract, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -136,7 +131,6 @@ func (client PropertyClient) CreateOrUpdatePreparer(ctx context.Context, resourc return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client PropertyClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -144,7 +138,6 @@ func (client PropertyClient) CreateOrUpdateSender(req *http.Request) (*http.Resp azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client PropertyClient) CreateOrUpdateResponder(resp *http.Response) (result PropertyContract, err error) { @@ -158,7 +151,6 @@ func (client PropertyClient) CreateOrUpdateResponder(resp *http.Response) (resul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes specific property from the the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -209,7 +201,6 @@ func (client PropertyClient) Delete(ctx context.Context, resourceGroupName strin return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client PropertyClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, propID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -233,7 +224,6 @@ func (client PropertyClient) DeletePreparer(ctx context.Context, resourceGroupNa return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client PropertyClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -241,7 +231,6 @@ func (client PropertyClient) DeleteSender(req *http.Request) (*http.Response, er azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client PropertyClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -254,7 +243,6 @@ func (client PropertyClient) DeleteResponder(resp *http.Response) (result autore return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the property specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -303,7 +291,6 @@ func (client PropertyClient) Get(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client PropertyClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, propID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -326,7 +313,6 @@ func (client PropertyClient) GetPreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client PropertyClient) GetSender(req *http.Request) (*http.Response, error) { @@ -334,7 +320,6 @@ func (client PropertyClient) GetSender(req *http.Request) (*http.Response, error azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client PropertyClient) GetResponder(resp *http.Response) (result PropertyContract, err error) { @@ -348,7 +333,6 @@ func (client PropertyClient) GetResponder(resp *http.Response) (result PropertyC return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the property specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -397,7 +381,6 @@ func (client PropertyClient) GetEntityTag(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client PropertyClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, propID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -420,7 +403,6 @@ func (client PropertyClient) GetEntityTagPreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client PropertyClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -428,7 +410,6 @@ func (client PropertyClient) GetEntityTagSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client PropertyClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -441,7 +422,6 @@ func (client PropertyClient) GetEntityTagResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of properties defined within a service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -499,7 +479,6 @@ func (client PropertyClient) ListByService(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client PropertyClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -530,7 +509,6 @@ func (client PropertyClient) ListByServicePreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client PropertyClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -538,7 +516,6 @@ func (client PropertyClient) ListByServiceSender(req *http.Request) (*http.Respo azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client PropertyClient) ListByServiceResponder(resp *http.Response) (result PropertyCollection, err error) { @@ -573,7 +550,6 @@ func (client PropertyClient) listByServiceNextResults(ctx context.Context, lastR return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client PropertyClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result PropertyCollectionIterator, err error) { if tracing.IsEnabled() { @@ -590,7 +566,6 @@ func (client PropertyClient) ListByServiceComplete(ctx context.Context, resource return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the specific property. // Parameters: // resourceGroupName - the name of the resource group. @@ -642,7 +617,6 @@ func (client PropertyClient) Update(ctx context.Context, resourceGroupName strin return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client PropertyClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, propID string, parameters PropertyUpdateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -668,7 +642,6 @@ func (client PropertyClient) UpdatePreparer(ctx context.Context, resourceGroupNa return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client PropertyClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -676,7 +649,6 @@ func (client PropertyClient) UpdateSender(req *http.Request) (*http.Response, er azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client PropertyClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabycounterkeys.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabycounterkeys.go index 3ac9d8aa1f04..8003ca763720 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabycounterkeys.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabycounterkeys.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // QuotaByCounterKeysClient is the apiManagement Client type QuotaByCounterKeysClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewQuotaByCounterKeysClient creates an instance of the QuotaByCounterKeysClient client. func NewQuotaByCounterKeysClient(subscriptionID string) QuotaByCounterKeysClient { return NewQuotaByCounterKeysClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewQuotaByCounterKeysClientWithBaseURI creates an instance of the QuotaByCounterKeysClient client. func NewQuotaByCounterKeysClientWithBaseURI(baseURI string, subscriptionID string) QuotaByCounterKeysClient { return QuotaByCounterKeysClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of current quota counter periods associated with the counter-key configured in the // policy on the specified service instance. The api does not support paging yet. // Parameters: @@ -94,7 +90,6 @@ func (client QuotaByCounterKeysClient) ListByService(ctx context.Context, resour return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client QuotaByCounterKeysClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -117,7 +112,6 @@ func (client QuotaByCounterKeysClient) ListByServicePreparer(ctx context.Context return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client QuotaByCounterKeysClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -125,7 +119,6 @@ func (client QuotaByCounterKeysClient) ListByServiceSender(req *http.Request) (* azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client QuotaByCounterKeysClient) ListByServiceResponder(resp *http.Response) (result QuotaCounterCollection, err error) { @@ -139,7 +132,6 @@ func (client QuotaByCounterKeysClient) ListByServiceResponder(resp *http.Respons return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates all the quota counter values specified with the existing quota counter key to a value in the // specified service instance. This should be used for reset of the quota counter values. // Parameters: @@ -190,7 +182,6 @@ func (client QuotaByCounterKeysClient) Update(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client QuotaByCounterKeysClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string, parameters QuotaCounterValueContractProperties) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -215,7 +206,6 @@ func (client QuotaByCounterKeysClient) UpdatePreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client QuotaByCounterKeysClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -223,7 +213,6 @@ func (client QuotaByCounterKeysClient) UpdateSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client QuotaByCounterKeysClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabyperiodkeys.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabyperiodkeys.go index 6b1d50fbe182..8338e2ff0c29 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabyperiodkeys.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/quotabyperiodkeys.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // QuotaByPeriodKeysClient is the apiManagement Client type QuotaByPeriodKeysClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewQuotaByPeriodKeysClient creates an instance of the QuotaByPeriodKeysClient client. func NewQuotaByPeriodKeysClient(subscriptionID string) QuotaByPeriodKeysClient { return NewQuotaByPeriodKeysClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewQuotaByPeriodKeysClientWithBaseURI creates an instance of the QuotaByPeriodKeysClient client. func NewQuotaByPeriodKeysClientWithBaseURI(baseURI string, subscriptionID string) QuotaByPeriodKeysClient { return QuotaByPeriodKeysClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the value of the quota counter associated with the counter-key in the policy for the specific period in // service instance. // Parameters: @@ -95,7 +91,6 @@ func (client QuotaByPeriodKeysClient) Get(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client QuotaByPeriodKeysClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string, quotaPeriodKey string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -119,7 +114,6 @@ func (client QuotaByPeriodKeysClient) GetPreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client QuotaByPeriodKeysClient) GetSender(req *http.Request) (*http.Response, error) { @@ -127,7 +121,6 @@ func (client QuotaByPeriodKeysClient) GetSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client QuotaByPeriodKeysClient) GetResponder(resp *http.Response) (result QuotaCounterContract, err error) { @@ -141,7 +134,6 @@ func (client QuotaByPeriodKeysClient) GetResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates an existing quota counter value in the specified service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -192,7 +184,6 @@ func (client QuotaByPeriodKeysClient) Update(ctx context.Context, resourceGroupN return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client QuotaByPeriodKeysClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, quotaCounterKey string, quotaPeriodKey string, parameters QuotaCounterValueContractProperties) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -218,7 +209,6 @@ func (client QuotaByPeriodKeysClient) UpdatePreparer(ctx context.Context, resour return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client QuotaByPeriodKeysClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -226,7 +216,6 @@ func (client QuotaByPeriodKeysClient) UpdateSender(req *http.Request) (*http.Res azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client QuotaByPeriodKeysClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/regions.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/regions.go index 0111878b10d0..1c8c024bf521 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/regions.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/regions.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegionsClient is the apiManagement Client type RegionsClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewRegionsClient creates an instance of the RegionsClient client. func NewRegionsClient(subscriptionID string) RegionsClient { return NewRegionsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewRegionsClientWithBaseURI creates an instance of the RegionsClient client. func NewRegionsClientWithBaseURI(baseURI string, subscriptionID string) RegionsClient { return RegionsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists all azure regions in which the service exists. // Parameters: // resourceGroupName - the name of the resource group. @@ -90,7 +86,6 @@ func (client RegionsClient) ListByService(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client RegionsClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -112,7 +107,6 @@ func (client RegionsClient) ListByServicePreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client RegionsClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -120,7 +114,6 @@ func (client RegionsClient) ListByServiceSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client RegionsClient) ListByServiceResponder(resp *http.Response) (result RegionListResult, err error) { @@ -155,7 +148,6 @@ func (client RegionsClient) listByServiceNextResults(ctx context.Context, lastRe return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client RegionsClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string) (result RegionListResultIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/reports.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/reports.go index c53fc3a411de..5ccb3ae2dc97 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/reports.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/reports.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ReportsClient is the apiManagement Client type ReportsClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewReportsClient creates an instance of the ReportsClient client. func NewReportsClient(subscriptionID string) ReportsClient { return NewReportsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewReportsClientWithBaseURI creates an instance of the ReportsClient client. func NewReportsClientWithBaseURI(baseURI string, subscriptionID string) ReportsClient { return ReportsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPI lists report records by API. // Parameters: // resourceGroupName - the name of the resource group. @@ -99,7 +95,6 @@ func (client ReportsClient) ListByAPI(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIPreparer prepares the ListByAPI request. func (client ReportsClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -128,7 +123,6 @@ func (client ReportsClient) ListByAPIPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPISender sends the ListByAPI request. The method will close the // http.Response Body if it receives an error. func (client ReportsClient) ListByAPISender(req *http.Request) (*http.Response, error) { @@ -136,7 +130,6 @@ func (client ReportsClient) ListByAPISender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIResponder handles the response to the ListByAPI request. The method always // closes the http.Response Body. func (client ReportsClient) ListByAPIResponder(resp *http.Response) (result ReportCollection, err error) { @@ -171,7 +164,6 @@ func (client ReportsClient) listByAPINextResults(ctx context.Context, lastResult return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIComplete enumerates all values, automatically crossing page boundaries as required. func (client ReportsClient) ListByAPIComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { if tracing.IsEnabled() { @@ -188,7 +180,6 @@ func (client ReportsClient) ListByAPIComplete(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByGeo lists report records by GeoGraphy. // Parameters: // resourceGroupName - the name of the resource group. @@ -243,7 +234,6 @@ func (client ReportsClient) ListByGeo(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByGeoPreparer prepares the ListByGeo request. func (client ReportsClient) ListByGeoPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -274,7 +264,6 @@ func (client ReportsClient) ListByGeoPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByGeoSender sends the ListByGeo request. The method will close the // http.Response Body if it receives an error. func (client ReportsClient) ListByGeoSender(req *http.Request) (*http.Response, error) { @@ -282,7 +271,6 @@ func (client ReportsClient) ListByGeoSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByGeoResponder handles the response to the ListByGeo request. The method always // closes the http.Response Body. func (client ReportsClient) ListByGeoResponder(resp *http.Response) (result ReportCollection, err error) { @@ -317,7 +305,6 @@ func (client ReportsClient) listByGeoNextResults(ctx context.Context, lastResult return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByGeoComplete enumerates all values, automatically crossing page boundaries as required. func (client ReportsClient) ListByGeoComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { if tracing.IsEnabled() { @@ -334,7 +321,6 @@ func (client ReportsClient) ListByGeoComplete(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperation lists report records by API Operations. // Parameters: // resourceGroupName - the name of the resource group. @@ -389,7 +375,6 @@ func (client ReportsClient) ListByOperation(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperationPreparer prepares the ListByOperation request. func (client ReportsClient) ListByOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -418,7 +403,6 @@ func (client ReportsClient) ListByOperationPreparer(ctx context.Context, resourc return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperationSender sends the ListByOperation request. The method will close the // http.Response Body if it receives an error. func (client ReportsClient) ListByOperationSender(req *http.Request) (*http.Response, error) { @@ -426,7 +410,6 @@ func (client ReportsClient) ListByOperationSender(req *http.Request) (*http.Resp azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperationResponder handles the response to the ListByOperation request. The method always // closes the http.Response Body. func (client ReportsClient) ListByOperationResponder(resp *http.Response) (result ReportCollection, err error) { @@ -461,7 +444,6 @@ func (client ReportsClient) listByOperationNextResults(ctx context.Context, last return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperationComplete enumerates all values, automatically crossing page boundaries as required. func (client ReportsClient) ListByOperationComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { if tracing.IsEnabled() { @@ -478,7 +460,6 @@ func (client ReportsClient) ListByOperationComplete(ctx context.Context, resourc return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProduct lists report records by Product. // Parameters: // resourceGroupName - the name of the resource group. @@ -533,7 +514,6 @@ func (client ReportsClient) ListByProduct(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductPreparer prepares the ListByProduct request. func (client ReportsClient) ListByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -562,7 +542,6 @@ func (client ReportsClient) ListByProductPreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductSender sends the ListByProduct request. The method will close the // http.Response Body if it receives an error. func (client ReportsClient) ListByProductSender(req *http.Request) (*http.Response, error) { @@ -570,7 +549,6 @@ func (client ReportsClient) ListByProductSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductResponder handles the response to the ListByProduct request. The method always // closes the http.Response Body. func (client ReportsClient) ListByProductResponder(resp *http.Response) (result ReportCollection, err error) { @@ -605,7 +583,6 @@ func (client ReportsClient) listByProductNextResults(ctx context.Context, lastRe return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductComplete enumerates all values, automatically crossing page boundaries as required. func (client ReportsClient) ListByProductComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { if tracing.IsEnabled() { @@ -622,7 +599,6 @@ func (client ReportsClient) ListByProductComplete(ctx context.Context, resourceG return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByRequest lists report records by Request. // Parameters: // resourceGroupName - the name of the resource group. @@ -676,7 +652,6 @@ func (client ReportsClient) ListByRequest(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByRequestPreparer prepares the ListByRequest request. func (client ReportsClient) ListByRequestPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -705,7 +680,6 @@ func (client ReportsClient) ListByRequestPreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByRequestSender sends the ListByRequest request. The method will close the // http.Response Body if it receives an error. func (client ReportsClient) ListByRequestSender(req *http.Request) (*http.Response, error) { @@ -713,7 +687,6 @@ func (client ReportsClient) ListByRequestSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByRequestResponder handles the response to the ListByRequest request. The method always // closes the http.Response Body. func (client ReportsClient) ListByRequestResponder(resp *http.Response) (result RequestReportCollection, err error) { @@ -727,7 +700,6 @@ func (client ReportsClient) ListByRequestResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListBySubscription lists report records by subscription. // Parameters: // resourceGroupName - the name of the resource group. @@ -782,7 +754,6 @@ func (client ReportsClient) ListBySubscription(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListBySubscriptionPreparer prepares the ListBySubscription request. func (client ReportsClient) ListBySubscriptionPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -813,7 +784,6 @@ func (client ReportsClient) ListBySubscriptionPreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListBySubscriptionSender sends the ListBySubscription request. The method will close the // http.Response Body if it receives an error. func (client ReportsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error) { @@ -821,7 +791,6 @@ func (client ReportsClient) ListBySubscriptionSender(req *http.Request) (*http.R azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always // closes the http.Response Body. func (client ReportsClient) ListBySubscriptionResponder(resp *http.Response) (result ReportCollection, err error) { @@ -856,7 +825,6 @@ func (client ReportsClient) listBySubscriptionNextResults(ctx context.Context, l return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required. func (client ReportsClient) ListBySubscriptionComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { if tracing.IsEnabled() { @@ -873,7 +841,6 @@ func (client ReportsClient) ListBySubscriptionComplete(ctx context.Context, reso return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTime lists report records by Time. // Parameters: // resourceGroupName - the name of the resource group. @@ -931,7 +898,6 @@ func (client ReportsClient) ListByTime(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTimePreparer prepares the ListByTime request. func (client ReportsClient) ListByTimePreparer(ctx context.Context, resourceGroupName string, serviceName string, interval string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -963,7 +929,6 @@ func (client ReportsClient) ListByTimePreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTimeSender sends the ListByTime request. The method will close the // http.Response Body if it receives an error. func (client ReportsClient) ListByTimeSender(req *http.Request) (*http.Response, error) { @@ -971,7 +936,6 @@ func (client ReportsClient) ListByTimeSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTimeResponder handles the response to the ListByTime request. The method always // closes the http.Response Body. func (client ReportsClient) ListByTimeResponder(resp *http.Response) (result ReportCollection, err error) { @@ -1006,7 +970,6 @@ func (client ReportsClient) listByTimeNextResults(ctx context.Context, lastResul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByTimeComplete enumerates all values, automatically crossing page boundaries as required. func (client ReportsClient) ListByTimeComplete(ctx context.Context, resourceGroupName string, serviceName string, interval string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { if tracing.IsEnabled() { @@ -1023,7 +986,6 @@ func (client ReportsClient) ListByTimeComplete(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByUser lists report records by User. // Parameters: // resourceGroupName - the name of the resource group. @@ -1078,7 +1040,6 @@ func (client ReportsClient) ListByUser(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByUserPreparer prepares the ListByUser request. func (client ReportsClient) ListByUserPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1107,7 +1068,6 @@ func (client ReportsClient) ListByUserPreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByUserSender sends the ListByUser request. The method will close the // http.Response Body if it receives an error. func (client ReportsClient) ListByUserSender(req *http.Request) (*http.Response, error) { @@ -1115,7 +1075,6 @@ func (client ReportsClient) ListByUserSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByUserResponder handles the response to the ListByUser request. The method always // closes the http.Response Body. func (client ReportsClient) ListByUserResponder(resp *http.Response) (result ReportCollection, err error) { @@ -1150,7 +1109,6 @@ func (client ReportsClient) listByUserNextResults(ctx context.Context, lastResul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByUserComplete enumerates all values, automatically crossing page boundaries as required. func (client ReportsClient) ListByUserComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result ReportCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/service.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/service.go index 5154032331f0..df72a43d1ad9 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/service.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/service.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ServiceClient is the apiManagement Client type ServiceClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewServiceClient creates an instance of the ServiceClient client. func NewServiceClient(subscriptionID string) ServiceClient { return NewServiceClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewServiceClientWithBaseURI creates an instance of the ServiceClient client. func NewServiceClientWithBaseURI(baseURI string, subscriptionID string) ServiceClient { return ServiceClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ApplyNetworkConfigurationUpdates updates the Microsoft.ApiManagement resource running in the Virtual network to pick // the updated network settings. // Parameters: @@ -87,7 +83,6 @@ func (client ServiceClient) ApplyNetworkConfigurationUpdates(ctx context.Context return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ApplyNetworkConfigurationUpdatesPreparer prepares the ApplyNetworkConfigurationUpdates request. func (client ServiceClient) ApplyNetworkConfigurationUpdatesPreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters *ServiceApplyNetworkConfigurationParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -114,7 +109,6 @@ func (client ServiceClient) ApplyNetworkConfigurationUpdatesPreparer(ctx context return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ApplyNetworkConfigurationUpdatesSender sends the ApplyNetworkConfigurationUpdates request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) ApplyNetworkConfigurationUpdatesSender(req *http.Request) (future ServiceApplyNetworkConfigurationUpdatesFuture, err error) { @@ -128,7 +122,6 @@ func (client ServiceClient) ApplyNetworkConfigurationUpdatesSender(req *http.Req return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ApplyNetworkConfigurationUpdatesResponder handles the response to the ApplyNetworkConfigurationUpdates request. The method always // closes the http.Response Body. func (client ServiceClient) ApplyNetworkConfigurationUpdatesResponder(resp *http.Response) (result ServiceResource, err error) { @@ -142,7 +135,6 @@ func (client ServiceClient) ApplyNetworkConfigurationUpdatesResponder(resp *http return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Backup creates a backup of the API Management service to the given Azure Storage Account. This is long running // operation and could take several minutes to complete. // Parameters: @@ -188,7 +180,6 @@ func (client ServiceClient) Backup(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackupPreparer prepares the Backup request. func (client ServiceClient) BackupPreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceBackupRestoreParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -212,7 +203,6 @@ func (client ServiceClient) BackupPreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackupSender sends the Backup request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) BackupSender(req *http.Request) (future ServiceBackupFuture, err error) { @@ -226,7 +216,6 @@ func (client ServiceClient) BackupSender(req *http.Request) (future ServiceBacku return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // BackupResponder handles the response to the Backup request. The method always // closes the http.Response Body. func (client ServiceClient) BackupResponder(resp *http.Response) (result ServiceResource, err error) { @@ -240,7 +229,6 @@ func (client ServiceClient) BackupResponder(resp *http.Response) (result Service return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckNameAvailability checks availability and correctness of a name for an API Management service. // Parameters: // parameters - parameters supplied to the CheckNameAvailability operation. @@ -282,7 +270,6 @@ func (client ServiceClient) CheckNameAvailability(ctx context.Context, parameter return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckNameAvailabilityPreparer prepares the CheckNameAvailability request. func (client ServiceClient) CheckNameAvailabilityPreparer(ctx context.Context, parameters ServiceCheckNameAvailabilityParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -304,7 +291,6 @@ func (client ServiceClient) CheckNameAvailabilityPreparer(ctx context.Context, p return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckNameAvailabilitySender sends the CheckNameAvailability request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) CheckNameAvailabilitySender(req *http.Request) (*http.Response, error) { @@ -312,7 +298,6 @@ func (client ServiceClient) CheckNameAvailabilitySender(req *http.Request) (*htt azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CheckNameAvailabilityResponder handles the response to the CheckNameAvailability request. The method always // closes the http.Response Body. func (client ServiceClient) CheckNameAvailabilityResponder(resp *http.Response) (result ServiceNameAvailabilityResult, err error) { @@ -326,7 +311,6 @@ func (client ServiceClient) CheckNameAvailabilityResponder(resp *http.Response) return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or updates an API Management service. This is long running operation and could take several // minutes to complete. // Parameters: @@ -378,7 +362,6 @@ func (client ServiceClient) CreateOrUpdate(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client ServiceClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceResource) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -402,7 +385,6 @@ func (client ServiceClient) CreateOrUpdatePreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) CreateOrUpdateSender(req *http.Request) (future ServiceCreateOrUpdateFuture, err error) { @@ -416,7 +398,6 @@ func (client ServiceClient) CreateOrUpdateSender(req *http.Request) (future Serv return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client ServiceClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceResource, err error) { @@ -430,7 +411,6 @@ func (client ServiceClient) CreateOrUpdateResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes an existing API Management service. // Parameters: // resourceGroupName - the name of the resource group. @@ -475,7 +455,6 @@ func (client ServiceClient) Delete(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client ServiceClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -497,7 +476,6 @@ func (client ServiceClient) DeletePreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -505,7 +483,6 @@ func (client ServiceClient) DeleteSender(req *http.Request) (*http.Response, err azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client ServiceClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -518,7 +495,6 @@ func (client ServiceClient) DeleteResponder(resp *http.Response) (result autores return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets an API Management service resource description. // Parameters: // resourceGroupName - the name of the resource group. @@ -563,7 +539,6 @@ func (client ServiceClient) Get(ctx context.Context, resourceGroupName string, s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client ServiceClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -585,7 +560,6 @@ func (client ServiceClient) GetPreparer(ctx context.Context, resourceGroupName s return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) GetSender(req *http.Request) (*http.Response, error) { @@ -593,7 +567,6 @@ func (client ServiceClient) GetSender(req *http.Request) (*http.Response, error) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client ServiceClient) GetResponder(resp *http.Response) (result ServiceResource, err error) { @@ -607,7 +580,6 @@ func (client ServiceClient) GetResponder(resp *http.Response) (result ServiceRes return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSsoToken gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes. // Parameters: // resourceGroupName - the name of the resource group. @@ -652,7 +624,6 @@ func (client ServiceClient) GetSsoToken(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSsoTokenPreparer prepares the GetSsoToken request. func (client ServiceClient) GetSsoTokenPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -674,7 +645,6 @@ func (client ServiceClient) GetSsoTokenPreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSsoTokenSender sends the GetSsoToken request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) GetSsoTokenSender(req *http.Request) (*http.Response, error) { @@ -682,7 +652,6 @@ func (client ServiceClient) GetSsoTokenSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSsoTokenResponder handles the response to the GetSsoToken request. The method always // closes the http.Response Body. func (client ServiceClient) GetSsoTokenResponder(resp *http.Response) (result ServiceGetSsoTokenResult, err error) { @@ -696,7 +665,6 @@ func (client ServiceClient) GetSsoTokenResponder(resp *http.Response) (result Se return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // List lists all API Management services within an Azure subscription. func (client ServiceClient) List(ctx context.Context) (result ServiceListResultPage, err error) { if tracing.IsEnabled() { @@ -731,7 +699,6 @@ func (client ServiceClient) List(ctx context.Context) (result ServiceListResultP return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListPreparer prepares the List request. func (client ServiceClient) ListPreparer(ctx context.Context) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -751,7 +718,6 @@ func (client ServiceClient) ListPreparer(ctx context.Context) (*http.Request, er return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) ListSender(req *http.Request) (*http.Response, error) { @@ -759,7 +725,6 @@ func (client ServiceClient) ListSender(req *http.Request) (*http.Response, error azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListResponder handles the response to the List request. The method always // closes the http.Response Body. func (client ServiceClient) ListResponder(resp *http.Response) (result ServiceListResult, err error) { @@ -794,7 +759,6 @@ func (client ServiceClient) listNextResults(ctx context.Context, lastResults Ser return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListComplete enumerates all values, automatically crossing page boundaries as required. func (client ServiceClient) ListComplete(ctx context.Context) (result ServiceListResultIterator, err error) { if tracing.IsEnabled() { @@ -811,7 +775,6 @@ func (client ServiceClient) ListComplete(ctx context.Context) (result ServiceLis return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByResourceGroup list all API Management services within a resource group. // Parameters: // resourceGroupName - the name of the resource group. @@ -848,7 +811,6 @@ func (client ServiceClient) ListByResourceGroup(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByResourceGroupPreparer prepares the ListByResourceGroup request. func (client ServiceClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -869,7 +831,6 @@ func (client ServiceClient) ListByResourceGroupPreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error) { @@ -877,7 +838,6 @@ func (client ServiceClient) ListByResourceGroupSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always // closes the http.Response Body. func (client ServiceClient) ListByResourceGroupResponder(resp *http.Response) (result ServiceListResult, err error) { @@ -912,7 +872,6 @@ func (client ServiceClient) listByResourceGroupNextResults(ctx context.Context, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required. func (client ServiceClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServiceListResultIterator, err error) { if tracing.IsEnabled() { @@ -929,7 +888,6 @@ func (client ServiceClient) ListByResourceGroupComplete(ctx context.Context, res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Restore restores a backup of an API Management service created using the ApiManagementService_Backup operation on // the current service. This is a long running operation and could take several minutes to complete. // Parameters: @@ -975,7 +933,6 @@ func (client ServiceClient) Restore(ctx context.Context, resourceGroupName strin return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RestorePreparer prepares the Restore request. func (client ServiceClient) RestorePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceBackupRestoreParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -999,7 +956,6 @@ func (client ServiceClient) RestorePreparer(ctx context.Context, resourceGroupNa return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RestoreSender sends the Restore request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) RestoreSender(req *http.Request) (future ServiceRestoreFuture, err error) { @@ -1013,7 +969,6 @@ func (client ServiceClient) RestoreSender(req *http.Request) (future ServiceRest return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RestoreResponder handles the response to the Restore request. The method always // closes the http.Response Body. func (client ServiceClient) RestoreResponder(resp *http.Response) (result ServiceResource, err error) { @@ -1027,7 +982,6 @@ func (client ServiceClient) RestoreResponder(resp *http.Response) (result Servic return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates an existing API Management service. // Parameters: // resourceGroupName - the name of the resource group. @@ -1067,7 +1021,6 @@ func (client ServiceClient) Update(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client ServiceClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceUpdateParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1091,7 +1044,6 @@ func (client ServiceClient) UpdatePreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) UpdateSender(req *http.Request) (future ServiceUpdateFuture, err error) { @@ -1105,7 +1057,6 @@ func (client ServiceClient) UpdateSender(req *http.Request) (future ServiceUpdat return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client ServiceClient) UpdateResponder(resp *http.Response) (result ServiceResource, err error) { @@ -1119,7 +1070,6 @@ func (client ServiceClient) UpdateResponder(resp *http.Response) (result Service return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateHostname creates, updates, or deletes the custom hostnames for an API Management service. The custom hostname // can be applied to the Proxy and Portal endpoint. This is a long running operation and could take several minutes to // complete. This operation will be deprecated in the next version update. @@ -1161,7 +1111,6 @@ func (client ServiceClient) UpdateHostname(ctx context.Context, resourceGroupNam return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateHostnamePreparer prepares the UpdateHostname request. func (client ServiceClient) UpdateHostnamePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceUpdateHostnameParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1185,7 +1134,6 @@ func (client ServiceClient) UpdateHostnamePreparer(ctx context.Context, resource return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateHostnameSender sends the UpdateHostname request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) UpdateHostnameSender(req *http.Request) (future ServiceUpdateHostnameFuture, err error) { @@ -1199,7 +1147,6 @@ func (client ServiceClient) UpdateHostnameSender(req *http.Request) (future Serv return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateHostnameResponder handles the response to the UpdateHostname request. The method always // closes the http.Response Body. func (client ServiceClient) UpdateHostnameResponder(resp *http.Response) (result ServiceResource, err error) { @@ -1213,7 +1160,6 @@ func (client ServiceClient) UpdateHostnameResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UploadCertificate upload Custom Domain SSL certificate for an API Management service. This operation will be // deprecated in future releases. // Parameters: @@ -1263,7 +1209,6 @@ func (client ServiceClient) UploadCertificate(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UploadCertificatePreparer prepares the UploadCertificate request. func (client ServiceClient) UploadCertificatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters ServiceUploadCertificateParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1287,7 +1232,6 @@ func (client ServiceClient) UploadCertificatePreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UploadCertificateSender sends the UploadCertificate request. The method will close the // http.Response Body if it receives an error. func (client ServiceClient) UploadCertificateSender(req *http.Request) (*http.Response, error) { @@ -1295,7 +1239,6 @@ func (client ServiceClient) UploadCertificateSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UploadCertificateResponder handles the response to the UploadCertificate request. The method always // closes the http.Response Body. func (client ServiceClient) UploadCertificateResponder(resp *http.Response) (result CertificateInformation, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signinsettings.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signinsettings.go index e9f822d04365..0793337fd21c 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signinsettings.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signinsettings.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SignInSettingsClient is the apiManagement Client type SignInSettingsClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewSignInSettingsClient creates an instance of the SignInSettingsClient client. func NewSignInSettingsClient(subscriptionID string) SignInSettingsClient { return NewSignInSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewSignInSettingsClientWithBaseURI creates an instance of the SignInSettingsClient client. func NewSignInSettingsClientWithBaseURI(baseURI string, subscriptionID string) SignInSettingsClient { return SignInSettingsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate create or Update Sign-In settings. // Parameters: // resourceGroupName - the name of the resource group. @@ -90,7 +86,6 @@ func (client SignInSettingsClient) CreateOrUpdate(ctx context.Context, resourceG return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client SignInSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSigninSettings) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -114,7 +109,6 @@ func (client SignInSettingsClient) CreateOrUpdatePreparer(ctx context.Context, r return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client SignInSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -122,7 +116,6 @@ func (client SignInSettingsClient) CreateOrUpdateSender(req *http.Request) (*htt azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client SignInSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result PortalSigninSettings, err error) { @@ -136,7 +129,6 @@ func (client SignInSettingsClient) CreateOrUpdateResponder(resp *http.Response) return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get get Sign-In settings. // Parameters: // resourceGroupName - the name of the resource group. @@ -181,7 +173,6 @@ func (client SignInSettingsClient) Get(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client SignInSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -203,7 +194,6 @@ func (client SignInSettingsClient) GetPreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client SignInSettingsClient) GetSender(req *http.Request) (*http.Response, error) { @@ -211,7 +201,6 @@ func (client SignInSettingsClient) GetSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client SignInSettingsClient) GetResponder(resp *http.Response) (result PortalSigninSettings, err error) { @@ -225,7 +214,6 @@ func (client SignInSettingsClient) GetResponder(resp *http.Response) (result Por return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the SignInSettings. // Parameters: // resourceGroupName - the name of the resource group. @@ -270,7 +258,6 @@ func (client SignInSettingsClient) GetEntityTag(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client SignInSettingsClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -292,7 +279,6 @@ func (client SignInSettingsClient) GetEntityTagPreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client SignInSettingsClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -300,7 +286,6 @@ func (client SignInSettingsClient) GetEntityTagSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client SignInSettingsClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -313,7 +298,6 @@ func (client SignInSettingsClient) GetEntityTagResponder(resp *http.Response) (r return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update update Sign-In settings. // Parameters: // resourceGroupName - the name of the resource group. @@ -361,7 +345,6 @@ func (client SignInSettingsClient) Update(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client SignInSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSigninSettings, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -386,7 +369,6 @@ func (client SignInSettingsClient) UpdatePreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client SignInSettingsClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -394,7 +376,6 @@ func (client SignInSettingsClient) UpdateSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client SignInSettingsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signupsettings.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signupsettings.go index 298b587da278..9db07bdbe861 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signupsettings.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/signupsettings.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SignUpSettingsClient is the apiManagement Client type SignUpSettingsClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewSignUpSettingsClient creates an instance of the SignUpSettingsClient client. func NewSignUpSettingsClient(subscriptionID string) SignUpSettingsClient { return NewSignUpSettingsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewSignUpSettingsClientWithBaseURI creates an instance of the SignUpSettingsClient client. func NewSignUpSettingsClientWithBaseURI(baseURI string, subscriptionID string) SignUpSettingsClient { return SignUpSettingsClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate create or Update Sign-Up settings. // Parameters: // resourceGroupName - the name of the resource group. @@ -90,7 +86,6 @@ func (client SignUpSettingsClient) CreateOrUpdate(ctx context.Context, resourceG return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client SignUpSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSignupSettings) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -114,7 +109,6 @@ func (client SignUpSettingsClient) CreateOrUpdatePreparer(ctx context.Context, r return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client SignUpSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -122,7 +116,6 @@ func (client SignUpSettingsClient) CreateOrUpdateSender(req *http.Request) (*htt azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client SignUpSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result PortalSignupSettings, err error) { @@ -136,7 +129,6 @@ func (client SignUpSettingsClient) CreateOrUpdateResponder(resp *http.Response) return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get get Sign-Up settings. // Parameters: // resourceGroupName - the name of the resource group. @@ -181,7 +173,6 @@ func (client SignUpSettingsClient) Get(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client SignUpSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -203,7 +194,6 @@ func (client SignUpSettingsClient) GetPreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client SignUpSettingsClient) GetSender(req *http.Request) (*http.Response, error) { @@ -211,7 +201,6 @@ func (client SignUpSettingsClient) GetSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client SignUpSettingsClient) GetResponder(resp *http.Response) (result PortalSignupSettings, err error) { @@ -225,7 +214,6 @@ func (client SignUpSettingsClient) GetResponder(resp *http.Response) (result Por return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the SignUpSettings. // Parameters: // resourceGroupName - the name of the resource group. @@ -270,7 +258,6 @@ func (client SignUpSettingsClient) GetEntityTag(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client SignUpSettingsClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -292,7 +279,6 @@ func (client SignUpSettingsClient) GetEntityTagPreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client SignUpSettingsClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -300,7 +286,6 @@ func (client SignUpSettingsClient) GetEntityTagSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client SignUpSettingsClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -313,7 +298,6 @@ func (client SignUpSettingsClient) GetEntityTagResponder(resp *http.Response) (r return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update update Sign-Up settings. // Parameters: // resourceGroupName - the name of the resource group. @@ -361,7 +345,6 @@ func (client SignUpSettingsClient) Update(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client SignUpSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters PortalSignupSettings, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -386,7 +369,6 @@ func (client SignUpSettingsClient) UpdatePreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client SignUpSettingsClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -394,7 +376,6 @@ func (client SignUpSettingsClient) UpdateSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client SignUpSettingsClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/subscription.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/subscription.go index ed4869340d50..d41f0b5f155e 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/subscription.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/subscription.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SubscriptionClient is the apiManagement Client type SubscriptionClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewSubscriptionClient creates an instance of the SubscriptionClient client. func NewSubscriptionClient(subscriptionID string) SubscriptionClient { return NewSubscriptionClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewSubscriptionClientWithBaseURI creates an instance of the SubscriptionClient client. func NewSubscriptionClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionClient { return SubscriptionClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or updates the subscription of specified user to the specified product. // Parameters: // resourceGroupName - the name of the resource group. @@ -116,7 +112,6 @@ func (client SubscriptionClient) CreateOrUpdate(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client SubscriptionClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string, parameters SubscriptionCreateParameters, notify *bool, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -148,7 +143,6 @@ func (client SubscriptionClient) CreateOrUpdatePreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client SubscriptionClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -156,7 +150,6 @@ func (client SubscriptionClient) CreateOrUpdateSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client SubscriptionClient) CreateOrUpdateResponder(resp *http.Response) (result SubscriptionContract, err error) { @@ -170,7 +163,6 @@ func (client SubscriptionClient) CreateOrUpdateResponder(resp *http.Response) (r return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes the specified subscription. // Parameters: // resourceGroupName - the name of the resource group. @@ -222,7 +214,6 @@ func (client SubscriptionClient) Delete(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client SubscriptionClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -246,7 +237,6 @@ func (client SubscriptionClient) DeletePreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client SubscriptionClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -254,7 +244,6 @@ func (client SubscriptionClient) DeleteSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client SubscriptionClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -267,7 +256,6 @@ func (client SubscriptionClient) DeleteResponder(resp *http.Response) (result au return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the specified Subscription entity. // Parameters: // resourceGroupName - the name of the resource group. @@ -317,7 +305,6 @@ func (client SubscriptionClient) Get(ctx context.Context, resourceGroupName stri return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client SubscriptionClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -340,7 +327,6 @@ func (client SubscriptionClient) GetPreparer(ctx context.Context, resourceGroupN return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client SubscriptionClient) GetSender(req *http.Request) (*http.Response, error) { @@ -348,7 +334,6 @@ func (client SubscriptionClient) GetSender(req *http.Request) (*http.Response, e azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client SubscriptionClient) GetResponder(resp *http.Response) (result SubscriptionContract, err error) { @@ -362,7 +347,6 @@ func (client SubscriptionClient) GetResponder(resp *http.Response) (result Subsc return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the apimanagement subscription specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -412,7 +396,6 @@ func (client SubscriptionClient) GetEntityTag(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client SubscriptionClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -435,7 +418,6 @@ func (client SubscriptionClient) GetEntityTagPreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client SubscriptionClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -443,7 +425,6 @@ func (client SubscriptionClient) GetEntityTagSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client SubscriptionClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -456,7 +437,6 @@ func (client SubscriptionClient) GetEntityTagResponder(resp *http.Response) (res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // List lists all subscriptions of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -518,7 +498,6 @@ func (client SubscriptionClient) List(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListPreparer prepares the List request. func (client SubscriptionClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -549,7 +528,6 @@ func (client SubscriptionClient) ListPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client SubscriptionClient) ListSender(req *http.Request) (*http.Response, error) { @@ -557,7 +535,6 @@ func (client SubscriptionClient) ListSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListResponder handles the response to the List request. The method always // closes the http.Response Body. func (client SubscriptionClient) ListResponder(resp *http.Response) (result SubscriptionCollection, err error) { @@ -592,7 +569,6 @@ func (client SubscriptionClient) listNextResults(ctx context.Context, lastResult return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListComplete enumerates all values, automatically crossing page boundaries as required. func (client SubscriptionClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result SubscriptionCollectionIterator, err error) { if tracing.IsEnabled() { @@ -609,7 +585,6 @@ func (client SubscriptionClient) ListComplete(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKey regenerates primary key of existing subscription of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -659,7 +634,6 @@ func (client SubscriptionClient) RegeneratePrimaryKey(ctx context.Context, resou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKeyPreparer prepares the RegeneratePrimaryKey request. func (client SubscriptionClient) RegeneratePrimaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -682,7 +656,6 @@ func (client SubscriptionClient) RegeneratePrimaryKeyPreparer(ctx context.Contex return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKeySender sends the RegeneratePrimaryKey request. The method will close the // http.Response Body if it receives an error. func (client SubscriptionClient) RegeneratePrimaryKeySender(req *http.Request) (*http.Response, error) { @@ -690,7 +663,6 @@ func (client SubscriptionClient) RegeneratePrimaryKeySender(req *http.Request) ( azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKeyResponder handles the response to the RegeneratePrimaryKey request. The method always // closes the http.Response Body. func (client SubscriptionClient) RegeneratePrimaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { @@ -703,7 +675,6 @@ func (client SubscriptionClient) RegeneratePrimaryKeyResponder(resp *http.Respon return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKey regenerates secondary key of existing subscription of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -753,7 +724,6 @@ func (client SubscriptionClient) RegenerateSecondaryKey(ctx context.Context, res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKeyPreparer prepares the RegenerateSecondaryKey request. func (client SubscriptionClient) RegenerateSecondaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -776,7 +746,6 @@ func (client SubscriptionClient) RegenerateSecondaryKeyPreparer(ctx context.Cont return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKeySender sends the RegenerateSecondaryKey request. The method will close the // http.Response Body if it receives an error. func (client SubscriptionClient) RegenerateSecondaryKeySender(req *http.Request) (*http.Response, error) { @@ -784,7 +753,6 @@ func (client SubscriptionClient) RegenerateSecondaryKeySender(req *http.Request) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKeyResponder handles the response to the RegenerateSecondaryKey request. The method always // closes the http.Response Body. func (client SubscriptionClient) RegenerateSecondaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { @@ -797,7 +765,6 @@ func (client SubscriptionClient) RegenerateSecondaryKeyResponder(resp *http.Resp return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the details of a subscription specificied by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -853,7 +820,6 @@ func (client SubscriptionClient) Update(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client SubscriptionClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, sid string, parameters SubscriptionUpdateParameters, ifMatch string, notify *bool) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -882,7 +848,6 @@ func (client SubscriptionClient) UpdatePreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client SubscriptionClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -890,7 +855,6 @@ func (client SubscriptionClient) UpdateSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client SubscriptionClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tag.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tag.go index c12449b17083..7f59c28874fa 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tag.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tag.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagClient is the apiManagement Client type TagClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTagClient creates an instance of the TagClient client. func NewTagClient(subscriptionID string) TagClient { return NewTagClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTagClientWithBaseURI creates an instance of the TagClient client. func NewTagClientWithBaseURI(baseURI string, subscriptionID string) TagClient { return TagClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToAPI assign tag to the Api. // Parameters: // resourceGroupName - the name of the resource group. @@ -101,7 +97,6 @@ func (client TagClient) AssignToAPI(ctx context.Context, resourceGroupName strin return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToAPIPreparer prepares the AssignToAPI request. func (client TagClient) AssignToAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -129,7 +124,6 @@ func (client TagClient) AssignToAPIPreparer(ctx context.Context, resourceGroupNa return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToAPISender sends the AssignToAPI request. The method will close the // http.Response Body if it receives an error. func (client TagClient) AssignToAPISender(req *http.Request) (*http.Response, error) { @@ -137,7 +131,6 @@ func (client TagClient) AssignToAPISender(req *http.Request) (*http.Response, er azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToAPIResponder handles the response to the AssignToAPI request. The method always // closes the http.Response Body. func (client TagClient) AssignToAPIResponder(resp *http.Response) (result TagContract, err error) { @@ -151,7 +144,6 @@ func (client TagClient) AssignToAPIResponder(resp *http.Response) (result TagCon return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToOperation assign tag to the Operation. // Parameters: // resourceGroupName - the name of the resource group. @@ -214,7 +206,6 @@ func (client TagClient) AssignToOperation(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToOperationPreparer prepares the AssignToOperation request. func (client TagClient) AssignToOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -243,7 +234,6 @@ func (client TagClient) AssignToOperationPreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToOperationSender sends the AssignToOperation request. The method will close the // http.Response Body if it receives an error. func (client TagClient) AssignToOperationSender(req *http.Request) (*http.Response, error) { @@ -251,7 +241,6 @@ func (client TagClient) AssignToOperationSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToOperationResponder handles the response to the AssignToOperation request. The method always // closes the http.Response Body. func (client TagClient) AssignToOperationResponder(resp *http.Response) (result TagContract, err error) { @@ -265,7 +254,6 @@ func (client TagClient) AssignToOperationResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToProduct assign tag to the Product. // Parameters: // resourceGroupName - the name of the resource group. @@ -321,7 +309,6 @@ func (client TagClient) AssignToProduct(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToProductPreparer prepares the AssignToProduct request. func (client TagClient) AssignToProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -349,7 +336,6 @@ func (client TagClient) AssignToProductPreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToProductSender sends the AssignToProduct request. The method will close the // http.Response Body if it receives an error. func (client TagClient) AssignToProductSender(req *http.Request) (*http.Response, error) { @@ -357,7 +343,6 @@ func (client TagClient) AssignToProductSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // AssignToProductResponder handles the response to the AssignToProduct request. The method always // closes the http.Response Body. func (client TagClient) AssignToProductResponder(resp *http.Response) (result TagContract, err error) { @@ -371,7 +356,6 @@ func (client TagClient) AssignToProductResponder(resp *http.Response) (result Ta return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates a tag. // Parameters: // resourceGroupName - the name of the resource group. @@ -429,7 +413,6 @@ func (client TagClient) CreateOrUpdate(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client TagClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, tagID string, parameters TagCreateUpdateParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -454,7 +437,6 @@ func (client TagClient) CreateOrUpdatePreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client TagClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -462,7 +444,6 @@ func (client TagClient) CreateOrUpdateSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client TagClient) CreateOrUpdateResponder(resp *http.Response) (result TagContract, err error) { @@ -476,7 +457,6 @@ func (client TagClient) CreateOrUpdateResponder(resp *http.Response) (result Tag return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes specific tag of the API Management service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -528,7 +508,6 @@ func (client TagClient) Delete(ctx context.Context, resourceGroupName string, se return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client TagClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, tagID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -552,7 +531,6 @@ func (client TagClient) DeletePreparer(ctx context.Context, resourceGroupName st return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client TagClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -560,7 +538,6 @@ func (client TagClient) DeleteSender(req *http.Request) (*http.Response, error) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client TagClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -573,7 +550,6 @@ func (client TagClient) DeleteResponder(resp *http.Response) (result autorest.Re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromAPI detach the tag from the Api. // Parameters: // resourceGroupName - the name of the resource group. @@ -631,7 +607,6 @@ func (client TagClient) DetachFromAPI(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromAPIPreparer prepares the DetachFromAPI request. func (client TagClient) DetachFromAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -656,7 +631,6 @@ func (client TagClient) DetachFromAPIPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromAPISender sends the DetachFromAPI request. The method will close the // http.Response Body if it receives an error. func (client TagClient) DetachFromAPISender(req *http.Request) (*http.Response, error) { @@ -664,7 +638,6 @@ func (client TagClient) DetachFromAPISender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromAPIResponder handles the response to the DetachFromAPI request. The method always // closes the http.Response Body. func (client TagClient) DetachFromAPIResponder(resp *http.Response) (result autorest.Response, err error) { @@ -677,7 +650,6 @@ func (client TagClient) DetachFromAPIResponder(resp *http.Response) (result auto return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromOperation detach the tag from the Operation. // Parameters: // resourceGroupName - the name of the resource group. @@ -741,7 +713,6 @@ func (client TagClient) DetachFromOperation(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromOperationPreparer prepares the DetachFromOperation request. func (client TagClient) DetachFromOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -767,7 +738,6 @@ func (client TagClient) DetachFromOperationPreparer(ctx context.Context, resourc return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromOperationSender sends the DetachFromOperation request. The method will close the // http.Response Body if it receives an error. func (client TagClient) DetachFromOperationSender(req *http.Request) (*http.Response, error) { @@ -775,7 +745,6 @@ func (client TagClient) DetachFromOperationSender(req *http.Request) (*http.Resp azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromOperationResponder handles the response to the DetachFromOperation request. The method always // closes the http.Response Body. func (client TagClient) DetachFromOperationResponder(resp *http.Response) (result autorest.Response, err error) { @@ -788,7 +757,6 @@ func (client TagClient) DetachFromOperationResponder(resp *http.Response) (resul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromProduct detach the tag from the Product. // Parameters: // resourceGroupName - the name of the resource group. @@ -845,7 +813,6 @@ func (client TagClient) DetachFromProduct(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromProductPreparer prepares the DetachFromProduct request. func (client TagClient) DetachFromProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -870,7 +837,6 @@ func (client TagClient) DetachFromProductPreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromProductSender sends the DetachFromProduct request. The method will close the // http.Response Body if it receives an error. func (client TagClient) DetachFromProductSender(req *http.Request) (*http.Response, error) { @@ -878,7 +844,6 @@ func (client TagClient) DetachFromProductSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DetachFromProductResponder handles the response to the DetachFromProduct request. The method always // closes the http.Response Body. func (client TagClient) DetachFromProductResponder(resp *http.Response) (result autorest.Response, err error) { @@ -891,7 +856,6 @@ func (client TagClient) DetachFromProductResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the tag specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -941,7 +905,6 @@ func (client TagClient) Get(ctx context.Context, resourceGroupName string, servi return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client TagClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, tagID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -964,7 +927,6 @@ func (client TagClient) GetPreparer(ctx context.Context, resourceGroupName strin return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client TagClient) GetSender(req *http.Request) (*http.Response, error) { @@ -972,7 +934,6 @@ func (client TagClient) GetSender(req *http.Request) (*http.Response, error) { azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client TagClient) GetResponder(resp *http.Response) (result TagContract, err error) { @@ -986,7 +947,6 @@ func (client TagClient) GetResponder(resp *http.Response) (result TagContract, e return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByAPI get tag associated with the API. // Parameters: // resourceGroupName - the name of the resource group. @@ -1042,7 +1002,6 @@ func (client TagClient) GetByAPI(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByAPIPreparer prepares the GetByAPI request. func (client TagClient) GetByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1066,7 +1025,6 @@ func (client TagClient) GetByAPIPreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByAPISender sends the GetByAPI request. The method will close the // http.Response Body if it receives an error. func (client TagClient) GetByAPISender(req *http.Request) (*http.Response, error) { @@ -1074,7 +1032,6 @@ func (client TagClient) GetByAPISender(req *http.Request) (*http.Response, error azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByAPIResponder handles the response to the GetByAPI request. The method always // closes the http.Response Body. func (client TagClient) GetByAPIResponder(resp *http.Response) (result TagContract, err error) { @@ -1088,7 +1045,6 @@ func (client TagClient) GetByAPIResponder(resp *http.Response) (result TagContra return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByOperation get tag associated with the Operation. // Parameters: // resourceGroupName - the name of the resource group. @@ -1150,7 +1106,6 @@ func (client TagClient) GetByOperation(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByOperationPreparer prepares the GetByOperation request. func (client TagClient) GetByOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1175,7 +1130,6 @@ func (client TagClient) GetByOperationPreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByOperationSender sends the GetByOperation request. The method will close the // http.Response Body if it receives an error. func (client TagClient) GetByOperationSender(req *http.Request) (*http.Response, error) { @@ -1183,7 +1137,6 @@ func (client TagClient) GetByOperationSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByOperationResponder handles the response to the GetByOperation request. The method always // closes the http.Response Body. func (client TagClient) GetByOperationResponder(resp *http.Response) (result TagContract, err error) { @@ -1197,7 +1150,6 @@ func (client TagClient) GetByOperationResponder(resp *http.Response) (result Tag return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByProduct get tag associated with the Product. // Parameters: // resourceGroupName - the name of the resource group. @@ -1252,7 +1204,6 @@ func (client TagClient) GetByProduct(ctx context.Context, resourceGroupName stri return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByProductPreparer prepares the GetByProduct request. func (client TagClient) GetByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1276,7 +1227,6 @@ func (client TagClient) GetByProductPreparer(ctx context.Context, resourceGroupN return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByProductSender sends the GetByProduct request. The method will close the // http.Response Body if it receives an error. func (client TagClient) GetByProductSender(req *http.Request) (*http.Response, error) { @@ -1284,7 +1234,6 @@ func (client TagClient) GetByProductSender(req *http.Request) (*http.Response, e azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetByProductResponder handles the response to the GetByProduct request. The method always // closes the http.Response Body. func (client TagClient) GetByProductResponder(resp *http.Response) (result TagContract, err error) { @@ -1298,7 +1247,6 @@ func (client TagClient) GetByProductResponder(resp *http.Response) (result TagCo return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityState gets the entity state version of the tag specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -1348,7 +1296,6 @@ func (client TagClient) GetEntityState(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStatePreparer prepares the GetEntityState request. func (client TagClient) GetEntityStatePreparer(ctx context.Context, resourceGroupName string, serviceName string, tagID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1371,7 +1318,6 @@ func (client TagClient) GetEntityStatePreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateSender sends the GetEntityState request. The method will close the // http.Response Body if it receives an error. func (client TagClient) GetEntityStateSender(req *http.Request) (*http.Response, error) { @@ -1379,7 +1325,6 @@ func (client TagClient) GetEntityStateSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateResponder handles the response to the GetEntityState request. The method always // closes the http.Response Body. func (client TagClient) GetEntityStateResponder(resp *http.Response) (result autorest.Response, err error) { @@ -1392,7 +1337,6 @@ func (client TagClient) GetEntityStateResponder(resp *http.Response) (result aut return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByAPI gets the entity state version of the tag specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -1448,7 +1392,6 @@ func (client TagClient) GetEntityStateByAPI(ctx context.Context, resourceGroupNa return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByAPIPreparer prepares the GetEntityStateByAPI request. func (client TagClient) GetEntityStateByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1472,7 +1415,6 @@ func (client TagClient) GetEntityStateByAPIPreparer(ctx context.Context, resourc return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByAPISender sends the GetEntityStateByAPI request. The method will close the // http.Response Body if it receives an error. func (client TagClient) GetEntityStateByAPISender(req *http.Request) (*http.Response, error) { @@ -1480,7 +1422,6 @@ func (client TagClient) GetEntityStateByAPISender(req *http.Request) (*http.Resp azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByAPIResponder handles the response to the GetEntityStateByAPI request. The method always // closes the http.Response Body. func (client TagClient) GetEntityStateByAPIResponder(resp *http.Response) (result autorest.Response, err error) { @@ -1493,7 +1434,6 @@ func (client TagClient) GetEntityStateByAPIResponder(resp *http.Response) (resul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByOperation gets the entity state version of the tag specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -1555,7 +1495,6 @@ func (client TagClient) GetEntityStateByOperation(ctx context.Context, resourceG return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByOperationPreparer prepares the GetEntityStateByOperation request. func (client TagClient) GetEntityStateByOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, tagID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1580,7 +1519,6 @@ func (client TagClient) GetEntityStateByOperationPreparer(ctx context.Context, r return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByOperationSender sends the GetEntityStateByOperation request. The method will close the // http.Response Body if it receives an error. func (client TagClient) GetEntityStateByOperationSender(req *http.Request) (*http.Response, error) { @@ -1588,7 +1526,6 @@ func (client TagClient) GetEntityStateByOperationSender(req *http.Request) (*htt azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByOperationResponder handles the response to the GetEntityStateByOperation request. The method always // closes the http.Response Body. func (client TagClient) GetEntityStateByOperationResponder(resp *http.Response) (result autorest.Response, err error) { @@ -1601,7 +1538,6 @@ func (client TagClient) GetEntityStateByOperationResponder(resp *http.Response) return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByProduct gets the entity state version of the tag specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -1656,7 +1592,6 @@ func (client TagClient) GetEntityStateByProduct(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByProductPreparer prepares the GetEntityStateByProduct request. func (client TagClient) GetEntityStateByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, tagID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1680,7 +1615,6 @@ func (client TagClient) GetEntityStateByProductPreparer(ctx context.Context, res return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByProductSender sends the GetEntityStateByProduct request. The method will close the // http.Response Body if it receives an error. func (client TagClient) GetEntityStateByProductSender(req *http.Request) (*http.Response, error) { @@ -1688,7 +1622,6 @@ func (client TagClient) GetEntityStateByProductSender(req *http.Request) (*http. azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateByProductResponder handles the response to the GetEntityStateByProduct request. The method always // closes the http.Response Body. func (client TagClient) GetEntityStateByProductResponder(resp *http.Response) (result autorest.Response, err error) { @@ -1701,7 +1634,6 @@ func (client TagClient) GetEntityStateByProductResponder(resp *http.Response) (r return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPI lists all Tags associated with the API. // Parameters: // resourceGroupName - the name of the resource group. @@ -1765,7 +1697,6 @@ func (client TagClient) ListByAPI(ctx context.Context, resourceGroupName string, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIPreparer prepares the ListByAPI request. func (client TagClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1797,7 +1728,6 @@ func (client TagClient) ListByAPIPreparer(ctx context.Context, resourceGroupName return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPISender sends the ListByAPI request. The method will close the // http.Response Body if it receives an error. func (client TagClient) ListByAPISender(req *http.Request) (*http.Response, error) { @@ -1805,7 +1735,6 @@ func (client TagClient) ListByAPISender(req *http.Request) (*http.Response, erro azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIResponder handles the response to the ListByAPI request. The method always // closes the http.Response Body. func (client TagClient) ListByAPIResponder(resp *http.Response) (result TagCollection, err error) { @@ -1840,7 +1769,6 @@ func (client TagClient) listByAPINextResults(ctx context.Context, lastResults Ta return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIComplete enumerates all values, automatically crossing page boundaries as required. func (client TagClient) ListByAPIComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result TagCollectionIterator, err error) { if tracing.IsEnabled() { @@ -1857,7 +1785,6 @@ func (client TagClient) ListByAPIComplete(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperation lists all Tags associated with the Operation. // Parameters: // resourceGroupName - the name of the resource group. @@ -1930,7 +1857,6 @@ func (client TagClient) ListByOperation(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperationPreparer prepares the ListByOperation request. func (client TagClient) ListByOperationPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -1963,7 +1889,6 @@ func (client TagClient) ListByOperationPreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperationSender sends the ListByOperation request. The method will close the // http.Response Body if it receives an error. func (client TagClient) ListByOperationSender(req *http.Request) (*http.Response, error) { @@ -1971,7 +1896,6 @@ func (client TagClient) ListByOperationSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperationResponder handles the response to the ListByOperation request. The method always // closes the http.Response Body. func (client TagClient) ListByOperationResponder(resp *http.Response) (result TagCollection, err error) { @@ -2006,7 +1930,6 @@ func (client TagClient) listByOperationNextResults(ctx context.Context, lastResu return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByOperationComplete enumerates all values, automatically crossing page boundaries as required. func (client TagClient) ListByOperationComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, operationID string, filter string, top *int32, skip *int32) (result TagCollectionIterator, err error) { if tracing.IsEnabled() { @@ -2023,7 +1946,6 @@ func (client TagClient) ListByOperationComplete(ctx context.Context, resourceGro return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProduct lists all Tags associated with the Product. // Parameters: // resourceGroupName - the name of the resource group. @@ -2086,7 +2008,6 @@ func (client TagClient) ListByProduct(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductPreparer prepares the ListByProduct request. func (client TagClient) ListByProductPreparer(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -2118,7 +2039,6 @@ func (client TagClient) ListByProductPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductSender sends the ListByProduct request. The method will close the // http.Response Body if it receives an error. func (client TagClient) ListByProductSender(req *http.Request) (*http.Response, error) { @@ -2126,7 +2046,6 @@ func (client TagClient) ListByProductSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductResponder handles the response to the ListByProduct request. The method always // closes the http.Response Body. func (client TagClient) ListByProductResponder(resp *http.Response) (result TagCollection, err error) { @@ -2161,7 +2080,6 @@ func (client TagClient) listByProductNextResults(ctx context.Context, lastResult return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByProductComplete enumerates all values, automatically crossing page boundaries as required. func (client TagClient) ListByProductComplete(ctx context.Context, resourceGroupName string, serviceName string, productID string, filter string, top *int32, skip *int32) (result TagCollectionIterator, err error) { if tracing.IsEnabled() { @@ -2178,7 +2096,6 @@ func (client TagClient) ListByProductComplete(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of tags defined within a service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -2236,7 +2153,6 @@ func (client TagClient) ListByService(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client TagClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -2267,7 +2183,6 @@ func (client TagClient) ListByServicePreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client TagClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -2275,7 +2190,6 @@ func (client TagClient) ListByServiceSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client TagClient) ListByServiceResponder(resp *http.Response) (result TagCollection, err error) { @@ -2310,7 +2224,6 @@ func (client TagClient) listByServiceNextResults(ctx context.Context, lastResult return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client TagClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result TagCollectionIterator, err error) { if tracing.IsEnabled() { @@ -2327,7 +2240,6 @@ func (client TagClient) ListByServiceComplete(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the details of the tag specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -2380,7 +2292,6 @@ func (client TagClient) Update(ctx context.Context, resourceGroupName string, se return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client TagClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, tagID string, parameters TagCreateUpdateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -2406,7 +2317,6 @@ func (client TagClient) UpdatePreparer(ctx context.Context, resourceGroupName st return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client TagClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -2414,7 +2324,6 @@ func (client TagClient) UpdateSender(req *http.Request) (*http.Response, error) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client TagClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagdescription.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagdescription.go index 0c21745725ce..d88a19115221 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagdescription.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagdescription.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagDescriptionClient is the apiManagement Client type TagDescriptionClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTagDescriptionClient creates an instance of the TagDescriptionClient client. func NewTagDescriptionClient(subscriptionID string) TagDescriptionClient { return NewTagDescriptionClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTagDescriptionClientWithBaseURI creates an instance of the TagDescriptionClient client. func NewTagDescriptionClientWithBaseURI(baseURI string, subscriptionID string) TagDescriptionClient { return TagDescriptionClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate create/Update tag fescription in scope of the Api. // Parameters: // resourceGroupName - the name of the resource group. @@ -107,7 +103,6 @@ func (client TagDescriptionClient) CreateOrUpdate(ctx context.Context, resourceG return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client TagDescriptionClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, parameters TagDescriptionCreateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -137,7 +132,6 @@ func (client TagDescriptionClient) CreateOrUpdatePreparer(ctx context.Context, r return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client TagDescriptionClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -145,7 +139,6 @@ func (client TagDescriptionClient) CreateOrUpdateSender(req *http.Request) (*htt azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client TagDescriptionClient) CreateOrUpdateResponder(resp *http.Response) (result TagDescriptionContract, err error) { @@ -159,7 +152,6 @@ func (client TagDescriptionClient) CreateOrUpdateResponder(resp *http.Response) return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete delete tag description for the Api. // Parameters: // resourceGroupName - the name of the resource group. @@ -217,7 +209,6 @@ func (client TagDescriptionClient) Delete(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client TagDescriptionClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -242,7 +233,6 @@ func (client TagDescriptionClient) DeletePreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client TagDescriptionClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -250,7 +240,6 @@ func (client TagDescriptionClient) DeleteSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client TagDescriptionClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -263,7 +252,6 @@ func (client TagDescriptionClient) DeleteResponder(resp *http.Response) (result return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get get tag associated with the API. // Parameters: // resourceGroupName - the name of the resource group. @@ -319,7 +307,6 @@ func (client TagDescriptionClient) Get(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client TagDescriptionClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -343,7 +330,6 @@ func (client TagDescriptionClient) GetPreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client TagDescriptionClient) GetSender(req *http.Request) (*http.Response, error) { @@ -351,7 +337,6 @@ func (client TagDescriptionClient) GetSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client TagDescriptionClient) GetResponder(resp *http.Response) (result TagDescriptionContract, err error) { @@ -365,7 +350,6 @@ func (client TagDescriptionClient) GetResponder(resp *http.Response) (result Tag return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityState gets the entity state version of the tag specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -421,7 +405,6 @@ func (client TagDescriptionClient) GetEntityState(ctx context.Context, resourceG return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStatePreparer prepares the GetEntityState request. func (client TagDescriptionClient) GetEntityStatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, tagID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -445,7 +428,6 @@ func (client TagDescriptionClient) GetEntityStatePreparer(ctx context.Context, r return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateSender sends the GetEntityState request. The method will close the // http.Response Body if it receives an error. func (client TagDescriptionClient) GetEntityStateSender(req *http.Request) (*http.Response, error) { @@ -453,7 +435,6 @@ func (client TagDescriptionClient) GetEntityStateSender(req *http.Request) (*htt azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityStateResponder handles the response to the GetEntityState request. The method always // closes the http.Response Body. func (client TagDescriptionClient) GetEntityStateResponder(resp *http.Response) (result autorest.Response, err error) { @@ -466,7 +447,6 @@ func (client TagDescriptionClient) GetEntityStateResponder(resp *http.Response) return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPI lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API // level but tag may be assigned to the Operations // Parameters: @@ -531,7 +511,6 @@ func (client TagDescriptionClient) ListByAPI(ctx context.Context, resourceGroupN return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIPreparer prepares the ListByAPI request. func (client TagDescriptionClient) ListByAPIPreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -563,7 +542,6 @@ func (client TagDescriptionClient) ListByAPIPreparer(ctx context.Context, resour return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPISender sends the ListByAPI request. The method will close the // http.Response Body if it receives an error. func (client TagDescriptionClient) ListByAPISender(req *http.Request) (*http.Response, error) { @@ -571,7 +549,6 @@ func (client TagDescriptionClient) ListByAPISender(req *http.Request) (*http.Res azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIResponder handles the response to the ListByAPI request. The method always // closes the http.Response Body. func (client TagDescriptionClient) ListByAPIResponder(resp *http.Response) (result TagDescriptionCollection, err error) { @@ -606,7 +583,6 @@ func (client TagDescriptionClient) listByAPINextResults(ctx context.Context, las return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByAPIComplete enumerates all values, automatically crossing page boundaries as required. func (client TagDescriptionClient) ListByAPIComplete(ctx context.Context, resourceGroupName string, serviceName string, apiid string, filter string, top *int32, skip *int32) (result TagDescriptionCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagresource.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagresource.go index 5f5b87fe8d88..9a517bedf603 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagresource.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tagresource.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TagResourceClient is the apiManagement Client type TagResourceClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTagResourceClient creates an instance of the TagResourceClient client. func NewTagResourceClient(subscriptionID string) TagResourceClient { return NewTagResourceClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTagResourceClientWithBaseURI creates an instance of the TagResourceClient client. func NewTagResourceClientWithBaseURI(baseURI string, subscriptionID string) TagResourceClient { return TagResourceClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of resources associated with tags. // Parameters: // resourceGroupName - the name of the resource group. @@ -113,7 +109,6 @@ func (client TagResourceClient) ListByService(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client TagResourceClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -144,7 +139,6 @@ func (client TagResourceClient) ListByServicePreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client TagResourceClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -152,7 +146,6 @@ func (client TagResourceClient) ListByServiceSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client TagResourceClient) ListByServiceResponder(resp *http.Response) (result TagResourceCollection, err error) { @@ -187,7 +180,6 @@ func (client TagResourceClient) listByServiceNextResults(ctx context.Context, la return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client TagResourceClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result TagResourceCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccess.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccess.go index 4ead1fe6c45e..0ce401116f51 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccess.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccess.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TenantAccessClient is the apiManagement Client type TenantAccessClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTenantAccessClient creates an instance of the TenantAccessClient client. func NewTenantAccessClient(subscriptionID string) TenantAccessClient { return NewTenantAccessClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTenantAccessClientWithBaseURI creates an instance of the TenantAccessClient client. func NewTenantAccessClientWithBaseURI(baseURI string, subscriptionID string) TenantAccessClient { return TenantAccessClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get get tenant access information details. // Parameters: // resourceGroupName - the name of the resource group. @@ -89,7 +85,6 @@ func (client TenantAccessClient) Get(ctx context.Context, resourceGroupName stri return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client TenantAccessClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -112,7 +107,6 @@ func (client TenantAccessClient) GetPreparer(ctx context.Context, resourceGroupN return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client TenantAccessClient) GetSender(req *http.Request) (*http.Response, error) { @@ -120,7 +114,6 @@ func (client TenantAccessClient) GetSender(req *http.Request) (*http.Response, e azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client TenantAccessClient) GetResponder(resp *http.Response) (result AccessInformationContract, err error) { @@ -134,7 +127,6 @@ func (client TenantAccessClient) GetResponder(resp *http.Response) (result Acces return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKey regenerate primary access key. // Parameters: // resourceGroupName - the name of the resource group. @@ -179,7 +171,6 @@ func (client TenantAccessClient) RegeneratePrimaryKey(ctx context.Context, resou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKeyPreparer prepares the RegeneratePrimaryKey request. func (client TenantAccessClient) RegeneratePrimaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -202,7 +193,6 @@ func (client TenantAccessClient) RegeneratePrimaryKeyPreparer(ctx context.Contex return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKeySender sends the RegeneratePrimaryKey request. The method will close the // http.Response Body if it receives an error. func (client TenantAccessClient) RegeneratePrimaryKeySender(req *http.Request) (*http.Response, error) { @@ -210,7 +200,6 @@ func (client TenantAccessClient) RegeneratePrimaryKeySender(req *http.Request) ( azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKeyResponder handles the response to the RegeneratePrimaryKey request. The method always // closes the http.Response Body. func (client TenantAccessClient) RegeneratePrimaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { @@ -223,7 +212,6 @@ func (client TenantAccessClient) RegeneratePrimaryKeyResponder(resp *http.Respon return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKey regenerate secondary access key. // Parameters: // resourceGroupName - the name of the resource group. @@ -268,7 +256,6 @@ func (client TenantAccessClient) RegenerateSecondaryKey(ctx context.Context, res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKeyPreparer prepares the RegenerateSecondaryKey request. func (client TenantAccessClient) RegenerateSecondaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -291,7 +278,6 @@ func (client TenantAccessClient) RegenerateSecondaryKeyPreparer(ctx context.Cont return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKeySender sends the RegenerateSecondaryKey request. The method will close the // http.Response Body if it receives an error. func (client TenantAccessClient) RegenerateSecondaryKeySender(req *http.Request) (*http.Response, error) { @@ -299,7 +285,6 @@ func (client TenantAccessClient) RegenerateSecondaryKeySender(req *http.Request) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKeyResponder handles the response to the RegenerateSecondaryKey request. The method always // closes the http.Response Body. func (client TenantAccessClient) RegenerateSecondaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { @@ -312,7 +297,6 @@ func (client TenantAccessClient) RegenerateSecondaryKeyResponder(resp *http.Resp return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update update tenant access information details. // Parameters: // resourceGroupName - the name of the resource group. @@ -360,7 +344,6 @@ func (client TenantAccessClient) Update(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client TenantAccessClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters AccessInformationUpdateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -386,7 +369,6 @@ func (client TenantAccessClient) UpdatePreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client TenantAccessClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -394,7 +376,6 @@ func (client TenantAccessClient) UpdateSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client TenantAccessClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccessgit.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccessgit.go index 39c60d4c0e91..c9ce2fa2495f 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccessgit.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantaccessgit.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TenantAccessGitClient is the apiManagement Client type TenantAccessGitClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTenantAccessGitClient creates an instance of the TenantAccessGitClient client. func NewTenantAccessGitClient(subscriptionID string) TenantAccessGitClient { return NewTenantAccessGitClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTenantAccessGitClientWithBaseURI creates an instance of the TenantAccessGitClient client. func NewTenantAccessGitClientWithBaseURI(baseURI string, subscriptionID string) TenantAccessGitClient { return TenantAccessGitClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the Git access configuration for the tenant. // Parameters: // resourceGroupName - the name of the resource group. @@ -89,7 +85,6 @@ func (client TenantAccessGitClient) Get(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client TenantAccessGitClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -112,7 +107,6 @@ func (client TenantAccessGitClient) GetPreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client TenantAccessGitClient) GetSender(req *http.Request) (*http.Response, error) { @@ -120,7 +114,6 @@ func (client TenantAccessGitClient) GetSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client TenantAccessGitClient) GetResponder(resp *http.Response) (result AccessInformationContract, err error) { @@ -134,7 +127,6 @@ func (client TenantAccessGitClient) GetResponder(resp *http.Response) (result Ac return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKey regenerate primary access key for GIT. // Parameters: // resourceGroupName - the name of the resource group. @@ -179,7 +171,6 @@ func (client TenantAccessGitClient) RegeneratePrimaryKey(ctx context.Context, re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKeyPreparer prepares the RegeneratePrimaryKey request. func (client TenantAccessGitClient) RegeneratePrimaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -202,7 +193,6 @@ func (client TenantAccessGitClient) RegeneratePrimaryKeyPreparer(ctx context.Con return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKeySender sends the RegeneratePrimaryKey request. The method will close the // http.Response Body if it receives an error. func (client TenantAccessGitClient) RegeneratePrimaryKeySender(req *http.Request) (*http.Response, error) { @@ -210,7 +200,6 @@ func (client TenantAccessGitClient) RegeneratePrimaryKeySender(req *http.Request azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegeneratePrimaryKeyResponder handles the response to the RegeneratePrimaryKey request. The method always // closes the http.Response Body. func (client TenantAccessGitClient) RegeneratePrimaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { @@ -223,7 +212,6 @@ func (client TenantAccessGitClient) RegeneratePrimaryKeyResponder(resp *http.Res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKey regenerate secondary access key for GIT. // Parameters: // resourceGroupName - the name of the resource group. @@ -268,7 +256,6 @@ func (client TenantAccessGitClient) RegenerateSecondaryKey(ctx context.Context, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKeyPreparer prepares the RegenerateSecondaryKey request. func (client TenantAccessGitClient) RegenerateSecondaryKeyPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -291,7 +278,6 @@ func (client TenantAccessGitClient) RegenerateSecondaryKeyPreparer(ctx context.C return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKeySender sends the RegenerateSecondaryKey request. The method will close the // http.Response Body if it receives an error. func (client TenantAccessGitClient) RegenerateSecondaryKeySender(req *http.Request) (*http.Response, error) { @@ -299,7 +285,6 @@ func (client TenantAccessGitClient) RegenerateSecondaryKeySender(req *http.Reque azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // RegenerateSecondaryKeyResponder handles the response to the RegenerateSecondaryKey request. The method always // closes the http.Response Body. func (client TenantAccessGitClient) RegenerateSecondaryKeyResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantconfiguration.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantconfiguration.go index 5b69d9fa95f1..8c589d40a64d 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantconfiguration.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/tenantconfiguration.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // TenantConfigurationClient is the apiManagement Client type TenantConfigurationClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTenantConfigurationClient creates an instance of the TenantConfigurationClient client. func NewTenantConfigurationClient(subscriptionID string) TenantConfigurationClient { return NewTenantConfigurationClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewTenantConfigurationClientWithBaseURI creates an instance of the TenantConfigurationClient client. func NewTenantConfigurationClientWithBaseURI(baseURI string, subscriptionID string) TenantConfigurationClient { return TenantConfigurationClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Deploy this operation applies changes from the specified Git branch to the configuration database. This is a long // running operation and could take several minutes to complete. // Parameters: @@ -87,7 +83,6 @@ func (client TenantConfigurationClient) Deploy(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeployPreparer prepares the Deploy request. func (client TenantConfigurationClient) DeployPreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters DeployConfigurationParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -112,7 +107,6 @@ func (client TenantConfigurationClient) DeployPreparer(ctx context.Context, reso return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeploySender sends the Deploy request. The method will close the // http.Response Body if it receives an error. func (client TenantConfigurationClient) DeploySender(req *http.Request) (future TenantConfigurationDeployFuture, err error) { @@ -126,7 +120,6 @@ func (client TenantConfigurationClient) DeploySender(req *http.Request) (future return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeployResponder handles the response to the Deploy request. The method always // closes the http.Response Body. func (client TenantConfigurationClient) DeployResponder(resp *http.Response) (result OperationResultContract, err error) { @@ -140,7 +133,6 @@ func (client TenantConfigurationClient) DeployResponder(resp *http.Response) (re return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSyncState gets the status of the most recent synchronization between the configuration database and the Git // repository. // Parameters: @@ -186,7 +178,6 @@ func (client TenantConfigurationClient) GetSyncState(ctx context.Context, resour return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSyncStatePreparer prepares the GetSyncState request. func (client TenantConfigurationClient) GetSyncStatePreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -209,7 +200,6 @@ func (client TenantConfigurationClient) GetSyncStatePreparer(ctx context.Context return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSyncStateSender sends the GetSyncState request. The method will close the // http.Response Body if it receives an error. func (client TenantConfigurationClient) GetSyncStateSender(req *http.Request) (*http.Response, error) { @@ -217,7 +207,6 @@ func (client TenantConfigurationClient) GetSyncStateSender(req *http.Request) (* azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSyncStateResponder handles the response to the GetSyncState request. The method always // closes the http.Response Body. func (client TenantConfigurationClient) GetSyncStateResponder(resp *http.Response) (result TenantConfigurationSyncStateContract, err error) { @@ -231,7 +220,6 @@ func (client TenantConfigurationClient) GetSyncStateResponder(resp *http.Respons return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Save this operation creates a commit with the current configuration snapshot to the specified branch in the // repository. This is a long running operation and could take several minutes to complete. // Parameters: @@ -274,7 +262,6 @@ func (client TenantConfigurationClient) Save(ctx context.Context, resourceGroupN return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SavePreparer prepares the Save request. func (client TenantConfigurationClient) SavePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters SaveConfigurationParameter) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -299,7 +286,6 @@ func (client TenantConfigurationClient) SavePreparer(ctx context.Context, resour return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SaveSender sends the Save request. The method will close the // http.Response Body if it receives an error. func (client TenantConfigurationClient) SaveSender(req *http.Request) (future TenantConfigurationSaveFuture, err error) { @@ -313,7 +299,6 @@ func (client TenantConfigurationClient) SaveSender(req *http.Request) (future Te return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // SaveResponder handles the response to the Save request. The method always // closes the http.Response Body. func (client TenantConfigurationClient) SaveResponder(resp *http.Response) (result OperationResultContract, err error) { @@ -327,7 +312,6 @@ func (client TenantConfigurationClient) SaveResponder(resp *http.Response) (resu return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Validate this operation validates the changes in the specified Git branch. This is a long running operation and // could take several minutes to complete. // Parameters: @@ -370,7 +354,6 @@ func (client TenantConfigurationClient) Validate(ctx context.Context, resourceGr return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ValidatePreparer prepares the Validate request. func (client TenantConfigurationClient) ValidatePreparer(ctx context.Context, resourceGroupName string, serviceName string, parameters DeployConfigurationParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -395,7 +378,6 @@ func (client TenantConfigurationClient) ValidatePreparer(ctx context.Context, re return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ValidateSender sends the Validate request. The method will close the // http.Response Body if it receives an error. func (client TenantConfigurationClient) ValidateSender(req *http.Request) (future TenantConfigurationValidateFuture, err error) { @@ -409,7 +391,6 @@ func (client TenantConfigurationClient) ValidateSender(req *http.Request) (futur return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ValidateResponder handles the response to the Validate request. The method always // closes the http.Response Body. func (client TenantConfigurationClient) ValidateResponder(resp *http.Response) (result OperationResultContract, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/user.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/user.go index 15e627611266..3f5dd69dc040 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/user.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/user.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserClient is the apiManagement Client type UserClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewUserClient creates an instance of the UserClient client. func NewUserClient(subscriptionID string) UserClient { return NewUserClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewUserClientWithBaseURI creates an instance of the UserClient client. func NewUserClientWithBaseURI(baseURI string, subscriptionID string) UserClient { return UserClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdate creates or Updates a user. // Parameters: // resourceGroupName - the name of the resource group. @@ -111,7 +107,6 @@ func (client UserClient) CreateOrUpdate(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdatePreparer prepares the CreateOrUpdate request. func (client UserClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, parameters UserCreateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -140,7 +135,6 @@ func (client UserClient) CreateOrUpdatePreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the // http.Response Body if it receives an error. func (client UserClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error) { @@ -148,7 +142,6 @@ func (client UserClient) CreateOrUpdateSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always // closes the http.Response Body. func (client UserClient) CreateOrUpdateResponder(resp *http.Response) (result UserContract, err error) { @@ -162,7 +155,6 @@ func (client UserClient) CreateOrUpdateResponder(resp *http.Response) (result Us return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Delete deletes specific user. // Parameters: // resourceGroupName - the name of the resource group. @@ -216,7 +208,6 @@ func (client UserClient) Delete(ctx context.Context, resourceGroupName string, s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeletePreparer prepares the Delete request. func (client UserClient) DeletePreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, ifMatch string, deleteSubscriptions *bool, notify *bool) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -246,7 +237,6 @@ func (client UserClient) DeletePreparer(ctx context.Context, resourceGroupName s return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteSender sends the Delete request. The method will close the // http.Response Body if it receives an error. func (client UserClient) DeleteSender(req *http.Request) (*http.Response, error) { @@ -254,7 +244,6 @@ func (client UserClient) DeleteSender(req *http.Request) (*http.Response, error) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // DeleteResponder handles the response to the Delete request. The method always // closes the http.Response Body. func (client UserClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { @@ -267,7 +256,6 @@ func (client UserClient) DeleteResponder(resp *http.Response) (result autorest.R return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GenerateSsoURL retrieves a redirection URL containing an authentication token for signing a given user into the // developer portal. // Parameters: @@ -318,7 +306,6 @@ func (client UserClient) GenerateSsoURL(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GenerateSsoURLPreparer prepares the GenerateSsoURL request. func (client UserClient) GenerateSsoURLPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -341,7 +328,6 @@ func (client UserClient) GenerateSsoURLPreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GenerateSsoURLSender sends the GenerateSsoURL request. The method will close the // http.Response Body if it receives an error. func (client UserClient) GenerateSsoURLSender(req *http.Request) (*http.Response, error) { @@ -349,7 +335,6 @@ func (client UserClient) GenerateSsoURLSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GenerateSsoURLResponder handles the response to the GenerateSsoURL request. The method always // closes the http.Response Body. func (client UserClient) GenerateSsoURLResponder(resp *http.Response) (result GenerateSsoURLResult, err error) { @@ -363,7 +348,6 @@ func (client UserClient) GenerateSsoURLResponder(resp *http.Response) (result Ge return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Get gets the details of the user specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -413,7 +397,6 @@ func (client UserClient) Get(ctx context.Context, resourceGroupName string, serv return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetPreparer prepares the Get request. func (client UserClient) GetPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -436,7 +419,6 @@ func (client UserClient) GetPreparer(ctx context.Context, resourceGroupName stri return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSender sends the Get request. The method will close the // http.Response Body if it receives an error. func (client UserClient) GetSender(req *http.Request) (*http.Response, error) { @@ -444,7 +426,6 @@ func (client UserClient) GetSender(req *http.Request) (*http.Response, error) { azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetResponder handles the response to the Get request. The method always // closes the http.Response Body. func (client UserClient) GetResponder(resp *http.Response) (result UserContract, err error) { @@ -458,7 +439,6 @@ func (client UserClient) GetResponder(resp *http.Response) (result UserContract, return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTag gets the entity state (Etag) version of the user specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -508,7 +488,6 @@ func (client UserClient) GetEntityTag(ctx context.Context, resourceGroupName str return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagPreparer prepares the GetEntityTag request. func (client UserClient) GetEntityTagPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -531,7 +510,6 @@ func (client UserClient) GetEntityTagPreparer(ctx context.Context, resourceGroup return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagSender sends the GetEntityTag request. The method will close the // http.Response Body if it receives an error. func (client UserClient) GetEntityTagSender(req *http.Request) (*http.Response, error) { @@ -539,7 +517,6 @@ func (client UserClient) GetEntityTagSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetEntityTagResponder handles the response to the GetEntityTag request. The method always // closes the http.Response Body. func (client UserClient) GetEntityTagResponder(resp *http.Response) (result autorest.Response, err error) { @@ -552,7 +529,6 @@ func (client UserClient) GetEntityTagResponder(resp *http.Response) (result auto return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSharedAccessToken gets the Shared Access Authorization Token for the User. // Parameters: // resourceGroupName - the name of the resource group. @@ -605,7 +581,6 @@ func (client UserClient) GetSharedAccessToken(ctx context.Context, resourceGroup return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSharedAccessTokenPreparer prepares the GetSharedAccessToken request. func (client UserClient) GetSharedAccessTokenPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, parameters UserTokenParameters) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -630,7 +605,6 @@ func (client UserClient) GetSharedAccessTokenPreparer(ctx context.Context, resou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSharedAccessTokenSender sends the GetSharedAccessToken request. The method will close the // http.Response Body if it receives an error. func (client UserClient) GetSharedAccessTokenSender(req *http.Request) (*http.Response, error) { @@ -638,7 +612,6 @@ func (client UserClient) GetSharedAccessTokenSender(req *http.Request) (*http.Re azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // GetSharedAccessTokenResponder handles the response to the GetSharedAccessToken request. The method always // closes the http.Response Body. func (client UserClient) GetSharedAccessTokenResponder(resp *http.Response) (result UserTokenResult, err error) { @@ -652,7 +625,6 @@ func (client UserClient) GetSharedAccessTokenResponder(resp *http.Response) (res return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByService lists a collection of registered users in the specified service instance. // Parameters: // resourceGroupName - the name of the resource group. @@ -715,7 +687,6 @@ func (client UserClient) ListByService(ctx context.Context, resourceGroupName st return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServicePreparer prepares the ListByService request. func (client UserClient) ListByServicePreparer(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -746,7 +717,6 @@ func (client UserClient) ListByServicePreparer(ctx context.Context, resourceGrou return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceSender sends the ListByService request. The method will close the // http.Response Body if it receives an error. func (client UserClient) ListByServiceSender(req *http.Request) (*http.Response, error) { @@ -754,7 +724,6 @@ func (client UserClient) ListByServiceSender(req *http.Request) (*http.Response, azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceResponder handles the response to the ListByService request. The method always // closes the http.Response Body. func (client UserClient) ListByServiceResponder(resp *http.Response) (result UserCollection, err error) { @@ -789,7 +758,6 @@ func (client UserClient) listByServiceNextResults(ctx context.Context, lastResul return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListByServiceComplete enumerates all values, automatically crossing page boundaries as required. func (client UserClient) ListByServiceComplete(ctx context.Context, resourceGroupName string, serviceName string, filter string, top *int32, skip *int32) (result UserCollectionIterator, err error) { if tracing.IsEnabled() { @@ -806,7 +774,6 @@ func (client UserClient) ListByServiceComplete(ctx context.Context, resourceGrou return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Update updates the details of the user specified by its identifier. // Parameters: // resourceGroupName - the name of the resource group. @@ -859,7 +826,6 @@ func (client UserClient) Update(ctx context.Context, resourceGroupName string, s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdatePreparer prepares the Update request. func (client UserClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, parameters UserUpdateParameters, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -885,7 +851,6 @@ func (client UserClient) UpdatePreparer(ctx context.Context, resourceGroupName s return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateSender sends the Update request. The method will close the // http.Response Body if it receives an error. func (client UserClient) UpdateSender(req *http.Request) (*http.Response, error) { @@ -893,7 +858,6 @@ func (client UserClient) UpdateSender(req *http.Request) (*http.Response, error) azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UpdateResponder handles the response to the Update request. The method always // closes the http.Response Body. func (client UserClient) UpdateResponder(resp *http.Response) (result autorest.Response, err error) { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usergroup.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usergroup.go index c8fbc991eeb2..cc890dcb8b19 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usergroup.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usergroup.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserGroupClient is the apiManagement Client type UserGroupClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewUserGroupClient creates an instance of the UserGroupClient client. func NewUserGroupClient(subscriptionID string) UserGroupClient { return NewUserGroupClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewUserGroupClientWithBaseURI creates an instance of the UserGroupClient client. func NewUserGroupClientWithBaseURI(baseURI string, subscriptionID string) UserGroupClient { return UserGroupClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // List lists all user groups. // Parameters: // resourceGroupName - the name of the resource group. @@ -108,7 +104,6 @@ func (client UserGroupClient) List(ctx context.Context, resourceGroupName string return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListPreparer prepares the List request. func (client UserGroupClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -140,7 +135,6 @@ func (client UserGroupClient) ListPreparer(ctx context.Context, resourceGroupNam return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client UserGroupClient) ListSender(req *http.Request) (*http.Response, error) { @@ -148,7 +142,6 @@ func (client UserGroupClient) ListSender(req *http.Request) (*http.Response, err azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListResponder handles the response to the List request. The method always // closes the http.Response Body. func (client UserGroupClient) ListResponder(resp *http.Response) (result GroupCollection, err error) { @@ -183,7 +176,6 @@ func (client UserGroupClient) listNextResults(ctx context.Context, lastResults G return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListComplete enumerates all values, automatically crossing page boundaries as required. func (client UserGroupClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, UID string, filter string, top *int32, skip *int32) (result GroupCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/useridentities.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/useridentities.go index ca421c8fa639..0342cfd3117e 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/useridentities.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/useridentities.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserIdentitiesClient is the apiManagement Client type UserIdentitiesClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewUserIdentitiesClient creates an instance of the UserIdentitiesClient client. func NewUserIdentitiesClient(subscriptionID string) UserIdentitiesClient { return NewUserIdentitiesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewUserIdentitiesClientWithBaseURI creates an instance of the UserIdentitiesClient client. func NewUserIdentitiesClientWithBaseURI(baseURI string, subscriptionID string) UserIdentitiesClient { return UserIdentitiesClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // List lists all user identities. // Parameters: // resourceGroupName - the name of the resource group. @@ -95,7 +91,6 @@ func (client UserIdentitiesClient) List(ctx context.Context, resourceGroupName s return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListPreparer prepares the List request. func (client UserIdentitiesClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -118,7 +113,6 @@ func (client UserIdentitiesClient) ListPreparer(ctx context.Context, resourceGro return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client UserIdentitiesClient) ListSender(req *http.Request) (*http.Response, error) { @@ -126,7 +120,6 @@ func (client UserIdentitiesClient) ListSender(req *http.Request) (*http.Response azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListResponder handles the response to the List request. The method always // closes the http.Response Body. func (client UserIdentitiesClient) ListResponder(resp *http.Response) (result UserIdentityCollection, err error) { @@ -161,7 +154,6 @@ func (client UserIdentitiesClient) listNextResults(ctx context.Context, lastResu return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListComplete enumerates all values, automatically crossing page boundaries as required. func (client UserIdentitiesClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, UID string) (result UserIdentityCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usersubscription.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usersubscription.go index 229996327787..5e432b3ec4e8 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usersubscription.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/usersubscription.go @@ -26,25 +26,21 @@ import ( "net/http" ) -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // UserSubscriptionClient is the apiManagement Client type UserSubscriptionClient struct { BaseClient } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewUserSubscriptionClient creates an instance of the UserSubscriptionClient client. func NewUserSubscriptionClient(subscriptionID string) UserSubscriptionClient { return NewUserSubscriptionClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // NewUserSubscriptionClientWithBaseURI creates an instance of the UserSubscriptionClient client. func NewUserSubscriptionClientWithBaseURI(baseURI string, subscriptionID string) UserSubscriptionClient { return UserSubscriptionClient{NewWithBaseURI(baseURI, subscriptionID)} } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // List lists the collection of subscriptions of the specified user. // Parameters: // resourceGroupName - the name of the resource group. @@ -111,7 +107,6 @@ func (client UserSubscriptionClient) List(ctx context.Context, resourceGroupName return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListPreparer prepares the List request. func (client UserSubscriptionClient) ListPreparer(ctx context.Context, resourceGroupName string, serviceName string, UID string, filter string, top *int32, skip *int32) (*http.Request, error) { pathParameters := map[string]interface{}{ @@ -143,7 +138,6 @@ func (client UserSubscriptionClient) ListPreparer(ctx context.Context, resourceG return preparer.Prepare((&http.Request{}).WithContext(ctx)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListSender sends the List request. The method will close the // http.Response Body if it receives an error. func (client UserSubscriptionClient) ListSender(req *http.Request) (*http.Response, error) { @@ -151,7 +145,6 @@ func (client UserSubscriptionClient) ListSender(req *http.Request) (*http.Respon azure.DoRetryWithRegistration(client.Client)) } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListResponder handles the response to the List request. The method always // closes the http.Response Body. func (client UserSubscriptionClient) ListResponder(resp *http.Response) (result SubscriptionCollection, err error) { @@ -186,7 +179,6 @@ func (client UserSubscriptionClient) listNextResults(ctx context.Context, lastRe return } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // ListComplete enumerates all values, automatically crossing page boundaries as required. func (client UserSubscriptionClient) ListComplete(ctx context.Context, resourceGroupName string, serviceName string, UID string, filter string, top *int32, skip *int32) (result SubscriptionCollectionIterator, err error) { if tracing.IsEnabled() { diff --git a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/version.go b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/version.go index 73e588250db7..9147ce76f472 100644 --- a/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/version.go +++ b/services/preview/apimanagement/mgmt/2018-01-01/apimanagement/version.go @@ -18,13 +18,12 @@ import "github.com/Azure/azure-sdk-for-go/version" // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. + // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { return "Azure-SDK-For-Go/" + version.Number + " apimanagement/2018-01-01" } -// Deprecated: Please use package github.com/Azure/azure-sdk-for-go/services/apimanagement/mgmt/2018-01-01/apimanagement instead. // Version returns the semantic version (see http://semver.org) of the client. func Version() string { return version.Number diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissue.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissue.go index 2d7dcd9a3ca8..8aacdb800a37 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissue.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/apiissue.go @@ -595,3 +595,108 @@ func (client APIIssueClient) ListByServiceComplete(ctx context.Context, resource result.page, err = client.ListByService(ctx, resourceGroupName, serviceName, apiid, filter, top, skip) return } + +// Update updates an existing issue for an API. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the API Management service. +// apiid - API identifier. Must be unique in the current API Management service instance. +// issueID - issue identifier. Must be unique in the current API Management service instance. +// parameters - update parameters. +// ifMatch - eTag of the Issue Entity. ETag should match the current entity state from the header response of +// the GET request or it should be * for unconditional update. +func (client APIIssueClient) Update(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, parameters IssueUpdateContract, ifMatch string) (result autorest.Response, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/APIIssueClient.Update") + defer func() { + sc := -1 + if result.Response != nil { + sc = result.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: serviceName, + Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}, + {TargetValue: apiid, + Constraints: []validation.Constraint{{Target: "apiid", Name: validation.MaxLength, Rule: 80, Chain: nil}, + {Target: "apiid", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "apiid", Name: validation.Pattern, Rule: `(^[\w]+$)|(^[\w][\w\-]+[\w]$)`, Chain: nil}}}, + {TargetValue: issueID, + Constraints: []validation.Constraint{{Target: "issueID", Name: validation.MaxLength, Rule: 256, Chain: nil}, + {Target: "issueID", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "issueID", Name: validation.Pattern, Rule: `^[^*#&+:<>?]+$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("apimanagement.APIIssueClient", "Update", err.Error()) + } + + req, err := client.UpdatePreparer(ctx, resourceGroupName, serviceName, apiid, issueID, parameters, ifMatch) + if err != nil { + err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", nil, "Failure preparing request") + return + } + + resp, err := client.UpdateSender(req) + if err != nil { + result.Response = resp + err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", resp, "Failure sending request") + return + } + + result, err = client.UpdateResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "apimanagement.APIIssueClient", "Update", resp, "Failure responding to request") + } + + return +} + +// UpdatePreparer prepares the Update request. +func (client APIIssueClient) UpdatePreparer(ctx context.Context, resourceGroupName string, serviceName string, apiid string, issueID string, parameters IssueUpdateContract, ifMatch string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "apiId": autorest.Encode("path", apiid), + "issueId": autorest.Encode("path", issueID), + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsContentType("application/json; charset=utf-8"), + autorest.AsPatch(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId}", pathParameters), + autorest.WithJSON(parameters), + autorest.WithQueryParameters(queryParameters)) + if len(ifMatch) > 0 { + preparer = autorest.DecoratePreparer(preparer, + autorest.WithHeader("If-Match", autorest.String(ifMatch))) + } + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// UpdateSender sends the Update request. The method will close the +// http.Response Body if it receives an error. +func (client APIIssueClient) UpdateSender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// UpdateResponder handles the response to the Update request. The method always +// closes the http.Response Body. +func (client APIIssueClient) UpdateResponder(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 + return +} diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go index 73fe5146e7bd..91a191d9d111 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go @@ -5137,18 +5137,83 @@ func (ic *IssueContract) UnmarshalJSON(body []byte) error { return nil } +// IssueContractBaseProperties issue contract Base Properties. +type IssueContractBaseProperties struct { + // CreatedDate - Date and time when the issue was created. + CreatedDate *date.Time `json:"createdDate,omitempty"` + // State - Status of the issue. Possible values include: 'Proposed', 'Open', 'Removed', 'Resolved', 'Closed' + State State `json:"state,omitempty"` + // APIID - A resource identifier for the API the issue was created for. + APIID *string `json:"apiId,omitempty"` +} + // IssueContractProperties issue contract Properties. type IssueContractProperties struct { // Title - The issue title. Title *string `json:"title,omitempty"` // Description - Text describing the issue. Description *string `json:"description,omitempty"` + // UserID - A resource identifier for the user created the issue. + UserID *string `json:"userId,omitempty"` // CreatedDate - Date and time when the issue was created. CreatedDate *date.Time `json:"createdDate,omitempty"` // State - Status of the issue. Possible values include: 'Proposed', 'Open', 'Removed', 'Resolved', 'Closed' State State `json:"state,omitempty"` + // APIID - A resource identifier for the API the issue was created for. + APIID *string `json:"apiId,omitempty"` +} + +// IssueUpdateContract issue update Parameters. +type IssueUpdateContract struct { + // IssueUpdateContractProperties - Issue entity Update contract properties. + *IssueUpdateContractProperties `json:"properties,omitempty"` +} + +// MarshalJSON is the custom marshaler for IssueUpdateContract. +func (iuc IssueUpdateContract) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if iuc.IssueUpdateContractProperties != nil { + objectMap["properties"] = iuc.IssueUpdateContractProperties + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON is the custom unmarshaler for IssueUpdateContract struct. +func (iuc *IssueUpdateContract) UnmarshalJSON(body []byte) error { + var m map[string]*json.RawMessage + err := json.Unmarshal(body, &m) + if err != nil { + return err + } + for k, v := range m { + switch k { + case "properties": + if v != nil { + var issueUpdateContractProperties IssueUpdateContractProperties + err = json.Unmarshal(*v, &issueUpdateContractProperties) + if err != nil { + return err + } + iuc.IssueUpdateContractProperties = &issueUpdateContractProperties + } + } + } + + return nil +} + +// IssueUpdateContractProperties issue contract Update Properties. +type IssueUpdateContractProperties struct { + // Title - The issue title. + Title *string `json:"title,omitempty"` + // Description - Text describing the issue. + Description *string `json:"description,omitempty"` // UserID - A resource identifier for the user created the issue. UserID *string `json:"userId,omitempty"` + // CreatedDate - Date and time when the issue was created. + CreatedDate *date.Time `json:"createdDate,omitempty"` + // State - Status of the issue. Possible values include: 'Proposed', 'Open', 'Removed', 'Resolved', 'Closed' + State State `json:"state,omitempty"` // APIID - A resource identifier for the API the issue was created for. APIID *string `json:"apiId,omitempty"` } From 63078d08c5126317a075f9310baf1dad8248bf9b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 14 Nov 2018 08:46:59 -0800 Subject: [PATCH 2/2] [AutoPR apimanagement/resource-manager] /identity endpoint added (#3291) * Generated from 8363d68686accd9a2c5c1727ebab556ca7529cb3 /identity endpoint added * Generated from 8363d68686accd9a2c5c1727ebab556ca7529cb3 /identity endpoint added --- .../mgmt/apimanagement/models.go | 1 + .../mgmt/apimanagement/models.go | 1 + .../mgmt/2018-01-01/apimanagement/models.go | 7 ++ .../mgmt/2018-01-01/apimanagement/user.go | 85 +++++++++++++++++++ .../apimanagement/models.go | 7 ++ .../2018-06-01-preview/apimanagement/user.go | 85 +++++++++++++++++++ 6 files changed, 186 insertions(+) diff --git a/profiles/preview/apimanagement/mgmt/apimanagement/models.go b/profiles/preview/apimanagement/mgmt/apimanagement/models.go index 9e7ac3191a34..cd1e1ffa35dd 100644 --- a/profiles/preview/apimanagement/mgmt/apimanagement/models.go +++ b/profiles/preview/apimanagement/mgmt/apimanagement/models.go @@ -415,6 +415,7 @@ type CertificateCreateOrUpdateParameters = original.CertificateCreateOrUpdatePar type CertificateCreateOrUpdateProperties = original.CertificateCreateOrUpdateProperties type CertificateInformation = original.CertificateInformation type ConnectivityStatusContract = original.ConnectivityStatusContract +type CurrentUserIdentity = original.CurrentUserIdentity type DeployConfigurationParameters = original.DeployConfigurationParameters type DiagnosticCollection = original.DiagnosticCollection type DiagnosticCollectionIterator = original.DiagnosticCollectionIterator diff --git a/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go b/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go index 5014b9294990..b0b4561d8e84 100644 --- a/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go +++ b/profiles/preview/preview/apimanagement/mgmt/apimanagement/models.go @@ -426,6 +426,7 @@ type CertificateCreateOrUpdateParameters = original.CertificateCreateOrUpdatePar type CertificateCreateOrUpdateProperties = original.CertificateCreateOrUpdateProperties type CertificateInformation = original.CertificateInformation type ConnectivityStatusContract = original.ConnectivityStatusContract +type CurrentUserIdentity = original.CurrentUserIdentity type DeployConfigurationParameters = original.DeployConfigurationParameters type DiagnosticCollection = original.DiagnosticCollection type DiagnosticCollectionIterator = original.DiagnosticCollectionIterator diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go index d1b3cf87f0bb..c8aa2bd0b038 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/models.go @@ -3128,6 +3128,13 @@ type ConnectivityStatusContract struct { LastStatusChange *date.Time `json:"lastStatusChange,omitempty"` } +// CurrentUserIdentity ... +type CurrentUserIdentity struct { + autorest.Response `json:"-"` + // ID - API Management service user id. + ID *string `json:"id,omitempty"` +} + // DeployConfigurationParameters parameters supplied to the Deploy Configuration operation. type DeployConfigurationParameters struct { // Branch - The name of the Git branch from which the configuration is to be deployed to the configuration database. diff --git a/services/apimanagement/mgmt/2018-01-01/apimanagement/user.go b/services/apimanagement/mgmt/2018-01-01/apimanagement/user.go index 3f5dd69dc040..1364af2f9fde 100644 --- a/services/apimanagement/mgmt/2018-01-01/apimanagement/user.go +++ b/services/apimanagement/mgmt/2018-01-01/apimanagement/user.go @@ -529,6 +529,91 @@ func (client UserClient) GetEntityTagResponder(resp *http.Response) (result auto return } +// GetIdentity returns calling user identity information. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the API Management service. +func (client UserClient) GetIdentity(ctx context.Context, resourceGroupName string, serviceName string) (result CurrentUserIdentity, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UserClient.GetIdentity") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: serviceName, + Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("apimanagement.UserClient", "GetIdentity", err.Error()) + } + + req, err := client.GetIdentityPreparer(ctx, resourceGroupName, serviceName) + if err != nil { + err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetIdentity", nil, "Failure preparing request") + return + } + + resp, err := client.GetIdentitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetIdentity", resp, "Failure sending request") + return + } + + result, err = client.GetIdentityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetIdentity", resp, "Failure responding to request") + } + + return +} + +// GetIdentityPreparer prepares the GetIdentity request. +func (client UserClient) GetIdentityPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-01-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identity", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetIdentitySender sends the GetIdentity request. The method will close the +// http.Response Body if it receives an error. +func (client UserClient) GetIdentitySender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetIdentityResponder handles the response to the GetIdentity request. The method always +// closes the http.Response Body. +func (client UserClient) GetIdentityResponder(resp *http.Response) (result CurrentUserIdentity, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // GetSharedAccessToken gets the Shared Access Authorization Token for the User. // Parameters: // resourceGroupName - the name of the resource group. diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go index 91a191d9d111..75d5b1b42ae8 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/models.go @@ -3170,6 +3170,13 @@ type ConnectivityStatusContract struct { LastStatusChange *date.Time `json:"lastStatusChange,omitempty"` } +// CurrentUserIdentity ... +type CurrentUserIdentity struct { + autorest.Response `json:"-"` + // ID - API Management service user id. + ID *string `json:"id,omitempty"` +} + // DeployConfigurationParameters parameters supplied to the Deploy Configuration operation. type DeployConfigurationParameters struct { // Branch - The name of the Git branch from which the configuration is to be deployed to the configuration database. diff --git a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/user.go b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/user.go index 0fa4d3ac8d98..2c17e936e054 100644 --- a/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/user.go +++ b/services/preview/apimanagement/mgmt/2018-06-01-preview/apimanagement/user.go @@ -529,6 +529,91 @@ func (client UserClient) GetEntityTagResponder(resp *http.Response) (result auto return } +// GetIdentity returns calling user identity information. +// Parameters: +// resourceGroupName - the name of the resource group. +// serviceName - the name of the API Management service. +func (client UserClient) GetIdentity(ctx context.Context, resourceGroupName string, serviceName string) (result CurrentUserIdentity, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/UserClient.GetIdentity") + defer func() { + sc := -1 + if result.Response.Response != nil { + sc = result.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: serviceName, + Constraints: []validation.Constraint{{Target: "serviceName", Name: validation.MaxLength, Rule: 50, Chain: nil}, + {Target: "serviceName", Name: validation.MinLength, Rule: 1, Chain: nil}, + {Target: "serviceName", Name: validation.Pattern, Rule: `^[a-zA-Z](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$`, Chain: nil}}}}); err != nil { + return result, validation.NewError("apimanagement.UserClient", "GetIdentity", err.Error()) + } + + req, err := client.GetIdentityPreparer(ctx, resourceGroupName, serviceName) + if err != nil { + err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetIdentity", nil, "Failure preparing request") + return + } + + resp, err := client.GetIdentitySender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetIdentity", resp, "Failure sending request") + return + } + + result, err = client.GetIdentityResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "apimanagement.UserClient", "GetIdentity", resp, "Failure responding to request") + } + + return +} + +// GetIdentityPreparer prepares the GetIdentity request. +func (client UserClient) GetIdentityPreparer(ctx context.Context, resourceGroupName string, serviceName string) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "resourceGroupName": autorest.Encode("path", resourceGroupName), + "serviceName": autorest.Encode("path", serviceName), + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2018-06-01-preview" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identity", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// GetIdentitySender sends the GetIdentity request. The method will close the +// http.Response Body if it receives an error. +func (client UserClient) GetIdentitySender(req *http.Request) (*http.Response, error) { + return autorest.SendWithSender(client, req, + azure.DoRetryWithRegistration(client.Client)) +} + +// GetIdentityResponder handles the response to the GetIdentity request. The method always +// closes the http.Response Body. +func (client UserClient) GetIdentityResponder(resp *http.Response) (result CurrentUserIdentity, err error) { + err = autorest.Respond( + resp, + client.ByInspecting(), + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + // GetSharedAccessToken gets the Shared Access Authorization Token for the User. // Parameters: // resourceGroupName - the name of the resource group.