Share via


ComputeBatchModelFactory.BatchCertificate Method

Definition

Initializes a new instance of BatchCertificate.

public static Azure.Compute.Batch.BatchCertificate BatchCertificate(string thumbprint = default, string thumbprintAlgorithm = default, Uri uri = default, Azure.Compute.Batch.BatchCertificateState? state = default, DateTimeOffset? stateTransitionTime = default, Azure.Compute.Batch.BatchCertificateState? previousState = default, DateTimeOffset? previousStateTransitionTime = default, string publicData = default, Azure.Compute.Batch.BatchCertificateDeleteError deleteCertificateError = default, BinaryData data = default, Azure.Compute.Batch.BatchCertificateFormat? certificateFormat = default, string password = default);
static member BatchCertificate : string * string * Uri * Nullable<Azure.Compute.Batch.BatchCertificateState> * Nullable<DateTimeOffset> * Nullable<Azure.Compute.Batch.BatchCertificateState> * Nullable<DateTimeOffset> * string * Azure.Compute.Batch.BatchCertificateDeleteError * BinaryData * Nullable<Azure.Compute.Batch.BatchCertificateFormat> * string -> Azure.Compute.Batch.BatchCertificate
Public Shared Function BatchCertificate (Optional thumbprint As String = Nothing, Optional thumbprintAlgorithm As String = Nothing, Optional uri As Uri = Nothing, Optional state As Nullable(Of BatchCertificateState) = Nothing, Optional stateTransitionTime As Nullable(Of DateTimeOffset) = Nothing, Optional previousState As Nullable(Of BatchCertificateState) = Nothing, Optional previousStateTransitionTime As Nullable(Of DateTimeOffset) = Nothing, Optional publicData As String = Nothing, Optional deleteCertificateError As BatchCertificateDeleteError = Nothing, Optional data As BinaryData = Nothing, Optional certificateFormat As Nullable(Of BatchCertificateFormat) = Nothing, Optional password As String = Nothing) As BatchCertificate

Parameters

thumbprint
String

The X.509 thumbprint of the Certificate. This is a sequence of up to 40 hex digits (it may include spaces but these are removed).

thumbprintAlgorithm
String

The algorithm used to derive the thumbprint. This must be sha1.

uri
Uri

The URL of the Certificate.

state
Nullable<BatchCertificateState>

The state of the Certificate.

stateTransitionTime
Nullable<DateTimeOffset>

The time at which the Certificate entered its current state.

previousState
Nullable<BatchCertificateState>

The previous state of the Certificate. This property is not set if the Certificate is in its initial active state.

previousStateTransitionTime
Nullable<DateTimeOffset>

The time at which the Certificate entered its previous state. This property is not set if the Certificate is in its initial Active state.

publicData
String

The public part of the Certificate as a base-64 encoded .cer file.

deleteCertificateError
BatchCertificateDeleteError

The error that occurred on the last attempt to delete this Certificate. This property is set only if the Certificate is in the DeleteFailed state.

data
BinaryData

The base64-encoded contents of the Certificate. The maximum size is 10KB.

certificateFormat
Nullable<BatchCertificateFormat>

The format of the Certificate data.

password
String

The password to access the Certificate's private key. This must be omitted if the Certificate format is cer.

Returns

A new BatchCertificate instance for mocking.

Applies to