com.vmware.nsx.upgrade package¶
Submodules¶
com.vmware.nsx.upgrade.bundles_client module¶
-
class
com.vmware.nsx.upgrade.bundles_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.nsx.upgrade.bundles_client.
UploadStatus
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
get
(bundle_id)¶ Get uploaded upgrade bundle upload status
- Parameters
bundle_id (
str
) – (required)- Return type
- Returns
com.vmware.nsx.model.UpgradeBundleUploadStatus
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
com.vmware.nsx.upgrade.eula_client module¶
-
class
com.vmware.nsx.upgrade.eula_client.
Accept
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
create
()¶ Accept end user license agreement
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx.upgrade.eula_client.
Acceptance
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
get
()¶ Return the acceptance status of end user license agreement
- Return type
- Returns
com.vmware.nsx.model.EULAAcceptance
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx.upgrade.eula_client.
Content
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
get
(cursor=None, format=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Return the content of end user license agreement in the specified format. By default, it’s pure string without line break
- Parameters
cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)format (
str
orNone
) – End User License Agreement content output format (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx.model.EULAContent
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx.upgrade.eula_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.nsx.upgrade.plan_client module¶
-
class
com.vmware.nsx.upgrade.plan_client.
Settings
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
get
(component_type)¶ Get the upgrade plan settings for the component.
- Parameters
component_type (
str
) – (required)- Return type
- Returns
com.vmware.nsx.model.UpgradePlanSettings
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(component_type, upgrade_plan_settings)¶ Update the upgrade plan settings for the component.
- Parameters
component_type (
str
) – (required)upgrade_plan_settings (
com.vmware.nsx.model_client.UpgradePlanSettings
) – (required)
- Return type
- Returns
com.vmware.nsx.model.UpgradePlanSettings
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx.upgrade.plan_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.nsx.upgrade.upgrade_unit_groups_client module¶
-
class
com.vmware.nsx.upgrade.upgrade_unit_groups_client.
AggregateInfo
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
list
(component_type=None, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None, summary=None, sync=None)¶ Return aggregate information of all upgrade unit groups
- Parameters
component_type (
str
orNone
) – Component type based on which upgrade unit groups to be filtered (optional)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)summary (
bool
orNone
) – Flag indicating whether to return summary (optional, default to false)sync (
bool
orNone
) – Synchronize before returning upgrade unit groups (optional, default to false)
- Return type
com.vmware.nsx.model_client.UpgradeUnitGroupAggregateInfoListResult
- Returns
com.vmware.nsx.model.UpgradeUnitGroupAggregateInfoListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx.upgrade.upgrade_unit_groups_client.
Status
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
list
(group_id, cursor=None, has_errors=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Get upgrade status for group
- Parameters
group_id (
str
) – (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)has_errors (
bool
orNone
) – Flag to indicate whether to return only upgrade units with errors (optional, default to false)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx.model.UpgradeUnitStatusListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx.upgrade.upgrade_unit_groups_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.nsx.upgrade.upgrade_unit_groups_client.
UpgradeUnit
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
reorder
(group_id, upgrade_unit_id, reorder_request)¶ Reorder an upgrade unit within the upgrade unit group
- Parameters
group_id (
str
) – (required)upgrade_unit_id (
str
) – (required)reorder_request (
com.vmware.nsx.model_client.ReorderRequest
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
com.vmware.nsx.upgrade.upgrade_units_client module¶
-
class
com.vmware.nsx.upgrade.upgrade_units_client.
AggregateInfo
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
LIST_SELECTION_STATUS_ALL
= 'ALL'¶ Possible value for
selectionStatus
of methodAggregateInfo.list()
.
-
LIST_SELECTION_STATUS_DESELECTED
= 'DESELECTED'¶ Possible value for
selectionStatus
of methodAggregateInfo.list()
.
-
LIST_SELECTION_STATUS_SELECTED
= 'SELECTED'¶ Possible value for
selectionStatus
of methodAggregateInfo.list()
.
-
list
(component_type=None, cursor=None, group_id=None, has_errors=None, included_fields=None, metadata=None, page_size=None, selection_status=None, sort_ascending=None, sort_by=None)¶ Get upgrade units aggregate-info
- Parameters
component_type (
str
orNone
) – Component type based on which upgrade units to be filtered (optional)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)group_id (
str
orNone
) – Identifier of group based on which upgrade units to be filtered (optional)has_errors (
bool
orNone
) – Flag to indicate whether to return only upgrade units with errors (optional, default to false)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)metadata (
str
orNone
) – Metadata about upgrade unit to filter on (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)selection_status (
str
orNone
) – Flag to indicate whether to return only selected, only deselected or both type of upgrade units (optional, default to ALL)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
com.vmware.nsx.model_client.UpgradeUnitAggregateInfoListResult
- Returns
com.vmware.nsx.model.UpgradeUnitAggregateInfoListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx.upgrade.upgrade_units_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance