Skip to content
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

[AutoPR azure-resourcemanager-support] Update readme.md to show up documentation for preview version #10589

Closed
wants to merge 1 commit into from
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/support/azure-resourcemanager-support/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.1.0-beta.1 (Unreleased)
## 1.0.0-beta.1 (2024-05-20)

- Azure Resource Manager support client library for Java. This package contains Microsoft Azure SDK for support Management SDK. Microsoft Azure Support Resource Provider. Package tag package-preview-2023-06. 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/support/azure-resourcemanager-support/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager support client library for Java.

This package contains Microsoft Azure SDK for support Management SDK. Microsoft Azure Support Resource Provider. Package tag package-2024-04. 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 support Management SDK. Microsoft Azure Support Resource Provider. Package tag package-preview-2023-06. 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-support</artifactId>
<version>1.0.0</version>
<version>1.1.0-beta.1</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
552 changes: 352 additions & 200 deletions sdk/support/azure-resourcemanager-support/SAMPLE.md

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions sdk/support/azure-resourcemanager-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for support Management</name>
<description>This package contains Microsoft Azure SDK for support Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Azure Support Resource Provider. Package tag package-2024-04.</description>
<description>This package contains Microsoft Azure SDK for support Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Azure Support Resource Provider. Package tag package-preview-2023-06.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,6 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand All @@ -60,7 +61,7 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-test</artifactId>
<version>1.26.0-beta.1</version> <!-- {x-version-update;unreleased_com.azure:azure-core-test;dependency} -->
<version>1.25.0</version> <!-- {x-version-update;com.azure:azure-core-test;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@
import com.azure.resourcemanager.support.implementation.FilesNoSubscriptionsImpl;
import com.azure.resourcemanager.support.implementation.FileWorkspacesImpl;
import com.azure.resourcemanager.support.implementation.FileWorkspacesNoSubscriptionsImpl;
import com.azure.resourcemanager.support.implementation.LookUpResourceIdsImpl;
import com.azure.resourcemanager.support.implementation.MicrosoftSupportBuilder;
import com.azure.resourcemanager.support.implementation.OperationsImpl;
import com.azure.resourcemanager.support.implementation.ProblemClassificationsImpl;
import com.azure.resourcemanager.support.implementation.ProblemClassificationsNoSubscriptionsImpl;
import com.azure.resourcemanager.support.implementation.ServiceClassificationsImpl;
import com.azure.resourcemanager.support.implementation.ServiceClassificationsNoSubscriptionsImpl;
import com.azure.resourcemanager.support.implementation.ServicesImpl;
import com.azure.resourcemanager.support.implementation.SupportTicketsImpl;
import com.azure.resourcemanager.support.implementation.SupportTicketsNoSubscriptionsImpl;
Expand All @@ -46,8 +50,12 @@
import com.azure.resourcemanager.support.models.FilesNoSubscriptions;
import com.azure.resourcemanager.support.models.FileWorkspaces;
import com.azure.resourcemanager.support.models.FileWorkspacesNoSubscriptions;
import com.azure.resourcemanager.support.models.LookUpResourceIds;
import com.azure.resourcemanager.support.models.Operations;
import com.azure.resourcemanager.support.models.ProblemClassifications;
import com.azure.resourcemanager.support.models.ProblemClassificationsNoSubscriptions;
import com.azure.resourcemanager.support.models.ServiceClassifications;
import com.azure.resourcemanager.support.models.ServiceClassificationsNoSubscriptions;
import com.azure.resourcemanager.support.models.Services;
import com.azure.resourcemanager.support.models.SupportTickets;
import com.azure.resourcemanager.support.models.SupportTicketsNoSubscriptions;
Expand All @@ -67,6 +75,12 @@ public final class SupportManager {

private Services services;

private ServiceClassificationsNoSubscriptions serviceClassificationsNoSubscriptions;

private ServiceClassifications serviceClassifications;

private ProblemClassificationsNoSubscriptions problemClassificationsNoSubscriptions;

private ProblemClassifications problemClassifications;

private SupportTickets supportTickets;
Expand All @@ -89,6 +103,8 @@ public final class SupportManager {

private FilesNoSubscriptions filesNoSubscriptions;

private LookUpResourceIds lookUpResourceIds;

private final MicrosoftSupport clientObject;

private SupportManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -253,7 +269,7 @@ public SupportManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.support")
.append("/")
.append("1.0.0");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down Expand Up @@ -323,6 +339,45 @@ public Services services() {
return services;
}

/**
* Gets the resource collection API of ServiceClassificationsNoSubscriptions.
*
* @return Resource collection API of ServiceClassificationsNoSubscriptions.
*/
public ServiceClassificationsNoSubscriptions serviceClassificationsNoSubscriptions() {
if (this.serviceClassificationsNoSubscriptions == null) {
this.serviceClassificationsNoSubscriptions = new ServiceClassificationsNoSubscriptionsImpl(
clientObject.getServiceClassificationsNoSubscriptions(), this);
}
return serviceClassificationsNoSubscriptions;
}

/**
* Gets the resource collection API of ServiceClassifications.
*
* @return Resource collection API of ServiceClassifications.
*/
public ServiceClassifications serviceClassifications() {
if (this.serviceClassifications == null) {
this.serviceClassifications
= new ServiceClassificationsImpl(clientObject.getServiceClassifications(), this);
}
return serviceClassifications;
}

/**
* Gets the resource collection API of ProblemClassificationsNoSubscriptions.
*
* @return Resource collection API of ProblemClassificationsNoSubscriptions.
*/
public ProblemClassificationsNoSubscriptions problemClassificationsNoSubscriptions() {
if (this.problemClassificationsNoSubscriptions == null) {
this.problemClassificationsNoSubscriptions = new ProblemClassificationsNoSubscriptionsImpl(
clientObject.getProblemClassificationsNoSubscriptions(), this);
}
return problemClassificationsNoSubscriptions;
}

/**
* Gets the resource collection API of ProblemClassifications.
*
Expand Down Expand Up @@ -460,6 +515,18 @@ public FilesNoSubscriptions filesNoSubscriptions() {
return filesNoSubscriptions;
}

/**
* Gets the resource collection API of LookUpResourceIds.
*
* @return Resource collection API of LookUpResourceIds.
*/
public LookUpResourceIds lookUpResourceIds() {
if (this.lookUpResourceIds == null) {
this.lookUpResourceIds = new LookUpResourceIdsImpl(clientObject.getLookUpResourceIds(), this);
}
return lookUpResourceIds;
}

/**
* Gets wrapped service client MicrosoftSupport providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.support.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.support.fluent.models.LookUpResourceIdResponseInner;
import com.azure.resourcemanager.support.models.LookUpResourceIdRequest;

/**
* An instance of this class provides access to all the operations defined in LookUpResourceIdsClient.
*/
public interface LookUpResourceIdsClient {
/**
* This operation fetches ARM resource id of support resource type.
*
* @param lookUpResourceIdRequest Look up resource id request body.
* @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 look up resource id response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<LookUpResourceIdResponseInner> postWithResponse(LookUpResourceIdRequest lookUpResourceIdRequest,
Context context);

/**
* This operation fetches ARM resource id of support resource type.
*
* @param lookUpResourceIdRequest Look up resource id request body.
* @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 look up resource id response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
LookUpResourceIdResponseInner post(LookUpResourceIdRequest lookUpResourceIdRequest);
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,27 @@ public interface MicrosoftSupport {
*/
ServicesClient getServices();

/**
* Gets the ServiceClassificationsNoSubscriptionsClient object to access its operations.
*
* @return the ServiceClassificationsNoSubscriptionsClient object.
*/
ServiceClassificationsNoSubscriptionsClient getServiceClassificationsNoSubscriptions();

/**
* Gets the ServiceClassificationsClient object to access its operations.
*
* @return the ServiceClassificationsClient object.
*/
ServiceClassificationsClient getServiceClassifications();

/**
* Gets the ProblemClassificationsNoSubscriptionsClient object to access its operations.
*
* @return the ProblemClassificationsNoSubscriptionsClient object.
*/
ProblemClassificationsNoSubscriptionsClient getProblemClassificationsNoSubscriptions();

/**
* Gets the ProblemClassificationsClient object to access its operations.
*
Expand Down Expand Up @@ -136,4 +157,11 @@ public interface MicrosoftSupport {
* @return the FilesNoSubscriptionsClient object.
*/
FilesNoSubscriptionsClient getFilesNoSubscriptions();

/**
* Gets the LookUpResourceIdsClient object to access its operations.
*
* @return the LookUpResourceIdsClient object.
*/
LookUpResourceIdsClient getLookUpResourceIds();
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,42 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.support.fluent.models.ProblemClassificationInner;
import com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner;
import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;

/**
* An instance of this class provides access to all the operations defined in ProblemClassificationsClient.
*/
public interface ProblemClassificationsClient {
/**
* Classify the right problem classifications (categories) available for a specific Azure service.
*
* @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationsClassificationInput Input to check.
* @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 output of the problem classification Classification API along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ProblemClassificationsClassificationOutputInner> classifyProblemsWithResponse(String problemServiceName,
ProblemClassificationsClassificationInput problemClassificationsClassificationInput, Context context);

/**
* Classify the right problem classifications (categories) available for a specific Azure service.
*
* @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationsClassificationInput Input to check.
* @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 output of the problem classification Classification API.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ProblemClassificationsClassificationOutputInner classifyProblems(String problemServiceName,
ProblemClassificationsClassificationInput problemClassificationsClassificationInput);

/**
* Lists all the problem classifications (categories) available for a specific Azure service. Always use the service
* and problem classifications obtained programmatically. This practice ensures that you always have the most recent
Expand Down Expand Up @@ -47,7 +78,7 @@ public interface ProblemClassificationsClient {
/**
* Get problem classification details for a specific Azure service.
*
* @param serviceName Name of the Azure service available for support.
* @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationName Name of problem classification.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -62,7 +93,7 @@ Response<ProblemClassificationInner> getWithResponse(String serviceName, String
/**
* Get problem classification details for a specific Azure service.
*
* @param serviceName Name of the Azure service available for support.
* @param serviceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationName Name of problem classification.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.support.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.support.fluent.models.ProblemClassificationsClassificationOutputInner;
import com.azure.resourcemanager.support.models.ProblemClassificationsClassificationInput;

/**
* An instance of this class provides access to all the operations defined in
* ProblemClassificationsNoSubscriptionsClient.
*/
public interface ProblemClassificationsNoSubscriptionsClient {
/**
* Classify the right problem classifications (categories) available for a specific Azure service.
*
* @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationsClassificationInput Input to check.
* @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 output of the problem classification Classification API along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ProblemClassificationsClassificationOutputInner> classifyProblemsWithResponse(String problemServiceName,
ProblemClassificationsClassificationInput problemClassificationsClassificationInput, Context context);

/**
* Classify the right problem classifications (categories) available for a specific Azure service.
*
* @param problemServiceName Name of the Azure service for which the problem classifications need to be retrieved.
* @param problemClassificationsClassificationInput Input to check.
* @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 output of the problem classification Classification API.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ProblemClassificationsClassificationOutputInner classifyProblems(String problemServiceName,
ProblemClassificationsClassificationInput problemClassificationsClassificationInput);
}
Loading