Skip to content

[AutoPR azure-resourcemanager-dataprotection] Swagger Fix for DppResourceGuardProxy operations in Microsoft.DataProtection 2022-09-01-preview version #2174

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

Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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-09-30)

- Azure Resource Manager DataProtection client library for Java. This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-preview-2022-09. 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager DataProtection client library for Java.

This package contains Microsoft Azure SDK for DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2021-07. 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 DataProtection Management SDK. Open API 2.0 Specs for Azure Data Protection service. Package tag package-preview-2022-09. 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-dataprotection</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
687 changes: 599 additions & 88 deletions sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for DataProtection Management</name>
<description>This package contains Microsoft Azure SDK for DataProtection Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure Data Protection service. Package tag package-2021-07.</description>
<description>This package contains Microsoft Azure SDK for DataProtection Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure Data Protection service. Package tag package-preview-2022-09.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
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
@@ -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.dataprotection.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.dataprotection.fluent.models.BackupInstanceResourceInner;

/**
* An instance of this class provides access to all the operations defined in BackupInstancesExtensionRoutingsClient.
*/
public interface BackupInstancesExtensionRoutingsClient {
/**
* Gets a list backup instances associated with a tracked resource.
*
* @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection.
* @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 a list backup instances associated with a tracked resource as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<BackupInstanceResourceInner> list(String resourceId);

/**
* Gets a list backup instances associated with a tracked resource.
*
* @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection.
* @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 a list backup instances associated with a tracked resource as paginated response with {@link
* PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<BackupInstanceResourceInner> list(String resourceId, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,123 +16,123 @@ public interface BackupPoliciesClient {
/**
* Returns list of backup policies belonging to a backup vault.
*
* @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @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 baseBackupPolicyResourceList.
* @return baseBackupPolicyResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<BaseBackupPolicyResourceInner> list(String vaultName, String resourceGroupName);
PagedIterable<BaseBackupPolicyResourceInner> list(String resourceGroupName, String vaultName);

/**
* Returns list of backup policies belonging to a backup vault.
*
* @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @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 baseBackupPolicyResourceList.
* @return baseBackupPolicyResourceList as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<BaseBackupPolicyResourceInner> list(String vaultName, String resourceGroupName, Context context);
PagedIterable<BaseBackupPolicyResourceInner> list(String resourceGroupName, String vaultName, Context context);

/**
* Gets a backup policy belonging to a backup vault.
*
* @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @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 a backup policy belonging to a backup vault.
* @return a backup policy belonging to a backup vault along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BaseBackupPolicyResourceInner get(String vaultName, String resourceGroupName, String backupPolicyName);
Response<BaseBackupPolicyResourceInner> getWithResponse(
String resourceGroupName, String vaultName, String backupPolicyName, Context context);

/**
* Gets a backup policy belonging to a backup vault.
*
* @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @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 a backup policy belonging to a backup vault.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BaseBackupPolicyResourceInner> getWithResponse(
String vaultName, String resourceGroupName, String backupPolicyName, Context context);
BaseBackupPolicyResourceInner get(String resourceGroupName, String vaultName, String backupPolicyName);

/**
* Creates or Updates a backup policy belonging to a backup vault.
*
* @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param backupPolicyName Name of the policy.
* @param parameters Request body for operation.
* @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 baseBackupPolicyResource.
* @return baseBackupPolicyResource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BaseBackupPolicyResourceInner createOrUpdate(
String vaultName, String resourceGroupName, String backupPolicyName, BaseBackupPolicyResourceInner parameters);
Response<BaseBackupPolicyResourceInner> createOrUpdateWithResponse(
String resourceGroupName,
String vaultName,
String backupPolicyName,
BaseBackupPolicyResourceInner parameters,
Context context);

/**
* Creates or Updates a backup policy belonging to a backup vault.
*
* @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param backupPolicyName Name of the policy.
* @param parameters Request body for operation.
* @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 baseBackupPolicyResource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BaseBackupPolicyResourceInner> createOrUpdateWithResponse(
String vaultName,
String resourceGroupName,
String backupPolicyName,
BaseBackupPolicyResourceInner parameters,
Context context);
BaseBackupPolicyResourceInner createOrUpdate(
String resourceGroupName, String vaultName, String backupPolicyName, BaseBackupPolicyResourceInner parameters);

/**
* Deletes a backup policy belonging to a backup vault.
*
* @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @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 Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String vaultName, String resourceGroupName, String backupPolicyName);
Response<Void> deleteWithResponse(
String resourceGroupName, String vaultName, String backupPolicyName, Context context);

/**
* Deletes a backup policy belonging to a backup vault.
*
* @param vaultName The name of the backup vault.
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param backupPolicyName The backupPolicyName parameter.
* @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 response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(
String vaultName, String resourceGroupName, String backupPolicyName, Context context);
void delete(String resourceGroupName, String vaultName, String backupPolicyName);
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,32 @@
/** An instance of this class provides access to all the operations defined in BackupVaultOperationResultsClient. */
public interface BackupVaultOperationResultsClient {
/**
* @param vaultName The name of the backup vault.
* The get operation.
*
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param operationId The operationId parameter.
* @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 backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupVaultResourceInner get(String vaultName, String resourceGroupName, String operationId);
BackupVaultOperationResultsGetResponse getWithResponse(
String resourceGroupName, String vaultName, String operationId, Context context);

/**
* @param vaultName The name of the backup vault.
* The get operation.
*
* @param resourceGroupName The name of the resource group where the backup vault is present.
* @param vaultName The name of the backup vault.
* @param operationId The operationId parameter.
* @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 backupVault Resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BackupVaultOperationResultsGetResponse getWithResponse(
String vaultName, String resourceGroupName, String operationId, Context context);
BackupVaultResourceInner get(String resourceGroupName, String vaultName, String operationId);
}
Loading