Package com.sparkpost.model
Class SubaccountInfo
java.lang.Object
com.sparkpost.model.Base
com.sparkpost.model.SubaccountInfo
public class SubaccountInfo extends Base
DTO for storing a subaccount.
-
Field Summary
Fields Modifier and Type Field Description static StringMESSAGE_EVENTS_VIEW_GRANTstatic StringSENDING_DOMAIN_MANAGE_GRANTstatic StringSMTP_INJECTION_GRANTKey Grantsstatic StringSUPPRESSION_LISTS_MANAGE_GRANTstatic StringTRACKING_DOMAINS_MANAGE_GRANTstatic StringTRACKING_DOMAINS_VIEW_GRANTstatic StringTRANSMISSION_MODIFY_GRANTstatic StringTRANSMISSIONS_VIEW_GRANTstatic StringWEBHOOKS_MODIFY_GRANTstatic StringWEBHOOKS_VIEW_GRANT -
Constructor Summary
Constructors Constructor Description SubaccountInfo() -
Method Summary
Modifier and Type Method Description voidaddKeyGrant(String keyGrant)key_valid_ips array List of IP's that the initial subaccount API key can be used from.
-
Field Details
-
SMTP_INJECTION_GRANT
Key Grants- See Also:
- Constant Field Values
-
SENDING_DOMAIN_MANAGE_GRANT
- See Also:
- Constant Field Values
-
TRACKING_DOMAINS_VIEW_GRANT
- See Also:
- Constant Field Values
-
TRACKING_DOMAINS_MANAGE_GRANT
- See Also:
- Constant Field Values
-
MESSAGE_EVENTS_VIEW_GRANT
- See Also:
- Constant Field Values
-
SUPPRESSION_LISTS_MANAGE_GRANT
- See Also:
- Constant Field Values
-
TRANSMISSIONS_VIEW_GRANT
- See Also:
- Constant Field Values
-
TRANSMISSION_MODIFY_GRANT
- See Also:
- Constant Field Values
-
WEBHOOKS_VIEW_GRANT
- See Also:
- Constant Field Values
-
WEBHOOKS_MODIFY_GRANT
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SubaccountInfo
public SubaccountInfo()
-
-
Method Details
-
addKeyGrant
key_valid_ips array List of IP's that the initial subaccount API key can be used from. If not supplied, the API key will be usable from any IP address.- Parameters:
keyGrant-
-