solidfire.adaptor package¶
Submodules¶
solidfire.adaptor.schedule_adaptor module¶
Module implements Schedule Simplification conversion logic.
-
class
solidfire.adaptor.schedule_adaptor.
ScheduleAdaptor
[source]¶ This class contains the implementation of the schedule specific adaptor calls for simplifying Snapshot Scheduling.
-
static
create_schedule
(element, params, since, deprecated)[source]¶ Calls to this static method should ONLY originate from the create_schedules method in the Element class. DO NOT CALL THIS directly. Documentation here is intentionally brief.
-
static
get_schedule
(element, params, since, deprecated)[source]¶ Calls to this static method should ONLY originate from the get_schedule method in the Element class. DO NOT CALL THIS directly. Documentation here is intentionally brief.
-
static
list_schedules
(element, params, since, deprecated)[source]¶ Calls to this static method should ONLY originate from the list_schedules method in the Element class. DO NOT CALL THIS directly. Documentation here is intentionally brief.
-
static
modify_schedule
(element, params, since, deprecated)[source]¶ Calls to this static method should ONLY originate from the modify_schedules method in the Element class. DO NOT CALL THIS directly. Documentation here is intentionally brief.
-
static
to_api_schedule
(schedule)[source]¶ Converts a Schedule object into an ApiSchedule object :param schedule: the Schedule object :type schedule: Schedule
Returns: solidfire.apiactual.ApiSchedule
-
static
to_api_schedule_info
(info)[source]¶ Converts a ScheduleInfo object into an ApiScheduleInfo object
Parameters: info (ScheduleInfo) – the ScheduleInfo object Returns: solidfire.apiactual.ApiScheduleInfo
-
static
to_schedule
(api)[source]¶ Converts an ApiSchedule object into a Schedule object
Parameters: api (solidfire.apiactual.ApiSchedule) – the ApiSchedule object to be converted Returns: solidfire.models.Schedule
-
static
to_schedule_info
(api)[source]¶ Convert an ApiScheduleInfo object into a ScheduleInfo object
Parameters: api (solidfire.apiactual.ApiScheduleInfo) – the ApiScheduleInfo object Returns: solidfire.models.ScheduleInfo
-
static
to_weekdays
(api)[source]¶ Converts an ApiWeekday object array into a Weekday object array
Parameters: api (solidfire.apiactual.ApiWeekday[]) – array of ApiWeekday objects Returns: solidfire.custom.models.Weekday[]
-
static
Module contents¶
Module implements the generated adaptor calls from solidfire.Element
-
class
solidfire.adaptor.
ElementServiceAdaptor
[source]¶ Bases:
object
This class contains the implementation of the generated adaptor calls from solidfire.Element.
-
static
create_schedule
(element, params, since, deprecated)[source]¶ Calls to this static method should ONLY originate from the create_schedules method in the Element class. DO NOT CALL THIS directly. Documentation here is intentionally brief.
-
static
get_node_stats
(element, params, since, deprecated)[source]¶ This adaptor includes the original Node ID from the request in the response object. It is returned as null from the original API call.
Parameters: - element (Element) – an instance of Element
- params (dict) – the parameters supplied to the get_node_stats call
- since (float or str or None) – service method inception version
- deprecated (float or str or None) – service method deprecation version
Returns: a response
Return type:
-
static
get_schedule
(element, params, since, deprecated)[source]¶ Calls to this static method should ONLY originate from the get_schedule method in the Element class. DO NOT CALL THIS directly. Documentation here is intentionally brief.
-
static