|
| 1 | +// Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | +// Licensed under the MIT License. |
| 3 | +// Code generated by Microsoft (R) AutoRest Code Generator. |
| 4 | + |
| 5 | +package com.azure.resourcemanager.securityinsights.fluent; |
| 6 | + |
| 7 | +import com.azure.core.annotation.ReturnType; |
| 8 | +import com.azure.core.annotation.ServiceMethod; |
| 9 | +import com.azure.core.http.rest.PagedIterable; |
| 10 | +import com.azure.core.http.rest.Response; |
| 11 | +import com.azure.core.util.Context; |
| 12 | +import com.azure.resourcemanager.securityinsights.fluent.models.SecurityMLAnalyticsSettingInner; |
| 13 | + |
| 14 | +/** An instance of this class provides access to all the operations defined in SecurityMLAnalyticsSettingsClient. */ |
| 15 | +public interface SecurityMLAnalyticsSettingsClient { |
| 16 | + /** |
| 17 | + * Gets all Security ML Analytics Settings. |
| 18 | + * |
| 19 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 20 | + * @param workspaceName The name of the workspace. |
| 21 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 22 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 23 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 24 | + * @return all Security ML Analytics Settings as paginated response with {@link PagedIterable}. |
| 25 | + */ |
| 26 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 27 | + PagedIterable<SecurityMLAnalyticsSettingInner> list(String resourceGroupName, String workspaceName); |
| 28 | + |
| 29 | + /** |
| 30 | + * Gets all Security ML Analytics Settings. |
| 31 | + * |
| 32 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 33 | + * @param workspaceName The name of the workspace. |
| 34 | + * @param context The context to associate with this operation. |
| 35 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 36 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 37 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 38 | + * @return all Security ML Analytics Settings as paginated response with {@link PagedIterable}. |
| 39 | + */ |
| 40 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 41 | + PagedIterable<SecurityMLAnalyticsSettingInner> list( |
| 42 | + String resourceGroupName, String workspaceName, Context context); |
| 43 | + |
| 44 | + /** |
| 45 | + * Gets the Security ML Analytics Settings. |
| 46 | + * |
| 47 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 48 | + * @param workspaceName The name of the workspace. |
| 49 | + * @param settingsResourceName Security ML Analytics Settings resource name. |
| 50 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 51 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 52 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 53 | + * @return the Security ML Analytics Settings. |
| 54 | + */ |
| 55 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 56 | + SecurityMLAnalyticsSettingInner get(String resourceGroupName, String workspaceName, String settingsResourceName); |
| 57 | + |
| 58 | + /** |
| 59 | + * Gets the Security ML Analytics Settings. |
| 60 | + * |
| 61 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 62 | + * @param workspaceName The name of the workspace. |
| 63 | + * @param settingsResourceName Security ML Analytics Settings resource name. |
| 64 | + * @param context The context to associate with this operation. |
| 65 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 66 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 67 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 68 | + * @return the Security ML Analytics Settings along with {@link Response}. |
| 69 | + */ |
| 70 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 71 | + Response<SecurityMLAnalyticsSettingInner> getWithResponse( |
| 72 | + String resourceGroupName, String workspaceName, String settingsResourceName, Context context); |
| 73 | + |
| 74 | + /** |
| 75 | + * Creates or updates the Security ML Analytics Settings. |
| 76 | + * |
| 77 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 78 | + * @param workspaceName The name of the workspace. |
| 79 | + * @param settingsResourceName Security ML Analytics Settings resource name. |
| 80 | + * @param securityMLAnalyticsSetting The security ML Analytics setting. |
| 81 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 82 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 83 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 84 | + * @return security ML Analytics Setting. |
| 85 | + */ |
| 86 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 87 | + SecurityMLAnalyticsSettingInner createOrUpdate( |
| 88 | + String resourceGroupName, |
| 89 | + String workspaceName, |
| 90 | + String settingsResourceName, |
| 91 | + SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting); |
| 92 | + |
| 93 | + /** |
| 94 | + * Creates or updates the Security ML Analytics Settings. |
| 95 | + * |
| 96 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 97 | + * @param workspaceName The name of the workspace. |
| 98 | + * @param settingsResourceName Security ML Analytics Settings resource name. |
| 99 | + * @param securityMLAnalyticsSetting The security ML Analytics setting. |
| 100 | + * @param context The context to associate with this operation. |
| 101 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 102 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 103 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 104 | + * @return security ML Analytics Setting along with {@link Response}. |
| 105 | + */ |
| 106 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 107 | + Response<SecurityMLAnalyticsSettingInner> createOrUpdateWithResponse( |
| 108 | + String resourceGroupName, |
| 109 | + String workspaceName, |
| 110 | + String settingsResourceName, |
| 111 | + SecurityMLAnalyticsSettingInner securityMLAnalyticsSetting, |
| 112 | + Context context); |
| 113 | + |
| 114 | + /** |
| 115 | + * Delete the Security ML Analytics Settings. |
| 116 | + * |
| 117 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 118 | + * @param workspaceName The name of the workspace. |
| 119 | + * @param settingsResourceName Security ML Analytics Settings resource name. |
| 120 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 121 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 122 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 123 | + */ |
| 124 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 125 | + void delete(String resourceGroupName, String workspaceName, String settingsResourceName); |
| 126 | + |
| 127 | + /** |
| 128 | + * Delete the Security ML Analytics Settings. |
| 129 | + * |
| 130 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 131 | + * @param workspaceName The name of the workspace. |
| 132 | + * @param settingsResourceName Security ML Analytics Settings resource name. |
| 133 | + * @param context The context to associate with this operation. |
| 134 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 135 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 136 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 137 | + * @return the {@link Response}. |
| 138 | + */ |
| 139 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 140 | + Response<Void> deleteWithResponse( |
| 141 | + String resourceGroupName, String workspaceName, String settingsResourceName, Context context); |
| 142 | +} |
0 commit comments