com.cloudbees.api
Class CBAccount

java.lang.Object
  extended by com.cloudbees.api.CBAccount

public class CBAccount
extends Object

Represents an account in the CloudBees platform.m

An account is a unit of billing.

Author:
Kohsuke Kawaguchi

Field Summary
 List<CBSubscription> subscriptions
           
 
Constructor Summary
CBAccount()
           
 
Method Summary
 CBSubscription addSubscription(CBSubscription sub)
          Adds the new subscription to the user.
 CBSubscription addSubscription(String userid, CBSubscription sub)
          Deprecated. Use addSubscription(CBSubscription) when it's ready
 CBUser addUser(CBUser user)
           
 List<CBSubscription> getSubscriptions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subscriptions

public List<CBSubscription> subscriptions
Constructor Detail

CBAccount

public CBAccount()
Method Detail

addUser

public CBUser addUser(CBUser user)
               throws IOException
Throws:
IOException

addSubscription

public CBSubscription addSubscription(CBSubscription sub)
                               throws IOException
Adds the new subscription to the user.

Throws:
IOException

addSubscription

public CBSubscription addSubscription(String userid,
                                      CBSubscription sub)
                               throws IOException
Deprecated. Use addSubscription(CBSubscription) when it's ready

Throws:
IOException

getSubscriptions

public List<CBSubscription> getSubscriptions()
                                      throws IOException
Throws:
IOException


Copyright © 2011-2012. All Rights Reserved.