Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ImportKeyRequest" /> class.
 /// </summary>
 /// <param name="ApplicationMetadata">ApplicationMetadata.</param>
 /// <param name="Name">Name.</param>
 /// <param name="Attributes">Attributes.</param>
 /// <param name="Key">Key.</param>
 public ImportKeyRequest(Dictionary <string, string> ApplicationMetadata = default(Dictionary <string, string>), string Name = default(string), Attributes Attributes = default(Attributes), JsonWebKey Key = default(JsonWebKey))
 {
     this.ApplicationMetadata = ApplicationMetadata;
     this.Name       = Name;
     this.Attributes = Attributes;
     this.Key        = Key;
 }
Exemplo n.º 2
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;
 }