CustomRecommendations Interface

public interface CustomRecommendations

Resource collection API of CustomRecommendations.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new CustomRecommendation resource.

abstract void deleteById(String id)

Delete a custom recommendation over a given scope.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete a custom recommendation over a given scope.

abstract void deleteByResourceGroup(String scope, String customRecommendationName)

Delete a custom recommendation over a given scope.

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

Delete a custom recommendation over a given scope.

abstract CustomRecommendation get(String scope, String customRecommendationName)

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

abstract CustomRecommendation getById(String id)

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

abstract Response<CustomRecommendation> getByIdWithResponse(String id, Context context)

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

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

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

abstract PagedIterable<CustomRecommendation> list(String scope)

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

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

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

Method Details

define

public abstract CustomRecommendation.DefinitionStages.Blank define(String name)

Begins definition for a new CustomRecommendation resource.

Parameters:

name - resource name.

Returns:

the first stage of the new CustomRecommendation definition.

deleteById

public abstract void deleteById(String id)

Delete a custom recommendation over a given scope.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete a custom recommendation over a given scope.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

deleteByResourceGroup

public abstract void deleteByResourceGroup(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.

deleteByResourceGroupWithResponse

public abstract Response<Void> deleteByResourceGroupWithResponse(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 CustomRecommendation 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.

getById

public abstract CustomRecommendation getById(String id)

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

Parameters:

id - the resource ID.

Returns:

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

getByIdWithResponse

public abstract Response<CustomRecommendation> getByIdWithResponse(String id, Context context)

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

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

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

getWithResponse

public abstract Response<CustomRecommendation> 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<CustomRecommendation> 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<CustomRecommendation> 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