Interface CloudServiceRolesClient
public interface CloudServiceRolesClient
An instance of this class provides access to all the operations defined in CloudServiceRolesClient.
-
Method Summary
Modifier and TypeMethodDescriptionGets a role from a cloud service.Gets a role from a cloud service.com.azure.core.http.rest.Response<CloudServiceRoleInner>getWithResponse(String roleName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context) Gets a role from a cloud service.Mono<com.azure.core.http.rest.Response<CloudServiceRoleInner>>getWithResponseAsync(String roleName, String resourceGroupName, String cloudServiceName) Gets a role from a cloud service.com.azure.core.http.rest.PagedIterable<CloudServiceRoleInner>Gets a list of all roles in a cloud service.com.azure.core.http.rest.PagedIterable<CloudServiceRoleInner>Gets a list of all roles in a cloud service.com.azure.core.http.rest.PagedFlux<CloudServiceRoleInner>Gets a list of all roles in a cloud service.
-
Method Details
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<CloudServiceRoleInner>> getWithResponseAsync(String roleName, String resourceGroupName, String cloudServiceName) Gets a role from a cloud service.- Parameters:
roleName- Name of the role.resourceGroupName- Name of the resource group.cloudServiceName- Name of the cloud service.- Returns:
- a role from a cloud service along with
Responseon successful completion ofMono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Mono<CloudServiceRoleInner> getAsync(String roleName, String resourceGroupName, String cloudServiceName) Gets a role from a cloud service.- Parameters:
roleName- Name of the role.resourceGroupName- Name of the resource group.cloudServiceName- Name of the cloud service.- Returns:
- a role from a cloud service on successful completion of
Mono. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets a role from a cloud service.- Parameters:
roleName- Name of the role.resourceGroupName- Name of the resource group.cloudServiceName- Name of the cloud service.- Returns:
- a role from a cloud service.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<CloudServiceRoleInner> getWithResponse(String roleName, String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context) Gets a role from a cloud service.- Parameters:
roleName- Name of the role.resourceGroupName- Name of the resource group.cloudServiceName- Name of the cloud service.context- The context to associate with this operation.- Returns:
- a role from a cloud service along with
Response. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
listAsync
com.azure.core.http.rest.PagedFlux<CloudServiceRoleInner> listAsync(String resourceGroupName, String cloudServiceName) Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.- Parameters:
resourceGroupName- Name of the resource group.cloudServiceName- Name of the cloud service.- Returns:
- a list of all roles in a cloud service as paginated response with
PagedFlux. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<CloudServiceRoleInner> list(String resourceGroupName, String cloudServiceName) Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.- Parameters:
resourceGroupName- Name of the resource group.cloudServiceName- Name of the cloud service.- Returns:
- a list of all roles in a cloud service as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<CloudServiceRoleInner> list(String resourceGroupName, String cloudServiceName, com.azure.core.util.Context context) Gets a list of all roles in a cloud service. Use nextLink property in the response to get the next page of roles. Do this till nextLink is null to fetch all the roles.- Parameters:
resourceGroupName- Name of the resource group.cloudServiceName- Name of the cloud service.context- The context to associate with this operation.- Returns:
- a list of all roles in a cloud service as paginated response with
PagedIterable. - Throws:
IllegalArgumentException- thrown if parameters fail the validation.ApiErrorException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-