Projects Interface

public interface Projects

Resource collection API of Projects.

Method Summary

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

Begins definition for a new Project resource.

abstract void delete(String resourceGroupName, String projectName, Context context)

Deletes a project resource.

abstract void deleteById(String id)

Deletes a project resource.

abstract void deleteByIdWithResponse(String id, Context context)

Deletes a project resource.

abstract void deleteByResourceGroup(String resourceGroupName, String projectName)

Deletes a project resource.

abstract Project getById(String id)

Gets a specific project.

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

Gets a specific project.

abstract Project getByResourceGroup(String resourceGroupName, String projectName)

Gets a specific project.

abstract Response<Project> getByResourceGroupWithResponse(String resourceGroupName, String projectName, Context context)

Gets a specific project.

abstract PagedIterable<Project> list()

Lists all projects in the subscription.

abstract PagedIterable<Project> list(Integer top, Context context)

Lists all projects in the subscription.

abstract PagedIterable<Project> listByResourceGroup(String resourceGroupName)

Lists all projects in the resource group.

abstract PagedIterable<Project> listByResourceGroup(String resourceGroupName, Integer top, Context context)

Lists all projects in the resource group.

Method Details

define

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

Begins definition for a new Project resource.

Parameters:

name - resource name.

Returns:

the first stage of the new Project definition.

delete

public abstract void delete(String resourceGroupName, String projectName, Context context)

Deletes a project resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
projectName - The name of the project.
context - The context to associate with this operation.

deleteById

public abstract void deleteById(String id)

Deletes a project resource.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Context context)

Deletes a project resource.

Parameters:

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

deleteByResourceGroup

public abstract void deleteByResourceGroup(String resourceGroupName, String projectName)

Deletes a project resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
projectName - The name of the project.

getById

public abstract Project getById(String id)

Gets a specific project.

Parameters:

id - the resource ID.

Returns:

a specific project along with Response<T>.

getByIdWithResponse

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

Gets a specific project.

Parameters:

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

Returns:

a specific project along with Response<T>.

getByResourceGroup

public abstract Project getByResourceGroup(String resourceGroupName, String projectName)

Gets a specific project.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
projectName - The name of the project.

Returns:

a specific project.

getByResourceGroupWithResponse

public abstract Response<Project> getByResourceGroupWithResponse(String resourceGroupName, String projectName, Context context)

Gets a specific project.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
projectName - The name of the project.
context - The context to associate with this operation.

Returns:

a specific project along with Response<T>.

list

public abstract PagedIterable<Project> list()

Lists all projects in the subscription.

Returns:

results of the project list operation as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<Project> list(Integer top, Context context)

Lists all projects in the subscription.

Parameters:

top - The maximum number of resources to return from the operation. Example: '$top=10'.
context - The context to associate with this operation.

Returns:

results of the project list operation as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<Project> listByResourceGroup(String resourceGroupName)

Lists all projects in the resource group.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.

Returns:

results of the project list operation as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<Project> listByResourceGroup(String resourceGroupName, Integer top, Context context)

Lists all projects in the resource group.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
top - The maximum number of resources to return from the operation. Example: '$top=10'.
context - The context to associate with this operation.

Returns:

results of the project list operation as paginated response with PagedIterable<T>.

Applies to