Class ProjectClientImpl

java.lang.Object
com.eqixiac.equinix.core.client.ClientBase
com.eqixiac.equinix.core.client.ResourceClientBase<Project, ProjectJson>
com.eqixiac.equinix.projects.client.internal.implementation.ProjectClientImpl
All Implemented Interfaces:
Pageable<Project>, PageablePost<Project>, ProjectClient<Project>

public class ProjectClientImpl extends ResourceClientBase<Project, ProjectJson> implements ProjectClient<Project>
Internal client for the read-only Equinix Resource Manager projects endpoint (GET /resourceManager/v2/projects). The JSON model implements the public interface directly, so wrap(ProjectJson) is the identity. The limit/offset pagination parameters are supplied automatically by the SDK's paging machinery.
Author:
ianjones
  • Constructor Details

  • Method Details

    • wrap

      protected Project wrap(ProjectJson json)
      Description copied from class: ResourceClientBase
      Wraps a JSON model into its public model type, binding this client so the returned object can refresh/delete/page itself.
      Specified by:
      wrap in class ResourceClientBase<Project, ProjectJson>
      Parameters:
      json - the deserialized JSON model
      Returns:
      the public model wrapper
    • list

      public Page<ProjectJson> list(Boolean includePermissions, Boolean includeInbox)
      Description copied from interface: ProjectClient
      Retrieves a page of projects, optionally including permissions and inbox-classified projects.
      Specified by:
      list in interface ProjectClient<Project>
      Parameters:
      includePermissions - whether to include the user permissions on each project, or null for the default
      includeInbox - whether to include inbox-classified projects, or null for the default
      Returns:
      a page of projects