|
4 | 4 | import com.datadog.api.client.ApiException; |
5 | 5 | import com.datadog.api.client.ApiResponse; |
6 | 6 | import com.datadog.api.client.Pair; |
7 | | -import com.datadog.api.client.v2.model.AWSRelatedAccountsResponse; |
8 | 7 | import com.datadog.api.client.v2.model.AwsCURConfigPatchRequest; |
9 | 8 | import com.datadog.api.client.v2.model.AwsCURConfigPostRequest; |
10 | 9 | import com.datadog.api.client.v2.model.AwsCURConfigResponse; |
@@ -982,161 +981,6 @@ public ApiResponse<CustomCostsFileGetResponse> getCustomCostsFileWithHttpInfo(St |
982 | 981 | new GenericType<CustomCostsFileGetResponse>() {}); |
983 | 982 | } |
984 | 983 |
|
985 | | - /** |
986 | | - * List related AWS accounts. |
987 | | - * |
988 | | - * <p>See {@link #listAWSRelatedAccountsWithHttpInfo}. |
989 | | - * |
990 | | - * @param filterManagementAccountId The ID of the management account to filter by. (required) |
991 | | - * @return AWSRelatedAccountsResponse |
992 | | - * @throws ApiException if fails to make API call |
993 | | - * @deprecated |
994 | | - */ |
995 | | - @Deprecated |
996 | | - public AWSRelatedAccountsResponse listAWSRelatedAccounts(String filterManagementAccountId) |
997 | | - throws ApiException { |
998 | | - return listAWSRelatedAccountsWithHttpInfo(filterManagementAccountId).getData(); |
999 | | - } |
1000 | | - |
1001 | | - /** |
1002 | | - * List related AWS accounts. |
1003 | | - * |
1004 | | - * <p>See {@link #listAWSRelatedAccountsWithHttpInfoAsync}. |
1005 | | - * |
1006 | | - * @param filterManagementAccountId The ID of the management account to filter by. (required) |
1007 | | - * @return CompletableFuture<AWSRelatedAccountsResponse> |
1008 | | - * @deprecated |
1009 | | - */ |
1010 | | - @Deprecated |
1011 | | - public CompletableFuture<AWSRelatedAccountsResponse> listAWSRelatedAccountsAsync( |
1012 | | - String filterManagementAccountId) { |
1013 | | - return listAWSRelatedAccountsWithHttpInfoAsync(filterManagementAccountId) |
1014 | | - .thenApply( |
1015 | | - response -> { |
1016 | | - return response.getData(); |
1017 | | - }); |
1018 | | - } |
1019 | | - |
1020 | | - /** |
1021 | | - * List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the |
1022 | | - * specified management account. |
1023 | | - * |
1024 | | - * @param filterManagementAccountId The ID of the management account to filter by. (required) |
1025 | | - * @return ApiResponse<AWSRelatedAccountsResponse> |
1026 | | - * @throws ApiException if fails to make API call |
1027 | | - * @http.response.details |
1028 | | - * <table border="1"> |
1029 | | - * <caption>Response details</caption> |
1030 | | - * <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr> |
1031 | | - * <tr><td> 200 </td><td> OK </td><td> - </td></tr> |
1032 | | - * <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr> |
1033 | | - * <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr> |
1034 | | - * <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr> |
1035 | | - * </table> |
1036 | | - * |
1037 | | - * @deprecated |
1038 | | - */ |
1039 | | - @Deprecated |
1040 | | - public ApiResponse<AWSRelatedAccountsResponse> listAWSRelatedAccountsWithHttpInfo( |
1041 | | - String filterManagementAccountId) throws ApiException { |
1042 | | - Object localVarPostBody = null; |
1043 | | - |
1044 | | - // verify the required parameter 'filterManagementAccountId' is set |
1045 | | - if (filterManagementAccountId == null) { |
1046 | | - throw new ApiException( |
1047 | | - 400, |
1048 | | - "Missing the required parameter 'filterManagementAccountId' when calling" |
1049 | | - + " listAWSRelatedAccounts"); |
1050 | | - } |
1051 | | - // create path and map variables |
1052 | | - String localVarPath = "/api/v2/cost/aws_related_accounts"; |
1053 | | - |
1054 | | - List<Pair> localVarQueryParams = new ArrayList<Pair>(); |
1055 | | - Map<String, String> localVarHeaderParams = new HashMap<String, String>(); |
1056 | | - |
1057 | | - localVarQueryParams.addAll( |
1058 | | - apiClient.parameterToPairs("", "filter[management_account_id]", filterManagementAccountId)); |
1059 | | - |
1060 | | - Invocation.Builder builder = |
1061 | | - apiClient.createBuilder( |
1062 | | - "v2.CloudCostManagementApi.listAWSRelatedAccounts", |
1063 | | - localVarPath, |
1064 | | - localVarQueryParams, |
1065 | | - localVarHeaderParams, |
1066 | | - new HashMap<String, String>(), |
1067 | | - new String[] {"application/json"}, |
1068 | | - new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); |
1069 | | - return apiClient.invokeAPI( |
1070 | | - "GET", |
1071 | | - builder, |
1072 | | - localVarHeaderParams, |
1073 | | - new String[] {}, |
1074 | | - localVarPostBody, |
1075 | | - new HashMap<String, Object>(), |
1076 | | - false, |
1077 | | - new GenericType<AWSRelatedAccountsResponse>() {}); |
1078 | | - } |
1079 | | - |
1080 | | - /** |
1081 | | - * List related AWS accounts. |
1082 | | - * |
1083 | | - * <p>See {@link #listAWSRelatedAccountsWithHttpInfo}. |
1084 | | - * |
1085 | | - * @param filterManagementAccountId The ID of the management account to filter by. (required) |
1086 | | - * @return CompletableFuture<ApiResponse<AWSRelatedAccountsResponse>> |
1087 | | - * @deprecated |
1088 | | - */ |
1089 | | - @Deprecated |
1090 | | - public CompletableFuture<ApiResponse<AWSRelatedAccountsResponse>> |
1091 | | - listAWSRelatedAccountsWithHttpInfoAsync(String filterManagementAccountId) { |
1092 | | - Object localVarPostBody = null; |
1093 | | - |
1094 | | - // verify the required parameter 'filterManagementAccountId' is set |
1095 | | - if (filterManagementAccountId == null) { |
1096 | | - CompletableFuture<ApiResponse<AWSRelatedAccountsResponse>> result = new CompletableFuture<>(); |
1097 | | - result.completeExceptionally( |
1098 | | - new ApiException( |
1099 | | - 400, |
1100 | | - "Missing the required parameter 'filterManagementAccountId' when calling" |
1101 | | - + " listAWSRelatedAccounts")); |
1102 | | - return result; |
1103 | | - } |
1104 | | - // create path and map variables |
1105 | | - String localVarPath = "/api/v2/cost/aws_related_accounts"; |
1106 | | - |
1107 | | - List<Pair> localVarQueryParams = new ArrayList<Pair>(); |
1108 | | - Map<String, String> localVarHeaderParams = new HashMap<String, String>(); |
1109 | | - |
1110 | | - localVarQueryParams.addAll( |
1111 | | - apiClient.parameterToPairs("", "filter[management_account_id]", filterManagementAccountId)); |
1112 | | - |
1113 | | - Invocation.Builder builder; |
1114 | | - try { |
1115 | | - builder = |
1116 | | - apiClient.createBuilder( |
1117 | | - "v2.CloudCostManagementApi.listAWSRelatedAccounts", |
1118 | | - localVarPath, |
1119 | | - localVarQueryParams, |
1120 | | - localVarHeaderParams, |
1121 | | - new HashMap<String, String>(), |
1122 | | - new String[] {"application/json"}, |
1123 | | - new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"}); |
1124 | | - } catch (ApiException ex) { |
1125 | | - CompletableFuture<ApiResponse<AWSRelatedAccountsResponse>> result = new CompletableFuture<>(); |
1126 | | - result.completeExceptionally(ex); |
1127 | | - return result; |
1128 | | - } |
1129 | | - return apiClient.invokeAPIAsync( |
1130 | | - "GET", |
1131 | | - builder, |
1132 | | - localVarHeaderParams, |
1133 | | - new String[] {}, |
1134 | | - localVarPostBody, |
1135 | | - new HashMap<String, Object>(), |
1136 | | - false, |
1137 | | - new GenericType<AWSRelatedAccountsResponse>() {}); |
1138 | | - } |
1139 | | - |
1140 | 984 | /** |
1141 | 985 | * List Cloud Cost Management AWS CUR configs. |
1142 | 986 | * |
|
0 commit comments