Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DisksImpl

Package version

Class containing Disks operations.

Hierarchy

  • DisksImpl

Implements

Index

Constructors

constructor

Methods

beginCreateOrUpdate

beginCreateOrUpdateAndWait

  • Creates or updates a disk.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • diskName: string

      The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

    • disk: Disk

      Disk object supplied in the body of the Put disk operation.

    • Optional options: DisksCreateOrUpdateOptionalParams

      The options parameters.

    Returns Promise<DisksCreateOrUpdateResponse>

beginDelete

  • beginDelete(resourceGroupName: string, diskName: string, options?: DisksDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
  • Deletes a disk.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • diskName: string

      The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

    • Optional options: DisksDeleteOptionalParams

      The options parameters.

    Returns Promise<PollerLike<PollOperationState<void>, void>>

beginDeleteAndWait

  • Deletes a disk.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • diskName: string

      The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

    • Optional options: DisksDeleteOptionalParams

      The options parameters.

    Returns Promise<void>

beginGrantAccess

beginGrantAccessAndWait

  • Grants access to a disk.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • diskName: string

      The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

    • grantAccessData: GrantAccessData

      Access data object supplied in the body of the get disk access operation.

    • Optional options: DisksGrantAccessOptionalParams

      The options parameters.

    Returns Promise<DisksGrantAccessResponse>

beginRevokeAccess

  • beginRevokeAccess(resourceGroupName: string, diskName: string, options?: DisksRevokeAccessOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>
  • Revokes access to a disk.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • diskName: string

      The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

    • Optional options: DisksRevokeAccessOptionalParams

      The options parameters.

    Returns Promise<PollerLike<PollOperationState<void>, void>>

beginRevokeAccessAndWait

  • Revokes access to a disk.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • diskName: string

      The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

    • Optional options: DisksRevokeAccessOptionalParams

      The options parameters.

    Returns Promise<void>

beginUpdate

  • Updates (patches) a disk.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • diskName: string

      The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

    • disk: DiskUpdate

      Disk object supplied in the body of the Patch disk operation.

    • Optional options: DisksUpdateOptionalParams

      The options parameters.

    Returns Promise<PollerLike<PollOperationState<DisksUpdateResponse>, DisksUpdateResponse>>

beginUpdateAndWait

  • Updates (patches) a disk.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • diskName: string

      The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

    • disk: DiskUpdate

      Disk object supplied in the body of the Patch disk operation.

    • Optional options: DisksUpdateOptionalParams

      The options parameters.

    Returns Promise<DisksUpdateResponse>

get

  • Gets information about a disk.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • diskName: string

      The name of the managed disk that is being created. The name can't be changed after the disk is created. Supported characters for the name are a-z, A-Z, 0-9 and _. The maximum name length is 80 characters.

    • Optional options: DisksGetOptionalParams

      The options parameters.

    Returns Promise<DisksGetResponse>

list

listByResourceGroup

Generated using TypeDoc