com.vmware.vcenter.hvc.links package¶
Submodules¶
com.vmware.vcenter.hvc.links.sync_client module¶
-
class
com.vmware.vcenter.hvc.links.sync_client.
Providers
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
The
Providers
class provides methods to create a sync session, get information on Sync. Warning: This class is available as technical preview. It may be changed in a future release.-
class
Info
(last_sync_time=None, status=None, polling_interval_in_seconds=None, current_session_info=None, status_message=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
The
Providers.Info
class contains information about sync for a provider. Warning: This class is available as technical preview. It may be changed in a future release.Tip
The arguments are used to initialize data attributes with the same names.
-
RESOURCE_TYPE
= 'com.vmware.vcenter.hvc.links.sync.Providers'¶ Resource type for Sync Providers. Warning: This class attribute is available as technical preview. It may be changed in a future release.
-
class
SessionInfo
(stage=None, completed_work=None, total_work=None, completion_time=None, start_time=None, exception=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
The
Providers.SessionInfo
class contains sync session information. Warning: This class is available as technical preview. It may be changed in a future release.Tip
The arguments are used to initialize data attributes with the same names.
-
class
Stage
(string)¶ Bases:
vmware.vapi.bindings.enum.Enum
The
Providers.SessionInfo.Stage
class defines the different stages of Sync. Warning: This enumeration is available as technical preview. It may be changed in a future release.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
-
CHANGE_APPLICATION
= Stage(string='CHANGE_APPLICATION')¶ Changes are being applied to the destination replica. Warning: This class attribute is available as technical preview. It may be changed in a future release.
-
CHANGE_DETECTION
= Stage(string='CHANGE_DETECTION')¶ Changes are being detected on the source replica. Warning: This class attribute is available as technical preview. It may be changed in a future release.
-
CHANGE_ENUMERATION
= Stage(string='CHANGE_ENUMERATION')¶ Changes from the source replica are being enumerated. Warning: This class attribute is available as technical preview. It may be changed in a future release.
-
COMPLETED
= Stage(string='COMPLETED')¶ Sync has completed. Warning: This class attribute is available as technical preview. It may be changed in a future release.
-
FAILED
= Stage(string='FAILED')¶ Sync failed. Warning: This class attribute is available as technical preview. It may be changed in a future release.
-
WAITING
= Stage(string='WAITING')¶ Session is waiting for progress to be set. Warning: This class attribute is available as technical preview. It may be changed in a future release.
-
-
class
-
class
Status
(string)¶ Bases:
vmware.vapi.bindings.enum.Enum
The
Providers.Status
class defines valid sync status. Warning: This enumeration is available as technical preview. It may be changed in a future release.Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
-
FAILED
= Status(string='FAILED')¶ If Sync failed. Warning: This class attribute is available as technical preview. It may be changed in a future release.
-
NO_SYNC_FOUND
= Status(string='NO_SYNC_FOUND')¶ If Sync has not been triggered. Warning: This class attribute is available as technical preview. It may be changed in a future release.
-
SUCCEEDED
= Status(string='SUCCEEDED')¶ If Sync was successful. Warning: This class attribute is available as technical preview. It may be changed in a future release.
-
-
class
Summary
(provider=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
The
Providers.Summary
class contains information about a provider. Warning: This class is available as technical preview. It may be changed in a future release.Tip
The arguments are used to initialize data attributes with the same names.
-
get
(link, provider)¶ Gets Sync information for a sync provider. Warning: This method is available as technical preview. It may be changed in a future release.
Parameters: - link (
str
) – Unique identifier of the link The parameter must be an identifier for the resource type:com.vmware.vcenter.hvc.Links
. - provider (
str
) – Unique identifier of the sync provider. The parameter must be an identifier for the resource type:com.vmware.vcenter.hvc.sync.Providers
.
Return type: Returns: The Info of sync information for the provider.
Raise: com.vmware.vapi.std.errors_client.Error
If get fails.Raise: com.vmware.vapi.std.errors_client.NotFound
If the sync provider associated withprovider
does not exist.Raise: com.vmware.vapi.std.errors_client.Unauthorized
If the user is not authorized to perform this operation.- link (
-
list
(link)¶ Enumerates the sync providers. Warning: This method is available as technical preview. It may be changed in a future release.
Parameters: link ( str
) – Unique identifier of the link The parameter must be an identifier for the resource type:com.vmware.vcenter.hvc.Links
.Return type: list
ofProviders.Summary
Returns: The list
of sync provider information.Raise: com.vmware.vapi.std.errors_client.Error
If list fails.Raise: com.vmware.vapi.std.errors_client.Unauthorized
If the user is not authorized to perform this operation.
-
start
(link, provider)¶ Initiates synchronization between the local and remote replicas for the sync provider. Warning: This method is available as technical preview. It may be changed in a future release.
Parameters: - link (
str
) – Unique identifier of the link The parameter must be an identifier for the resource type:com.vmware.vcenter.hvc.Links
. - provider (
str
) – Unique identifier representing the sync provider The parameter must be an identifier for the resource type:com.vmware.vcenter.hvc.sync.Providers
.
Raise: com.vmware.vapi.std.errors_client.Error
If sync fails.Raise: com.vmware.vapi.std.errors_client.NotFound
If the link associated withlink
does not exist If the provider associated withprovider
is not registered for syncRaise: com.vmware.vapi.std.errors_client.Unauthorized
If the user is not authorized to perform this operation.Raise: com.vmware.vapi.std.errors_client.ResourceBusy
If a sync is already running.- link (
-
class
-
class
com.vmware.vcenter.hvc.links.sync_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase