Hosts Interface

public interface Hosts

Resource collection API of Hosts.

Method Summary

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

Begins definition for a new HostModel resource.

abstract void delete(String resourceGroupName, String hostname)

Deletes an host.

abstract void delete(String resourceGroupName, String hostname, Boolean force)

Deletes an host.

abstract void delete(String resourceGroupName, String hostname, Boolean force, Context context)

Deletes an host.

abstract void deleteById(String id)

Deletes an host.

abstract void deleteByIdWithResponse(String id, Boolean force, Context context)

Deletes an host.

abstract HostModel getById(String id)

Gets a host.

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

Gets a host.

abstract HostModel getByResourceGroup(String resourceGroupName, String hostname)

Gets a host.

abstract Response<HostModel> getByResourceGroupWithResponse(String resourceGroupName, String hostname, Context context)

Gets a host.

abstract PagedIterable<HostModel> list()

Implements GET hosts in a subscription.

abstract PagedIterable<HostModel> list(Context context)

Implements GET hosts in a subscription.

abstract PagedIterable<HostModel> listByResourceGroup(String resourceGroupName)

Implements GET hosts in a resource group.

abstract PagedIterable<HostModel> listByResourceGroup(String resourceGroupName, Context context)

Implements GET hosts in a resource group.

Method Details

define

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

Begins definition for a new HostModel resource.

Parameters:

name - resource name.

Returns:

the first stage of the new HostModel definition.

delete

public abstract void delete(String resourceGroupName, String hostname)

Deletes an host.

Implements host DELETE method.

Parameters:

resourceGroupName - The Resource Group Name.
hostname - Name of the host.

delete

public abstract void delete(String resourceGroupName, String hostname, Boolean force)

Deletes an host.

Implements host DELETE method.

Parameters:

resourceGroupName - The Resource Group Name.
hostname - Name of the host.
force - Whether force delete was specified.

delete

public abstract void delete(String resourceGroupName, String hostname, Boolean force, Context context)

Deletes an host.

Implements host DELETE method.

Parameters:

resourceGroupName - The Resource Group Name.
hostname - Name of the host.
force - Whether force delete was specified.
context - The context to associate with this operation.

deleteById

public abstract void deleteById(String id)

Deletes an host.

Implements host DELETE method.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract void deleteByIdWithResponse(String id, Boolean force, Context context)

Deletes an host.

Implements host DELETE method.

Parameters:

id - the resource ID.
force - Whether force delete was specified.
context - The context to associate with this operation.

getById

public abstract HostModel getById(String id)

Gets a host.

Implements host GET method.

Parameters:

id - the resource ID.

Returns:

define the host along with Response<T>.

getByIdWithResponse

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

Gets a host.

Implements host GET method.

Parameters:

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

Returns:

define the host along with Response<T>.

getByResourceGroup

public abstract HostModel getByResourceGroup(String resourceGroupName, String hostname)

Gets a host.

Implements host GET method.

Parameters:

resourceGroupName - The Resource Group Name.
hostname - Name of the host.

Returns:

define the host.

getByResourceGroupWithResponse

public abstract Response<HostModel> getByResourceGroupWithResponse(String resourceGroupName, String hostname, Context context)

Gets a host.

Implements host GET method.

Parameters:

resourceGroupName - The Resource Group Name.
hostname - Name of the host.
context - The context to associate with this operation.

Returns:

define the host along with Response<T>.

list

public abstract PagedIterable<HostModel> list()

Implements GET hosts in a subscription.

List of hosts in a subscription.

Returns:

list of Hosts as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<HostModel> list(Context context)

Implements GET hosts in a subscription.

List of hosts in a subscription.

Parameters:

context - The context to associate with this operation.

Returns:

list of Hosts as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<HostModel> listByResourceGroup(String resourceGroupName)

Implements GET hosts in a resource group.

List of hosts in a resource group.

Parameters:

resourceGroupName - The Resource Group Name.

Returns:

list of Hosts as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<HostModel> listByResourceGroup(String resourceGroupName, Context context)

Implements GET hosts in a resource group.

List of hosts in a resource group.

Parameters:

resourceGroupName - The Resource Group Name.
context - The context to associate with this operation.

Returns:

list of Hosts as paginated response with PagedIterable<T>.

Applies to