Secrets Interface

public interface Secrets

Resource collection API of Secrets.

Method Summary

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

Begins definition for a new Secret resource.

abstract void delete(String resourceGroupName, String labName, String userName, String name)

Delete secret.

abstract void deleteById(String id)

Delete secret.

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

Delete secret.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String labName, String userName, String name, Context context)

Delete secret.

abstract Secret get(String resourceGroupName, String labName, String userName, String name)

Get secret.

abstract Secret getById(String id)

Get secret.

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

Get secret.

abstract Response<Secret> getWithResponse(String resourceGroupName, String labName, String userName, String name, String expand, Context context)

Get secret.

abstract PagedIterable<Secret> list(String resourceGroupName, String labName, String userName)

List secrets in a given user profile.

abstract PagedIterable<Secret> list(String resourceGroupName, String labName, String userName, String expand, String filter, Integer top, String orderby, Context context)

List secrets in a given user profile.

Method Details

define

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

Begins definition for a new Secret resource.

Parameters:

name - resource name.

Returns:

the first stage of the new Secret definition.

delete

public abstract void delete(String resourceGroupName, String labName, String userName, String name)

Delete secret.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labName - The name of the lab.
userName - The name of the user profile.
name - The name of the secret.

deleteById

public abstract void deleteById(String id)

Delete secret.

Parameters:

id - the resource ID.

deleteByIdWithResponse

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

Delete secret.

Parameters:

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

Returns:

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceGroupName, String labName, String userName, String name, Context context)

Delete secret.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labName - The name of the lab.
userName - The name of the user profile.
name - The name of the secret.
context - The context to associate with this operation.

Returns:

get

public abstract Secret get(String resourceGroupName, String labName, String userName, String name)

Get secret.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labName - The name of the lab.
userName - The name of the user profile.
name - The name of the secret.

Returns:

secret.

getById

public abstract Secret getById(String id)

Get secret.

Parameters:

id - the resource ID.

Returns:

secret along with Response<T>.

getByIdWithResponse

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

Get secret.

Parameters:

id - the resource ID.
expand - Specify the $expand query. Example: 'properties($select=value)'.
context - The context to associate with this operation.

Returns:

secret along with Response<T>.

getWithResponse

public abstract Response<Secret> getWithResponse(String resourceGroupName, String labName, String userName, String name, String expand, Context context)

Get secret.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labName - The name of the lab.
userName - The name of the user profile.
name - The name of the secret.
expand - Specify the $expand query. Example: 'properties($select=value)'.
context - The context to associate with this operation.

Returns:

secret along with Response<T>.

list

public abstract PagedIterable<Secret> list(String resourceGroupName, String labName, String userName)

List secrets in a given user profile.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labName - The name of the lab.
userName - The name of the user profile.

Returns:

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

list

public abstract PagedIterable<Secret> list(String resourceGroupName, String labName, String userName, String expand, String filter, Integer top, String orderby, Context context)

List secrets in a given user profile.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
labName - The name of the lab.
userName - The name of the user profile.
expand - Specify the $expand query. Example: 'properties($select=value)'.
filter - The filter to apply to the operation. Example: '$filter=contains(name,'myName').
top - The maximum number of resources to return from the operation. Example: '$top=10'.
orderby - The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
context - The context to associate with this operation.

Returns:

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

Applies to