Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the LabVirtualMachine class.
 /// </summary>
 public LabVirtualMachine(string notes = default(string), string ownerObjectId = default(string), string createdByUserId = default(string), string createdByUser = default(string), string computeId = default(string), string customImageId = default(string), string osType = default(string), string size = default(string), string userName = default(string), string password = default(string), string sshKey = default(string), bool?isAuthenticationWithSshKey = default(bool?), string fqdn = default(string), string labSubnetName = default(string), string labVirtualNetworkId = default(string), bool?disallowPublicIpAddress = default(bool?), IList <ArtifactInstallProperties> artifacts = default(IList <ArtifactInstallProperties>), ArtifactDeploymentStatusProperties artifactDeploymentStatus = default(ArtifactDeploymentStatusProperties), GalleryImageReference galleryImageReference = default(GalleryImageReference), string provisioningState = default(string), string uniqueIdentifier = default(string), string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>))
 {
     Notes                      = notes;
     OwnerObjectId              = ownerObjectId;
     CreatedByUserId            = createdByUserId;
     CreatedByUser              = createdByUser;
     ComputeId                  = computeId;
     CustomImageId              = customImageId;
     OsType                     = osType;
     Size                       = size;
     UserName                   = userName;
     Password                   = password;
     SshKey                     = sshKey;
     IsAuthenticationWithSshKey = isAuthenticationWithSshKey;
     Fqdn                       = fqdn;
     LabSubnetName              = labSubnetName;
     LabVirtualNetworkId        = labVirtualNetworkId;
     DisallowPublicIpAddress    = disallowPublicIpAddress;
     Artifacts                  = artifacts;
     ArtifactDeploymentStatus   = artifactDeploymentStatus;
     GalleryImageReference      = galleryImageReference;
     ProvisioningState          = provisioningState;
     UniqueIdentifier           = uniqueIdentifier;
     Id       = id;
     Name     = name;
     Type     = type;
     Location = location;
     Tags     = tags;
 }
 /// <summary>
 /// Initializes a new instance of the LabVirtualMachine class.
 /// </summary>
 /// <param name="id">The identifier of the resource.</param>
 /// <param name="name">The name of the resource.</param>
 /// <param name="type">The type of the resource.</param>
 /// <param name="location">The location of the resource.</param>
 /// <param name="tags">The tags of the resource.</param>
 /// <param name="notes">The notes of the virtual machine.</param>
 /// <param name="ownerObjectId">The object identifier of the owner of
 /// the virtual machine.</param>
 /// <param name="ownerUserPrincipalName">The user principal name of the
 /// virtual machine owner.</param>
 /// <param name="createdByUserId">The object identifier of the creator
 /// of the virtual machine.</param>
 /// <param name="createdByUser">The email address of creator of the
 /// virtual machine.</param>
 /// <param name="createdDate">The creation date of the virtual
 /// machine.</param>
 /// <param name="computeId">The resource identifier (Microsoft.Compute)
 /// of the virtual machine.</param>
 /// <param name="customImageId">The custom image identifier of the
 /// virtual machine.</param>
 /// <param name="osType">The OS type of the virtual machine.</param>
 /// <param name="size">The size of the virtual machine.</param>
 /// <param name="userName">The user name of the virtual
 /// machine.</param>
 /// <param name="password">The password of the virtual machine
 /// administrator.</param>
 /// <param name="sshKey">The SSH key of the virtual machine
 /// administrator.</param>
 /// <param name="isAuthenticationWithSshKey">Indicates whether this
 /// virtual machine uses an SSH key for authentication.</param>
 /// <param name="fqdn">The fully-qualified domain name of the virtual
 /// machine.</param>
 /// <param name="labSubnetName">The lab subnet name of the virtual
 /// machine.</param>
 /// <param name="labVirtualNetworkId">The lab virtual network
 /// identifier of the virtual machine.</param>
 /// <param name="disallowPublicIpAddress">Indicates whether the virtual
 /// machine is to be created without a public IP address.</param>
 /// <param name="artifacts">The artifacts to be installed on the
 /// virtual machine.</param>
 /// <param name="artifactDeploymentStatus">The artifact deployment
 /// status for the virtual machine.</param>
 /// <param name="galleryImageReference">The Microsoft Azure Marketplace
 /// image reference of the virtual machine.</param>
 /// <param name="planId">The id of the plan associated with the virtual
 /// machine image</param>
 /// <param name="computeVm">The compute virtual machine
 /// properties.</param>
 /// <param name="networkInterface">The network interface
 /// properties.</param>
 /// <param name="applicableSchedule">The applicable schedule for the
 /// virtual machine.</param>
 /// <param name="expirationDate">The expiration date for VM.</param>
 /// <param name="allowClaim">Indicates whether another user can take
 /// ownership of the virtual machine</param>
 /// <param name="storageType">Storage type to use for virtual machine
 /// (i.e. Standard, Premium).</param>
 /// <param name="virtualMachineCreationSource">Tells source of creation
 /// of lab virtual machine. Output property only. Possible values
 /// include: 'FromCustomImage', 'FromGalleryImage'</param>
 /// <param name="environmentId">The resource ID of the environment that
 /// contains this virtual machine, if any.</param>
 /// <param name="dataDiskParameters">New or existing data disks to
 /// attach to the virtual machine after creation</param>
 /// <param name="scheduleParameters">Virtual Machine schedules to be
 /// created</param>
 /// <param name="lastKnownPowerState">Last known compute power state
 /// captured in DTL</param>
 /// <param name="provisioningState">The provisioning status of the
 /// resource.</param>
 /// <param name="uniqueIdentifier">The unique immutable identifier of a
 /// resource (Guid).</param>
 public LabVirtualMachine(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), string notes = default(string), string ownerObjectId = default(string), string ownerUserPrincipalName = default(string), string createdByUserId = default(string), string createdByUser = default(string), System.DateTime?createdDate = default(System.DateTime?), string computeId = default(string), string customImageId = default(string), string osType = default(string), string size = default(string), string userName = default(string), string password = default(string), string sshKey = default(string), bool?isAuthenticationWithSshKey = default(bool?), string fqdn = default(string), string labSubnetName = default(string), string labVirtualNetworkId = default(string), bool?disallowPublicIpAddress = default(bool?), IList <ArtifactInstallProperties> artifacts = default(IList <ArtifactInstallProperties>), ArtifactDeploymentStatusProperties artifactDeploymentStatus = default(ArtifactDeploymentStatusProperties), GalleryImageReference galleryImageReference = default(GalleryImageReference), string planId = default(string), ComputeVmProperties computeVm = default(ComputeVmProperties), NetworkInterfaceProperties networkInterface = default(NetworkInterfaceProperties), ApplicableSchedule applicableSchedule = default(ApplicableSchedule), System.DateTime?expirationDate = default(System.DateTime?), bool?allowClaim = default(bool?), string storageType = default(string), string virtualMachineCreationSource = default(string), string environmentId = default(string), IList <DataDiskProperties> dataDiskParameters = default(IList <DataDiskProperties>), IList <ScheduleCreationParameter> scheduleParameters = default(IList <ScheduleCreationParameter>), string lastKnownPowerState = default(string), string provisioningState = default(string), string uniqueIdentifier = default(string))
     : base(id, name, type, location, tags)
 {
     Notes                  = notes;
     OwnerObjectId          = ownerObjectId;
     OwnerUserPrincipalName = ownerUserPrincipalName;
     CreatedByUserId        = createdByUserId;
     CreatedByUser          = createdByUser;
     CreatedDate            = createdDate;
     ComputeId              = computeId;
     CustomImageId          = customImageId;
     OsType                 = osType;
     Size     = size;
     UserName = userName;
     Password = password;
     SshKey   = sshKey;
     IsAuthenticationWithSshKey = isAuthenticationWithSshKey;
     Fqdn                         = fqdn;
     LabSubnetName                = labSubnetName;
     LabVirtualNetworkId          = labVirtualNetworkId;
     DisallowPublicIpAddress      = disallowPublicIpAddress;
     Artifacts                    = artifacts;
     ArtifactDeploymentStatus     = artifactDeploymentStatus;
     GalleryImageReference        = galleryImageReference;
     PlanId                       = planId;
     ComputeVm                    = computeVm;
     NetworkInterface             = networkInterface;
     ApplicableSchedule           = applicableSchedule;
     ExpirationDate               = expirationDate;
     AllowClaim                   = allowClaim;
     StorageType                  = storageType;
     VirtualMachineCreationSource = virtualMachineCreationSource;
     EnvironmentId                = environmentId;
     DataDiskParameters           = dataDiskParameters;
     ScheduleParameters           = scheduleParameters;
     LastKnownPowerState          = lastKnownPowerState;
     ProvisioningState            = provisioningState;
     UniqueIdentifier             = uniqueIdentifier;
     CustomInit();
 }