Aracılığıyla paylaş


Roles Interface

public interface Roles

Resource collection API of Roles.

Method Summary

Modifier and Type Method and Description
abstract Role createOrUpdate(String deviceName, String name, String resourceGroupName, RoleInner role)

Create or update a role.

abstract Role createOrUpdate(String deviceName, String name, String resourceGroupName, RoleInner role, Context context)

Create or update a role.

abstract void delete(String deviceName, String name, String resourceGroupName)

Deletes the role on the device.

abstract void delete(String deviceName, String name, String resourceGroupName, Context context)

Deletes the role on the device.

abstract Role get(String deviceName, String name, String resourceGroupName)

Gets a specific role by name.

abstract Response<Role> getWithResponse(String deviceName, String name, String resourceGroupName, Context context)

Gets a specific role by name.

abstract PagedIterable<Role> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName)

Lists all the roles configured in a Data Box Edge/Data Box Gateway device.

abstract PagedIterable<Role> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName, Context context)

Lists all the roles configured in a Data Box Edge/Data Box Gateway device.

Method Details

createOrUpdate

public abstract Role createOrUpdate(String deviceName, String name, String resourceGroupName, RoleInner role)

Create or update a role.

Parameters:

deviceName - The device name.
name - The role name.
resourceGroupName - The resource group name.
role - The role properties.

Returns:

compute role.

createOrUpdate

public abstract Role createOrUpdate(String deviceName, String name, String resourceGroupName, RoleInner role, Context context)

Create or update a role.

Parameters:

deviceName - The device name.
name - The role name.
resourceGroupName - The resource group name.
role - The role properties.
context - The context to associate with this operation.

Returns:

compute role.

delete

public abstract void delete(String deviceName, String name, String resourceGroupName)

Deletes the role on the device.

Parameters:

deviceName - The device name.
name - The role name.
resourceGroupName - The resource group name.

delete

public abstract void delete(String deviceName, String name, String resourceGroupName, Context context)

Deletes the role on the device.

Parameters:

deviceName - The device name.
name - The role name.
resourceGroupName - The resource group name.
context - The context to associate with this operation.

get

public abstract Role get(String deviceName, String name, String resourceGroupName)

Gets a specific role by name.

Parameters:

deviceName - The device name.
name - The role name.
resourceGroupName - The resource group name.

Returns:

a specific role by name.

getWithResponse

public abstract Response<Role> getWithResponse(String deviceName, String name, String resourceGroupName, Context context)

Gets a specific role by name.

Parameters:

deviceName - The device name.
name - The role name.
resourceGroupName - The resource group name.
context - The context to associate with this operation.

Returns:

a specific role by name along with Response<T>.

listByDataBoxEdgeDevice

public abstract PagedIterable<Role> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName)

Lists all the roles configured in a Data Box Edge/Data Box Gateway device.

Parameters:

deviceName - The device name.
resourceGroupName - The resource group name.

Returns:

collection of all the roles on the Data Box Edge device as paginated response with PagedIterable<T>.

listByDataBoxEdgeDevice

public abstract PagedIterable<Role> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName, Context context)

Lists all the roles configured in a Data Box Edge/Data Box Gateway device.

Parameters:

deviceName - The device name.
resourceGroupName - The resource group name.
context - The context to associate with this operation.

Returns:

collection of all the roles on the Data Box Edge device as paginated response with PagedIterable<T>.

Applies to