Class LicenseAssignmentsResource.UpdateRequest
Reassign a user's product SKU with a different SKU in the same product.
Inheritance
Inherited Members
Namespace: Google.Apis.Licensing.v1
Assembly: Google.Apis.Licensing.v1.dll
Syntax
public class LicenseAssignmentsResource.UpdateRequest : LicensingBaseServiceRequest<LicenseAssignment>, IClientServiceRequest<LicenseAssignment>, IClientServiceRequest
Constructors
UpdateRequest(IClientService, LicenseAssignment, string, string, string)
Constructs a new Update request.
Declaration
public UpdateRequest(IClientService service, LicenseAssignment body, string productId, string skuId, string userId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
LicenseAssignment | body | |
string | productId | |
string | skuId | |
string | userId |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ProductId
A product's unique identifier. For more information about products in this version of the API, see Products and SKUs.
Declaration
[RequestParameter("productId", RequestParameterType.Path)]
public virtual string ProductId { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
SkuId
A product SKU's unique identifier. For more information about available SKUs in this version of the API, see Products and SKUs.
Declaration
[RequestParameter("skuId", RequestParameterType.Path)]
public virtual string SkuId { get; }
Property Value
Type | Description |
---|---|
string |
UserId
The user's current primary email address. If the user's email address changes, use the new email address
in your API requests. Since a userId
is subject to change, do not use a userId
value as a key for
persistent data. This key could break if the current user's email address changes. If the userId
is
suspended, the license status changes.
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()