diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java index d7c64d3a004d0..76edfa257c5a2 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachinesClient.java @@ -414,7 +414,7 @@ VirtualMachineInner update( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -429,7 +429,7 @@ Mono>> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -443,7 +443,7 @@ Mono>> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -457,7 +457,7 @@ Mono>> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -473,7 +473,7 @@ SyncPoller, Void> beginDelete( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -500,7 +500,7 @@ SyncPoller, Void> beginDelete( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -525,7 +525,7 @@ SyncPoller, Void> beginDelete( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointInner.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointInner.java index b5852b7a1a01d..830365655f39f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointInner.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointInner.java @@ -9,10 +9,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.compute.models.ApiEntityReference; import com.azure.resourcemanager.compute.models.ConsistencyModeTypes; -import com.azure.resourcemanager.compute.models.RestorePointProvisioningDetails; import com.azure.resourcemanager.compute.models.RestorePointSourceMetadata; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; import java.util.List; /** Restore Point details. */ @@ -89,13 +89,26 @@ public ConsistencyModeTypes consistencyMode() { } /** - * Get the provisioningDetails property: Gets the provisioning details set by the server during Create restore point - * operation. + * Get the timeCreated property: Gets the creation time of the restore point. * - * @return the provisioningDetails value. + * @return the timeCreated value. */ - public RestorePointProvisioningDetails provisioningDetails() { - return this.innerProperties() == null ? null : this.innerProperties().provisioningDetails(); + public OffsetDateTime timeCreated() { + return this.innerProperties() == null ? null : this.innerProperties().timeCreated(); + } + + /** + * Set the timeCreated property: Gets the creation time of the restore point. + * + * @param timeCreated the timeCreated value to set. + * @return the RestorePointInner object itself. + */ + public RestorePointInner withTimeCreated(OffsetDateTime timeCreated) { + if (this.innerProperties() == null) { + this.innerProperties = new RestorePointProperties(); + } + this.innerProperties().withTimeCreated(timeCreated); + return this; } /** diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointProperties.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointProperties.java index b557007f5f90b..d1315f85fc1f0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointProperties.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/RestorePointProperties.java @@ -8,10 +8,10 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.compute.models.ApiEntityReference; import com.azure.resourcemanager.compute.models.ConsistencyModeTypes; -import com.azure.resourcemanager.compute.models.RestorePointProvisioningDetails; import com.azure.resourcemanager.compute.models.RestorePointSourceMetadata; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; import java.util.List; /** The restore point properties. */ @@ -47,11 +47,10 @@ public final class RestorePointProperties { private ConsistencyModeTypes consistencyMode; /* - * Gets the provisioning details set by the server during Create restore - * point operation. + * Gets the creation time of the restore point. */ - @JsonProperty(value = "provisioningDetails", access = JsonProperty.Access.WRITE_ONLY) - private RestorePointProvisioningDetails provisioningDetails; + @JsonProperty(value = "timeCreated") + private OffsetDateTime timeCreated; /** * Get the excludeDisks property: List of disk resource ids that the customer wishes to exclude from the restore @@ -104,13 +103,23 @@ public ConsistencyModeTypes consistencyMode() { } /** - * Get the provisioningDetails property: Gets the provisioning details set by the server during Create restore point - * operation. + * Get the timeCreated property: Gets the creation time of the restore point. * - * @return the provisioningDetails value. + * @return the timeCreated value. */ - public RestorePointProvisioningDetails provisioningDetails() { - return this.provisioningDetails; + public OffsetDateTime timeCreated() { + return this.timeCreated; + } + + /** + * Set the timeCreated property: Gets the creation time of the restore point. + * + * @param timeCreated the timeCreated value to set. + * @return the RestorePointProperties object itself. + */ + public RestorePointProperties withTimeCreated(OffsetDateTime timeCreated) { + this.timeCreated = timeCreated; + return this; } /** @@ -125,8 +134,5 @@ public void validate() { if (sourceMetadata() != null) { sourceMetadata().validate(); } - if (provisioningDetails() != null) { - provisioningDetails().validate(); - } } } diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java index 1174e59aae433..72a8f0db3373b 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachinesClientImpl.java @@ -1477,7 +1477,7 @@ public VirtualMachineInner update( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1526,7 +1526,7 @@ public Mono>> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1573,7 +1573,7 @@ private Mono>> deleteWithResponseAsync( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1593,7 +1593,7 @@ public PollerFlux, Void> beginDeleteAsync( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1616,7 +1616,7 @@ private PollerFlux, Void> beginDeleteAsync( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1633,7 +1633,7 @@ public SyncPoller, Void> beginDelete( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1651,7 +1651,7 @@ public SyncPoller, Void> beginDelete( * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1687,7 +1687,7 @@ public Mono deleteAsync(String resourceGroupName, String vmName) { * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -1706,7 +1706,7 @@ private Mono deleteAsync(String resourceGroupName, String vmName, Boolean * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1736,7 +1736,7 @@ public void delete(String resourceGroupName, String vmName) { * * @param resourceGroupName The name of the resource group. * @param vmName The name of the virtual machine. - * @param forceDeletion Optional parameter to force delete virtual machines.(Feature in Preview). + * @param forceDeletion Optional parameter to force delete virtual machines. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiagnosticsProfile.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiagnosticsProfile.java index 3a548af587e06..3a57aa31c6455 100644 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiagnosticsProfile.java +++ b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/DiagnosticsProfile.java @@ -16,17 +16,21 @@ public final class DiagnosticsProfile { /* * Boot Diagnostics is a debugging feature which allows you to view Console - * Output and Screenshot to diagnose VM status.

You can easily - * view the output of your console log.

Azure also enables you to - * see a screenshot of the VM from the hypervisor. + * Output and Screenshot to diagnose VM status.
**NOTE**: If storageUri + * is being specified then ensure that the storage account is in the same + * region and subscription as the VM.

You can easily view the + * output of your console log.

Azure also enables you to see a + * screenshot of the VM from the hypervisor. */ @JsonProperty(value = "bootDiagnostics") private BootDiagnostics bootDiagnostics; /** * Get the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output - * and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. - * <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor. + * and Screenshot to diagnose VM status. <br>**NOTE**: If storageUri is being specified then ensure that the + * storage account is in the same region and subscription as the VM. <br><br> You can easily view the + * output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the + * hypervisor. * * @return the bootDiagnostics value. */ @@ -36,8 +40,10 @@ public BootDiagnostics bootDiagnostics() { /** * Set the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output - * and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. - * <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor. + * and Screenshot to diagnose VM status. <br>**NOTE**: If storageUri is being specified then ensure that the + * storage account is in the same region and subscription as the VM. <br><br> You can easily view the + * output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the + * hypervisor. * * @param bootDiagnostics the bootDiagnostics value to set. * @return the DiagnosticsProfile object itself. diff --git a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/RestorePointProvisioningDetails.java b/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/RestorePointProvisioningDetails.java deleted file mode 100644 index 1429508c95fb0..0000000000000 --- a/sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/RestorePointProvisioningDetails.java +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.compute.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; - -/** Restore Point Provisioning details. */ -@Fluent -public final class RestorePointProvisioningDetails { - @JsonIgnore private final ClientLogger logger = new ClientLogger(RestorePointProvisioningDetails.class); - - /* - * Gets the creation time of the restore point. - */ - @JsonProperty(value = "creationTime") - private OffsetDateTime creationTime; - - /* - * Gets the total size of the data in all the disks which are part of the - * restore point. - */ - @JsonProperty(value = "totalUsedSizeInBytes") - private Long totalUsedSizeInBytes; - - /* - * Gets the status of the Create restore point operation. - */ - @JsonProperty(value = "statusCode") - private Integer statusCode; - - /* - * Gets the status message of the Create restore point operation. - */ - @JsonProperty(value = "statusMessage") - private String statusMessage; - - /** - * Get the creationTime property: Gets the creation time of the restore point. - * - * @return the creationTime value. - */ - public OffsetDateTime creationTime() { - return this.creationTime; - } - - /** - * Set the creationTime property: Gets the creation time of the restore point. - * - * @param creationTime the creationTime value to set. - * @return the RestorePointProvisioningDetails object itself. - */ - public RestorePointProvisioningDetails withCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * Get the totalUsedSizeInBytes property: Gets the total size of the data in all the disks which are part of the - * restore point. - * - * @return the totalUsedSizeInBytes value. - */ - public Long totalUsedSizeInBytes() { - return this.totalUsedSizeInBytes; - } - - /** - * Set the totalUsedSizeInBytes property: Gets the total size of the data in all the disks which are part of the - * restore point. - * - * @param totalUsedSizeInBytes the totalUsedSizeInBytes value to set. - * @return the RestorePointProvisioningDetails object itself. - */ - public RestorePointProvisioningDetails withTotalUsedSizeInBytes(Long totalUsedSizeInBytes) { - this.totalUsedSizeInBytes = totalUsedSizeInBytes; - return this; - } - - /** - * Get the statusCode property: Gets the status of the Create restore point operation. - * - * @return the statusCode value. - */ - public Integer statusCode() { - return this.statusCode; - } - - /** - * Set the statusCode property: Gets the status of the Create restore point operation. - * - * @param statusCode the statusCode value to set. - * @return the RestorePointProvisioningDetails object itself. - */ - public RestorePointProvisioningDetails withStatusCode(Integer statusCode) { - this.statusCode = statusCode; - return this; - } - - /** - * Get the statusMessage property: Gets the status message of the Create restore point operation. - * - * @return the statusMessage value. - */ - public String statusMessage() { - return this.statusMessage; - } - - /** - * Set the statusMessage property: Gets the status message of the Create restore point operation. - * - * @param statusMessage the statusMessage value to set. - * @return the RestorePointProvisioningDetails object itself. - */ - public RestorePointProvisioningDetails withStatusMessage(String statusMessage) { - this.statusMessage = statusMessage; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } -}