Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the LabAccount 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="sizeConfiguration">Represents the size configuration
 /// under the lab account</param>
 /// <param name="enabledRegionSelection">Represents if region selection
 /// is enabled</param>
 /// <param name="provisioningState">The provisioning status of the
 /// resource.</param>
 /// <param name="uniqueIdentifier">The unique immutable identifier of a
 /// resource (Guid).</param>
 /// <param name="latestOperationResult">The details of the latest
 /// operation. ex: status, error</param>
 public LabAccount(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), SizeConfigurationProperties sizeConfiguration = default(SizeConfigurationProperties), bool?enabledRegionSelection = default(bool?), string provisioningState = default(string), string uniqueIdentifier = default(string), LatestOperationResult latestOperationResult = default(LatestOperationResult))
     : base(id, name, type, location, tags)
 {
     SizeConfiguration      = sizeConfiguration;
     EnabledRegionSelection = enabledRegionSelection;
     ProvisioningState      = provisioningState;
     UniqueIdentifier       = uniqueIdentifier;
     LatestOperationResult  = latestOperationResult;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the User 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="email">The user email address, as it was specified
 /// during registration.</param>
 /// <param name="familyName">The user family name, as it was specified
 /// during registration.</param>
 /// <param name="givenName">The user given name, as it was specified
 /// during registration.</param>
 /// <param name="tenantId">The user tenant ID, as it was specified
 /// during registration.</param>
 /// <param name="totalUsage">How long the user has used his VMs in this
 /// lab</param>
 /// <param name="provisioningState">The provisioning status of the
 /// resource.</param>
 /// <param name="uniqueIdentifier">The unique immutable identifier of a
 /// resource (Guid).</param>
 /// <param name="latestOperationResult">The details of the latest
 /// operation. ex: status, error</param>
 public User(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 email = default(string), string familyName = default(string), string givenName = default(string), string tenantId = default(string), System.TimeSpan?totalUsage = default(System.TimeSpan?), string provisioningState = default(string), string uniqueIdentifier = default(string), LatestOperationResult latestOperationResult = default(LatestOperationResult))
     : base(id, name, type, location, tags)
 {
     Email                 = email;
     FamilyName            = familyName;
     GivenName             = givenName;
     TenantId              = tenantId;
     TotalUsage            = totalUsage;
     ProvisioningState     = provisioningState;
     UniqueIdentifier      = uniqueIdentifier;
     LatestOperationResult = latestOperationResult;
     CustomInit();
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the EnvironmentDetails class.
 /// </summary>
 /// <param name="name">Name of the Environment</param>
 /// <param name="description">Description of the Environment</param>
 /// <param name="id">Resource Id of the environment</param>
 /// <param name="provisioningState">The provisioning state of the
 /// environment. This also includes LabIsFull and NotYetProvisioned
 /// status.</param>
 /// <param name="virtualMachineDetails">Details of backing DTL virtual
 /// machine with compute and network details.</param>
 /// <param name="latestOperationResult">The details of the latest
 /// operation. ex: status, error</param>
 /// <param name="environmentState">Publishing state of the environment
 /// setting Possible values are Creating, Created, Failed</param>
 /// <param name="totalUsage">How long the environment has been used by
 /// a lab user</param>
 /// <param name="passwordLastReset">When the password was last reset on
 /// the environment.</param>
 public EnvironmentDetails(string name = default(string), string description = default(string), string id = default(string), string provisioningState = default(string), VirtualMachineDetails virtualMachineDetails = default(VirtualMachineDetails), LatestOperationResult latestOperationResult = default(LatestOperationResult), string environmentState = default(string), System.TimeSpan?totalUsage = default(System.TimeSpan?), System.DateTime?passwordLastReset = default(System.DateTime?))
 {
     Name                  = name;
     Description           = description;
     Id                    = id;
     ProvisioningState     = provisioningState;
     VirtualMachineDetails = virtualMachineDetails;
     LatestOperationResult = latestOperationResult;
     EnvironmentState      = environmentState;
     TotalUsage            = totalUsage;
     PasswordLastReset     = passwordLastReset;
     CustomInit();
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the EnvironmentSetting class.
 /// </summary>
 /// <param name="resourceSettings">The resource specific
 /// settings</param>
 /// <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="publishingState">Describes the readiness of this
 /// environment setting. Possible values include: 'Draft',
 /// 'Publishing', 'Published', 'PublishFailed', 'Scaling'</param>
 /// <param name="configurationState">Describes the user's progress in
 /// configuring their environment setting. Possible values include:
 /// 'NotApplicable', 'Completed'</param>
 /// <param name="description">Describes the environment and its
 /// resource settings</param>
 /// <param name="title">Brief title describing the environment and its
 /// resource settings</param>
 /// <param name="lastChanged">Time when the template VM was last
 /// changed.</param>
 /// <param name="lastPublished">Time when the template VM was last sent
 /// for publishing.</param>
 /// <param name="provisioningState">The provisioning status of the
 /// resource.</param>
 /// <param name="uniqueIdentifier">The unique immutable identifier of a
 /// resource (Guid).</param>
 /// <param name="latestOperationResult">The details of the latest
 /// operation. ex: status, error</param>
 public EnvironmentSetting(ResourceSettings resourceSettings, 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 publishingState = default(string), string configurationState = default(string), string description = default(string), string title = default(string), System.DateTime?lastChanged = default(System.DateTime?), System.DateTime?lastPublished = default(System.DateTime?), string provisioningState = default(string), string uniqueIdentifier = default(string), LatestOperationResult latestOperationResult = default(LatestOperationResult))
     : base(id, name, type, location, tags)
 {
     PublishingState    = publishingState;
     ConfigurationState = configurationState;
     Description        = description;
     Title                 = title;
     ResourceSettings      = resourceSettings;
     LastChanged           = lastChanged;
     LastPublished         = lastPublished;
     ProvisioningState     = provisioningState;
     UniqueIdentifier      = uniqueIdentifier;
     LatestOperationResult = latestOperationResult;
     CustomInit();
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the Lab 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="maxUsersInLab">Maximum number of users allowed in the
 /// lab.</param>
 /// <param name="userQuota">Maximum value MaxUsersInLab can be set to,
 /// as specified by the service</param>
 /// <param name="invitationCode">Invitation code that users can use to
 /// join a lab.</param>
 /// <param name="createdByObjectId">Object id of the user that created
 /// the lab.</param>
 /// <param name="usageQuota">Maximum duration a user can use an
 /// environment for in the lab.</param>
 /// <param name="userAccessMode">Lab user access mode (open to all vs.
 /// restricted to those listed on the lab). Possible values include:
 /// 'Restricted', 'Open'</param>
 /// <param name="createdByUserPrincipalName">Lab creator name</param>
 /// <param name="createdDate">Creation date for the lab</param>
 /// <param name="provisioningState">The provisioning status of the
 /// resource.</param>
 /// <param name="uniqueIdentifier">The unique immutable identifier of a
 /// resource (Guid).</param>
 /// <param name="latestOperationResult">The details of the latest
 /// operation. ex: status, error</param>
 public Lab(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), int?maxUsersInLab = default(int?), int?userQuota = default(int?), string invitationCode = default(string), string createdByObjectId = default(string), System.TimeSpan?usageQuota = default(System.TimeSpan?), string userAccessMode = default(string), string createdByUserPrincipalName = default(string), System.DateTime?createdDate = default(System.DateTime?), string provisioningState = default(string), string uniqueIdentifier = default(string), LatestOperationResult latestOperationResult = default(LatestOperationResult))
     : base(id, name, type, location, tags)
 {
     MaxUsersInLab              = maxUsersInLab;
     UserQuota                  = userQuota;
     InvitationCode             = invitationCode;
     CreatedByObjectId          = createdByObjectId;
     UsageQuota                 = usageQuota;
     UserAccessMode             = userAccessMode;
     CreatedByUserPrincipalName = createdByUserPrincipalName;
     CreatedDate                = createdDate;
     ProvisioningState          = provisioningState;
     UniqueIdentifier           = uniqueIdentifier;
     LatestOperationResult      = latestOperationResult;
     CustomInit();
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the Environment 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="resourceSets">The set of a VM and the setting id it
 /// was created for</param>
 /// <param name="claimedByUserObjectId">The AAD object Id of the user
 /// who has claimed the environment</param>
 /// <param name="claimedByUserPrincipalId">The user principal Id of the
 /// user who has claimed the environment</param>
 /// <param name="claimedByUserName">The name or email address of the
 /// user who has claimed the environment</param>
 /// <param name="isClaimed">Is the environment claimed or not</param>
 /// <param name="lastKnownPowerState">Last known power state of the
 /// environment</param>
 /// <param name="networkInterface">Network details of the
 /// environment</param>
 /// <param name="totalUsage">How long the environment has been used by
 /// a lab user</param>
 /// <param name="passwordLastReset">When the password was last reset on
 /// the environment.</param>
 /// <param name="provisioningState">The provisioning status of the
 /// resource.</param>
 /// <param name="uniqueIdentifier">The unique immutable identifier of a
 /// resource (Guid).</param>
 /// <param name="latestOperationResult">The details of the latest
 /// operation. ex: status, error</param>
 public Environment(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ResourceSet resourceSets = default(ResourceSet), string claimedByUserObjectId = default(string), string claimedByUserPrincipalId = default(string), string claimedByUserName = default(string), bool?isClaimed = default(bool?), string lastKnownPowerState = default(string), NetworkInterface networkInterface = default(NetworkInterface), System.TimeSpan?totalUsage = default(System.TimeSpan?), System.DateTime?passwordLastReset = default(System.DateTime?), string provisioningState = default(string), string uniqueIdentifier = default(string), LatestOperationResult latestOperationResult = default(LatestOperationResult))
     : base(id, name, type, location, tags)
 {
     ResourceSets             = resourceSets;
     ClaimedByUserObjectId    = claimedByUserObjectId;
     ClaimedByUserPrincipalId = claimedByUserPrincipalId;
     ClaimedByUserName        = claimedByUserName;
     IsClaimed             = isClaimed;
     LastKnownPowerState   = lastKnownPowerState;
     NetworkInterface      = networkInterface;
     TotalUsage            = totalUsage;
     PasswordLastReset     = passwordLastReset;
     ProvisioningState     = provisioningState;
     UniqueIdentifier      = uniqueIdentifier;
     LatestOperationResult = latestOperationResult;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the GalleryImage 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="author">The author of the gallery image.</param>
 /// <param name="createdDate">The creation date of the gallery
 /// image.</param>
 /// <param name="description">The description of the gallery
 /// image.</param>
 /// <param name="imageReference">The image reference of the gallery
 /// image.</param>
 /// <param name="icon">The icon of the gallery image.</param>
 /// <param name="isEnabled">Indicates whether this gallery image is
 /// enabled.</param>
 /// <param name="isOverride">Indicates whether this gallery has been
 /// overridden for this lab account</param>
 /// <param name="planId">The third party plan that applies to this
 /// image</param>
 /// <param name="isPlanAuthorized">Indicates if the plan has been
 /// authorized for programmatic deployment.</param>
 /// <param name="provisioningState">The provisioning status of the
 /// resource.</param>
 /// <param name="uniqueIdentifier">The unique immutable identifier of a
 /// resource (Guid).</param>
 /// <param name="latestOperationResult">The details of the latest
 /// operation. ex: status, error</param>
 public GalleryImage(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 author = default(string), System.DateTime?createdDate = default(System.DateTime?), string description = default(string), GalleryImageReference imageReference = default(GalleryImageReference), string icon = default(string), bool?isEnabled = default(bool?), bool?isOverride = default(bool?), string planId = default(string), bool?isPlanAuthorized = default(bool?), string provisioningState = default(string), string uniqueIdentifier = default(string), LatestOperationResult latestOperationResult = default(LatestOperationResult))
     : base(id, name, type, location, tags)
 {
     Author                = author;
     CreatedDate           = createdDate;
     Description           = description;
     ImageReference        = imageReference;
     Icon                  = icon;
     IsEnabled             = isEnabled;
     IsOverride            = isOverride;
     PlanId                = planId;
     IsPlanAuthorized      = isPlanAuthorized;
     ProvisioningState     = provisioningState;
     UniqueIdentifier      = uniqueIdentifier;
     LatestOperationResult = latestOperationResult;
     CustomInit();
 }