Offer Class

Definition

Represents the offer for a resource (collection) in the Azure Cosmos DB service.

public class Offer : Microsoft.Azure.Documents.Resource
type Offer = class
    inherit Resource
Public Class Offer
Inherits Resource
Inheritance
Derived

Remarks

Currently, offers are only bound to the collection resource.

Constructors

Offer()

Initializes a Resource offer for the Azure Cosmos DB service.

Offer(Offer)

Initializes a Resource offer from another offer object for the Azure Cosmos DB service.

Properties

AltLink

Gets the alt-link associated with the resource from the Azure Cosmos DB service.

(Inherited from Resource)
ETag

Gets the entity tag associated with the resource from the Azure Cosmos DB service.

(Inherited from Resource)
Id

Gets or sets the Id of the resource in the Azure Cosmos DB service.

(Inherited from Resource)
OfferType

Gets or sets the OfferType for the resource offer in the Azure Cosmos DB service.

OfferVersion

Gets or sets the version of this offer resource in the Azure Cosmos DB service.

ResourceId

Gets or sets the Resource Id associated with the resource in the Azure Cosmos DB service.

(Inherited from Resource)
ResourceLink

Gets or sets the self-link of a resource to which the resource offer applies to in the Azure Cosmos DB service.

SelfLink

Gets the self-link associated with the resource from the Azure Cosmos DB service.

(Inherited from Resource)
Timestamp

Gets the last modified timestamp associated with the resource from the Azure Cosmos DB service.

(Inherited from Resource)

Methods

Equals(Offer)

Compares the offer object with the current offer

GetPropertyValue<T>(String)

Gets property value associated with the specified property name from the Azure Cosmos DB service.

(Inherited from Resource)
LoadFrom(JsonReader)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
LoadFrom(JsonReader, JsonSerializerSettings)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
SaveTo(Stream, SerializationFormattingPolicy)

Saves the object to the specified stream in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings)

Saves the object to the specified stream in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
SetPropertyValue(String, Object)

Sets property value associated with the specified property name in the Azure Cosmos DB service.

(Inherited from Resource)
ToByteArray()

Serialize to a byte array via SaveTo for the Azure Cosmos DB service.

(Inherited from Resource)
ToString()

Returns the string representation of the object in the Azure Cosmos DB service.

(Inherited from JsonSerializable)

Applies to