-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgmt, add databoundary client to resources (#42131)
* config * handwritten code for accessing client via manager * codegen * changelog * test, temporary switch to working api-version 2024-03-01
- Loading branch information
1 parent
247c1b9
commit d2dbba0
Showing
19 changed files
with
1,404 additions
and
6 deletions.
There are no files selected for viewing
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
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
177 changes: 177 additions & 0 deletions
177
...ources/src/main/java/com/azure/resourcemanager/resources/fluent/DataBoundariesClient.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,177 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.resources.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.resources.fluent.models.DataBoundaryDefinitionInner; | ||
import com.azure.resourcemanager.resources.models.DefaultName; | ||
import reactor.core.publisher.Mono; | ||
|
||
/** | ||
* An instance of this class provides access to all the operations defined in DataBoundariesClient. | ||
*/ | ||
public interface DataBoundariesClient { | ||
/** | ||
* Opt-in tenant to data boundary. | ||
* | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @param dataBoundaryDefinition The data boundary to opt the tenant to. | ||
* @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 data boundary definition along with {@link Response} on successful completion of {@link Mono}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Mono<Response<DataBoundaryDefinitionInner>> putWithResponseAsync(DefaultName defaultParameter, | ||
DataBoundaryDefinitionInner dataBoundaryDefinition); | ||
|
||
/** | ||
* Opt-in tenant to data boundary. | ||
* | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @param dataBoundaryDefinition The data boundary to opt the tenant to. | ||
* @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 data boundary definition on successful completion of {@link Mono}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Mono<DataBoundaryDefinitionInner> putAsync(DefaultName defaultParameter, | ||
DataBoundaryDefinitionInner dataBoundaryDefinition); | ||
|
||
/** | ||
* Opt-in tenant to data boundary. | ||
* | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @param dataBoundaryDefinition The data boundary to opt the tenant to. | ||
* @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 data boundary definition along with {@link Response}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Response<DataBoundaryDefinitionInner> putWithResponse(DefaultName defaultParameter, | ||
DataBoundaryDefinitionInner dataBoundaryDefinition, Context context); | ||
|
||
/** | ||
* Opt-in tenant to data boundary. | ||
* | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @param dataBoundaryDefinition The data boundary to opt the tenant to. | ||
* @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 data boundary definition. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
DataBoundaryDefinitionInner put(DefaultName defaultParameter, DataBoundaryDefinitionInner dataBoundaryDefinition); | ||
|
||
/** | ||
* Get data boundary of tenant. | ||
* | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @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 data boundary of tenant along with {@link Response} on successful completion of {@link Mono}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Mono<Response<DataBoundaryDefinitionInner>> getTenantWithResponseAsync(DefaultName defaultParameter); | ||
|
||
/** | ||
* Get data boundary of tenant. | ||
* | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @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 data boundary of tenant on successful completion of {@link Mono}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Mono<DataBoundaryDefinitionInner> getTenantAsync(DefaultName defaultParameter); | ||
|
||
/** | ||
* Get data boundary of tenant. | ||
* | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @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 data boundary of tenant along with {@link Response}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Response<DataBoundaryDefinitionInner> getTenantWithResponse(DefaultName defaultParameter, Context context); | ||
|
||
/** | ||
* Get data boundary of tenant. | ||
* | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @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 data boundary of tenant. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
DataBoundaryDefinitionInner getTenant(DefaultName defaultParameter); | ||
|
||
/** | ||
* Get data boundary at specified scope. | ||
* | ||
* @param scope The scope at which the operation is performed. | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @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 data boundary at specified scope along with {@link Response} on successful completion of {@link Mono}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Mono<Response<DataBoundaryDefinitionInner>> getScopeWithResponseAsync(String scope, DefaultName defaultParameter); | ||
|
||
/** | ||
* Get data boundary at specified scope. | ||
* | ||
* @param scope The scope at which the operation is performed. | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @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 data boundary at specified scope on successful completion of {@link Mono}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Mono<DataBoundaryDefinitionInner> getScopeAsync(String scope, DefaultName defaultParameter); | ||
|
||
/** | ||
* Get data boundary at specified scope. | ||
* | ||
* @param scope The scope at which the operation is performed. | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @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 data boundary at specified scope along with {@link Response}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Response<DataBoundaryDefinitionInner> getScopeWithResponse(String scope, DefaultName defaultParameter, | ||
Context context); | ||
|
||
/** | ||
* Get data boundary at specified scope. | ||
* | ||
* @param scope The scope at which the operation is performed. | ||
* @param defaultParameter Default string modeled as parameter for auto generation to work correctly. | ||
* @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 data boundary at specified scope. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
DataBoundaryDefinitionInner getScope(String scope, DefaultName defaultParameter); | ||
} |
48 changes: 48 additions & 0 deletions
48
.../main/java/com/azure/resourcemanager/resources/fluent/DataBoundariesManagementClient.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,48 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.resources.fluent; | ||
|
||
import com.azure.core.http.HttpPipeline; | ||
import java.time.Duration; | ||
|
||
/** | ||
* The interface for DataBoundariesManagementClient class. | ||
*/ | ||
public interface DataBoundariesManagementClient { | ||
/** | ||
* Gets server parameter. | ||
* | ||
* @return the endpoint value. | ||
*/ | ||
String getEndpoint(); | ||
|
||
/** | ||
* Gets Api Version. | ||
* | ||
* @return the apiVersion value. | ||
*/ | ||
String getApiVersion(); | ||
|
||
/** | ||
* Gets The HTTP pipeline to send requests through. | ||
* | ||
* @return the httpPipeline value. | ||
*/ | ||
HttpPipeline getHttpPipeline(); | ||
|
||
/** | ||
* Gets The default poll interval for long-running operation. | ||
* | ||
* @return the defaultPollInterval value. | ||
*/ | ||
Duration getDefaultPollInterval(); | ||
|
||
/** | ||
* Gets the DataBoundariesClient object to access its operations. | ||
* | ||
* @return the DataBoundariesClient object. | ||
*/ | ||
DataBoundariesClient getDataBoundaries(); | ||
} |
Oops, something went wrong.