forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 24011 in Azure/azure-rest-api-specs
Merge 8db4cb88c0cabd231688320828add03b8743604b into 29f3116d3ce31f2125d1e2cfb92d6511fcb01c41
- Loading branch information
SDKAuto
committed
Jun 19, 2023
1 parent
9e62e68
commit a7d0162
Showing
126 changed files
with
3,970 additions
and
373 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
sdk/dataprotection/azure-resourcemanager-dataprotection/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
297 changes: 230 additions & 67 deletions
297
sdk/dataprotection/azure-resourcemanager-dataprotection/SAMPLE.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
183 changes: 183 additions & 0 deletions
183
...n/java/com/azure/resourcemanager/dataprotection/fluent/DppResourceGuardProxiesClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
// 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.http.rest.Response; | ||
import com.azure.core.util.Context; | ||
import com.azure.resourcemanager.dataprotection.fluent.models.ResourceGuardProxyBaseResourceInner; | ||
import com.azure.resourcemanager.dataprotection.fluent.models.UnlockDeleteResponseInner; | ||
import com.azure.resourcemanager.dataprotection.models.UnlockDeleteRequest; | ||
|
||
/** An instance of this class provides access to all the operations defined in DppResourceGuardProxiesClient. */ | ||
public interface DppResourceGuardProxiesClient { | ||
/** | ||
* Returns the list of ResourceGuardProxies associated with the vault. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @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 list of ResourceGuardProxyBase resources as paginated response with {@link PagedIterable}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.COLLECTION) | ||
PagedIterable<ResourceGuardProxyBaseResourceInner> list(String resourceGroupName, String vaultName); | ||
|
||
/** | ||
* Returns the list of ResourceGuardProxies associated with the vault. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @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 list of ResourceGuardProxyBase resources as paginated response with {@link PagedIterable}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.COLLECTION) | ||
PagedIterable<ResourceGuardProxyBaseResourceInner> list( | ||
String resourceGroupName, String vaultName, Context context); | ||
|
||
/** | ||
* Returns the ResourceGuardProxy object associated with the vault, and that matches the name in the request. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param vaultName The name of the backup vault. | ||
* @param resourceGuardProxyName name of the resource guard proxy. | ||
* @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 resourceGuardProxyBaseResource object, used for response and request bodies for ResourceGuardProxy APIs | ||
* along with {@link Response}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Response<ResourceGuardProxyBaseResourceInner> getWithResponse( | ||
String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context); | ||
|
||
/** | ||
* Returns the ResourceGuardProxy object associated with the vault, and that matches the name in the request. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param vaultName The name of the backup vault. | ||
* @param resourceGuardProxyName name of the resource guard proxy. | ||
* @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 resourceGuardProxyBaseResource object, used for response and request bodies for ResourceGuardProxy APIs. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
ResourceGuardProxyBaseResourceInner get(String resourceGroupName, String vaultName, String resourceGuardProxyName); | ||
|
||
/** | ||
* Creates or Updates a ResourceGuardProxy. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param vaultName The name of the backup vault. | ||
* @param resourceGuardProxyName name of the resource guard proxy. | ||
* @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 resourceGuardProxyBaseResource object, used for response and request bodies for ResourceGuardProxy APIs | ||
* along with {@link Response}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Response<ResourceGuardProxyBaseResourceInner> createOrUpdateWithResponse( | ||
String resourceGroupName, | ||
String vaultName, | ||
String resourceGuardProxyName, | ||
ResourceGuardProxyBaseResourceInner parameters, | ||
Context context); | ||
|
||
/** | ||
* Creates or Updates a ResourceGuardProxy. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param vaultName The name of the backup vault. | ||
* @param resourceGuardProxyName name of the resource guard proxy. | ||
* @param parameters Request body for 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 resourceGuardProxyBaseResource object, used for response and request bodies for ResourceGuardProxy APIs. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
ResourceGuardProxyBaseResourceInner createOrUpdate( | ||
String resourceGroupName, | ||
String vaultName, | ||
String resourceGuardProxyName, | ||
ResourceGuardProxyBaseResourceInner parameters); | ||
|
||
/** | ||
* Deletes the ResourceGuardProxy. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param vaultName The name of the backup vault. | ||
* @param resourceGuardProxyName name of the resource guard proxy. | ||
* @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) | ||
Response<Void> deleteWithResponse( | ||
String resourceGroupName, String vaultName, String resourceGuardProxyName, Context context); | ||
|
||
/** | ||
* Deletes the ResourceGuardProxy. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param vaultName The name of the backup vault. | ||
* @param resourceGuardProxyName name of the resource guard proxy. | ||
* @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 delete(String resourceGroupName, String vaultName, String resourceGuardProxyName); | ||
|
||
/** | ||
* UnlockDelete call for ResourceGuardProxy, executed before one can delete it. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param vaultName The name of the backup vault. | ||
* @param resourceGuardProxyName name of the resource guard proxy. | ||
* @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 response of Unlock Delete API along with {@link Response}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Response<UnlockDeleteResponseInner> unlockDeleteWithResponse( | ||
String resourceGroupName, | ||
String vaultName, | ||
String resourceGuardProxyName, | ||
UnlockDeleteRequest parameters, | ||
Context context); | ||
|
||
/** | ||
* UnlockDelete call for ResourceGuardProxy, executed before one can delete it. | ||
* | ||
* @param resourceGroupName The name of the resource group. The name is case insensitive. | ||
* @param vaultName The name of the backup vault. | ||
* @param resourceGuardProxyName name of the resource guard proxy. | ||
* @param parameters Request body for 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 response of Unlock Delete API. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
UnlockDeleteResponseInner unlockDelete( | ||
String resourceGroupName, String vaultName, String resourceGuardProxyName, UnlockDeleteRequest parameters); | ||
} |
57 changes: 57 additions & 0 deletions
57
...ure/resourcemanager/dataprotection/fluent/models/ResourceGuardProxyBaseResourceInner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// 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.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.azure.resourcemanager.dataprotection.models.DppResource; | ||
import com.azure.resourcemanager.dataprotection.models.ResourceGuardProxyBase; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** ResourceGuardProxyBaseResource object, used for response and request bodies for ResourceGuardProxy APIs. */ | ||
@Fluent | ||
public final class ResourceGuardProxyBaseResourceInner extends DppResource { | ||
/* | ||
* ResourceGuardProxyBaseResource properties | ||
*/ | ||
@JsonProperty(value = "properties") | ||
private ResourceGuardProxyBase properties; | ||
|
||
/** Creates an instance of ResourceGuardProxyBaseResourceInner class. */ | ||
public ResourceGuardProxyBaseResourceInner() { | ||
} | ||
|
||
/** | ||
* Get the properties property: ResourceGuardProxyBaseResource properties. | ||
* | ||
* @return the properties value. | ||
*/ | ||
public ResourceGuardProxyBase properties() { | ||
return this.properties; | ||
} | ||
|
||
/** | ||
* Set the properties property: ResourceGuardProxyBaseResource properties. | ||
* | ||
* @param properties the properties value to set. | ||
* @return the ResourceGuardProxyBaseResourceInner object itself. | ||
*/ | ||
public ResourceGuardProxyBaseResourceInner withProperties(ResourceGuardProxyBase properties) { | ||
this.properties = properties; | ||
return this; | ||
} | ||
|
||
/** | ||
* Validates the instance. | ||
* | ||
* @throws IllegalArgumentException thrown if the instance is not valid. | ||
*/ | ||
@Override | ||
public void validate() { | ||
super.validate(); | ||
if (properties() != null) { | ||
properties().validate(); | ||
} | ||
} | ||
} |
Oops, something went wrong.