Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@
"dir": "azure-resourcemanager-compute",
"source": "specification/compute/resource-manager/readme.md",
"package": "com.azure.resourcemanager.compute",
"args": "--payload-flattening-threshold=1 --tag=package-2021-03-01 --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities",
"note": "Add '@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)' to 'userAssignedIdentities' property of class 'VirtualMachineIdentity', 'VirtualMachineScaleSetIdentity'"
"args": "--payload-flattening-threshold=1 --tag=package-2021-04-01 --rename-model=UserAssignedIdentitiesValue:VirtualMachineIdentityUserAssignedIdentities,VirtualMachineScaleSetIdentityUserAssignedIdentitiesValue:VirtualMachineScaleSetIdentityUserAssignedIdentities"
},
"consumption": {
"dir": "azure-resourcemanager-consumption",
Expand Down
10 changes: 10 additions & 0 deletions sdk/resourcemanager/azure-resourcemanager-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Release History

## 2.7.0-beta.1 (Unreleased)
### Dependency Updates

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, empty line.


- Updated `api-version` to `2021-04-01`.

### Breaking Changes

- property `publicIpAddressSkuName` in `PublicIpAddressSku` is renamed to `name`.
- property `publicIpAddressSkuTier` in `PublicIpAddressSku` is renamed to `tier`.
- Class `AggregationType` is renamed to `AggregationTypeEnum`.
- Enum `SecurityTypes` changed to subclass of `ExpandableStringEnum`.


## 2.6.0 (2021-06-18)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
<artifactId>revapi-maven-plugin</artifactId>
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<skip>true</skip>
<analysisConfiguration>
<revapi.ignore>
<item>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,20 @@ public interface ComputeManagementClient {
*/
RestorePointsClient getRestorePoints();

/**
* Gets the CapacityReservationGroupsClient object to access its operations.
*
* @return the CapacityReservationGroupsClient object.
*/
CapacityReservationGroupsClient getCapacityReservationGroups();

/**
* Gets the CapacityReservationsClient object to access its operations.
*
* @return the CapacityReservationsClient object.
*/
CapacityReservationsClient getCapacityReservations();

/**
* Gets the VirtualMachineScaleSetExtensionsClient object to access its operations.
*
Expand Down

Large diffs are not rendered by default.

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.
* &lt;br&gt;&lt;br&gt; 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();
}
}
}
Loading