-
Notifications
You must be signed in to change notification settings - Fork 2.1k
generate code for compute service and update tests and session-records #23133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
da5ebf4
manual generate code for compute service
haolingdong-msft 3d8491c
replace withRootPassword() to withSsh(sshPublicKey())
haolingdong-msft 702c777
update test case in compute
haolingdong-msft 88bb4bd
update test session records in compute
haolingdong-msft e8ca49f
Merge remote-tracking branch 'origin/main' into 1778
haolingdong-msft 27760f4
update api-version for other services' tests
haolingdong-msft 985db00
update test case
haolingdong-msft 0391575
Merge remote-tracking branch 'origin/main' into 1778
haolingdong-msft 94b00c1
remove unused imports
haolingdong-msft ec2f54a
add breaking changes to change log and update pom.xml to skip revapi
haolingdong-msft c92f1a1
Merge branch 'main' into 1778
haolingdong-msft bf4da14
remove note line in api-specs.json and add the changed comment
haolingdong-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
sdk/resourcemanager/azure-resourcemanager-compute/CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
449 changes: 449 additions & 0 deletions
449
...c/main/java/com/azure/resourcemanager/compute/fluent/CapacityReservationGroupsClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
564 changes: 564 additions & 0 deletions
564
...te/src/main/java/com/azure/resourcemanager/compute/fluent/CapacityReservationsClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
335 changes: 335 additions & 0 deletions
335
...mpute/src/main/java/com/azure/resourcemanager/compute/fluent/DiskRestorePointsClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
143 changes: 143 additions & 0 deletions
143
...n/java/com/azure/resourcemanager/compute/fluent/models/CapacityReservationGroupInner.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,143 @@ | ||
| // 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.fluent.models; | ||
|
|
||
| import com.azure.core.annotation.Fluent; | ||
| import com.azure.core.annotation.JsonFlatten; | ||
| import com.azure.core.management.Resource; | ||
| import com.azure.core.util.logging.ClientLogger; | ||
| import com.azure.resourcemanager.compute.models.CapacityReservationGroupInstanceView; | ||
| import com.azure.resourcemanager.compute.models.SubResourceReadOnly; | ||
| import com.fasterxml.jackson.annotation.JsonIgnore; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.util.List; | ||
| import java.util.Map; | ||
|
|
||
| /** | ||
| * Specifies information about the capacity reservation group that the capacity reservations should be assigned to. | ||
| * <br><br> Currently, a capacity reservation can only be added to a capacity reservation group at creation | ||
| * time. An existing capacity reservation cannot be added or moved to another capacity reservation group. | ||
| */ | ||
| @JsonFlatten | ||
| @Fluent | ||
| public class CapacityReservationGroupInner extends Resource { | ||
| @JsonIgnore private final ClientLogger logger = new ClientLogger(CapacityReservationGroupInner.class); | ||
|
|
||
| /* | ||
| * Availability Zones to use for this capacity reservation group. The zones | ||
| * can be assigned only during creation. If not provided, the group | ||
| * supports only regional resources in the region. If provided, enforces | ||
| * each capacity reservation in the group to be in one of the zones. | ||
| */ | ||
| @JsonProperty(value = "zones") | ||
| private List<String> zones; | ||
|
|
||
| /* | ||
| * A list of all capacity reservation resource ids that belong to capacity | ||
| * reservation group. | ||
| */ | ||
| @JsonProperty(value = "properties.capacityReservations", access = JsonProperty.Access.WRITE_ONLY) | ||
| private List<SubResourceReadOnly> capacityReservations; | ||
|
|
||
| /* | ||
| * A list of references to all virtual machines associated to the capacity | ||
| * reservation group. | ||
| */ | ||
| @JsonProperty(value = "properties.virtualMachinesAssociated", access = JsonProperty.Access.WRITE_ONLY) | ||
| private List<SubResourceReadOnly> virtualMachinesAssociated; | ||
|
|
||
| /* | ||
| * The capacity reservation group instance view which has the list of | ||
| * instance views for all the capacity reservations that belong to the | ||
| * capacity reservation group. | ||
| */ | ||
| @JsonProperty(value = "properties.instanceView", access = JsonProperty.Access.WRITE_ONLY) | ||
| private CapacityReservationGroupInstanceView instanceView; | ||
|
|
||
| /** | ||
| * Get the zones property: Availability Zones to use for this capacity reservation group. The zones can be assigned | ||
| * only during creation. If not provided, the group supports only regional resources in the region. If provided, | ||
| * enforces each capacity reservation in the group to be in one of the zones. | ||
| * | ||
| * @return the zones value. | ||
| */ | ||
| public List<String> zones() { | ||
| return this.zones; | ||
| } | ||
|
|
||
| /** | ||
| * Set the zones property: Availability Zones to use for this capacity reservation group. The zones can be assigned | ||
| * only during creation. If not provided, the group supports only regional resources in the region. If provided, | ||
| * enforces each capacity reservation in the group to be in one of the zones. | ||
| * | ||
| * @param zones the zones value to set. | ||
| * @return the CapacityReservationGroupInner object itself. | ||
| */ | ||
| public CapacityReservationGroupInner withZones(List<String> zones) { | ||
| this.zones = zones; | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * Get the capacityReservations property: A list of all capacity reservation resource ids that belong to capacity | ||
| * reservation group. | ||
| * | ||
| * @return the capacityReservations value. | ||
| */ | ||
| public List<SubResourceReadOnly> capacityReservations() { | ||
| return this.capacityReservations; | ||
| } | ||
|
|
||
| /** | ||
| * Get the virtualMachinesAssociated property: A list of references to all virtual machines associated to the | ||
| * capacity reservation group. | ||
| * | ||
| * @return the virtualMachinesAssociated value. | ||
| */ | ||
| public List<SubResourceReadOnly> virtualMachinesAssociated() { | ||
| return this.virtualMachinesAssociated; | ||
| } | ||
|
|
||
| /** | ||
| * Get the instanceView property: The capacity reservation group instance view which has the list of instance views | ||
| * for all the capacity reservations that belong to the capacity reservation group. | ||
| * | ||
| * @return the instanceView value. | ||
| */ | ||
| public CapacityReservationGroupInstanceView instanceView() { | ||
| return this.instanceView; | ||
| } | ||
|
|
||
| /** {@inheritDoc} */ | ||
| @Override | ||
| public CapacityReservationGroupInner withLocation(String location) { | ||
| super.withLocation(location); | ||
| return this; | ||
| } | ||
|
|
||
| /** {@inheritDoc} */ | ||
| @Override | ||
| public CapacityReservationGroupInner withTags(Map<String, String> tags) { | ||
| super.withTags(tags); | ||
| return this; | ||
| } | ||
|
|
||
| /** | ||
| * Validates the instance. | ||
| * | ||
| * @throws IllegalArgumentException thrown if the instance is not valid. | ||
| */ | ||
| public void validate() { | ||
| if (capacityReservations() != null) { | ||
| capacityReservations().forEach(e -> e.validate()); | ||
| } | ||
| if (virtualMachinesAssociated() != null) { | ||
| virtualMachinesAssociated().forEach(e -> e.validate()); | ||
| } | ||
| if (instanceView() != null) { | ||
| instanceView().validate(); | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, empty line.