|
| 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.management.polling.PollResult; |
| 12 | +import com.azure.core.util.Context; |
| 13 | +import com.azure.core.util.polling.SyncPoller; |
| 14 | +import com.azure.resourcemanager.securityinsights.fluent.models.FileImportInner; |
| 15 | + |
| 16 | +/** An instance of this class provides access to all the operations defined in FileImportsClient. */ |
| 17 | +public interface FileImportsClient { |
| 18 | + /** |
| 19 | + * Gets all file imports. |
| 20 | + * |
| 21 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 22 | + * @param workspaceName The name of the workspace. |
| 23 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 24 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 25 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 26 | + * @return all file imports as paginated response with {@link PagedIterable}. |
| 27 | + */ |
| 28 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 29 | + PagedIterable<FileImportInner> list(String resourceGroupName, String workspaceName); |
| 30 | + |
| 31 | + /** |
| 32 | + * Gets all file imports. |
| 33 | + * |
| 34 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 35 | + * @param workspaceName The name of the workspace. |
| 36 | + * @param filter Filters the results, based on a Boolean condition. Optional. |
| 37 | + * @param orderby Sorts the results. Optional. |
| 38 | + * @param top Returns only the first n results. Optional. |
| 39 | + * @param skipToken Skiptoken is only used if a previous operation returned a partial result. If a previous response |
| 40 | + * contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that |
| 41 | + * specifies a starting point to use for subsequent calls. Optional. |
| 42 | + * @param context The context to associate with this operation. |
| 43 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 44 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 45 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 46 | + * @return all file imports as paginated response with {@link PagedIterable}. |
| 47 | + */ |
| 48 | + @ServiceMethod(returns = ReturnType.COLLECTION) |
| 49 | + PagedIterable<FileImportInner> list( |
| 50 | + String resourceGroupName, |
| 51 | + String workspaceName, |
| 52 | + String filter, |
| 53 | + String orderby, |
| 54 | + Integer top, |
| 55 | + String skipToken, |
| 56 | + Context context); |
| 57 | + |
| 58 | + /** |
| 59 | + * Gets a file import. |
| 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 fileImportId File import ID. |
| 64 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 65 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 66 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 67 | + * @return a file import. |
| 68 | + */ |
| 69 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 70 | + FileImportInner get(String resourceGroupName, String workspaceName, String fileImportId); |
| 71 | + |
| 72 | + /** |
| 73 | + * Gets a file import. |
| 74 | + * |
| 75 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 76 | + * @param workspaceName The name of the workspace. |
| 77 | + * @param fileImportId File import ID. |
| 78 | + * @param context The context to associate with this operation. |
| 79 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 80 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 81 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 82 | + * @return a file import along with {@link Response}. |
| 83 | + */ |
| 84 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 85 | + Response<FileImportInner> getWithResponse( |
| 86 | + String resourceGroupName, String workspaceName, String fileImportId, Context context); |
| 87 | + |
| 88 | + /** |
| 89 | + * Creates the file import. |
| 90 | + * |
| 91 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 92 | + * @param workspaceName The name of the workspace. |
| 93 | + * @param fileImportId File import ID. |
| 94 | + * @param fileImport The file import. |
| 95 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 96 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 97 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 98 | + * @return represents a file import in Azure Security Insights. |
| 99 | + */ |
| 100 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 101 | + FileImportInner create( |
| 102 | + String resourceGroupName, String workspaceName, String fileImportId, FileImportInner fileImport); |
| 103 | + |
| 104 | + /** |
| 105 | + * Creates the file import. |
| 106 | + * |
| 107 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 108 | + * @param workspaceName The name of the workspace. |
| 109 | + * @param fileImportId File import ID. |
| 110 | + * @param fileImport The file import. |
| 111 | + * @param context The context to associate with this operation. |
| 112 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 113 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 114 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 115 | + * @return represents a file import in Azure Security Insights along with {@link Response}. |
| 116 | + */ |
| 117 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 118 | + Response<FileImportInner> createWithResponse( |
| 119 | + String resourceGroupName, |
| 120 | + String workspaceName, |
| 121 | + String fileImportId, |
| 122 | + FileImportInner fileImport, |
| 123 | + Context context); |
| 124 | + |
| 125 | + /** |
| 126 | + * Delete the file import. |
| 127 | + * |
| 128 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 129 | + * @param workspaceName The name of the workspace. |
| 130 | + * @param fileImportId File import ID. |
| 131 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 132 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 133 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 134 | + * @return the {@link SyncPoller} for polling of represents a file import in Azure Security Insights. |
| 135 | + */ |
| 136 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 137 | + SyncPoller<PollResult<FileImportInner>, FileImportInner> beginDelete( |
| 138 | + String resourceGroupName, String workspaceName, String fileImportId); |
| 139 | + |
| 140 | + /** |
| 141 | + * Delete the file import. |
| 142 | + * |
| 143 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 144 | + * @param workspaceName The name of the workspace. |
| 145 | + * @param fileImportId File import ID. |
| 146 | + * @param context The context to associate with this operation. |
| 147 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 148 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 149 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 150 | + * @return the {@link SyncPoller} for polling of represents a file import in Azure Security Insights. |
| 151 | + */ |
| 152 | + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) |
| 153 | + SyncPoller<PollResult<FileImportInner>, FileImportInner> beginDelete( |
| 154 | + String resourceGroupName, String workspaceName, String fileImportId, Context context); |
| 155 | + |
| 156 | + /** |
| 157 | + * Delete the file import. |
| 158 | + * |
| 159 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 160 | + * @param workspaceName The name of the workspace. |
| 161 | + * @param fileImportId File import ID. |
| 162 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 163 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 164 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 165 | + * @return represents a file import in Azure Security Insights. |
| 166 | + */ |
| 167 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 168 | + FileImportInner delete(String resourceGroupName, String workspaceName, String fileImportId); |
| 169 | + |
| 170 | + /** |
| 171 | + * Delete the file import. |
| 172 | + * |
| 173 | + * @param resourceGroupName The name of the resource group. The name is case insensitive. |
| 174 | + * @param workspaceName The name of the workspace. |
| 175 | + * @param fileImportId File import ID. |
| 176 | + * @param context The context to associate with this operation. |
| 177 | + * @throws IllegalArgumentException thrown if parameters fail the validation. |
| 178 | + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. |
| 179 | + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. |
| 180 | + * @return represents a file import in Azure Security Insights. |
| 181 | + */ |
| 182 | + @ServiceMethod(returns = ReturnType.SINGLE) |
| 183 | + FileImportInner delete(String resourceGroupName, String workspaceName, String fileImportId, Context context); |
| 184 | +} |
0 commit comments