class Serviceaccountkeys extends Resource (View source)

The "serviceaccountkeys" collection of methods.

Typical usage is:

 $androidenterpriseService = new Google\Service\AndroidEnterprise(...);
 $serviceaccountkeys = $androidenterpriseService->serviceaccountkeys;

Methods

delete(string $enterpriseId, string $keyId, array $optParams = [])

Removes and invalidates the specified credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.

insert(string $enterpriseId, ServiceAccountKey $postBody, array $optParams = [])

Generates new credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount. Only the type of the key should be populated in the resource to be inserted.

listServiceaccountkeys(string $enterpriseId, array $optParams = [])

Lists all active credentials for the service account associated with this enterprise. Only the ID and key type are returned. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount. (serviceaccountkeys.listServiceaccountkeys)

Details

delete(string $enterpriseId, string $keyId, array $optParams = [])

Removes and invalidates the specified credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.

(serviceaccountkeys.delete)

Parameters

string $enterpriseId

The ID of the enterprise.

string $keyId

The ID of the key.

array $optParams

Optional parameters.

Exceptions

Exception

ServiceAccountKey insert(string $enterpriseId, ServiceAccountKey $postBody, array $optParams = [])

Generates new credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount. Only the type of the key should be populated in the resource to be inserted.

(serviceaccountkeys.insert)

Parameters

string $enterpriseId

The ID of the enterprise.

ServiceAccountKey $postBody
array $optParams

Optional parameters.

Return Value

ServiceAccountKey

Exceptions

Exception

ServiceAccountKeysListResponse listServiceaccountkeys(string $enterpriseId, array $optParams = [])

Lists all active credentials for the service account associated with this enterprise. Only the ID and key type are returned. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount. (serviceaccountkeys.listServiceaccountkeys)

Parameters

string $enterpriseId

The ID of the enterprise.

array $optParams

Optional parameters.

Return Value

ServiceAccountKeysListResponse

Exceptions

Exception