Show / Hide Table of Contents

Class ServiceaccountkeysResource

The "serviceaccountkeys" collection of methods.

Inheritance
object
ServiceaccountkeysResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.AndroidEnterprise.v1
Assembly: Google.Apis.AndroidEnterprise.v1.dll
Syntax
public class ServiceaccountkeysResource

Constructors

ServiceaccountkeysResource(IClientService)

Constructs a new resource.

Declaration
public ServiceaccountkeysResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(string, string)

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.

Declaration
public virtual ServiceaccountkeysResource.DeleteRequest Delete(string enterpriseId, string keyId)
Parameters
Type Name Description
string enterpriseId

The ID of the enterprise.

string keyId

The ID of the key.

Returns
Type Description
ServiceaccountkeysResource.DeleteRequest

Insert(ServiceAccountKey, string)

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.

Declaration
public virtual ServiceaccountkeysResource.InsertRequest Insert(ServiceAccountKey body, string enterpriseId)
Parameters
Type Name Description
ServiceAccountKey body

The body of the request.

string enterpriseId

The ID of the enterprise.

Returns
Type Description
ServiceaccountkeysResource.InsertRequest

List(string)

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.

Declaration
public virtual ServiceaccountkeysResource.ListRequest List(string enterpriseId)
Parameters
Type Name Description
string enterpriseId

The ID of the enterprise.

Returns
Type Description
ServiceaccountkeysResource.ListRequest
In this article
Back to top Generated by DocFX