azure-docs-sdk-java/docs-ref-autogen/com.azure.resourcemanager.c...

191 строка
12 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.compute.models.Disk"
fullName: "com.azure.resourcemanager.compute.models.Disk"
name: "Disk"
nameWithType: "Disk"
summary: "An immutable client-side representation of an Azure managed disk."
syntax: "public interface **Disk**</br> extends <xref href=\"com.azure.resourcemanager.resources.fluentcore.arm.models.GroupableResource?alt=com.azure.resourcemanager.resources.fluentcore.arm.models.GroupableResource&text=GroupableResource\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.compute.ComputeManager?alt=com.azure.resourcemanager.compute.ComputeManager&text=ComputeManager\" data-throw-if-not-resolved=\"False\" />,<xref href=\"com.azure.resourcemanager.compute.fluent.models.DiskInner?alt=com.azure.resourcemanager.compute.fluent.models.DiskInner&text=DiskInner\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.resourcemanager.resources.fluentcore.model.Refreshable?alt=com.azure.resourcemanager.resources.fluentcore.model.Refreshable&text=Refreshable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.compute.models.Disk?alt=com.azure.resourcemanager.compute.models.Disk&text=Disk\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.resourcemanager.resources.fluentcore.model.Updatable?alt=com.azure.resourcemanager.resources.fluentcore.model.Updatable&text=Updatable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.compute.models.Disk.Update?alt=com.azure.resourcemanager.compute.models.Disk.Update&text=Update\" data-throw-if-not-resolved=\"False\" />&gt;"
methods:
- uid: "com.azure.resourcemanager.compute.models.Disk.availabilityZones()"
fullName: "com.azure.resourcemanager.compute.models.Disk.availabilityZones()"
name: "availabilityZones()"
nameWithType: "Disk.availabilityZones()"
modifiers:
- "abstract"
syntax: "public abstract Set<AvailabilityZoneId> availabilityZones()"
returns:
description: "the availability zones assigned to the disk"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Set.html\">Set</a>&lt;<xref href=\"com.azure.resourcemanager.resources.fluentcore.arm.AvailabilityZoneId?alt=com.azure.resourcemanager.resources.fluentcore.arm.AvailabilityZoneId&text=AvailabilityZoneId\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.resourcemanager.compute.models.Disk.creationMethod()"
fullName: "com.azure.resourcemanager.compute.models.Disk.creationMethod()"
name: "creationMethod()"
nameWithType: "Disk.creationMethod()"
modifiers:
- "abstract"
syntax: "public abstract DiskCreateOption creationMethod()"
returns:
description: "the disk creation method"
type: "<xref href=\"com.azure.resourcemanager.compute.models.DiskCreateOption?alt=com.azure.resourcemanager.compute.models.DiskCreateOption&text=DiskCreateOption\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Disk.encryption()"
fullName: "com.azure.resourcemanager.compute.models.Disk.encryption()"
name: "encryption()"
nameWithType: "Disk.encryption()"
modifiers:
- "abstract"
syntax: "public abstract Encryption encryption()"
returns:
description: "the disk encryption"
type: "<xref href=\"com.azure.resourcemanager.compute.models.Encryption?alt=com.azure.resourcemanager.compute.models.Encryption&text=Encryption\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Disk.encryptionSettings()"
fullName: "com.azure.resourcemanager.compute.models.Disk.encryptionSettings()"
name: "encryptionSettings()"
nameWithType: "Disk.encryptionSettings()"
modifiers:
- "abstract"
syntax: "public abstract EncryptionSettingsCollection encryptionSettings()"
returns:
description: "the disk encryption settings"
type: "<xref href=\"com.azure.resourcemanager.compute.models.EncryptionSettingsCollection?alt=com.azure.resourcemanager.compute.models.EncryptionSettingsCollection&text=EncryptionSettingsCollection\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Disk.grantAccess(int)"
fullName: "com.azure.resourcemanager.compute.models.Disk.grantAccess(int accessDurationInSeconds)"
name: "grantAccess(int accessDurationInSeconds)"
nameWithType: "Disk.grantAccess(int accessDurationInSeconds)"
summary: "Grants access to the disk."
modifiers:
- "abstract"
parameters:
- description: "the access duration in seconds"
name: "accessDurationInSeconds"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract String grantAccess(int accessDurationInSeconds)"
desc: "Grants access to the disk."
returns:
description: "the read-only SAS URI to the disk"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.compute.models.Disk.grantAccessAsync(int)"
fullName: "com.azure.resourcemanager.compute.models.Disk.grantAccessAsync(int accessDurationInSeconds)"
name: "grantAccessAsync(int accessDurationInSeconds)"
nameWithType: "Disk.grantAccessAsync(int accessDurationInSeconds)"
summary: "Grants access to the disk asynchronously."
modifiers:
- "abstract"
parameters:
- description: "the access duration in seconds"
name: "accessDurationInSeconds"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract Mono<String> grantAccessAsync(int accessDurationInSeconds)"
desc: "Grants access to the disk asynchronously."
returns:
description: "a representation of the deferred computation of this call returning a read-only SAS URI to the disk"
type: "<a href=\"https://projectreactor.io/docs/core/release/api/reactor/core/publisher/Mono.html\">Mono</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>&gt;"
- uid: "com.azure.resourcemanager.compute.models.Disk.isAttachedToVirtualMachine()"
fullName: "com.azure.resourcemanager.compute.models.Disk.isAttachedToVirtualMachine()"
name: "isAttachedToVirtualMachine()"
nameWithType: "Disk.isAttachedToVirtualMachine()"
modifiers:
- "abstract"
syntax: "public abstract boolean isAttachedToVirtualMachine()"
returns:
description: "true if the disk is attached to a virtual machine, otherwise false"
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Disk.isHibernationSupported()"
fullName: "com.azure.resourcemanager.compute.models.Disk.isHibernationSupported()"
name: "isHibernationSupported()"
nameWithType: "Disk.isHibernationSupported()"
modifiers:
- "abstract"
syntax: "public abstract boolean isHibernationSupported()"
returns:
description: "whether the OS on a disk supports hibernation."
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Disk.osType()"
fullName: "com.azure.resourcemanager.compute.models.Disk.osType()"
name: "osType()"
nameWithType: "Disk.osType()"
modifiers:
- "abstract"
syntax: "public abstract OperatingSystemTypes osType()"
returns:
description: "the type of the operating system on the disk"
type: "<xref href=\"com.azure.resourcemanager.compute.models.OperatingSystemTypes?alt=com.azure.resourcemanager.compute.models.OperatingSystemTypes&text=OperatingSystemTypes\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Disk.revokeAccess()"
fullName: "com.azure.resourcemanager.compute.models.Disk.revokeAccess()"
name: "revokeAccess()"
nameWithType: "Disk.revokeAccess()"
summary: "Revokes access granted to the disk."
modifiers:
- "abstract"
syntax: "public abstract void revokeAccess()"
desc: "Revokes access granted to the disk."
- uid: "com.azure.resourcemanager.compute.models.Disk.revokeAccessAsync()"
fullName: "com.azure.resourcemanager.compute.models.Disk.revokeAccessAsync()"
name: "revokeAccessAsync()"
nameWithType: "Disk.revokeAccessAsync()"
summary: "Revokes access granted to the disk asynchronously."
modifiers:
- "abstract"
syntax: "public abstract Mono<Void> revokeAccessAsync()"
desc: "Revokes access granted to the disk asynchronously."
returns:
description: "a representation of the deferred computation of this call"
type: "<a href=\"https://projectreactor.io/docs/core/release/api/reactor/core/publisher/Mono.html\">Mono</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html\">Void</a>&gt;"
- uid: "com.azure.resourcemanager.compute.models.Disk.sizeInByte()"
fullName: "com.azure.resourcemanager.compute.models.Disk.sizeInByte()"
name: "sizeInByte()"
nameWithType: "Disk.sizeInByte()"
modifiers:
- "abstract"
syntax: "public abstract long sizeInByte()"
returns:
description: "disk size in byte"
type: "<xref href=\"long?alt=long&text=long\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Disk.sizeInGB()"
fullName: "com.azure.resourcemanager.compute.models.Disk.sizeInGB()"
name: "sizeInGB()"
nameWithType: "Disk.sizeInGB()"
modifiers:
- "abstract"
syntax: "public abstract int sizeInGB()"
returns:
description: "disk size in GB"
type: "<xref href=\"int?alt=int&text=int\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Disk.sku()"
fullName: "com.azure.resourcemanager.compute.models.Disk.sku()"
name: "sku()"
nameWithType: "Disk.sku()"
modifiers:
- "abstract"
syntax: "public abstract DiskSkuTypes sku()"
returns:
description: "the disk SKU"
type: "<xref href=\"com.azure.resourcemanager.compute.models.DiskSkuTypes?alt=com.azure.resourcemanager.compute.models.DiskSkuTypes&text=DiskSkuTypes\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Disk.source()"
fullName: "com.azure.resourcemanager.compute.models.Disk.source()"
name: "source()"
nameWithType: "Disk.source()"
modifiers:
- "abstract"
syntax: "public abstract CreationSource source()"
returns:
description: "the details of the source from which the disk is created"
type: "<xref href=\"com.azure.resourcemanager.compute.models.CreationSource?alt=com.azure.resourcemanager.compute.models.CreationSource&text=CreationSource\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Disk.virtualMachineId()"
fullName: "com.azure.resourcemanager.compute.models.Disk.virtualMachineId()"
name: "virtualMachineId()"
nameWithType: "Disk.virtualMachineId()"
modifiers:
- "abstract"
syntax: "public abstract String virtualMachineId()"
returns:
description: "the resource ID of the virtual machine this disk is attached to, or null if the disk is in a detached\n state"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
type: "interface"
desc: "An immutable client-side representation of an Azure managed disk."
implements:
- "<xref href=\"com.azure.resourcemanager.resources.fluentcore.arm.models.GroupableResource?alt=com.azure.resourcemanager.resources.fluentcore.arm.models.GroupableResource&text=GroupableResource\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.compute.ComputeManager?alt=com.azure.resourcemanager.compute.ComputeManager&text=ComputeManager\" data-throw-if-not-resolved=\"False\" />,<xref href=\"com.azure.resourcemanager.compute.fluent.models.DiskInner?alt=com.azure.resourcemanager.compute.fluent.models.DiskInner&text=DiskInner\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.resourcemanager.resources.fluentcore.model.Refreshable?alt=com.azure.resourcemanager.resources.fluentcore.model.Refreshable&text=Refreshable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.compute.models.Disk?alt=com.azure.resourcemanager.compute.models.Disk&text=Disk\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.resourcemanager.resources.fluentcore.model.Updatable?alt=com.azure.resourcemanager.resources.fluentcore.model.Updatable&text=Updatable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.compute.models.Disk.Update?alt=com.azure.resourcemanager.compute.models.Disk.Update&text=Update\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.resourcemanager.compute.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.24.0