Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateCertificateRequest" /> class.
 /// </summary>
 /// <param name="ApplicationMetadata">Application metadata. This is the place where you can store your own tags.</param>
 /// <param name="Name">The name for the certificate (required).</param>
 /// <param name="Attributes">The attributes.</param>
 /// <param name="Policy">The policy (required).</param>
 public CreateCertificateRequest(Dictionary <string, string> ApplicationMetadata = default(Dictionary <string, string>), string Name = default(string), Attributes Attributes = default(Attributes), CertificatePolicy Policy = default(CertificatePolicy))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for CreateCertificateRequest and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Policy" is required (not null)
     if (Policy == null)
     {
         throw new InvalidDataException("Policy is a required property for CreateCertificateRequest and cannot be null");
     }
     else
     {
         this.Policy = Policy;
     }
     this.ApplicationMetadata = ApplicationMetadata;
     this.Attributes          = Attributes;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DeletedCertificateBundle" /> class.
 /// </summary>
 /// <param name="BackendMetadata">StorageType metadata. This is the place where additional metadata return from the backend is stored.</param>
 /// <param name="ApplicationMetadata">Application metadata. This is the place where you can store your own tags.</param>
 /// <param name="RecoveryId">RecoveryId.</param>
 /// <param name="ScheduledPurgeTime">ScheduledPurgeTime.</param>
 /// <param name="Attributes">The attributes.</param>
 /// <param name="DeletedTime">DeletedTime.</param>
 /// <param name="Policy">Certificate management policy.</param>
 public DeletedCertificateBundle(Dictionary <string, string> BackendMetadata = default(Dictionary <string, string>), Dictionary <string, string> ApplicationMetadata = default(Dictionary <string, string>), string RecoveryId = default(string), DateTime?ScheduledPurgeTime = default(DateTime?), Attributes Attributes = default(Attributes), DateTime?DeletedTime = default(DateTime?), CertificatePolicy Policy = default(CertificatePolicy))
 {
     this.BackendMetadata     = BackendMetadata;
     this.ApplicationMetadata = ApplicationMetadata;
     this.RecoveryId          = RecoveryId;
     this.ScheduledPurgeTime  = ScheduledPurgeTime;
     this.Attributes          = Attributes;
     this.DeletedTime         = DeletedTime;
     this.Policy = Policy;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CertificateBundle" /> class.
 /// </summary>
 /// <param name="BackendMetadata">StorageType metadata. This is the place where additional metadata return from the backend is stored.</param>
 /// <param name="ApplicationMetadata">Application metadata. This is the place where you can store your own tags.</param>
 /// <param name="Attributes">The attributes.</param>
 /// <param name="Policy">Certificate management policy.</param>
 public CertificateBundle(Dictionary <string, string> BackendMetadata = default(Dictionary <string, string>), Dictionary <string, string> ApplicationMetadata = default(Dictionary <string, string>), Attributes Attributes = default(Attributes), CertificatePolicy Policy = default(CertificatePolicy))
 {
     this.BackendMetadata     = BackendMetadata;
     this.ApplicationMetadata = ApplicationMetadata;
     this.Attributes          = Attributes;
     this.Policy = Policy;
 }