com.vmware.snapservice.clusters.virtual_machines package

Submodules

com.vmware.snapservice.clusters.virtual_machines.disks_client module

The com.vmware.snapservice.clusters.virtual_machines.disks_client module provides classes for managing virtual machine disks in a vSAN cluster.

class com.vmware.snapservice.clusters.virtual_machines.disks_client.Snapshots(config)

Bases: VapiInterface

The Snapshots class provides methods to manage snapshots for virtual disks.

Parameters:

config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.

class Info(disk_key=None, sequence_uuid=None, epoch=None, uri=None)

Bases: VapiStruct

Information regarding a virtual disk snapshot.

Tip

The arguments are used to initialize data attributes with the same names.

Parameters:
  • disk_key (long) – Identifier of the virtual disk this snapshot is for.

  • sequence_uuid (str) – A sequence UUID represents an “epoch sequence”. This is a stable UUID across epochs. In the event that the state of LWD becomes inconsistent (e.g. VM snapshot revert), a new sequence UUID is generated and the epoch counter is reset. The sequence UUID is a mechanism to ensure snapshots are consistent in linear time across epochs.

  • epoch (long) – An epoch represents the “logical time” of the snapshot, and is an unsigned integer that will be incremented by at least 1 every time a snapshot is taken.

  • uri (str) – Represents the vSAN native snapshot URI when native snapshots were created by LWD.

class com.vmware.snapservice.clusters.virtual_machines.disks_client.StubFactory(stub_config)

Bases: StubFactoryBase

Initialize StubFactoryBase

Parameters:

stub_config (vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance