CustomRecommendationsClient Interface

public interface CustomRecommendationsClient

An instance of this class provides access to all the operations defined in CustomRecommendationsClient.

Method Summary

Modifier and Type Method and Description
abstract CustomRecommendationInner createOrUpdate(String scope, String customRecommendationName, CustomRecommendationInner customRecommendationBody)

Creates or updates a custom recommendation over a given scope.

abstract Response<CustomRecommendationInner> createOrUpdateWithResponse(String scope, String customRecommendationName, CustomRecommendationInner customRecommendationBody, Context context)

Creates or updates a custom recommendation over a given scope.

abstract void delete(String scope, String customRecommendationName)

Delete a custom recommendation over a given scope.

abstract Response<Void> deleteWithResponse(String scope, String customRecommendationName, Context context)

Delete a custom recommendation over a given scope.

abstract CustomRecommendationInner get(String scope, String customRecommendationName)

Get a specific custom recommendation for the requested scope by customRecommendationName.

abstract Response<CustomRecommendationInner> getWithResponse(String scope, String customRecommendationName, Context context)

Get a specific custom recommendation for the requested scope by customRecommendationName.

abstract PagedIterable<CustomRecommendationInner> list(String scope)

Get a list of all relevant custom recommendations over a scope.

abstract PagedIterable<CustomRecommendationInner> list(String scope, Context context)

Get a list of all relevant custom recommendations over a scope.

Method Details

createOrUpdate

public abstract CustomRecommendationInner createOrUpdate(String scope, String customRecommendationName, CustomRecommendationInner customRecommendationBody)

Creates or updates a custom recommendation over a given scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
customRecommendationName - Name of the Custom Recommendation.
customRecommendationBody - Custom Recommendation body.

Returns:

custom Recommendation.

createOrUpdateWithResponse

public abstract Response<CustomRecommendationInner> createOrUpdateWithResponse(String scope, String customRecommendationName, CustomRecommendationInner customRecommendationBody, Context context)

Creates or updates a custom recommendation over a given scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
customRecommendationName - Name of the Custom Recommendation.
customRecommendationBody - Custom Recommendation body.
context - The context to associate with this operation.

Returns:

custom Recommendation along with Response<T>.

delete

public abstract void delete(String scope, String customRecommendationName)

Delete a custom recommendation over a given scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
customRecommendationName - Name of the Custom Recommendation.

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String scope, String customRecommendationName, Context context)

Delete a custom recommendation over a given scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
customRecommendationName - Name of the Custom Recommendation.
context - The context to associate with this operation.

Returns:

get

public abstract CustomRecommendationInner get(String scope, String customRecommendationName)

Get a specific custom recommendation for the requested scope by customRecommendationName.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
customRecommendationName - Name of the Custom Recommendation.

Returns:

a specific custom recommendation for the requested scope by customRecommendationName.

getWithResponse

public abstract Response<CustomRecommendationInner> getWithResponse(String scope, String customRecommendationName, Context context)

Get a specific custom recommendation for the requested scope by customRecommendationName.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
customRecommendationName - Name of the Custom Recommendation.
context - The context to associate with this operation.

Returns:

a specific custom recommendation for the requested scope by customRecommendationName along with Response<T>.

list

public abstract PagedIterable<CustomRecommendationInner> list(String scope)

Get a list of all relevant custom recommendations over a scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.

Returns:

a list of all relevant custom recommendations over a scope as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<CustomRecommendationInner> list(String scope, Context context)

Get a list of all relevant custom recommendations over a scope.

Parameters:

scope - The fully qualified Azure Resource manager identifier of the resource.
context - The context to associate with this operation.

Returns:

a list of all relevant custom recommendations over a scope as paginated response with PagedIterable<T>.

Applies to