Class protos.google.cloud.channel.v1.Entitlement

Represents an Entitlement.

Package

@google-cloud/channel!

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.channel.v1.IEntitlement);

Constructs a new Entitlement.

Parameter
TypeNameDescription
IEntitlementproperties

Properties to set

Properties

associationInfo

public associationInfo?: (google.cloud.channel.v1.IAssociationInfo|null);

Entitlement associationInfo.

Property Value
TypeDescription
(google.cloud.channel.v1.IAssociationInfo|null)

commitmentSettings

public commitmentSettings?: (google.cloud.channel.v1.ICommitmentSettings|null);

Entitlement commitmentSettings.

Property Value
TypeDescription
(google.cloud.channel.v1.ICommitmentSettings|null)

createTime

public createTime?: (google.protobuf.ITimestamp|null);

Entitlement createTime.

Property Value
TypeDescription
(google.protobuf.ITimestamp|null)

name

public name: string;

Entitlement name.

Property Value
TypeDescription
string

offer

public offer: string;

Entitlement offer.

Property Value
TypeDescription
string

parameters

public parameters: google.cloud.channel.v1.IParameter[];

Entitlement parameters.

Property Value
TypeDescription
google.cloud.channel.v1.IParameter[]

provisionedService

public provisionedService?: (google.cloud.channel.v1.IProvisionedService|null);

Entitlement provisionedService.

Property Value
TypeDescription
(google.cloud.channel.v1.IProvisionedService|null)

provisioningState

public provisioningState: (google.cloud.channel.v1.Entitlement.ProvisioningState|keyof typeof google.cloud.channel.v1.Entitlement.ProvisioningState);

Entitlement provisioningState.

Property Value
TypeDescription
(google.cloud.channel.v1.Entitlement.ProvisioningState|keyof typeof google.cloud.channel.v1.Entitlement.ProvisioningState)

purchaseOrderId

public purchaseOrderId: string;

Entitlement purchaseOrderId.

Property Value
TypeDescription
string

suspensionReasons

public suspensionReasons: google.cloud.channel.v1.Entitlement.SuspensionReason[];

Entitlement suspensionReasons.

Property Value
TypeDescription
google.cloud.channel.v1.Entitlement.SuspensionReason[]

trialSettings

public trialSettings?: (google.cloud.channel.v1.ITrialSettings|null);

Entitlement trialSettings.

Property Value
TypeDescription
(google.cloud.channel.v1.ITrialSettings|null)

updateTime

public updateTime?: (google.protobuf.ITimestamp|null);

Entitlement updateTime.

Property Value
TypeDescription
(google.protobuf.ITimestamp|null)

Methods

create(properties)

public static create(properties?: google.cloud.channel.v1.IEntitlement): google.cloud.channel.v1.Entitlement;

Creates a new Entitlement instance using the specified properties.

Parameter
TypeNameDescription
IEntitlementproperties

Properties to set

Returns
TypeDescription
google.cloud.channel.v1.Entitlement

Entitlement instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.channel.v1.Entitlement;

Decodes an Entitlement message from the specified reader or buffer.

Parameters
TypeNameDescription
($protobuf.Reader|Uint8Array)reader

Reader or buffer to decode from

numberlength

Message length if known beforehand

Returns
TypeDescription
google.cloud.channel.v1.Entitlement

Entitlement

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.channel.v1.Entitlement;

Decodes an Entitlement message from the specified reader or buffer, length delimited.

Parameter
TypeNameDescription
($protobuf.Reader|Uint8Array)reader

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.channel.v1.Entitlement

Entitlement

encode(message, writer)

public static encode(message: google.cloud.channel.v1.IEntitlement, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified Entitlement message. Does not implicitly messages.

Parameters
TypeNameDescription
IEntitlementmessage

Entitlement message or plain object to encode

$protobuf.Writerwriter

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.channel.v1.IEntitlement, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified Entitlement message, length delimited. Does not implicitly messages.

Parameters
TypeNameDescription
IEntitlementmessage

Entitlement message or plain object to encode

$protobuf.Writerwriter

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.channel.v1.Entitlement;

Creates an Entitlement message from a plain object. Also converts values to their respective internal types.

Parameter
TypeNameDescription
{ [k: string]: any }object

Plain object

Returns
TypeDescription
google.cloud.channel.v1.Entitlement

Entitlement

toJSON()

public toJSON(): { [k: string]: any };

Converts this Entitlement to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.channel.v1.Entitlement, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from an Entitlement message. Also converts values to other types if specified.

Parameters
TypeNameDescription
google.cloud.channel.v1.Entitlementmessage

Entitlement

$protobuf.IConversionOptionsoptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an Entitlement message.

Parameter
TypeNameDescription
{ [k: string]: any }message

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not