Interface ComputeResource
public interface ComputeResource
An immutable client-side representation of ComputeResource.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe entirety of the ComputeResource definition.static interfaceThe ComputeResource definition stages.static interfaceThe template for ComputeResource update.static interfaceThe ComputeResource update stages. -
Method Summary
Modifier and TypeMethodDescriptionid()Gets the id property: Fully qualified resource Id for the resource.identity()Gets the identity property: The identity of the resource.Gets the inner com.azure.resourcemanager.machinelearning.fluent.models.ComputeResourceInner object.listKeys()Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).com.azure.core.http.rest.Response<ComputeSecrets>listKeysWithResponse(com.azure.core.util.Context context) Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).com.azure.core.http.rest.PagedIterable<AmlComputeNodeInformation>Get the details (e.g IP address, port etc) of all the compute nodes in the compute.com.azure.core.http.rest.PagedIterable<AmlComputeNodeInformation>listNodes(com.azure.core.util.Context context) Get the details (e.g IP address, port etc) of all the compute nodes in the compute.location()Gets the location property: Specifies the location of the resource.name()Gets the name property: The name of the resource.Gets the properties property: Compute properties.refresh()Refreshes the resource to sync with Azure.refresh(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.com.azure.core.management.Regionregion()Gets the region of the resource.Gets the name of the resource region.Gets the name of the resource group.voidrestart()Posts a restart action to a compute instance.voidrestart(com.azure.core.util.Context context) Posts a restart action to a compute instance.sku()Gets the sku property: The sku of the workspace.voidstart()Posts a start action to a compute instance.voidstart(com.azure.core.util.Context context) Posts a start action to a compute instance.voidstop()Posts a stop action to a compute instance.voidstop(com.azure.core.util.Context context) Posts a stop action to a compute instance.com.azure.core.management.SystemDataGets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.tags()Gets the tags property: Contains resource tags defined as key/value pairs.type()Gets the type property: The type of the resource.update()Begins update for the ComputeResource resource.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
identity
ManagedServiceIdentity identity()Gets the identity property: The identity of the resource.- Returns:
- the identity value.
-
location
String location()Gets the location property: Specifies the location of the resource.- Returns:
- the location value.
-
tags
Gets the tags property: Contains resource tags defined as key/value pairs.- Returns:
- the tags value.
-
sku
Sku sku()Gets the sku property: The sku of the workspace.- Returns:
- the sku value.
-
systemData
com.azure.core.management.SystemData systemData()Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
properties
Compute properties()Gets the properties property: Compute properties.- Returns:
- the properties value.
-
region
com.azure.core.management.Region region()Gets the region of the resource.- Returns:
- the region of the resource.
-
regionName
String regionName()Gets the name of the resource region.- Returns:
- the name of the resource region.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
ComputeResourceInner innerModel()Gets the inner com.azure.resourcemanager.machinelearning.fluent.models.ComputeResourceInner object.- Returns:
- the inner object.
-
update
ComputeResource.Update update()Begins update for the ComputeResource resource.- Returns:
- the stage of resource update.
-
refresh
ComputeResource refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context- The context to associate with this operation.- Returns:
- the refreshed resource.
-
listNodes
com.azure.core.http.rest.PagedIterable<AmlComputeNodeInformation> listNodes()Get the details (e.g IP address, port etc) of all the compute nodes in the compute.- Returns:
- the details (e.g IP address, port etc) of all the compute nodes in the compute as paginated response with
PagedIterable. - Throws:
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.
-
listNodes
com.azure.core.http.rest.PagedIterable<AmlComputeNodeInformation> listNodes(com.azure.core.util.Context context) Get the details (e.g IP address, port etc) of all the compute nodes in the compute.- Parameters:
context- The context to associate with this operation.- Returns:
- the details (e.g IP address, port etc) of all the compute nodes in the compute 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.
-
listKeysWithResponse
com.azure.core.http.rest.Response<ComputeSecrets> listKeysWithResponse(com.azure.core.util.Context context) Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).- Parameters:
context- The context to associate with this operation.- Returns:
- secrets related to Machine Learning compute (storage keys, service credentials, etc) 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.
-
listKeys
ComputeSecrets listKeys()Gets secrets related to Machine Learning compute (storage keys, service credentials, etc).- Returns:
- secrets related to Machine Learning compute (storage keys, service credentials, etc).
- Throws:
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()Posts a start action to a compute instance.- Throws:
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(com.azure.core.util.Context context) Posts a start action to a compute instance.- Parameters:
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.
-
stop
void stop()Posts a stop action to a compute instance.- Throws:
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(com.azure.core.util.Context context) Posts a stop action to a compute instance.- Parameters:
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.
-
restart
void restart()Posts a restart action to a compute instance.- Throws:
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(com.azure.core.util.Context context) Posts a restart action to a compute instance.- Parameters:
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.
-