/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (DeleteCertificateError != null)
     {
         DeleteCertificateError.Validate();
     }
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the CertificateInner class.
 /// </summary>
 /// <param name="id">The ID of the resource.</param>
 /// <param name="name">The name of the resource.</param>
 /// <param name="type">The type of the resource.</param>
 /// <param name="etag">The ETag of the resource, used for concurrency
 /// statements.</param>
 /// <param name="thumbprintAlgorithm">The algorithm of the certificate
 /// thumbprint</param>
 /// <param name="thumbprint">The thumbprint of the certificate</param>
 /// <param name="format">The format of the certificate - either Pfx or
 /// Cer. If omitted, the default is Pfx. Possible values include:
 /// 'Pfx', 'Cer'</param>
 /// <param name="provisioningState">The provisioned state of the
 /// resource</param>
 /// <param name="provisioningStateTransitionTime">The time at which the
 /// certificate entered its current state.</param>
 /// <param name="previousProvisioningState">The previous provisioned
 /// state of the resource. Possible values include: 'Succeeded',
 /// 'Deleting', 'Failed'</param>
 /// <param name="previousProvisioningStateTransitionTime">The time at
 /// which the certificate entered its previous state.</param>
 /// <param name="publicData">The public key of the certificate.</param>
 /// <param name="deleteCertificateError">The error which occurred while
 /// deleting the certificate</param>
 public CertificateInner(string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string thumbprintAlgorithm = default(string), string thumbprint = default(string), CertificateFormat format = default(CertificateFormat), CertificateProvisioningState provisioningState = default(CertificateProvisioningState), System.DateTime?provisioningStateTransitionTime = default(System.DateTime?), CertificateProvisioningState previousProvisioningState = default(CertificateProvisioningState), System.DateTime?previousProvisioningStateTransitionTime = default(System.DateTime?), string publicData = default(string), DeleteCertificateError deleteCertificateError = default(DeleteCertificateError))
     : base(id, name, type, etag)
 {
     ThumbprintAlgorithm = thumbprintAlgorithm;
     Thumbprint          = thumbprint;
     Format            = format;
     ProvisioningState = provisioningState;
     ProvisioningStateTransitionTime         = provisioningStateTransitionTime;
     PreviousProvisioningState               = previousProvisioningState;
     PreviousProvisioningStateTransitionTime = previousProvisioningStateTransitionTime;
     PublicData             = publicData;
     DeleteCertificateError = deleteCertificateError;
     CustomInit();
 }