com.vmware.appliance.system package¶
Submodules¶
com.vmware.appliance.system.security_client module¶
-
class
com.vmware.appliance.system.security_client.
GlobalFips
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
The
GlobalFips
class provides methods to enable/disable appliance FIPS mode.- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
class
Info
(enabled=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
enabled (
bool
) – FIPS setting state.
-
class
UpdateSpec
(enabled=None)¶ Bases:
vmware.vapi.bindings.struct.VapiStruct
Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
enabled (
bool
orNone
) – FIPS setting state. If None, the value is unchanged.
-
get
()¶ Get current appliance FIPS settings.
- Return type
- Returns
Current FIPS settings state.
- Raise
com.vmware.vapi.std.errors_client.Error
Generic error
-
update
(spec)¶ Enable/Disable Global FIPS mode for the appliance.
- Parameters
spec (
GlobalFips.UpdateSpec
) –- Raise
com.vmware.vapi.std.errors_client.Error
Generic error
-
class
com.vmware.appliance.system.security_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
com.vmware.appliance.system.time_client module¶
-
class
com.vmware.appliance.system.time_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize 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.VapiInterface
The
Timezone
class 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.Error
if 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.InvalidArgument
if passed arguments are invalid.- Raise
com.vmware.vapi.std.errors_client.Error
if any error occurs during the execution of the operation.