Пример #1
0
 /// <summary>
 /// Initializes a new instance of the DiskEncryptionSet class.
 /// </summary>
 /// <param name="location">Resource location</param>
 /// <param name="id">Resource Id</param>
 /// <param name="name">Resource name</param>
 /// <param name="type">Resource type</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="encryptionType">Possible values include:
 /// 'EncryptionAtRestWithCustomerKey',
 /// 'EncryptionAtRestWithPlatformAndCustomerKeys',
 /// 'ConfidentialVmEncryptedWithCustomerKey'</param>
 /// <param name="activeKey">The key vault key which is currently used
 /// by this disk encryption set.</param>
 /// <param name="previousKeys">A readonly collection of key vault keys
 /// previously used by this disk encryption set while a key rotation is
 /// in progress. It will be empty if there is no ongoing key
 /// rotation.</param>
 /// <param name="provisioningState">The disk encryption set
 /// provisioning state.</param>
 /// <param name="rotationToLatestKeyVersionEnabled">Set this flag to
 /// true to enable auto-updating of this disk encryption set to the
 /// latest key version.</param>
 /// <param name="lastKeyRotationTimestamp">The time when the active key
 /// of this disk encryption set was updated.</param>
 /// <param name="autoKeyRotationError">The error that was encountered
 /// during auto-key rotation. If an error is present, then auto-key
 /// rotation will not be attempted until the error on this disk
 /// encryption set is fixed.</param>
 public DiskEncryptionSet(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), EncryptionSetIdentity identity = default(EncryptionSetIdentity), string encryptionType = default(string), KeyForDiskEncryptionSet activeKey = default(KeyForDiskEncryptionSet), IList <KeyForDiskEncryptionSet> previousKeys = default(IList <KeyForDiskEncryptionSet>), string provisioningState = default(string), bool?rotationToLatestKeyVersionEnabled = default(bool?), System.DateTime?lastKeyRotationTimestamp = default(System.DateTime?), ApiError autoKeyRotationError = default(ApiError))
     : base(location, id, name, type, tags)
 {
     Identity          = identity;
     EncryptionType    = encryptionType;
     ActiveKey         = activeKey;
     PreviousKeys      = previousKeys;
     ProvisioningState = provisioningState;
     RotationToLatestKeyVersionEnabled = rotationToLatestKeyVersionEnabled;
     LastKeyRotationTimestamp          = lastKeyRotationTimestamp;
     AutoKeyRotationError = autoKeyRotationError;
     CustomInit();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the LastPatchInstallationSummary
 /// class.
 /// </summary>
 /// <param name="status">The overall success or failure status of the
 /// operation. It remains "InProgress" until the operation completes.
 /// At that point it will become "Failed", "Succeeded", or
 /// "CompletedWithWarnings.". Possible values include: 'InProgress',
 /// 'Failed', 'Succeeded', 'CompletedWithWarnings'</param>
 /// <param name="installationActivityId">The activity ID of the
 /// operation that produced this result. It is used to correlate across
 /// CRP and extension logs.</param>
 /// <param name="maintenanceWindowExceeded">Describes whether the
 /// operation ran out of time before it completed all its intended
 /// actions</param>
 /// <param name="rebootStatus">The reboot status of the machine after
 /// the patch operation. It will be in "NotNeeded" status if reboot is
 /// not needed after the patch operation. "Required" will be the status
 /// once the patch is applied and machine is required to reboot.
 /// "Started" will be the reboot status when the machine has started to
 /// reboot. "Failed" will be the status if the machine is failed to
 /// reboot. "Completed" will be the status once the machine is rebooted
 /// successfully. Possible values include: 'NotNeeded', 'Required',
 /// 'Started', 'Failed', 'Completed'</param>
 /// <param name="notSelectedPatchCount">The number of all available
 /// patches but not going to be installed because it didn't match a
 /// classification or inclusion list entry.</param>
 /// <param name="excludedPatchCount">The number of all available
 /// patches but excluded explicitly by a customer-specified exclusion
 /// list match.</param>
 /// <param name="pendingPatchCount">The number of all available patches
 /// expected to be installed over the course of the patch installation
 /// operation.</param>
 /// <param name="installedPatchCount">The count of patches that
 /// successfully installed.</param>
 /// <param name="failedPatchCount">The count of patches that failed
 /// installation.</param>
 /// <param name="startTime">The UTC timestamp when the operation
 /// began.</param>
 /// <param name="lastModifiedTime">The UTC timestamp when the operation
 /// began.</param>
 /// <param name="startedBy">The person or system account that started
 /// the operation</param>
 /// <param name="error">The errors that were encountered during
 /// execution of the operation. The details array contains the list of
 /// them.</param>
 public LastPatchInstallationSummary(string status = default(string), string installationActivityId = default(string), bool?maintenanceWindowExceeded = default(bool?), string rebootStatus = default(string), int?notSelectedPatchCount = default(int?), int?excludedPatchCount = default(int?), int?pendingPatchCount = default(int?), int?installedPatchCount = default(int?), int?failedPatchCount = default(int?), System.DateTime?startTime = default(System.DateTime?), System.DateTime?lastModifiedTime = default(System.DateTime?), string startedBy = default(string), ApiError error = default(ApiError))
 {
     Status = status;
     InstallationActivityId    = installationActivityId;
     MaintenanceWindowExceeded = maintenanceWindowExceeded;
     RebootStatus          = rebootStatus;
     NotSelectedPatchCount = notSelectedPatchCount;
     ExcludedPatchCount    = excludedPatchCount;
     PendingPatchCount     = pendingPatchCount;
     InstalledPatchCount   = installedPatchCount;
     FailedPatchCount      = failedPatchCount;
     StartTime             = startTime;
     LastModifiedTime      = lastModifiedTime;
     StartedBy             = startedBy;
     Error = error;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ConfigurationStatusSummary class.
 /// </summary>
 /// <param name="patchModeProvisioningState">Describes the enablement
 /// status of the specified patchMode &lt;see
 /// cref="InGuestPatchMode"/&gt; on a VM.. "Unknown" is the state when
 /// the status is unknown. "Pending" is the state that tells Changes
 /// made to the patch configuration in the VM model have not yet been
 /// completed on the VM. "Ready" state shows that the VM is in the
 /// patch configuration state specified by its VM model. Possible
 /// values include: 'Unknown', 'Pending', 'Ready'</param>
 /// <param name="lastModifiedTime">The UTC timestamp when the operation
 /// began.</param>
 /// <param name="error">The errors that were encountered during
 /// execution of the operation. The details array contains the list of
 /// them.</param>
 public ConfigurationStatusSummary(string patchModeProvisioningState = default(string), System.DateTime?lastModifiedTime = default(System.DateTime?), ApiError error = default(ApiError))
 {
     PatchModeProvisioningState = patchModeProvisioningState;
     LastModifiedTime           = lastModifiedTime;
     Error = error;
     CustomInit();
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the VirtualMachineAssessPatchesResult
 /// class.
 /// </summary>
 /// <param name="status">The overall success or failure status of the
 /// operation. It remains "InProgress" until the operation completes.
 /// At that point it will become "Failed", "Succeeded", or
 /// "CompletedWithWarnings.". Possible values include: 'InProgress',
 /// 'Failed', 'Succeeded', 'CompletedWithWarnings'</param>
 /// <param name="assessmentActivityId">The activity ID of the operation
 /// that produced this result. It is used to correlate across CRP and
 /// extension logs.</param>
 /// <param name="rebootPending">The overall reboot status of the VM. It
 /// will be true when partially installed patches require a reboot to
 /// complete installation but the reboot has not yet occurred.</param>
 /// <param name="criticalAndSecurityPatchCount">The number of critical
 /// or security patches that have been detected as available and not
 /// yet installed.</param>
 /// <param name="otherPatchCount">The number of all available patches
 /// excluding critical and security.</param>
 /// <param name="startDateTime">The UTC timestamp when the operation
 /// began.</param>
 /// <param name="patches">The list of patches that have been detected
 /// as available for installation.</param>
 /// <param name="error">The errors that were encountered during
 /// execution of the operation. The details array contains the list of
 /// them.</param>
 public VirtualMachineAssessPatchesResult(string status = default(string), string assessmentActivityId = default(string), bool?rebootPending = default(bool?), int?criticalAndSecurityPatchCount = default(int?), int?otherPatchCount = default(int?), System.DateTime?startDateTime = default(System.DateTime?), IList <VirtualMachineSoftwarePatchProperties> patches = default(IList <VirtualMachineSoftwarePatchProperties>), ApiError error = default(ApiError))
 {
     Status = status;
     AssessmentActivityId          = assessmentActivityId;
     RebootPending                 = rebootPending;
     CriticalAndSecurityPatchCount = criticalAndSecurityPatchCount;
     OtherPatchCount               = otherPatchCount;
     StartDateTime                 = startDateTime;
     Patches = patches;
     Error   = error;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the
 /// VirtualMachineInstallPatchesResult class.
 /// </summary>
 /// <param name="status">The overall success or failure status of the
 /// operation. It remains "InProgress" until the operation completes.
 /// At that point it will become "Failed", "Succeeded", "Unknown" or
 /// "CompletedWithWarnings.". Possible values include: 'Unknown',
 /// 'InProgress', 'Failed', 'Succeeded',
 /// 'CompletedWithWarnings'</param>
 /// <param name="installationActivityId">The activity ID of the
 /// operation that produced this result. It is used to correlate across
 /// CRP and extension logs.</param>
 /// <param name="rebootStatus">The reboot state of the VM following
 /// completion of the operation. Possible values include: 'Unknown',
 /// 'NotNeeded', 'Required', 'Started', 'Failed', 'Completed'</param>
 /// <param name="maintenanceWindowExceeded">Whether the operation ran
 /// out of time before it completed all its intended actions.</param>
 /// <param name="excludedPatchCount">The number of patches that were
 /// not installed due to the user blocking their installation.</param>
 /// <param name="notSelectedPatchCount">The number of patches that were
 /// detected as available for install, but did not meet the operation's
 /// criteria.</param>
 /// <param name="pendingPatchCount">The number of patches that were
 /// identified as meeting the installation criteria, but were not able
 /// to be installed. Typically this happens when
 /// maintenanceWindowExceeded == true.</param>
 /// <param name="installedPatchCount">The number of patches
 /// successfully installed.</param>
 /// <param name="failedPatchCount">The number of patches that could not
 /// be installed due to some issue. See errors for details.</param>
 /// <param name="patches">The patches that were installed during the
 /// operation.</param>
 /// <param name="startDateTime">The UTC timestamp when the operation
 /// began.</param>
 /// <param name="error">The errors that were encountered during
 /// execution of the operation. The details array contains the list of
 /// them.</param>
 public VirtualMachineInstallPatchesResult(string status = default(string), string installationActivityId = default(string), string rebootStatus = default(string), bool?maintenanceWindowExceeded = default(bool?), int?excludedPatchCount = default(int?), int?notSelectedPatchCount = default(int?), int?pendingPatchCount = default(int?), int?installedPatchCount = default(int?), int?failedPatchCount = default(int?), IList <PatchInstallationDetail> patches = default(IList <PatchInstallationDetail>), System.DateTime?startDateTime = default(System.DateTime?), ApiError error = default(ApiError))
 {
     Status = status;
     InstallationActivityId    = installationActivityId;
     RebootStatus              = rebootStatus;
     MaintenanceWindowExceeded = maintenanceWindowExceeded;
     ExcludedPatchCount        = excludedPatchCount;
     NotSelectedPatchCount     = notSelectedPatchCount;
     PendingPatchCount         = pendingPatchCount;
     InstalledPatchCount       = installedPatchCount;
     FailedPatchCount          = failedPatchCount;
     Patches       = patches;
     StartDateTime = startDateTime;
     Error         = error;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the
 /// UpgradeOperationHistoricalStatusInfoProperties class.
 /// </summary>
 /// <param name="runningStatus">Information about the overall status of
 /// the upgrade operation.</param>
 /// <param name="progress">Counts of the VMs in each state.</param>
 /// <param name="error">Error Details for this upgrade if there are
 /// any.</param>
 /// <param name="startedBy">Invoker of the Upgrade Operation. Possible
 /// values include: 'Unknown', 'User', 'Platform'</param>
 /// <param name="targetImageReference">Image Reference details</param>
 /// <param name="rollbackInfo">Information about OS rollback if
 /// performed</param>
 public UpgradeOperationHistoricalStatusInfoProperties(UpgradeOperationHistoryStatus runningStatus = default(UpgradeOperationHistoryStatus), RollingUpgradeProgressInfo progress = default(RollingUpgradeProgressInfo), ApiError error = default(ApiError), UpgradeOperationInvoker?startedBy = default(UpgradeOperationInvoker?), ImageReference targetImageReference = default(ImageReference), RollbackStatusInfo rollbackInfo = default(RollbackStatusInfo))
 {
     RunningStatus        = runningStatus;
     Progress             = progress;
     Error                = error;
     StartedBy            = startedBy;
     TargetImageReference = targetImageReference;
     RollbackInfo         = rollbackInfo;
     CustomInit();
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the RollingUpgradeStatusInfo class.
 /// </summary>
 /// <param name="location">Resource location</param>
 /// <param name="id">Resource Id</param>
 /// <param name="name">Resource name</param>
 /// <param name="type">Resource type</param>
 /// <param name="tags">Resource tags</param>
 /// <param name="policy">The rolling upgrade policies applied for this
 /// upgrade.</param>
 /// <param name="runningStatus">Information about the current running
 /// state of the overall upgrade.</param>
 /// <param name="progress">Information about the number of virtual
 /// machine instances in each upgrade state.</param>
 /// <param name="error">Error details for this upgrade, if there are
 /// any.</param>
 public RollingUpgradeStatusInfo(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), RollingUpgradePolicy policy = default(RollingUpgradePolicy), RollingUpgradeRunningStatus runningStatus = default(RollingUpgradeRunningStatus), RollingUpgradeProgressInfo progress = default(RollingUpgradeProgressInfo), ApiError error = default(ApiError))
     : base(location, id, name, type, tags)
 {
     Policy        = policy;
     RunningStatus = runningStatus;
     Progress      = progress;
     Error         = error;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the AvailablePatchSummary class.
 /// </summary>
 /// <param name="status">The overall success or failure status of the
 /// operation. It remains "InProgress" until the operation completes.
 /// At that point it will become "Unknown", "Failed", "Succeeded", or
 /// "CompletedWithWarnings.". Possible values include: 'Unknown',
 /// 'InProgress', 'Failed', 'Succeeded',
 /// 'CompletedWithWarnings'</param>
 /// <param name="assessmentActivityId">The activity ID of the operation
 /// that produced this result. It is used to correlate across CRP and
 /// extension logs.</param>
 /// <param name="rebootPending">The overall reboot status of the VM. It
 /// will be true when partially installed patches require a reboot to
 /// complete installation but the reboot has not yet occurred.</param>
 /// <param name="criticalAndSecurityPatchCount">The number of critical
 /// or security patches that have been detected as available and not
 /// yet installed.</param>
 /// <param name="otherPatchCount">The number of all available patches
 /// excluding critical and security.</param>
 /// <param name="startTime">The UTC timestamp when the operation
 /// began.</param>
 /// <param name="lastModifiedTime">The UTC timestamp when the operation
 /// began.</param>
 /// <param name="error">The errors that were encountered during
 /// execution of the operation. The details array contains the list of
 /// them.</param>
 public AvailablePatchSummary(string status = default(string), string assessmentActivityId = default(string), bool?rebootPending = default(bool?), int?criticalAndSecurityPatchCount = default(int?), int?otherPatchCount = default(int?), System.DateTime?startTime = default(System.DateTime?), System.DateTime?lastModifiedTime = default(System.DateTime?), ApiError error = default(ApiError))
 {
     Status = status;
     AssessmentActivityId          = assessmentActivityId;
     RebootPending                 = rebootPending;
     CriticalAndSecurityPatchCount = criticalAndSecurityPatchCount;
     OtherPatchCount               = otherPatchCount;
     StartTime        = startTime;
     LastModifiedTime = lastModifiedTime;
     Error            = error;
     CustomInit();
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the RollbackStatusInfo class.
 /// </summary>
 /// <param name="successfullyRolledbackInstanceCount">The number of
 /// instances which have been successfully rolled back.</param>
 /// <param name="failedRolledbackInstanceCount">The number of instances
 /// which failed to rollback.</param>
 /// <param name="rollbackError">Error details if OS rollback
 /// failed.</param>
 public RollbackStatusInfo(int?successfullyRolledbackInstanceCount = default(int?), int?failedRolledbackInstanceCount = default(int?), ApiError rollbackError = default(ApiError))
 {
     SuccessfullyRolledbackInstanceCount = successfullyRolledbackInstanceCount;
     FailedRolledbackInstanceCount       = failedRolledbackInstanceCount;
     RollbackError = rollbackError;
     CustomInit();
 }