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.VapiInterfaceThe
Providersclass 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.Parameters: config ( vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.-
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.VapiStructThe
Providers.Infoclass 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.
Parameters: - last_sync_time (
datetime.datetimeorNone) – Last sync time for the provider. This indicates the last time that either a background sync or a force sync was started for the provider. Warning: This attribute is available as technical preview. It may be changed in a future release. If None no sync was found for the provider. - status (
Providers.Status) – Last Sync status for the provider. Warning: This attribute is available as technical preview. It may be changed in a future release. - polling_interval_in_seconds (
long) – Sync Polling interval between local and remote replicas for the provider. Warning: This attribute is available as technical preview. It may be changed in a future release. - current_session_info (
Providers.SessionInfoorNone) – Returns information on the forced sync for the provider. Warning: This attribute is available as technical preview. It may be changed in a future release. If None there is no outstanding sync session created for this provider - status_message (
com.vmware.vapi.std_client.LocalizableMessage) – Localizable messages associated with sync status. Warning: This attribute is available as technical preview. It may be changed in a future release. This attribute is optional and it is only relevant when the value ofstatusisProviders.Status.FAILED.
- last_sync_time (
-
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.VapiStructThe
Providers.SessionInfoclass 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.
Parameters: - stage (
Providers.SessionInfo.Stage) – Sync stage for the session. Warning: This attribute is available as technical preview. It may be changed in a future release. - completed_work (
long) – Completed work for the session. Warning: This attribute is available as technical preview. It may be changed in a future release. - total_work (
long) – Total work for the session. Warning: This attribute is available as technical preview. It may be changed in a future release. - completion_time (
datetime.datetime) – Time at which forced sync session was completed. Warning: This attribute is available as technical preview. It may be changed in a future release. If None there is an ongoing sync that has not completed - start_time (
datetime.datetime) – Time at which force sync was initiated. Warning: This attribute is available as technical preview. It may be changed in a future release. - exception (
com.vmware.vapi.std_client.LocalizableMessage) – Exception message if there is a sync failure on forced sync. Warning: This attribute is available as technical preview. It may be changed in a future release. This attribute is optional and it is only relevant when the value ofstageisProviders.SessionInfo.Stage.FAILED.
-
class
Stage(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Providers.SessionInfo.Stageclass 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.
Parameters: string ( str) – String value for theStageinstance.-
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.
-
- stage (
-
class
Status(string)¶ Bases:
vmware.vapi.bindings.enum.EnumThe
Providers.Statusclass 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.
Parameters: string ( str) – String value for theStatusinstance.-
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.VapiStructThe
Providers.Summaryclass 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.
Parameters: provider ( str) – Sync provider id. Warning: This attribute is available as technical preview. It may be changed in a future release. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.hvc.links.sync.Providers. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.hvc.links.sync.Providers.
-
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.Errorif the system reports an error while responding to the request.Raise: com.vmware.vapi.std.errors_client.NotFoundif the sync provider associated withproviderdoes not exist.Raise: com.vmware.vapi.std.errors_client.Unauthorizedif 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: listofProviders.SummaryReturns: The listof sync provider information.Raise: com.vmware.vapi.std.errors_client.ErrorIf list fails.Raise: com.vmware.vapi.std.errors_client.UnauthorizedIf 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.Errorif the system reports an error while responding to the request.Raise: com.vmware.vapi.std.errors_client.NotFoundif the link associated withlinkdoes not exist if the provider associated withprovideris not registered for syncRaise: com.vmware.vapi.std.errors_client.Unauthorizedif the user is not authorized to perform this operation.Raise: com.vmware.vapi.std.errors_client.ResourceBusyif a sync is already running.- link (
-
class
-
class
com.vmware.vcenter.hvc.links.sync_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
Parameters: stub_config ( vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance