public function getServiceAccount($enterpriseId, $optParams = array())
  {
    $params = array('enterpriseId' => $enterpriseId);
    $params = array_merge($params, $optParams);
    return $this->call('getServiceAccount', array($params), "Google_Service_AndroidEnterprise_ServiceAccount");
  }
public function getServiceAccount($enterpriseId, $optParams = array())
  {
    $params = array('enterpriseId' => $enterpriseId);
    $params = array_merge($params, $optParams);
    return $this->call('getServiceAccount', array($params), "Google_Service_AndroidEnterprise_ServiceAccount");
  }
public function getServiceAccount ( $ enterpriseId , $ optParams = array ( ) ) { $ params = array ( 'enterpriseId' => $ enterpriseId ) ; $ params = array_merge ( $ params , $ optParams ) ; return $ this -> call ( 'getServiceAccount' , array ( $ params ) , "Google_Service_AndroidEnterprise_ServiceAccount" ) ; }
Returns a service account and credentials. The service account can be bound
to the enterprise by calling setAccount. The service account is unique to
this enterprise and EMM, and will be deleted if the enterprise is unbound.
The credentials contain private key data and are not stored server-side.

This method can only be called after calling Enterprises.Enroll or
Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times
it will return an error.

Subsequent calls after the first will generate a new, unique set of
credentials, and invalidate the previously generated credentials.

Once the service account is bound to the enterprise, it can be managed using
the serviceAccountKeys resource. (enterprises.getServiceAccount)

@param string $enterpriseId The ID of the enterprise.
@param array $optParams Optional parameters.

@opt_param string keyType The type of credential to return with the service
account. Required.
@return Google_Service_AndroidEnterprise_ServiceAccount
Returns a service account and credentials . The service account can be bound to the enterprise by calling setAccount . The service account is unique to this enterprise and EMM and will be deleted if the enterprise is unbound . The credentials contain private key data and are not stored server - side .