Show / Hide Table of Contents

Class ProvidersResource.EntitlementsResource

The "entitlements" collection of methods.

Inheritance
object
ProvidersResource.EntitlementsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudCommercePartnerProcurementService.v1
Assembly: Google.Apis.CloudCommercePartnerProcurementService.v1.dll
Syntax
public class ProvidersResource.EntitlementsResource

Constructors

EntitlementsResource(IClientService)

Constructs a new resource.

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

Methods

Approve(ApproveEntitlementRequest, string)

Approves an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to approve the creation of the entitlement resource.

Declaration
public virtual ProvidersResource.EntitlementsResource.ApproveRequest Approve(ApproveEntitlementRequest body, string name)
Parameters
Type Name Description
ApproveEntitlementRequest body

The body of the request.

string name

Required. The resource name of the entitlement, with the format providers/{providerId}/entitlements/{entitlementId}.

Returns
Type Description
ProvidersResource.EntitlementsResource.ApproveRequest

ApprovePlanChange(ApproveEntitlementPlanChangeRequest, string)

Approves an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to approve the plan change on the entitlement resource.

Declaration
public virtual ProvidersResource.EntitlementsResource.ApprovePlanChangeRequest ApprovePlanChange(ApproveEntitlementPlanChangeRequest body, string name)
Parameters
Type Name Description
ApproveEntitlementPlanChangeRequest body

The body of the request.

string name

Required. The resource name of the entitlement.

Returns
Type Description
ProvidersResource.EntitlementsResource.ApprovePlanChangeRequest

Get(string)

Gets a requested Entitlement resource.

Declaration
public virtual ProvidersResource.EntitlementsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the entitlement to retrieve.

Returns
Type Description
ProvidersResource.EntitlementsResource.GetRequest

List(string)

Lists Entitlements for which the provider has read access.

Declaration
public virtual ProvidersResource.EntitlementsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent resource name.

Returns
Type Description
ProvidersResource.EntitlementsResource.ListRequest

Patch(Entitlement, string)

Updates an existing Entitlement.

Declaration
public virtual ProvidersResource.EntitlementsResource.PatchRequest Patch(Entitlement body, string name)
Parameters
Type Name Description
Entitlement body

The body of the request.

string name

Required. The name of the entitlement to update.

Returns
Type Description
ProvidersResource.EntitlementsResource.PatchRequest

Reject(RejectEntitlementRequest, string)

Rejects an entitlement that is in the EntitlementState.ENTITLEMENT_ACTIVATION_REQUESTED state. This method is invoked by the provider to reject the creation of the entitlement resource.

Declaration
public virtual ProvidersResource.EntitlementsResource.RejectRequest Reject(RejectEntitlementRequest body, string name)
Parameters
Type Name Description
RejectEntitlementRequest body

The body of the request.

string name

Required. The resource name of the entitlement.

Returns
Type Description
ProvidersResource.EntitlementsResource.RejectRequest

RejectPlanChange(RejectEntitlementPlanChangeRequest, string)

Rejects an entitlement plan change that is in the EntitlementState.ENTITLEMENT_PENDING_PLAN_CHANGE_APPROVAL state. This method is invoked by the provider to reject the plan change on the entitlement resource.

Declaration
public virtual ProvidersResource.EntitlementsResource.RejectPlanChangeRequest RejectPlanChange(RejectEntitlementPlanChangeRequest body, string name)
Parameters
Type Name Description
RejectEntitlementPlanChangeRequest body

The body of the request.

string name

Required. The resource name of the entitlement.

Returns
Type Description
ProvidersResource.EntitlementsResource.RejectPlanChangeRequest

Suspend(SuspendEntitlementRequest, string)

Requests suspension of an active Entitlement. This is not yet supported.

Declaration
public virtual ProvidersResource.EntitlementsResource.SuspendRequest Suspend(SuspendEntitlementRequest body, string name)
Parameters
Type Name Description
SuspendEntitlementRequest body

The body of the request.

string name

Required. The name of the entitlement to suspend.

Returns
Type Description
ProvidersResource.EntitlementsResource.SuspendRequest
In this article
Back to top Generated by DocFX