Class EntitlementsResource.UpdateRequest
Adds or updates an entitlement to an app for a user. Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.
Inheritance
EntitlementsResource.UpdateRequest
Inherited Members
Namespace: Google.Apis.AndroidEnterprise.v1
Assembly: Google.Apis.AndroidEnterprise.v1.dll
Syntax
public class EntitlementsResource.UpdateRequest : AndroidEnterpriseBaseServiceRequest<Entitlement>, IClientServiceRequest<Entitlement>, IClientServiceRequest
Constructors
UpdateRequest(IClientService, Entitlement, string, string, string)
Constructs a new Update request.
Declaration
public UpdateRequest(IClientService service, Entitlement body, string enterpriseId, string userId, string entitlementId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Entitlement | body | |
string | enterpriseId | |
string | userId | |
string | entitlementId |
Properties
EnterpriseId
The ID of the enterprise.
Declaration
[RequestParameter("enterpriseId", RequestParameterType.Path)]
public virtual string EnterpriseId { get; }
Property Value
Type | Description |
---|---|
string |
EntitlementId
The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
Declaration
[RequestParameter("entitlementId", RequestParameterType.Path)]
public virtual string EntitlementId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Install
Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user.
Declaration
[RequestParameter("install", RequestParameterType.Query)]
public virtual bool? Install { get; set; }
Property Value
Type | Description |
---|---|
bool? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
UserId
The ID of the user.
Declaration
[RequestParameter("userId", RequestParameterType.Path)]
public virtual string UserId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Update parameter list.
Declaration
protected override void InitParameters()