Skip to content

Commit

Permalink
regen compute
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft committed Nov 16, 2021
1 parent 7eee05d commit 1fea94b
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 175 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -429,7 +429,7 @@ Mono<Response<Flux<ByteBuffer>>> 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.
Expand All @@ -443,7 +443,7 @@ Mono<Response<Flux<ByteBuffer>>> 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.
Expand All @@ -457,7 +457,7 @@ Mono<Response<Flux<ByteBuffer>>> 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.
Expand All @@ -473,7 +473,7 @@ SyncPoller<PollResult<Void>, 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.
Expand All @@ -500,7 +500,7 @@ SyncPoller<PollResult<Void>, 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.
Expand All @@ -525,7 +525,7 @@ SyncPoller<PollResult<Void>, 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
}

/**
Expand All @@ -125,8 +134,5 @@ public void validate() {
if (sourceMetadata() != null) {
sourceMetadata().validate();
}
if (provisioningDetails() != null) {
provisioningDetails().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -1526,7 +1526,7 @@ public Mono<Response<Flux<ByteBuffer>>> 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.
Expand Down Expand Up @@ -1573,7 +1573,7 @@ private Mono<Response<Flux<ByteBuffer>>> 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.
Expand All @@ -1593,7 +1593,7 @@ public PollerFlux<PollResult<Void>, 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.
Expand All @@ -1616,7 +1616,7 @@ private PollerFlux<PollResult<Void>, 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.
Expand All @@ -1633,7 +1633,7 @@ public SyncPoller<PollResult<Void>, 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.
Expand All @@ -1651,7 +1651,7 @@ public SyncPoller<PollResult<Void>, 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.
Expand Down Expand Up @@ -1687,7 +1687,7 @@ public Mono<Void> 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.
Expand All @@ -1706,7 +1706,7 @@ private Mono<Void> 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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. <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.
* Output 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.
*/
@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. &lt;br&gt;&lt;br&gt; You can easily view the output of your console log.
* &lt;br&gt;&lt;br&gt; Azure also enables you to see a screenshot of the VM from the hypervisor.
* and Screenshot to diagnose VM status. &lt;br&gt;**NOTE**: If storageUri is being specified then ensure that the
* storage account is in the same region and subscription as the VM. &lt;br&gt;&lt;br&gt; You can easily view the
* output of your console log. &lt;br&gt;&lt;br&gt; Azure also enables you to see a screenshot of the VM from the
* hypervisor.
*
* @return the bootDiagnostics value.
*/
Expand All @@ -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. &lt;br&gt;&lt;br&gt; You can easily view the output of your console log.
* &lt;br&gt;&lt;br&gt; Azure also enables you to see a screenshot of the VM from the hypervisor.
* and Screenshot to diagnose VM status. &lt;br&gt;**NOTE**: If storageUri is being specified then ensure that the
* storage account is in the same region and subscription as the VM. &lt;br&gt;&lt;br&gt; You can easily view the
* output of your console log. &lt;br&gt;&lt;br&gt; 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.
Expand Down
Loading

0 comments on commit 1fea94b

Please sign in to comment.