Interface RoleInstancesClient
public interface RoleInstancesClient
An instance of this class provides access to all the operations defined in RoleInstancesClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginRestart
(String locationName, String vendorName, String serviceKey, String roleInstanceName) Restarts a role instance of a vendor network function.beginRestart
(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Restarts a role instance of a vendor network function.beginStart
(String locationName, String vendorName, String serviceKey, String roleInstanceName) Starts a role instance of a vendor network function.beginStart
(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Starts a role instance of a vendor network function.Powers off (stop) a role instance of a vendor network function.beginStop
(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Powers off (stop) a role instance of a vendor network function.Gets the information of role instance of vendor network function.com.azure.core.http.rest.Response<RoleInstanceInner>
getWithResponse
(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Gets the information of role instance of vendor network function.com.azure.core.http.rest.PagedIterable<RoleInstanceInner>
Lists the information of role instances of vendor network function.com.azure.core.http.rest.PagedIterable<RoleInstanceInner>
list
(String locationName, String vendorName, String serviceKey, com.azure.core.util.Context context) Lists the information of role instances of vendor network function.void
Restarts a role instance of a vendor network function.void
restart
(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Restarts a role instance of a vendor network function.void
Starts a role instance of a vendor network function.void
start
(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Starts a role instance of a vendor network function.void
Powers off (stop) a role instance of a vendor network function.void
stop
(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Powers off (stop) a role instance of a vendor network function.
-
Method Details
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String locationName, String vendorName, String serviceKey, String roleInstanceName) Starts a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Starts a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
Starts a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
void start(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Starts a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String locationName, String vendorName, String serviceKey, String roleInstanceName) Powers off (stop) a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Powers off (stop) a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
Powers off (stop) a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
void stop(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Powers off (stop) a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String locationName, String vendorName, String serviceKey, String roleInstanceName) Restarts a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Restarts a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
restart
Restarts a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
restart
void restart(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Restarts a role instance of a vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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<RoleInstanceInner> getWithResponse(String locationName, String vendorName, String serviceKey, String roleInstanceName, com.azure.core.util.Context context) Gets the information of role instance of vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.context
- The context to associate with this operation.- Returns:
- the information of role instance of vendor network function along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
RoleInstanceInner get(String locationName, String vendorName, String serviceKey, String roleInstanceName) Gets the information of role instance of vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.roleInstanceName
- The name of the role instance of the vendor network function.- Returns:
- the information of role instance of vendor network function.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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<RoleInstanceInner> list(String locationName, String vendorName, String serviceKey) Lists the information of role instances of vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.- Returns:
- list of role instances of vendor network function as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- 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<RoleInstanceInner> list(String locationName, String vendorName, String serviceKey, com.azure.core.util.Context context) Lists the information of role instances of vendor network function.- Parameters:
locationName
- The Azure region where the network function resource was created by customer.vendorName
- The name of the vendor.serviceKey
- The GUID for the vendor network function.context
- The context to associate with this operation.- Returns:
- list of role instances of vendor network function as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-