Show / Hide Table of Contents

Class GrantsResource

The "grants" collection of methods.

Inheritance
System.Object
GrantsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.AndroidPublisher.v3
Assembly: Google.Apis.AndroidPublisher.v3.dll
Syntax
public class GrantsResource

Constructors

GrantsResource(IClientService)

Constructs a new resource.

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

Methods

Create(Grant, String)

Grant access for a user to the given package.

Declaration
public virtual GrantsResource.CreateRequest Create(Grant body, string parent)
Parameters
Type Name Description
Grant body

The body of the request.

System.String parent

Required. The user which needs permission. Format: developers/{developer}/users/{user}

Returns
Type Description
GrantsResource.CreateRequest

Delete(String)

Removes all access for the user to the given package or developer account.

Declaration
public virtual GrantsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
System.String name

Required. The name of the grant to delete. Format: developers/{developer}/users/{email}/grants/{package_name}

Returns
Type Description
GrantsResource.DeleteRequest

Patch(Grant, String)

Updates access for the user to the given package.

Declaration
public virtual GrantsResource.PatchRequest Patch(Grant body, string name)
Parameters
Type Name Description
Grant body

The body of the request.

System.String name

Required. Resource name for this grant, following the pattern "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft app, the app ID will be used in this resource name instead of the package name.

Returns
Type Description
GrantsResource.PatchRequest
In This Article
Back to top Generated by DocFX