次の方法で共有


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 groupName, String serviceName, String projectName)

Delete project The project resource is a nested resource representing a stored migration project.

abstract void deleteById(String id)

Delete project The project resource is a nested resource representing a stored migration project.

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

Delete project The project resource is a nested resource representing a stored migration project.

abstract Response<Void> deleteWithResponse(String groupName, String serviceName, String projectName, Boolean deleteRunningTasks, Context context)

Delete project The project resource is a nested resource representing a stored migration project.

abstract Project get(String groupName, String serviceName, String projectName)

Get project information The project resource is a nested resource representing a stored migration project.

abstract Project getById(String id)

Get project information The project resource is a nested resource representing a stored migration project.

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

Get project information The project resource is a nested resource representing a stored migration project.

abstract Response<Project> getWithResponse(String groupName, String serviceName, String projectName, Context context)

Get project information The project resource is a nested resource representing a stored migration project.

abstract PagedIterable<Project> list(String groupName, String serviceName)

Get projects in a service The project resource is a nested resource representing a stored migration project.

abstract PagedIterable<Project> list(String groupName, String serviceName, Context context)

Get projects in a service The project resource is a nested resource representing a stored migration project.

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 groupName, String serviceName, String projectName)

Delete project The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.

deleteById

public abstract void deleteById(String id)

Delete project The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.

Parameters:

id - the resource ID.

deleteByIdWithResponse

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

Delete project The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.

Parameters:

id - the resource ID.
deleteRunningTasks - Delete the resource even if it contains running tasks.
context - The context to associate with this operation.

Returns:

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String groupName, String serviceName, String projectName, Boolean deleteRunningTasks, Context context)

Delete project The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.
deleteRunningTasks - Delete the resource even if it contains running tasks.
context - The context to associate with this operation.

Returns:

get

public abstract Project get(String groupName, String serviceName, String projectName)

Get project information The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.

Returns:

a project resource.

getById

public abstract Project getById(String id)

Get project information The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.

Parameters:

id - the resource ID.

Returns:

a project resource along with Response<T>.

getByIdWithResponse

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

Get project information The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.

Parameters:

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

Returns:

a project resource along with Response<T>.

getWithResponse

public abstract Response<Project> getWithResponse(String groupName, String serviceName, String projectName, Context context)

Get project information The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
projectName - Name of the project.
context - The context to associate with this operation.

Returns:

a project resource along with Response<T>.

list

public abstract PagedIterable<Project> list(String groupName, String serviceName)

Get projects in a service The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.

Returns:

oData page of project resources as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<Project> list(String groupName, String serviceName, Context context)

Get projects in a service The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.

Parameters:

groupName - Name of the resource group.
serviceName - Name of the service.
context - The context to associate with this operation.

Returns:

oData page of project resources as paginated response with PagedIterable<T>.

Applies to