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 23397 in Azure/azure-rest-api-specs
Merge b3b9c96b5e74c8da5d0ef4b8ef2e12ead40f57b6 into 351c8598465737e5a64dd4b65b57738dc8cf9bf7
- Loading branch information
SDKAuto
committed
Apr 18, 2023
1 parent
ec9f1fb
commit e3e293b
Showing
568 changed files
with
2,030 additions
and
26,800 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
63 changes: 63 additions & 0 deletions
63
...rity/src/main/java/com/azure/resourcemanager/security/fluent/ResourceProvidersClient.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,63 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.security.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.security.fluent.models.GetSensitivitySettingsResponseInner; | ||
import com.azure.resourcemanager.security.models.UpdateSensitivitySettingsRequest; | ||
|
||
/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */ | ||
public interface ResourceProvidersClient { | ||
/** | ||
* Updates data sensitivity settings for sensitive data discovery. | ||
* | ||
* @param sensitivitySettings The data sensitivity settings to update. | ||
* @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 sensitivity settings for sensitive data discovery along with {@link Response}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Response<GetSensitivitySettingsResponseInner> updateSensitivitySettingsWithResponse( | ||
UpdateSensitivitySettingsRequest sensitivitySettings, Context context); | ||
|
||
/** | ||
* Updates data sensitivity settings for sensitive data discovery. | ||
* | ||
* @param sensitivitySettings The data sensitivity settings to update. | ||
* @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 sensitivity settings for sensitive data discovery. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
GetSensitivitySettingsResponseInner updateSensitivitySettings(UpdateSensitivitySettingsRequest sensitivitySettings); | ||
|
||
/** | ||
* Gets data sensitivity settings for sensitive data discovery. | ||
* | ||
* @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 sensitivity settings for sensitive data discovery along with {@link Response}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Response<GetSensitivitySettingsResponseInner> getSensitivitySettingsWithResponse(Context context); | ||
|
||
/** | ||
* Gets data sensitivity settings for sensitive data discovery. | ||
* | ||
* @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 sensitivity settings for sensitive data discovery. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
GetSensitivitySettingsResponseInner getSensitivitySettings(); | ||
} |
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
36 changes: 36 additions & 0 deletions
36
...ty/src/main/java/com/azure/resourcemanager/security/fluent/SensitivitySettingsClient.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,36 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.security.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.security.fluent.models.GetSensitivitySettingsListResponseInner; | ||
|
||
/** An instance of this class provides access to all the operations defined in SensitivitySettingsClient. */ | ||
public interface SensitivitySettingsClient { | ||
/** | ||
* Gets a list with a single sensitivity settings resource. | ||
* | ||
* @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 with a single sensitivity settings resource along with {@link Response}. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
Response<GetSensitivitySettingsListResponseInner> listWithResponse(Context context); | ||
|
||
/** | ||
* Gets a list with a single sensitivity settings resource. | ||
* | ||
* @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 with a single sensitivity settings resource. | ||
*/ | ||
@ServiceMethod(returns = ReturnType.SINGLE) | ||
GetSensitivitySettingsListResponseInner list(); | ||
} |
54 changes: 54 additions & 0 deletions
54
...azure/resourcemanager/security/fluent/models/GetSensitivitySettingsListResponseInner.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,54 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.resourcemanager.security.fluent.models; | ||
|
||
import com.azure.core.annotation.Fluent; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.List; | ||
|
||
/** A list with a single sensitivity settings resource. */ | ||
@Fluent | ||
public final class GetSensitivitySettingsListResponseInner { | ||
/* | ||
* The value property. | ||
*/ | ||
@JsonProperty(value = "value") | ||
private List<GetSensitivitySettingsResponseInner> value; | ||
|
||
/** Creates an instance of GetSensitivitySettingsListResponseInner class. */ | ||
public GetSensitivitySettingsListResponseInner() { | ||
} | ||
|
||
/** | ||
* Get the value property: The value property. | ||
* | ||
* @return the value value. | ||
*/ | ||
public List<GetSensitivitySettingsResponseInner> value() { | ||
return this.value; | ||
} | ||
|
||
/** | ||
* Set the value property: The value property. | ||
* | ||
* @param value the value value to set. | ||
* @return the GetSensitivitySettingsListResponseInner object itself. | ||
*/ | ||
public GetSensitivitySettingsListResponseInner withValue(List<GetSensitivitySettingsResponseInner> value) { | ||
this.value = value; | ||
return this; | ||
} | ||
|
||
/** | ||
* Validates the instance. | ||
* | ||
* @throws IllegalArgumentException thrown if the instance is not valid. | ||
*/ | ||
public void validate() { | ||
if (value() != null) { | ||
value().forEach(e -> e.validate()); | ||
} | ||
} | ||
} |
Oops, something went wrong.