/// <summary> /// Initializes a new instance of the CertificateContract class. /// </summary> /// <param name="subject">Subject attribute of the certificate.</param> /// <param name="thumbprint">Thumbprint of the certificate.</param> /// <param name="expirationDate">Expiration date of the certificate. /// The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` /// as specified by the ISO 8601 standard. /// </param> /// <param name="id">Resource ID.</param> /// <param name="name">Resource name.</param> /// <param name="type">Resource type for API Management /// resource.</param> /// <param name="keyVault">KeyVault location details of the /// certificate.</param> public CertificateContract(string subject, string thumbprint, System.DateTime expirationDate, string id = default(string), string name = default(string), string type = default(string), KeyVaultContractProperties keyVault = default(KeyVaultContractProperties)) : base(id, name, type) { Subject = subject; Thumbprint = thumbprint; ExpirationDate = expirationDate; KeyVault = keyVault; CustomInit(); }
/// <summary> /// Initializes a new instance of the NamedValueContract class. /// </summary> /// <param name="displayName">Unique name of NamedValue. It may contain /// only letters, digits, period, dash, and underscore /// characters.</param> /// <param name="id">Fully qualified resource ID for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param> /// <param name="name">The name of the resource</param> /// <param name="type">The type of the resource. E.g. /// "Microsoft.Compute/virtualMachines" or /// "Microsoft.Storage/storageAccounts"</param> /// <param name="tags">Optional tags that when provided can be used to /// filter the NamedValue list.</param> /// <param name="secret">Determines whether the value is a secret and /// should be encrypted or not. Default value is false.</param> /// <param name="value">Value of the NamedValue. Can contain policy /// expressions. It may not be empty or consist only of whitespace. /// This property will not be filled on 'GET' operations! Use /// '/listSecrets' POST request to get the value.</param> /// <param name="keyVault">KeyVault location details of the /// namedValue.</param> public NamedValueContract(string displayName, string id = default(string), string name = default(string), string type = default(string), IList <string> tags = default(IList <string>), bool?secret = default(bool?), string value = default(string), KeyVaultContractProperties keyVault = default(KeyVaultContractProperties)) : base(id, name, type) { Tags = tags; Secret = secret; DisplayName = displayName; Value = value; KeyVault = keyVault; CustomInit(); }