Table of Contents

Class MongoDBCollectionGetPropertiesResource

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.Models
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll
public class MongoDBCollectionGetPropertiesResource
Inheritance
MongoDBCollectionGetPropertiesResource
Inherited Members

Constructors

MongoDBCollectionGetPropertiesResource()

Initializes a new instance of the MongoDBCollectionGetPropertiesResource class.

public MongoDBCollectionGetPropertiesResource()

MongoDBCollectionGetPropertiesResource(string, IDictionary<string, string>, IList<MongoIndex>, string, object, string)

Initializes a new instance of the MongoDBCollectionGetPropertiesResource class.

public MongoDBCollectionGetPropertiesResource(string id, IDictionary<string, string> shardKey = null, IList<MongoIndex> indexes = null, string _rid = null, object _ts = null, string _etag = null)

Parameters

id string

Name of the Cosmos DB MongoDB collection

shardKey IDictionary<string, string>

A key-value pair of shard keys to be applied for the request.

indexes IList<MongoIndex>

List of index keys

_rid string

A system generated property. A unique identifier.

_ts object

A system generated property that denotes the last updated timestamp of the resource.

_etag string

A system generated property representing the resource etag required for optimistic concurrency control.

Properties

Id

Gets or sets name of the Cosmos DB MongoDB collection

public string Id { get; set; }

Property Value

string

Indexes

Gets or sets list of index keys

public IList<MongoIndex> Indexes { get; set; }

Property Value

IList<MongoIndex>

ShardKey

Gets or sets a key-value pair of shard keys to be applied for the request.

public IDictionary<string, string> ShardKey { get; set; }

Property Value

IDictionary<string, string>

_etag

Gets a system generated property representing the resource etag required for optimistic concurrency control.

public string _etag { get; }

Property Value

string

_rid

Gets a system generated property. A unique identifier.

public string _rid { get; }

Property Value

string

_ts

Gets a system generated property that denotes the last updated timestamp of the resource.

public object _ts { get; }

Property Value

object

Methods

Validate()

Validate the object.

public virtual void Validate()

Exceptions

Microsoft.Rest.ValidationException

Thrown if validation fails