Class GrantsResource
The "grants" collection of methods.
Inherited Members
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. |
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 |
---|---|---|
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. |
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 |