Skip to content
Closed
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
4 changes: 3 additions & 1 deletion sdk/devcenter/azure-resourcemanager-devcenter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2023-03-21)

- Azure Resource Manager DevCenter client library for Java. This package contains Microsoft Azure SDK for DevCenter Management SDK. DevCenter Management API. Package tag package-preview-2023-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
4 changes: 2 additions & 2 deletions sdk/devcenter/azure-resourcemanager-devcenter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager DevCenter client library for Java.

This package contains Microsoft Azure SDK for DevCenter Management SDK. DevCenter Management API. Package tag package-preview-2022-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for DevCenter Management SDK. DevCenter Management API. Package tag package-preview-2023-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-devcenter</artifactId>
<version>1.0.0-beta.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
573 changes: 282 additions & 291 deletions sdk/devcenter/azure-resourcemanager-devcenter/SAMPLE.md

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions sdk/devcenter/azure-resourcemanager-devcenter/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand All @@ -13,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for DevCenter Management</name>
<description>This package contains Microsoft Azure SDK for DevCenter Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. DevCenter Management API. Package tag package-preview-2022-11.</description>
<description>This package contains Microsoft Azure SDK for DevCenter Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. DevCenter Management API. Package tag package-preview-2023-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -38,7 +43,8 @@
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import com.azure.resourcemanager.devcenter.implementation.ProjectsImpl;
import com.azure.resourcemanager.devcenter.implementation.SchedulesImpl;
import com.azure.resourcemanager.devcenter.implementation.SkusImpl;
import com.azure.resourcemanager.devcenter.implementation.UsagesImpl;
import com.azure.resourcemanager.devcenter.models.AttachedNetworks;
import com.azure.resourcemanager.devcenter.models.Catalogs;
import com.azure.resourcemanager.devcenter.models.CheckNameAvailabilities;
Expand All @@ -62,7 +61,6 @@
import com.azure.resourcemanager.devcenter.models.Projects;
import com.azure.resourcemanager.devcenter.models.Schedules;
import com.azure.resourcemanager.devcenter.models.Skus;
import com.azure.resourcemanager.devcenter.models.Usages;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
Expand Down Expand Up @@ -98,8 +96,6 @@ public final class DevCenterManager {

private OperationStatuses operationStatuses;

private Usages usages;

private CheckNameAvailabilities checkNameAvailabilities;

private Skus skus;
Expand Down Expand Up @@ -275,7 +271,7 @@ public DevCenterManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.devcenter")
.append("/")
.append("1.0.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -490,18 +486,6 @@ public OperationStatuses operationStatuses() {
return operationStatuses;
}

/**
* Gets the resource collection API of Usages.
*
* @return Resource collection API of Usages.
*/
public Usages usages() {
if (this.usages == null) {
this.usages = new UsagesImpl(clientObject.getUsages(), this);
}
return usages;
}

/**
* Gets the resource collection API of CheckNameAvailabilities.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,6 @@ public interface DevCenterManagementClient {
*/
OperationStatusesClient getOperationStatuses();

/**
* Gets the UsagesClient object to access its operations.
*
* @return the UsagesClient object.
*/
UsagesClient getUsages();

/**
* Gets the CheckNameAvailabilitiesClient object to access its operations.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.devcenter.fluent.models.HealthCheckStatusDetailsInner;
import com.azure.resourcemanager.devcenter.fluent.models.NetworkConnectionInner;
import com.azure.resourcemanager.devcenter.fluent.models.OutboundEnvironmentEndpointInner;
import com.azure.resourcemanager.devcenter.models.NetworkConnectionUpdate;

/** An instance of this class provides access to all the operations defined in NetworkConnectionsClient. */
Expand Down Expand Up @@ -384,4 +385,36 @@ SyncPoller<PollResult<Void>, Void> beginRunHealthChecks(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void runHealthChecks(String resourceGroupName, String networkConnectionName, Context context);

/**
* Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed
* for outbound access in order for the Dev Box service to function.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
* @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.
* @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesEndpoints(
String resourceGroupName, String networkConnectionName);

/**
* Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs should be allowed
* for outbound access in order for the Dev Box service to function.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkConnectionName Name of the Network Connection that can be applied to a Pool.
* @param top The maximum number of resources to return from the operation. Example: '$top=10'.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return values returned by the List operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<OutboundEnvironmentEndpointInner> listOutboundNetworkDependenciesEndpoints(
String resourceGroupName, String networkConnectionName, Integer top, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,62 @@ SyncPoller<PollResult<Void>, Void> beginDelete(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String projectName, String poolName, Context context);

/**
* Triggers a refresh of the pool status.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param projectName The name of the project.
* @param poolName Name of the pool.
* @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.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginRunHealthChecks(
String resourceGroupName, String projectName, String poolName);

/**
* Triggers a refresh of the pool status.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param projectName The name of the project.
* @param poolName Name of the pool.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginRunHealthChecks(
String resourceGroupName, String projectName, String poolName, Context context);

/**
* Triggers a refresh of the pool status.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param projectName The name of the project.
* @param poolName Name of the pool.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void runHealthChecks(String resourceGroupName, String projectName, String poolName);

/**
* Triggers a refresh of the pool status.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param projectName The name of the project.
* @param poolName Name of the pool.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void runHealthChecks(String resourceGroupName, String projectName, String poolName, Context context);
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.devcenter.models.HibernateSupport;
import com.azure.resourcemanager.devcenter.models.ProvisioningState;
import com.azure.resourcemanager.devcenter.models.RecommendedMachineConfiguration;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down Expand Up @@ -102,6 +103,16 @@ public ProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}

/**
* Get the hibernateSupport property: Indicates whether this image has hibernate enabled. Not all images are capable
* of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate.
*
* @return the hibernateSupport value.
*/
public HibernateSupport hibernateSupport() {
return this.innerProperties() == null ? null : this.innerProperties().hibernateSupport();
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package com.azure.resourcemanager.devcenter.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.devcenter.models.HibernateSupport;
import com.azure.resourcemanager.devcenter.models.ProvisioningState;
import com.azure.resourcemanager.devcenter.models.RecommendedMachineConfiguration;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down Expand Up @@ -48,6 +49,13 @@ public final class ImageProperties {
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;

/*
* Indicates whether this image has hibernate enabled. Not all images are capable of supporting hibernation. To
* find out more see https://aka.ms/devbox/hibernate
*/
@JsonProperty(value = "hibernateSupport", access = JsonProperty.Access.WRITE_ONLY)
private HibernateSupport hibernateSupport;

/** Creates an instance of ImageProperties class. */
public ImageProperties() {
}
Expand Down Expand Up @@ -106,6 +114,16 @@ public ProvisioningState provisioningState() {
return this.provisioningState;
}

/**
* Get the hibernateSupport property: Indicates whether this image has hibernate enabled. Not all images are capable
* of supporting hibernation. To find out more see https://aka.ms/devbox/hibernate.
*
* @return the hibernateSupport value.
*/
public HibernateSupport hibernateSupport() {
return this.hibernateSupport;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.devcenter.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.devcenter.models.EndpointDependency;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** A collection of related endpoints from the same service for which the agent requires outbound access. */
@Immutable
public final class OutboundEnvironmentEndpointInner {
/*
* The type of service that the agent connects to.
*/
@JsonProperty(value = "category", access = JsonProperty.Access.WRITE_ONLY)
private String category;

/*
* The endpoints for this service for which the agent requires outbound access.
*/
@JsonProperty(value = "endpoints", access = JsonProperty.Access.WRITE_ONLY)
private List<EndpointDependency> endpoints;

/** Creates an instance of OutboundEnvironmentEndpointInner class. */
public OutboundEnvironmentEndpointInner() {
}

/**
* Get the category property: The type of service that the agent connects to.
*
* @return the category value.
*/
public String category() {
return this.category;
}

/**
* Get the endpoints property: The endpoints for this service for which the agent requires outbound access.
*
* @return the endpoints value.
*/
public List<EndpointDependency> endpoints() {
return this.endpoints;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (endpoints() != null) {
endpoints().forEach(e -> e.validate());
}
}
}
Loading