コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the ImageRepositoryCredential class.
 /// </summary>
 /// <param name="imageRepositoryUrl">Image repository url (e.g.:
 /// mcr.microsoft.com).</param>
 /// <param name="userName">Repository user name.</param>
 /// <param name="password">Repository user password.</param>
 public ImageRepositoryCredential(string imageRepositoryUrl, string userName, AsymmetricEncryptedSecret password = default(AsymmetricEncryptedSecret))
 {
     ImageRepositoryUrl = imageRepositoryUrl;
     UserName           = userName;
     Password           = password;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the User class.
 /// </summary>
 /// <param name="userType">Type of the user. Possible values include:
 /// 'Share', 'LocalManagement', 'ARM'</param>
 /// <param name="id">The path ID that uniquely identifies the
 /// object.</param>
 /// <param name="name">The object name.</param>
 /// <param name="type">The hierarchical type of the object.</param>
 /// <param name="encryptedPassword">The password details.</param>
 /// <param name="shareAccessRights">List of shares that the user has
 /// rights on. This field should not be specified during user
 /// creation.</param>
 public User(string userType, string id = default(string), string name = default(string), string type = default(string), AsymmetricEncryptedSecret encryptedPassword = default(AsymmetricEncryptedSecret), IList <ShareAccessRight> shareAccessRights = default(IList <ShareAccessRight>))
     : base(id, name, type)
 {
     EncryptedPassword = encryptedPassword;
     ShareAccessRights = shareAccessRights;
     UserType          = userType;
     CustomInit();
 }
コード例 #3
0
ファイル: MECRole.cs プロジェクト: maririos/azure-sdk-for-net
 /// <summary>
 /// Initializes a new instance of the MECRole class.
 /// </summary>
 /// <param name="roleStatus">Role status. Possible values include:
 /// 'Enabled', 'Disabled'</param>
 /// <param name="id">The path ID that uniquely identifies the
 /// object.</param>
 /// <param name="name">The object name.</param>
 /// <param name="type">The hierarchical type of the object.</param>
 /// <param name="systemData">Role configured on ASE resource</param>
 /// <param name="connectionString">Activation key of the MEC.</param>
 /// <param name="controllerEndpoint">Controller Endpoint.</param>
 /// <param name="resourceUniqueId">Unique Id of the Resource.</param>
 public MECRole(string roleStatus, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData), AsymmetricEncryptedSecret connectionString = default(AsymmetricEncryptedSecret), string controllerEndpoint = default(string), string resourceUniqueId = default(string))
     : base(id, name, type, systemData)
 {
     ConnectionString   = connectionString;
     ControllerEndpoint = controllerEndpoint;
     ResourceUniqueId   = resourceUniqueId;
     RoleStatus         = roleStatus;
     CustomInit();
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the StorageAccountCredential class.
 /// </summary>
 /// <param name="alias">Alias for the storage account.</param>
 /// <param name="sslStatus">Signifies whether SSL needs to be enabled
 /// or not. Possible values include: 'Enabled', 'Disabled'</param>
 /// <param name="accountType">Type of storage accessed on the storage
 /// account. Possible values include: 'GeneralPurposeStorage',
 /// 'BlobStorage'</param>
 /// <param name="id">The path ID that uniquely identifies the
 /// object.</param>
 /// <param name="name">The object name.</param>
 /// <param name="type">The hierarchical type of the object.</param>
 /// <param name="userName">Username for the storage account.</param>
 /// <param name="accountKey">Encrypted storage key.</param>
 /// <param name="connectionString">Connection string for the storage
 /// account. Use this string if username and account key are not
 /// specified.</param>
 /// <param name="blobDomainName">Blob end point for private
 /// clouds.</param>
 /// <param name="storageAccountId">Id of the storage account.</param>
 public StorageAccountCredential(string alias, string sslStatus, string accountType, string id = default(string), string name = default(string), string type = default(string), string userName = default(string), AsymmetricEncryptedSecret accountKey = default(AsymmetricEncryptedSecret), string connectionString = default(string), string blobDomainName = default(string), string storageAccountId = default(string))
     : base(id, name, type)
 {
     Alias            = alias;
     UserName         = userName;
     AccountKey       = accountKey;
     ConnectionString = connectionString;
     SslStatus        = sslStatus;
     BlobDomainName   = blobDomainName;
     AccountType      = accountType;
     StorageAccountId = storageAccountId;
     CustomInit();
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the SecuritySettings class.
 /// </summary>
 /// <param name="deviceAdminPassword">Device administrator password as
 /// an encrypted string (encrypted using RSA PKCS #1) is used to sign
 /// into the  local web UI of the device. The Actual password should
 /// have at least 8 characters that are a combination of  uppercase,
 /// lowercase, numeric, and special characters.</param>
 /// <param name="id">The path ID that uniquely identifies the
 /// object.</param>
 /// <param name="name">The object name.</param>
 /// <param name="type">The hierarchical type of the object.</param>
 public SecuritySettings(AsymmetricEncryptedSecret deviceAdminPassword, string id = default(string), string name = default(string), string type = default(string))
     : base(id, name, type)
 {
     DeviceAdminPassword = deviceAdminPassword;
     CustomInit();
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the SymmetricKey class.
 /// </summary>
 /// <param name="connectionString">Connection string based on the
 /// symmetric key.</param>
 public SymmetricKey(AsymmetricEncryptedSecret connectionString = default(AsymmetricEncryptedSecret))
 {
     ConnectionString = connectionString;
     CustomInit();
 }
コード例 #7
0
ファイル: Secret.cs プロジェクト: maririos/azure-sdk-for-net
 /// <summary>
 /// Initializes a new instance of the Secret class.
 /// </summary>
 /// <param name="encryptedSecret">Encrypted (using device public key)
 /// secret value.</param>
 /// <param name="keyVaultId">Id of the Key-Vault where secret is stored
 /// (ex:
 /// secrets/AuthClientSecret/82ef4346187a4033a10d629cde07d740).</param>
 public Secret(AsymmetricEncryptedSecret encryptedSecret = default(AsymmetricEncryptedSecret), string keyVaultId = default(string))
 {
     EncryptedSecret = encryptedSecret;
     KeyVaultId      = keyVaultId;
     CustomInit();
 }