Language

PromoteReplicaRequest Class

Definition

Promote replica request properties.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.PromoteReplicaRequestTypeConverter))]
public class PromoteReplicaRequest : Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.IPromoteReplicaRequest
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.PromoteReplicaRequestTypeConverter))>]
type PromoteReplicaRequest = class
    interface IPromoteReplicaRequest
    interface IJsonSerializable
Public Class PromoteReplicaRequest
Implements IPromoteReplicaRequest
Inheritance
PromoteReplicaRequest
Attributes
Implements

Constructors

Name Description
PromoteReplicaRequest()

Creates an new PromoteReplicaRequest instance.

Properties

Name Description
Mode

The mode to apply to the promote operation. Value is optional and default value is 'Switchover'.

PromoteOption

The promote option to apply to the operation.

Methods

Name Description
DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of PromoteReplicaRequest.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of PromoteReplicaRequest.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.DocumentDB.Models.IPromoteReplicaRequest.

FromJsonString(String)

Creates a new instance of PromoteReplicaRequest, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of PromoteReplicaRequest into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to