コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeletedKeyBundle" /> class.
 /// </summary>
 /// <param name="ScheduledPurgeTime">ScheduledPurgeTime.</param>
 /// <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="Managed">True if the key is backing a certificate.</param>
 /// <param name="Attributes">The attributes.</param>
 /// <param name="DeletedTime">DeletedTime.</param>
 /// <param name="RecoveryId">RecoveryId.</param>
 /// <param name="Key">The Json Web Key (required).</param>
 public DeletedKeyBundle(DateTime?ScheduledPurgeTime = default(DateTime?), Dictionary <string, string> BackendMetadata = default(Dictionary <string, string>), Dictionary <string, string> ApplicationMetadata = default(Dictionary <string, string>), bool?Managed = default(bool?), Attributes Attributes = default(Attributes), DateTime?DeletedTime = default(DateTime?), string RecoveryId = default(string), JsonWebKey Key = default(JsonWebKey))
 {
     // to ensure "Key" is required (not null)
     if (Key == null)
     {
         throw new InvalidDataException("Key is a required property for DeletedKeyBundle and cannot be null");
     }
     else
     {
         this.Key = Key;
     }
     this.ScheduledPurgeTime  = ScheduledPurgeTime;
     this.BackendMetadata     = BackendMetadata;
     this.ApplicationMetadata = ApplicationMetadata;
     this.Managed             = Managed;
     this.Attributes          = Attributes;
     this.DeletedTime         = DeletedTime;
     this.RecoveryId          = RecoveryId;
 }
コード例 #2
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;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KeyBundle" /> 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="Managed">True if the key is backing a certificate.</param>
 /// <param name="Attributes">The attributes.</param>
 /// <param name="Key">The Json Web Key (required).</param>
 public KeyBundle(Dictionary <string, string> BackendMetadata = default(Dictionary <string, string>), Dictionary <string, string> ApplicationMetadata = default(Dictionary <string, string>), bool?Managed = default(bool?), Attributes Attributes = default(Attributes), JsonWebKey Key = default(JsonWebKey))
 {
     // to ensure "Key" is required (not null)
     if (Key == null)
     {
         throw new InvalidDataException("Key is a required property for KeyBundle and cannot be null");
     }
     else
     {
         this.Key = Key;
     }
     this.BackendMetadata     = BackendMetadata;
     this.ApplicationMetadata = ApplicationMetadata;
     this.Managed             = Managed;
     this.Attributes          = Attributes;
 }