Class ProductsResource.GenerateApprovalUrlRequest
Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product. Admins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day. Note: This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.
Inheritance
Inherited Members
Namespace: Google.Apis.AndroidEnterprise.v1
Assembly: Google.Apis.AndroidEnterprise.v1.dll
Syntax
public class ProductsResource.GenerateApprovalUrlRequest : AndroidEnterpriseBaseServiceRequest<ProductsGenerateApprovalUrlResponse>, IClientServiceRequest<ProductsGenerateApprovalUrlResponse>, IClientServiceRequest
Constructors
GenerateApprovalUrlRequest(IClientService, string, string)
Constructs a new GenerateApprovalUrl request.
Declaration
public GenerateApprovalUrlRequest(IClientService service, string enterpriseId, string productId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | enterpriseId | |
string | productId |
Properties
EnterpriseId
The ID of the enterprise.
Declaration
[RequestParameter("enterpriseId", RequestParameterType.Path)]
public virtual string EnterpriseId { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
LanguageCode
The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance "en-US".
Declaration
[RequestParameter("languageCode", RequestParameterType.Query)]
public virtual string LanguageCode { get; set; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ProductId
The ID of the product.
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
Methods
InitParameters()
Initializes GenerateApprovalUrl parameter list.
Declaration
protected override void InitParameters()