com.vmware.appliance.system package¶
Submodules¶
com.vmware.appliance.system.time_client module¶
-
class
com.vmware.appliance.system.time_client.StubFactory(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance
-
class
com.vmware.appliance.system.time_client.Timezone(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Timezoneclass provides methods to get and set the appliance timezone. This class was added in vSphere API 6.7.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
-
get()¶ Get time zone. This method was added in vSphere API 6.7.
- Return type
str- Returns
Time zone name.
- Raise
com.vmware.vapi.std.errors_client.Errorif timezone cannot be read.
-
set(name)¶ Set time zone. This method was added in vSphere API 6.7.
- Parameters
name (
str) – Time zone name.- Raise
com.vmware.vapi.std.errors_client.InvalidArgumentif passed arguments are invalid.- Raise
com.vmware.vapi.std.errors_client.Errorif any error occurs during the execution of the operation.