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.2 (Unreleased)
## 1.0.0-beta.1 (2022-08-25)

- Azure Resource Manager DevCenter client library for Java. This package contains Microsoft Azure SDK for DevCenter Management SDK. DevCenter Management API. Package tag package-2022-09-01-preview. 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-2022-08-01-preview. 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-2022-09-01-preview. 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.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
200 changes: 125 additions & 75 deletions sdk/devcenter/azure-resourcemanager-devcenter/SAMPLE.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/devcenter/azure-resourcemanager-devcenter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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-2022-08-01-preview.</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-2022-09-01-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import com.azure.resourcemanager.devcenter.implementation.OperationStatusesImpl;
import com.azure.resourcemanager.devcenter.implementation.OperationsImpl;
import com.azure.resourcemanager.devcenter.implementation.PoolsImpl;
import com.azure.resourcemanager.devcenter.implementation.ProjectAllowedEnvironmentTypesImpl;
import com.azure.resourcemanager.devcenter.implementation.ProjectEnvironmentTypesImpl;
import com.azure.resourcemanager.devcenter.implementation.ProjectsImpl;
import com.azure.resourcemanager.devcenter.implementation.SchedulesImpl;
Expand All @@ -54,6 +55,7 @@
import com.azure.resourcemanager.devcenter.models.OperationStatuses;
import com.azure.resourcemanager.devcenter.models.Operations;
import com.azure.resourcemanager.devcenter.models.Pools;
import com.azure.resourcemanager.devcenter.models.ProjectAllowedEnvironmentTypes;
import com.azure.resourcemanager.devcenter.models.ProjectEnvironmentTypes;
import com.azure.resourcemanager.devcenter.models.Projects;
import com.azure.resourcemanager.devcenter.models.Schedules;
Expand Down Expand Up @@ -84,6 +86,8 @@ public final class DevCenterManager {

private EnvironmentTypes environmentTypes;

private ProjectAllowedEnvironmentTypes projectAllowedEnvironmentTypes;

private ProjectEnvironmentTypes projectEnvironmentTypes;

private DevBoxDefinitions devBoxDefinitions;
Expand Down Expand Up @@ -420,6 +424,19 @@ public EnvironmentTypes environmentTypes() {
return environmentTypes;
}

/**
* Gets the resource collection API of ProjectAllowedEnvironmentTypes.
*
* @return Resource collection API of ProjectAllowedEnvironmentTypes.
*/
public ProjectAllowedEnvironmentTypes projectAllowedEnvironmentTypes() {
if (this.projectAllowedEnvironmentTypes == null) {
this.projectAllowedEnvironmentTypes =
new ProjectAllowedEnvironmentTypesImpl(clientObject.getProjectAllowedEnvironmentTypes(), this);
}
return projectAllowedEnvironmentTypes;
}

/**
* Gets the resource collection API of ProjectEnvironmentTypes. It manages ProjectEnvironmentType.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ public interface DevCenterClient {
*/
EnvironmentTypesClient getEnvironmentTypes();

/**
* Gets the ProjectAllowedEnvironmentTypesClient object to access its operations.
*
* @return the ProjectAllowedEnvironmentTypesClient object.
*/
ProjectAllowedEnvironmentTypesClient getProjectAllowedEnvironmentTypes();

/**
* Gets the ProjectEnvironmentTypesClient object to access its operations.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
// 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;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.devcenter.fluent.models.AllowedEnvironmentTypeInner;

/** An instance of this class provides access to all the operations defined in ProjectAllowedEnvironmentTypesClient. */
public interface ProjectAllowedEnvironmentTypesClient {
/**
* Lists allowed environment types for a project.
*
* @param resourceGroupName Name of the resource group within the Azure subscription.
* @param projectName The name of the project.
* @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 result of the allowed environment type list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AllowedEnvironmentTypeInner> list(String resourceGroupName, String projectName);

/**
* Lists allowed environment types for a project.
*
* @param resourceGroupName Name of the resource group within the Azure subscription.
* @param projectName The name of the project.
* @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 result of the allowed environment type list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AllowedEnvironmentTypeInner> list(
String resourceGroupName, String projectName, Integer top, Context context);

/**
* Gets an allowed environment type.
*
* @param resourceGroupName Name of the resource group within the Azure subscription.
* @param projectName The name of the project.
* @param environmentTypeName The name of the environment type.
* @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 an allowed environment type.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AllowedEnvironmentTypeInner get(String resourceGroupName, String projectName, String environmentTypeName);

/**
* Gets an allowed environment type.
*
* @param resourceGroupName Name of the resource group within the Azure subscription.
* @param projectName The name of the project.
* @param environmentTypeName The name of the environment type.
* @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 an allowed environment type along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<AllowedEnvironmentTypeInner> getWithResponse(
String resourceGroupName, String projectName, String environmentTypeName, Context context);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// 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.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Represents an allowed environment type. */
@Fluent
public final class AllowedEnvironmentTypeInner extends ProxyResource {
/*
* Properties of an allowed environment type.
*/
@JsonProperty(value = "properties")
private AllowedEnvironmentTypeProperties innerProperties;

/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;

/**
* Get the innerProperties property: Properties of an allowed environment type.
*
* @return the innerProperties value.
*/
private AllowedEnvironmentTypeProperties innerProperties() {
return this.innerProperties;
}

/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/**
* Get the provisioningState property: The provisioning state of the resource.
*
* @return the provisioningState value.
*/
public String provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// 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.fasterxml.jackson.annotation.JsonProperty;

/** Properties of an allowed environment type. */
@Immutable
public final class AllowedEnvironmentTypeProperties {
/*
* The provisioning state of the resource.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;

/**
* Get the provisioningState property: The provisioning state of the resource.
*
* @return the provisioningState value.
*/
public String provisioningState() {
return this.provisioningState;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// 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.implementation;

import com.azure.core.management.SystemData;
import com.azure.resourcemanager.devcenter.fluent.models.AllowedEnvironmentTypeInner;
import com.azure.resourcemanager.devcenter.models.AllowedEnvironmentType;

public final class AllowedEnvironmentTypeImpl implements AllowedEnvironmentType {
private AllowedEnvironmentTypeInner innerObject;

private final com.azure.resourcemanager.devcenter.DevCenterManager serviceManager;

AllowedEnvironmentTypeImpl(
AllowedEnvironmentTypeInner innerObject, com.azure.resourcemanager.devcenter.DevCenterManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}

public String id() {
return this.innerModel().id();
}

public String name() {
return this.innerModel().name();
}

public String type() {
return this.innerModel().type();
}

public SystemData systemData() {
return this.innerModel().systemData();
}

public String provisioningState() {
return this.innerModel().provisioningState();
}

public AllowedEnvironmentTypeInner innerModel() {
return this.innerObject;
}

private com.azure.resourcemanager.devcenter.DevCenterManager manager() {
return this.serviceManager;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,8 @@ public void delete(
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>The nextLink parameter.
* @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 @@ -1569,7 +1570,8 @@ private Mono<PagedResponse<AttachedNetworkConnectionInner>> listByProjectNextSin
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>The nextLink parameter.
* @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 @@ -1607,7 +1609,8 @@ private Mono<PagedResponse<AttachedNetworkConnectionInner>> listByProjectNextSin
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>The nextLink parameter.
* @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 @@ -1643,7 +1646,8 @@ private Mono<PagedResponse<AttachedNetworkConnectionInner>> listByDevCenterNextS
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>The nextLink parameter.
* @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 @@ -1605,7 +1605,8 @@ public void sync(String resourceGroupName, String devCenterName, String catalogN
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>The nextLink parameter.
* @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 @@ -1641,7 +1642,8 @@ private Mono<PagedResponse<CatalogInner>> listByDevCenterNextSinglePageAsync(Str
/**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param nextLink The URL to get the next list of items
* <p>The nextLink parameter.
* @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
Loading