Class ScalingPolicyService#

Nested Relationships#

Nested Types#

Inheritance Relationships#

Base Type#

Class Documentation#

class xbe.sdk.Services.ScalingPolicyService : xbe.sdk.ServiceBase#

Public Functions

ScalingPolicyService ()#
Task<List<ScalingPolicy>> FindAll (Dictionary<string, string> query = null)#

Retrieves a list of objects matching the specified search parameters.

Param query:

A map of property names to values to search for.

Return:

A task whose result is a list of objects matching the specified search parameters.

Task<List<ScalingPolicy>> FindAllByZoneUid (Guid zoneUid, Dictionary<string, string> query = null)#

Retrieves a list of objects belonging to the given zone and matching the specified search parameters.

Param zoneUid:

The uid of the zone whose policies will be searched.

Param query:

A map of property names to values to search for.

Return:

A task whose result is a list of objects matching the specified search parameters.

Task<List<ScalingPolicy>> FindPreferredByZoneUid (Guid zoneUid, Dictionary<string, string> query = null)#

Retrieves a list of policies belonging to the given zone and matching the specified search parameters that are most preferred for the authenticated user,.

Param zoneUid:

The uid of the zone whose policies will be searched.

Param query:

A map of property names to values to search for.

Return:

A task whose result is a list of objects matching the specified search parameters.

async Task<long> CountByZoneUid (Guid zoneUid, Dictionary<string, string> query = null)#

Retrieves the total number of objects belonging to the given zone and matching the specified search parameters.

Param zoneUid:

The uid of the zone whose policies will be counted.

Param query:

A map of property names to values to search for.

Return:

A task whose result is the number of objects matching the specified search parameters.

Task<ScalingPolicy> FindById (string id)#

Retrieves an instance of ScalingPolicy with the specified unique identifier.

Param id:

The id value which uniquely identifies the object.

Return:

A task whose result is the object with the specified identifier if found.

Task<ScalingPolicy> Join (string id)#

Attempts to have the logged in user join the policy with the specified identifier.

Param id:

value of the policy to join.

Return:

A task whose result is the object with the specified identifier if joined.

Task Leave (string id)#

Attempts to have the logged in user leave the policy with the specified identifier.

Param id:

The id value which uniquely identifies the object.

Return:

A task.

Task<ScalingPolicy> Update (string id, ScalingPolicy obj)#

Updates an existing instance of ScalingPolicy, storing the object on the remote service and returning the final result.

Param id:

The id value which uniquely identifies the object.

Param obj:

<The object to update with the remote service./param>

Return:

A task whose result is the final object as it was persisted with the remote service.

Task<ScalingPolicy> UpdateHeartbeat (string id)#

Retrieves an instance of ScalingPolicy with the specified unique identifier and updates heartbeat.

Param id:

The id value which uniquely identifies the object.

Return:

A task whose result is the object with the specified identifier if found.

class Zone#