次の方法で共有


ResourceCertificateDetails Class

Definition

Certificate details representing the Vault credentials. Please note ResourceCertificateDetails is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ResourceCertificateAndAcsDetails and ResourceCertificateAndAadDetails.

public abstract class ResourceCertificateDetails
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.RecoveryServices.Models.UnknownResourceCertificateDetails))]
public abstract class ResourceCertificateDetails : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.RecoveryServices.Models.ResourceCertificateDetails>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.RecoveryServices.Models.ResourceCertificateDetails>
type ResourceCertificateDetails = class
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.RecoveryServices.Models.UnknownResourceCertificateDetails))>]
type ResourceCertificateDetails = class
    interface IJsonModel<ResourceCertificateDetails>
    interface IPersistableModel<ResourceCertificateDetails>
Public MustInherit Class ResourceCertificateDetails
Public MustInherit Class ResourceCertificateDetails
Implements IJsonModel(Of ResourceCertificateDetails), IPersistableModel(Of ResourceCertificateDetails)
Inheritance
ResourceCertificateDetails
Derived
Attributes
Implements

Constructors

ResourceCertificateDetails()

Initializes a new instance of ResourceCertificateDetails.

Properties

Certificate

The base64 encoded certificate raw data string.

FriendlyName

Certificate friendly name.

Issuer

Certificate issuer.

ResourceId

Resource ID of the vault.

Subject

Certificate Subject Name.

Thumbprint

Certificate thumbprint.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

ValidEndOn

Certificate Validity End Date time.

ValidStartOn

Certificate Validity start Date time.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ResourceCertificateDetails>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ResourceCertificateDetails>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ResourceCertificateDetails>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ResourceCertificateDetails>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ResourceCertificateDetails>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to