Interface ComputeResource


public interface ComputeResource
An immutable client-side representation of ComputeResource.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The entirety of the ComputeResource definition.
    static interface 
    The ComputeResource definition stages.
    static interface 
    The template for ComputeResource update.
    static interface 
    The ComputeResource update stages.
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
    Gets the id property: Fully qualified resource Id for the resource.
    Gets the identity property: The identity of the resource.
    Gets the inner com.azure.resourcemanager.machinelearning.fluent.models.ComputeResourceInner object.
    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.
    Gets the location property: Specifies the location of the resource.
    Gets the name property: The name of the resource.
    Gets the properties property: Compute properties.
    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.Region
    Gets the region of the resource.
    Gets the name of the resource region.
    Gets the name of the resource group.
    void
    Posts a restart action to a compute instance.
    void
    restart(com.azure.core.util.Context context)
    Posts a restart action to a compute instance.
    sku()
    Gets the sku property: The sku of the workspace.
    void
    Posts a start action to a compute instance.
    void
    start(com.azure.core.util.Context context)
    Posts a start action to a compute instance.
    void
    Posts a stop action to a compute instance.
    void
    stop(com.azure.core.util.Context context)
    Posts a stop action to a compute instance.
    com.azure.core.management.SystemData
    Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Gets the tags property: Contains resource tags defined as key/value pairs.
    Gets the type property: The type of the resource.
    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

      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

      Map<String,String> 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

      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

      ComputeResource refresh(com.azure.core.util.Context context)
      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.