Skip to content

Commit

Permalink
CodeGen from PR 23695 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Publish private branch 'nickdepinet-devcenter-Microsoft.DevCenter-2023-04-01' (Azure#23695)

* add or modify files

* Update readme.md

re-add azure-sdk-for-go
  • Loading branch information
SDKAuto committed May 4, 2023
1 parent 12bf4ba commit b0e01f9
Show file tree
Hide file tree
Showing 293 changed files with 2,777 additions and 7,523 deletions.
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-05-04)

- Azure Resource Manager DevCenter client library for Java. This package contains Microsoft Azure SDK for DevCenter Management SDK. DevCenter Management API. Package tag package-2023-04. 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-2023-04. 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
554 changes: 284 additions & 270 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-2023-04.</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 @@ -275,7 +275,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
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);
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public ProvisioningState provisioningState() {
}

/**
* Get the devCenterUri property: The URI of the resource.
* Get the devCenterUri property: The URI of the Dev Center.
*
* @return the devCenterUri value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public final class DevCenterProperties {
private ProvisioningState provisioningState;

/*
* The URI of the resource.
* The URI of the Dev Center.
*/
@JsonProperty(value = "devCenterUri", access = JsonProperty.Access.WRITE_ONLY)
private String devCenterUri;
Expand All @@ -37,7 +37,7 @@ public ProvisioningState provisioningState() {
}

/**
* Get the devCenterUri property: The URI of the resource.
* Get the devCenterUri property: The URI of the Dev Center.
*
* @return the devCenterUri value.
*/
Expand Down
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());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.devcenter.models.HealthStatus;
import com.azure.resourcemanager.devcenter.models.HealthStatusDetail;
import com.azure.resourcemanager.devcenter.models.LicenseType;
import com.azure.resourcemanager.devcenter.models.LocalAdminStatus;
import com.azure.resourcemanager.devcenter.models.ProvisioningState;
import com.azure.resourcemanager.devcenter.models.StopOnDisconnectConfiguration;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

/** A pool of Virtual Machines. */
Expand Down Expand Up @@ -64,6 +68,26 @@ public PoolInner withTags(Map<String, String> tags) {
return this;
}

/**
* Get the healthStatus property: Overall health status of the Pool. Indicates whether or not the Pool is available
* to create Dev Boxes.
*
* @return the healthStatus value.
*/
public HealthStatus healthStatus() {
return this.innerProperties() == null ? null : this.innerProperties().healthStatus();
}

/**
* Get the healthStatusDetails property: Details on the Pool health status to help diagnose issues. This is only
* populated when the pool status indicates the pool is in a non-healthy state.
*
* @return the healthStatusDetails value.
*/
public List<HealthStatusDetail> healthStatusDetails() {
return this.innerProperties() == null ? null : this.innerProperties().healthStatusDetails();
}

/**
* Get the provisioningState property: The provisioning state of the resource.
*
Expand Down Expand Up @@ -169,6 +193,29 @@ public PoolInner withLocalAdministrator(LocalAdminStatus localAdministrator) {
return this;
}

/**
* Get the stopOnDisconnect property: Stop on disconnect configuration settings for Dev Boxes created in this pool.
*
* @return the stopOnDisconnect value.
*/
public StopOnDisconnectConfiguration stopOnDisconnect() {
return this.innerProperties() == null ? null : this.innerProperties().stopOnDisconnect();
}

/**
* Set the stopOnDisconnect property: Stop on disconnect configuration settings for Dev Boxes created in this pool.
*
* @param stopOnDisconnect the stopOnDisconnect value to set.
* @return the PoolInner object itself.
*/
public PoolInner withStopOnDisconnect(StopOnDisconnectConfiguration stopOnDisconnect) {
if (this.innerProperties() == null) {
this.innerProperties = new PoolProperties();
}
this.innerProperties().withStopOnDisconnect(stopOnDisconnect);
return this;
}

/**
* Validates the instance.
*
Expand Down
Loading

0 comments on commit b0e01f9

Please sign in to comment.