diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/VolcObserveApi.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/VolcObserveApi.java index 6d6f99b2..495cdecf 100644 --- a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/VolcObserveApi.java +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/VolcObserveApi.java @@ -31,18 +31,36 @@ import com.volcengine.volcobserve.model.CreateContactGroupResponse; import com.volcengine.volcobserve.model.CreateContactsRequest; import com.volcengine.volcobserve.model.CreateContactsResponse; +import com.volcengine.volcobserve.model.CreateEventRuleRequest; +import com.volcengine.volcobserve.model.CreateEventRuleResponse; import com.volcengine.volcobserve.model.CreateObjectGroupRequest; import com.volcengine.volcobserve.model.CreateObjectGroupResponse; +import com.volcengine.volcobserve.model.CreateRuleRequest; +import com.volcengine.volcobserve.model.CreateRuleResponse; +import com.volcengine.volcobserve.model.CreateWebhookRequest; +import com.volcengine.volcobserve.model.CreateWebhookResponse; import com.volcengine.volcobserve.model.DeleteContactGroupByIdsRequest; import com.volcengine.volcobserve.model.DeleteContactGroupByIdsResponse; import com.volcengine.volcobserve.model.DeleteContactsByIdsRequest; import com.volcengine.volcobserve.model.DeleteContactsByIdsResponse; +import com.volcengine.volcobserve.model.DeleteEventRuleRequest; +import com.volcengine.volcobserve.model.DeleteEventRuleResponse; import com.volcengine.volcobserve.model.DeleteObjectGroupRequest; import com.volcengine.volcobserve.model.DeleteObjectGroupResponse; +import com.volcengine.volcobserve.model.DeleteRulesByIdsRequest; +import com.volcengine.volcobserve.model.DeleteRulesByIdsResponse; +import com.volcengine.volcobserve.model.DeleteWebhooksByIdsRequest; +import com.volcengine.volcobserve.model.DeleteWebhooksByIdsResponse; +import com.volcengine.volcobserve.model.DisableEventRuleRequest; +import com.volcengine.volcobserve.model.DisableEventRuleResponse; +import com.volcengine.volcobserve.model.EnableEventRuleRequest; +import com.volcengine.volcobserve.model.EnableEventRuleResponse; import com.volcengine.volcobserve.model.GetMetricDataRequest; import com.volcengine.volcobserve.model.GetMetricDataResponse; import com.volcengine.volcobserve.model.GetTopDataRequest; import com.volcengine.volcobserve.model.GetTopDataResponse; +import com.volcengine.volcobserve.model.ListAlertGroupRequest; +import com.volcengine.volcobserve.model.ListAlertGroupResponse; import com.volcengine.volcobserve.model.ListContactGroupByIdsRequest; import com.volcengine.volcobserve.model.ListContactGroupByIdsResponse; import com.volcengine.volcobserve.model.ListContactGroupsRequest; @@ -51,10 +69,24 @@ import com.volcengine.volcobserve.model.ListContactsByIdsResponse; import com.volcengine.volcobserve.model.ListContactsRequest; import com.volcengine.volcobserve.model.ListContactsResponse; +import com.volcengine.volcobserve.model.ListEventRulesRequest; +import com.volcengine.volcobserve.model.ListEventRulesResponse; import com.volcengine.volcobserve.model.ListEventsRequest; import com.volcengine.volcobserve.model.ListEventsResponse; import com.volcengine.volcobserve.model.ListObjectGroupsRequest; import com.volcengine.volcobserve.model.ListObjectGroupsResponse; +import com.volcengine.volcobserve.model.ListRulesByIdsRequest; +import com.volcengine.volcobserve.model.ListRulesByIdsResponse; +import com.volcengine.volcobserve.model.ListRulesRequest; +import com.volcengine.volcobserve.model.ListRulesResponse; +import com.volcengine.volcobserve.model.ListSendAlertRequest; +import com.volcengine.volcobserve.model.ListSendAlertResponse; +import com.volcengine.volcobserve.model.ListWebhooksByIdsRequest; +import com.volcengine.volcobserve.model.ListWebhooksByIdsResponse; +import com.volcengine.volcobserve.model.ListWebhooksRequest; +import com.volcengine.volcobserve.model.ListWebhooksResponse; +import com.volcengine.volcobserve.model.SetStateOfRulesByIdsRequest; +import com.volcengine.volcobserve.model.SetStateOfRulesByIdsResponse; import com.volcengine.volcobserve.model.UpdateContactGroupRequest; import com.volcengine.volcobserve.model.UpdateContactGroupResponse; import com.volcengine.volcobserve.model.UpdateContactGroupWithContactsRequest; @@ -63,8 +95,14 @@ import com.volcengine.volcobserve.model.UpdateContactsResponse; import com.volcengine.volcobserve.model.UpdateContactsWithContactGroupsRequest; import com.volcengine.volcobserve.model.UpdateContactsWithContactGroupsResponse; +import com.volcengine.volcobserve.model.UpdateEventRuleRequest; +import com.volcengine.volcobserve.model.UpdateEventRuleResponse; import com.volcengine.volcobserve.model.UpdateObjectGroupRequest; import com.volcengine.volcobserve.model.UpdateObjectGroupResponse; +import com.volcengine.volcobserve.model.UpdateRuleRequest; +import com.volcengine.volcobserve.model.UpdateRuleResponse; +import com.volcengine.volcobserve.model.UpdateWebhookRequest; +import com.volcengine.volcobserve.model.UpdateWebhookResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -340,18 +378,18 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don return call; } /** - * Build call for createObjectGroup + * Build call for createEventRule * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call createObjectGroupCall(CreateObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call createEventRuleCall(CreateEventRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/CreateObjectGroup/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/CreateEventRule/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -389,13 +427,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createObjectGroupValidateBeforeCall(CreateObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createEventRuleValidateBeforeCall(CreateEventRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createObjectGroup(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createEventRule(Async)"); } - com.squareup.okhttp.Call call = createObjectGroupCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createEventRuleCall(body, progressListener, progressRequestListener); return call; @@ -408,11 +446,11 @@ private com.squareup.okhttp.Call createObjectGroupValidateBeforeCall(CreateObjec * * * @param body (required) - * @return CreateObjectGroupResponse + * @return CreateEventRuleResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public CreateObjectGroupResponse createObjectGroup(CreateObjectGroupRequest body) throws ApiException { - ApiResponse resp = createObjectGroupWithHttpInfo(body); + public CreateEventRuleResponse createEventRule(CreateEventRuleRequest body) throws ApiException { + ApiResponse resp = createEventRuleWithHttpInfo(body); return resp.getData(); } @@ -420,12 +458,12 @@ public CreateObjectGroupResponse createObjectGroup(CreateObjectGroupRequest body * * * @param body (required) - * @return ApiResponse<CreateObjectGroupResponse> + * @return ApiResponse<CreateEventRuleResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse createObjectGroupWithHttpInfo( @NotNull CreateObjectGroupRequest body) throws ApiException { - com.squareup.okhttp.Call call = createObjectGroupValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createEventRuleWithHttpInfo( @NotNull CreateEventRuleRequest body) throws ApiException { + com.squareup.okhttp.Call call = createEventRuleValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -437,7 +475,7 @@ public ApiResponse createObjectGroupWithHttpInfo( @No * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call createObjectGroupAsync(CreateObjectGroupRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createEventRuleAsync(CreateEventRuleRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -458,24 +496,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = createObjectGroupValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = createEventRuleValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteContactGroupByIds + * Build call for createObjectGroup * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call deleteContactGroupByIdsCall(DeleteContactGroupByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call createObjectGroupCall(CreateObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/DeleteContactGroupByIds/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/CreateObjectGroup/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -513,13 +551,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteContactGroupByIdsValidateBeforeCall(DeleteContactGroupByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createObjectGroupValidateBeforeCall(CreateObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling deleteContactGroupByIds(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createObjectGroup(Async)"); } - com.squareup.okhttp.Call call = deleteContactGroupByIdsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createObjectGroupCall(body, progressListener, progressRequestListener); return call; @@ -532,11 +570,11 @@ private com.squareup.okhttp.Call deleteContactGroupByIdsValidateBeforeCall(Delet * * * @param body (required) - * @return DeleteContactGroupByIdsResponse + * @return CreateObjectGroupResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DeleteContactGroupByIdsResponse deleteContactGroupByIds(DeleteContactGroupByIdsRequest body) throws ApiException { - ApiResponse resp = deleteContactGroupByIdsWithHttpInfo(body); + public CreateObjectGroupResponse createObjectGroup(CreateObjectGroupRequest body) throws ApiException { + ApiResponse resp = createObjectGroupWithHttpInfo(body); return resp.getData(); } @@ -544,12 +582,12 @@ public DeleteContactGroupByIdsResponse deleteContactGroupByIds(DeleteContactGrou * * * @param body (required) - * @return ApiResponse<DeleteContactGroupByIdsResponse> + * @return ApiResponse<CreateObjectGroupResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteContactGroupByIdsWithHttpInfo( @NotNull DeleteContactGroupByIdsRequest body) throws ApiException { - com.squareup.okhttp.Call call = deleteContactGroupByIdsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createObjectGroupWithHttpInfo( @NotNull CreateObjectGroupRequest body) throws ApiException { + com.squareup.okhttp.Call call = createObjectGroupValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -561,7 +599,7 @@ public ApiResponse deleteContactGroupByIdsWithH * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call deleteContactGroupByIdsAsync(DeleteContactGroupByIdsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createObjectGroupAsync(CreateObjectGroupRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -582,24 +620,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteContactGroupByIdsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = createObjectGroupValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteContactsByIds + * Build call for createRule * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call deleteContactsByIdsCall(DeleteContactsByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call createRuleCall(CreateRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/DeleteContactsByIds/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/CreateRule/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -637,13 +675,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteContactsByIdsValidateBeforeCall(DeleteContactsByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createRuleValidateBeforeCall(CreateRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling deleteContactsByIds(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createRule(Async)"); } - com.squareup.okhttp.Call call = deleteContactsByIdsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createRuleCall(body, progressListener, progressRequestListener); return call; @@ -656,11 +694,11 @@ private com.squareup.okhttp.Call deleteContactsByIdsValidateBeforeCall(DeleteCon * * * @param body (required) - * @return DeleteContactsByIdsResponse + * @return CreateRuleResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DeleteContactsByIdsResponse deleteContactsByIds(DeleteContactsByIdsRequest body) throws ApiException { - ApiResponse resp = deleteContactsByIdsWithHttpInfo(body); + public CreateRuleResponse createRule(CreateRuleRequest body) throws ApiException { + ApiResponse resp = createRuleWithHttpInfo(body); return resp.getData(); } @@ -668,12 +706,12 @@ public DeleteContactsByIdsResponse deleteContactsByIds(DeleteContactsByIdsReques * * * @param body (required) - * @return ApiResponse<DeleteContactsByIdsResponse> + * @return ApiResponse<CreateRuleResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteContactsByIdsWithHttpInfo( @NotNull DeleteContactsByIdsRequest body) throws ApiException { - com.squareup.okhttp.Call call = deleteContactsByIdsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createRuleWithHttpInfo( @NotNull CreateRuleRequest body) throws ApiException { + com.squareup.okhttp.Call call = createRuleValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -685,7 +723,7 @@ public ApiResponse deleteContactsByIdsWithHttpInfo( * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call deleteContactsByIdsAsync(DeleteContactsByIdsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createRuleAsync(CreateRuleRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -706,24 +744,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteContactsByIdsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = createRuleValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for deleteObjectGroup + * Build call for createWebhook * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call deleteObjectGroupCall(DeleteObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call createWebhookCall(CreateWebhookRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/DeleteObjectGroup/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/CreateWebhook/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -761,13 +799,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteObjectGroupValidateBeforeCall(DeleteObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call createWebhookValidateBeforeCall(CreateWebhookRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling deleteObjectGroup(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createWebhook(Async)"); } - com.squareup.okhttp.Call call = deleteObjectGroupCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = createWebhookCall(body, progressListener, progressRequestListener); return call; @@ -780,11 +818,11 @@ private com.squareup.okhttp.Call deleteObjectGroupValidateBeforeCall(DeleteObjec * * * @param body (required) - * @return DeleteObjectGroupResponse + * @return CreateWebhookResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public DeleteObjectGroupResponse deleteObjectGroup(DeleteObjectGroupRequest body) throws ApiException { - ApiResponse resp = deleteObjectGroupWithHttpInfo(body); + public CreateWebhookResponse createWebhook(CreateWebhookRequest body) throws ApiException { + ApiResponse resp = createWebhookWithHttpInfo(body); return resp.getData(); } @@ -792,12 +830,12 @@ public DeleteObjectGroupResponse deleteObjectGroup(DeleteObjectGroupRequest body * * * @param body (required) - * @return ApiResponse<DeleteObjectGroupResponse> + * @return ApiResponse<CreateWebhookResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deleteObjectGroupWithHttpInfo( @NotNull DeleteObjectGroupRequest body) throws ApiException { - com.squareup.okhttp.Call call = deleteObjectGroupValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse createWebhookWithHttpInfo( @NotNull CreateWebhookRequest body) throws ApiException { + com.squareup.okhttp.Call call = createWebhookValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -809,7 +847,7 @@ public ApiResponse deleteObjectGroupWithHttpInfo( @No * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call deleteObjectGroupAsync(DeleteObjectGroupRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call createWebhookAsync(CreateWebhookRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -830,24 +868,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = deleteObjectGroupValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = createWebhookValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getMetricData + * Build call for deleteContactGroupByIds * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getMetricDataCall(GetMetricDataRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteContactGroupByIdsCall(DeleteContactGroupByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/GetMetricData/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/DeleteContactGroupByIds/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -885,13 +923,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getMetricDataValidateBeforeCall(GetMetricDataRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteContactGroupByIdsValidateBeforeCall(DeleteContactGroupByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling getMetricData(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling deleteContactGroupByIds(Async)"); } - com.squareup.okhttp.Call call = getMetricDataCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteContactGroupByIdsCall(body, progressListener, progressRequestListener); return call; @@ -904,11 +942,11 @@ private com.squareup.okhttp.Call getMetricDataValidateBeforeCall(GetMetricDataRe * * * @param body (required) - * @return GetMetricDataResponse + * @return DeleteContactGroupByIdsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public GetMetricDataResponse getMetricData(GetMetricDataRequest body) throws ApiException { - ApiResponse resp = getMetricDataWithHttpInfo(body); + public DeleteContactGroupByIdsResponse deleteContactGroupByIds(DeleteContactGroupByIdsRequest body) throws ApiException { + ApiResponse resp = deleteContactGroupByIdsWithHttpInfo(body); return resp.getData(); } @@ -916,12 +954,12 @@ public GetMetricDataResponse getMetricData(GetMetricDataRequest body) throws Api * * * @param body (required) - * @return ApiResponse<GetMetricDataResponse> + * @return ApiResponse<DeleteContactGroupByIdsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getMetricDataWithHttpInfo( @NotNull GetMetricDataRequest body) throws ApiException { - com.squareup.okhttp.Call call = getMetricDataValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteContactGroupByIdsWithHttpInfo( @NotNull DeleteContactGroupByIdsRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteContactGroupByIdsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -933,7 +971,7 @@ public ApiResponse getMetricDataWithHttpInfo( @NotNull Ge * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getMetricDataAsync(GetMetricDataRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteContactGroupByIdsAsync(DeleteContactGroupByIdsRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -954,24 +992,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getMetricDataValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteContactGroupByIdsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for getTopData + * Build call for deleteContactsByIds * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call getTopDataCall(GetTopDataRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteContactsByIdsCall(DeleteContactsByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/GetTopData/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/DeleteContactsByIds/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1009,13 +1047,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getTopDataValidateBeforeCall(GetTopDataRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteContactsByIdsValidateBeforeCall(DeleteContactsByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling getTopData(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling deleteContactsByIds(Async)"); } - com.squareup.okhttp.Call call = getTopDataCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteContactsByIdsCall(body, progressListener, progressRequestListener); return call; @@ -1028,11 +1066,11 @@ private com.squareup.okhttp.Call getTopDataValidateBeforeCall(GetTopDataRequest * * * @param body (required) - * @return GetTopDataResponse + * @return DeleteContactsByIdsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public GetTopDataResponse getTopData(GetTopDataRequest body) throws ApiException { - ApiResponse resp = getTopDataWithHttpInfo(body); + public DeleteContactsByIdsResponse deleteContactsByIds(DeleteContactsByIdsRequest body) throws ApiException { + ApiResponse resp = deleteContactsByIdsWithHttpInfo(body); return resp.getData(); } @@ -1040,12 +1078,12 @@ public GetTopDataResponse getTopData(GetTopDataRequest body) throws ApiException * * * @param body (required) - * @return ApiResponse<GetTopDataResponse> + * @return ApiResponse<DeleteContactsByIdsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse getTopDataWithHttpInfo( @NotNull GetTopDataRequest body) throws ApiException { - com.squareup.okhttp.Call call = getTopDataValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteContactsByIdsWithHttpInfo( @NotNull DeleteContactsByIdsRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteContactsByIdsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1057,7 +1095,7 @@ public ApiResponse getTopDataWithHttpInfo( @NotNull GetTopDa * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call getTopDataAsync(GetTopDataRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteContactsByIdsAsync(DeleteContactsByIdsRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1078,24 +1116,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = getTopDataValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteContactsByIdsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for listContactGroupByIds + * Build call for deleteEventRule * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call listContactGroupByIdsCall(ListContactGroupByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteEventRuleCall(DeleteEventRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/ListContactGroupByIds/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/DeleteEventRule/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1133,13 +1171,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listContactGroupByIdsValidateBeforeCall(ListContactGroupByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteEventRuleValidateBeforeCall(DeleteEventRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling listContactGroupByIds(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling deleteEventRule(Async)"); } - com.squareup.okhttp.Call call = listContactGroupByIdsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteEventRuleCall(body, progressListener, progressRequestListener); return call; @@ -1152,11 +1190,11 @@ private com.squareup.okhttp.Call listContactGroupByIdsValidateBeforeCall(ListCon * * * @param body (required) - * @return ListContactGroupByIdsResponse + * @return DeleteEventRuleResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ListContactGroupByIdsResponse listContactGroupByIds(ListContactGroupByIdsRequest body) throws ApiException { - ApiResponse resp = listContactGroupByIdsWithHttpInfo(body); + public DeleteEventRuleResponse deleteEventRule(DeleteEventRuleRequest body) throws ApiException { + ApiResponse resp = deleteEventRuleWithHttpInfo(body); return resp.getData(); } @@ -1164,12 +1202,12 @@ public ListContactGroupByIdsResponse listContactGroupByIds(ListContactGroupByIds * * * @param body (required) - * @return ApiResponse<ListContactGroupByIdsResponse> + * @return ApiResponse<DeleteEventRuleResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse listContactGroupByIdsWithHttpInfo( @NotNull ListContactGroupByIdsRequest body) throws ApiException { - com.squareup.okhttp.Call call = listContactGroupByIdsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteEventRuleWithHttpInfo( @NotNull DeleteEventRuleRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteEventRuleValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1181,7 +1219,7 @@ public ApiResponse listContactGroupByIdsWithHttpI * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call listContactGroupByIdsAsync(ListContactGroupByIdsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteEventRuleAsync(DeleteEventRuleRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1202,24 +1240,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = listContactGroupByIdsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteEventRuleValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for listContactGroups + * Build call for deleteObjectGroup * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call listContactGroupsCall(ListContactGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteObjectGroupCall(DeleteObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/ListContactGroups/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/DeleteObjectGroup/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1257,13 +1295,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listContactGroupsValidateBeforeCall(ListContactGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteObjectGroupValidateBeforeCall(DeleteObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling listContactGroups(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling deleteObjectGroup(Async)"); } - com.squareup.okhttp.Call call = listContactGroupsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteObjectGroupCall(body, progressListener, progressRequestListener); return call; @@ -1276,11 +1314,11 @@ private com.squareup.okhttp.Call listContactGroupsValidateBeforeCall(ListContact * * * @param body (required) - * @return ListContactGroupsResponse + * @return DeleteObjectGroupResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ListContactGroupsResponse listContactGroups(ListContactGroupsRequest body) throws ApiException { - ApiResponse resp = listContactGroupsWithHttpInfo(body); + public DeleteObjectGroupResponse deleteObjectGroup(DeleteObjectGroupRequest body) throws ApiException { + ApiResponse resp = deleteObjectGroupWithHttpInfo(body); return resp.getData(); } @@ -1288,12 +1326,12 @@ public ListContactGroupsResponse listContactGroups(ListContactGroupsRequest body * * * @param body (required) - * @return ApiResponse<ListContactGroupsResponse> + * @return ApiResponse<DeleteObjectGroupResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse listContactGroupsWithHttpInfo( @NotNull ListContactGroupsRequest body) throws ApiException { - com.squareup.okhttp.Call call = listContactGroupsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteObjectGroupWithHttpInfo( @NotNull DeleteObjectGroupRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteObjectGroupValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1305,7 +1343,7 @@ public ApiResponse listContactGroupsWithHttpInfo( @No * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call listContactGroupsAsync(ListContactGroupsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteObjectGroupAsync(DeleteObjectGroupRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1326,24 +1364,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = listContactGroupsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteObjectGroupValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for listContacts + * Build call for deleteRulesByIds * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call listContactsCall(ListContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteRulesByIdsCall(DeleteRulesByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/ListContacts/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/DeleteRulesByIds/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1381,13 +1419,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listContactsValidateBeforeCall(ListContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteRulesByIdsValidateBeforeCall(DeleteRulesByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling listContacts(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling deleteRulesByIds(Async)"); } - com.squareup.okhttp.Call call = listContactsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteRulesByIdsCall(body, progressListener, progressRequestListener); return call; @@ -1400,11 +1438,11 @@ private com.squareup.okhttp.Call listContactsValidateBeforeCall(ListContactsRequ * * * @param body (required) - * @return ListContactsResponse + * @return DeleteRulesByIdsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ListContactsResponse listContacts(ListContactsRequest body) throws ApiException { - ApiResponse resp = listContactsWithHttpInfo(body); + public DeleteRulesByIdsResponse deleteRulesByIds(DeleteRulesByIdsRequest body) throws ApiException { + ApiResponse resp = deleteRulesByIdsWithHttpInfo(body); return resp.getData(); } @@ -1412,12 +1450,12 @@ public ListContactsResponse listContacts(ListContactsRequest body) throws ApiExc * * * @param body (required) - * @return ApiResponse<ListContactsResponse> + * @return ApiResponse<DeleteRulesByIdsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse listContactsWithHttpInfo( @NotNull ListContactsRequest body) throws ApiException { - com.squareup.okhttp.Call call = listContactsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteRulesByIdsWithHttpInfo( @NotNull DeleteRulesByIdsRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteRulesByIdsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1429,7 +1467,7 @@ public ApiResponse listContactsWithHttpInfo( @NotNull List * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call listContactsAsync(ListContactsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteRulesByIdsAsync(DeleteRulesByIdsRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1450,24 +1488,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = listContactsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteRulesByIdsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for listContactsByIds + * Build call for deleteWebhooksByIds * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call listContactsByIdsCall(ListContactsByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call deleteWebhooksByIdsCall(DeleteWebhooksByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/ListContactsByIds/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/DeleteWebhooksByIds/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1505,13 +1543,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listContactsByIdsValidateBeforeCall(ListContactsByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call deleteWebhooksByIdsValidateBeforeCall(DeleteWebhooksByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling listContactsByIds(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling deleteWebhooksByIds(Async)"); } - com.squareup.okhttp.Call call = listContactsByIdsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = deleteWebhooksByIdsCall(body, progressListener, progressRequestListener); return call; @@ -1524,11 +1562,11 @@ private com.squareup.okhttp.Call listContactsByIdsValidateBeforeCall(ListContact * * * @param body (required) - * @return ListContactsByIdsResponse + * @return DeleteWebhooksByIdsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ListContactsByIdsResponse listContactsByIds(ListContactsByIdsRequest body) throws ApiException { - ApiResponse resp = listContactsByIdsWithHttpInfo(body); + public DeleteWebhooksByIdsResponse deleteWebhooksByIds(DeleteWebhooksByIdsRequest body) throws ApiException { + ApiResponse resp = deleteWebhooksByIdsWithHttpInfo(body); return resp.getData(); } @@ -1536,12 +1574,12 @@ public ListContactsByIdsResponse listContactsByIds(ListContactsByIdsRequest body * * * @param body (required) - * @return ApiResponse<ListContactsByIdsResponse> + * @return ApiResponse<DeleteWebhooksByIdsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse listContactsByIdsWithHttpInfo( @NotNull ListContactsByIdsRequest body) throws ApiException { - com.squareup.okhttp.Call call = listContactsByIdsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse deleteWebhooksByIdsWithHttpInfo( @NotNull DeleteWebhooksByIdsRequest body) throws ApiException { + com.squareup.okhttp.Call call = deleteWebhooksByIdsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1553,7 +1591,7 @@ public ApiResponse listContactsByIdsWithHttpInfo( @No * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call listContactsByIdsAsync(ListContactsByIdsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call deleteWebhooksByIdsAsync(DeleteWebhooksByIdsRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1574,24 +1612,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = listContactsByIdsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = deleteWebhooksByIdsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for listEvents + * Build call for disableEventRule * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call listEventsCall(ListEventsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call disableEventRuleCall(DisableEventRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/ListEvents/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/DisableEventRule/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1629,13 +1667,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listEventsValidateBeforeCall(ListEventsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call disableEventRuleValidateBeforeCall(DisableEventRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling listEvents(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling disableEventRule(Async)"); } - com.squareup.okhttp.Call call = listEventsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = disableEventRuleCall(body, progressListener, progressRequestListener); return call; @@ -1648,11 +1686,11 @@ private com.squareup.okhttp.Call listEventsValidateBeforeCall(ListEventsRequest * * * @param body (required) - * @return ListEventsResponse + * @return DisableEventRuleResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ListEventsResponse listEvents(ListEventsRequest body) throws ApiException { - ApiResponse resp = listEventsWithHttpInfo(body); + public DisableEventRuleResponse disableEventRule(DisableEventRuleRequest body) throws ApiException { + ApiResponse resp = disableEventRuleWithHttpInfo(body); return resp.getData(); } @@ -1660,12 +1698,12 @@ public ListEventsResponse listEvents(ListEventsRequest body) throws ApiException * * * @param body (required) - * @return ApiResponse<ListEventsResponse> + * @return ApiResponse<DisableEventRuleResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse listEventsWithHttpInfo( @NotNull ListEventsRequest body) throws ApiException { - com.squareup.okhttp.Call call = listEventsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse disableEventRuleWithHttpInfo( @NotNull DisableEventRuleRequest body) throws ApiException { + com.squareup.okhttp.Call call = disableEventRuleValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1677,7 +1715,7 @@ public ApiResponse listEventsWithHttpInfo( @NotNull ListEven * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call listEventsAsync(ListEventsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call disableEventRuleAsync(DisableEventRuleRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1698,24 +1736,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = listEventsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = disableEventRuleValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for listObjectGroups + * Build call for enableEventRule * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call listObjectGroupsCall(ListObjectGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call enableEventRuleCall(EnableEventRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/ListObjectGroups/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/EnableEventRule/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1753,13 +1791,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listObjectGroupsValidateBeforeCall(ListObjectGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call enableEventRuleValidateBeforeCall(EnableEventRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling listObjectGroups(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling enableEventRule(Async)"); } - com.squareup.okhttp.Call call = listObjectGroupsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = enableEventRuleCall(body, progressListener, progressRequestListener); return call; @@ -1772,11 +1810,11 @@ private com.squareup.okhttp.Call listObjectGroupsValidateBeforeCall(ListObjectGr * * * @param body (required) - * @return ListObjectGroupsResponse + * @return EnableEventRuleResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ListObjectGroupsResponse listObjectGroups(ListObjectGroupsRequest body) throws ApiException { - ApiResponse resp = listObjectGroupsWithHttpInfo(body); + public EnableEventRuleResponse enableEventRule(EnableEventRuleRequest body) throws ApiException { + ApiResponse resp = enableEventRuleWithHttpInfo(body); return resp.getData(); } @@ -1784,12 +1822,12 @@ public ListObjectGroupsResponse listObjectGroups(ListObjectGroupsRequest body) t * * * @param body (required) - * @return ApiResponse<ListObjectGroupsResponse> + * @return ApiResponse<EnableEventRuleResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse listObjectGroupsWithHttpInfo( @NotNull ListObjectGroupsRequest body) throws ApiException { - com.squareup.okhttp.Call call = listObjectGroupsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse enableEventRuleWithHttpInfo( @NotNull EnableEventRuleRequest body) throws ApiException { + com.squareup.okhttp.Call call = enableEventRuleValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1801,7 +1839,7 @@ public ApiResponse listObjectGroupsWithHttpInfo( @NotN * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call listObjectGroupsAsync(ListObjectGroupsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call enableEventRuleAsync(EnableEventRuleRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1822,8 +1860,1992 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = listObjectGroupsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = enableEventRuleValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getMetricData + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getMetricDataCall(GetMetricDataRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/GetMetricData/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getMetricDataValidateBeforeCall(GetMetricDataRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling getMetricData(Async)"); + } + + com.squareup.okhttp.Call call = getMetricDataCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return GetMetricDataResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public GetMetricDataResponse getMetricData(GetMetricDataRequest body) throws ApiException { + ApiResponse resp = getMetricDataWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<GetMetricDataResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getMetricDataWithHttpInfo( @NotNull GetMetricDataRequest body) throws ApiException { + com.squareup.okhttp.Call call = getMetricDataValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getMetricDataAsync(GetMetricDataRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getMetricDataValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for getTopData + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call getTopDataCall(GetTopDataRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/GetTopData/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call getTopDataValidateBeforeCall(GetTopDataRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling getTopData(Async)"); + } + + com.squareup.okhttp.Call call = getTopDataCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return GetTopDataResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public GetTopDataResponse getTopData(GetTopDataRequest body) throws ApiException { + ApiResponse resp = getTopDataWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<GetTopDataResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse getTopDataWithHttpInfo( @NotNull GetTopDataRequest body) throws ApiException { + com.squareup.okhttp.Call call = getTopDataValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call getTopDataAsync(GetTopDataRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = getTopDataValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listAlertGroup + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listAlertGroupCall(ListAlertGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListAlertGroup/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listAlertGroupValidateBeforeCall(ListAlertGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listAlertGroup(Async)"); + } + + com.squareup.okhttp.Call call = listAlertGroupCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListAlertGroupResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListAlertGroupResponse listAlertGroup(ListAlertGroupRequest body) throws ApiException { + ApiResponse resp = listAlertGroupWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListAlertGroupResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listAlertGroupWithHttpInfo( @NotNull ListAlertGroupRequest body) throws ApiException { + com.squareup.okhttp.Call call = listAlertGroupValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listAlertGroupAsync(ListAlertGroupRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listAlertGroupValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listContactGroupByIds + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listContactGroupByIdsCall(ListContactGroupByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListContactGroupByIds/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listContactGroupByIdsValidateBeforeCall(ListContactGroupByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listContactGroupByIds(Async)"); + } + + com.squareup.okhttp.Call call = listContactGroupByIdsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListContactGroupByIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListContactGroupByIdsResponse listContactGroupByIds(ListContactGroupByIdsRequest body) throws ApiException { + ApiResponse resp = listContactGroupByIdsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListContactGroupByIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listContactGroupByIdsWithHttpInfo( @NotNull ListContactGroupByIdsRequest body) throws ApiException { + com.squareup.okhttp.Call call = listContactGroupByIdsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listContactGroupByIdsAsync(ListContactGroupByIdsRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listContactGroupByIdsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listContactGroups + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listContactGroupsCall(ListContactGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListContactGroups/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listContactGroupsValidateBeforeCall(ListContactGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listContactGroups(Async)"); + } + + com.squareup.okhttp.Call call = listContactGroupsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListContactGroupsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListContactGroupsResponse listContactGroups(ListContactGroupsRequest body) throws ApiException { + ApiResponse resp = listContactGroupsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListContactGroupsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listContactGroupsWithHttpInfo( @NotNull ListContactGroupsRequest body) throws ApiException { + com.squareup.okhttp.Call call = listContactGroupsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listContactGroupsAsync(ListContactGroupsRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listContactGroupsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listContacts + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listContactsCall(ListContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListContacts/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listContactsValidateBeforeCall(ListContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listContacts(Async)"); + } + + com.squareup.okhttp.Call call = listContactsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListContactsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListContactsResponse listContacts(ListContactsRequest body) throws ApiException { + ApiResponse resp = listContactsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListContactsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listContactsWithHttpInfo( @NotNull ListContactsRequest body) throws ApiException { + com.squareup.okhttp.Call call = listContactsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listContactsAsync(ListContactsRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listContactsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listContactsByIds + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listContactsByIdsCall(ListContactsByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListContactsByIds/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listContactsByIdsValidateBeforeCall(ListContactsByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listContactsByIds(Async)"); + } + + com.squareup.okhttp.Call call = listContactsByIdsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListContactsByIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListContactsByIdsResponse listContactsByIds(ListContactsByIdsRequest body) throws ApiException { + ApiResponse resp = listContactsByIdsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListContactsByIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listContactsByIdsWithHttpInfo( @NotNull ListContactsByIdsRequest body) throws ApiException { + com.squareup.okhttp.Call call = listContactsByIdsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listContactsByIdsAsync(ListContactsByIdsRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listContactsByIdsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listEventRules + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listEventRulesCall(ListEventRulesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListEventRules/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listEventRulesValidateBeforeCall(ListEventRulesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listEventRules(Async)"); + } + + com.squareup.okhttp.Call call = listEventRulesCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListEventRulesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListEventRulesResponse listEventRules(ListEventRulesRequest body) throws ApiException { + ApiResponse resp = listEventRulesWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListEventRulesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listEventRulesWithHttpInfo( @NotNull ListEventRulesRequest body) throws ApiException { + com.squareup.okhttp.Call call = listEventRulesValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listEventRulesAsync(ListEventRulesRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listEventRulesValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listEvents + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listEventsCall(ListEventsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListEvents/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listEventsValidateBeforeCall(ListEventsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listEvents(Async)"); + } + + com.squareup.okhttp.Call call = listEventsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListEventsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListEventsResponse listEvents(ListEventsRequest body) throws ApiException { + ApiResponse resp = listEventsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListEventsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listEventsWithHttpInfo( @NotNull ListEventsRequest body) throws ApiException { + com.squareup.okhttp.Call call = listEventsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listEventsAsync(ListEventsRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listEventsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listObjectGroups + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listObjectGroupsCall(ListObjectGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListObjectGroups/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listObjectGroupsValidateBeforeCall(ListObjectGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listObjectGroups(Async)"); + } + + com.squareup.okhttp.Call call = listObjectGroupsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListObjectGroupsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListObjectGroupsResponse listObjectGroups(ListObjectGroupsRequest body) throws ApiException { + ApiResponse resp = listObjectGroupsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListObjectGroupsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listObjectGroupsWithHttpInfo( @NotNull ListObjectGroupsRequest body) throws ApiException { + com.squareup.okhttp.Call call = listObjectGroupsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listObjectGroupsAsync(ListObjectGroupsRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listObjectGroupsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listRules + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listRulesCall(ListRulesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListRules/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listRulesValidateBeforeCall(ListRulesRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listRules(Async)"); + } + + com.squareup.okhttp.Call call = listRulesCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListRulesResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListRulesResponse listRules(ListRulesRequest body) throws ApiException { + ApiResponse resp = listRulesWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListRulesResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listRulesWithHttpInfo( @NotNull ListRulesRequest body) throws ApiException { + com.squareup.okhttp.Call call = listRulesValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listRulesAsync(ListRulesRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listRulesValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listRulesByIds + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listRulesByIdsCall(ListRulesByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListRulesByIds/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listRulesByIdsValidateBeforeCall(ListRulesByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listRulesByIds(Async)"); + } + + com.squareup.okhttp.Call call = listRulesByIdsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListRulesByIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListRulesByIdsResponse listRulesByIds(ListRulesByIdsRequest body) throws ApiException { + ApiResponse resp = listRulesByIdsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListRulesByIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listRulesByIdsWithHttpInfo( @NotNull ListRulesByIdsRequest body) throws ApiException { + com.squareup.okhttp.Call call = listRulesByIdsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listRulesByIdsAsync(ListRulesByIdsRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listRulesByIdsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listSendAlert + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listSendAlertCall(ListSendAlertRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListSendAlert/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listSendAlertValidateBeforeCall(ListSendAlertRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listSendAlert(Async)"); + } + + com.squareup.okhttp.Call call = listSendAlertCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListSendAlertResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListSendAlertResponse listSendAlert(ListSendAlertRequest body) throws ApiException { + ApiResponse resp = listSendAlertWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListSendAlertResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listSendAlertWithHttpInfo( @NotNull ListSendAlertRequest body) throws ApiException { + com.squareup.okhttp.Call call = listSendAlertValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listSendAlertAsync(ListSendAlertRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listSendAlertValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listWebhooks + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listWebhooksCall(ListWebhooksRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListWebhooks/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listWebhooksValidateBeforeCall(ListWebhooksRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listWebhooks(Async)"); + } + + com.squareup.okhttp.Call call = listWebhooksCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListWebhooksResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListWebhooksResponse listWebhooks(ListWebhooksRequest body) throws ApiException { + ApiResponse resp = listWebhooksWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListWebhooksResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listWebhooksWithHttpInfo( @NotNull ListWebhooksRequest body) throws ApiException { + com.squareup.okhttp.Call call = listWebhooksValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listWebhooksAsync(ListWebhooksRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listWebhooksValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for listWebhooksByIds + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call listWebhooksByIdsCall(ListWebhooksByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/ListWebhooksByIds/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call listWebhooksByIdsValidateBeforeCall(ListWebhooksByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling listWebhooksByIds(Async)"); + } + + com.squareup.okhttp.Call call = listWebhooksByIdsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return ListWebhooksByIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ListWebhooksByIdsResponse listWebhooksByIds(ListWebhooksByIdsRequest body) throws ApiException { + ApiResponse resp = listWebhooksByIdsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<ListWebhooksByIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse listWebhooksByIdsWithHttpInfo( @NotNull ListWebhooksByIdsRequest body) throws ApiException { + com.squareup.okhttp.Call call = listWebhooksByIdsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call listWebhooksByIdsAsync(ListWebhooksByIdsRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = listWebhooksByIdsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for setStateOfRulesByIds + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call setStateOfRulesByIdsCall(SetStateOfRulesByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/SetStateOfRulesByIds/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call setStateOfRulesByIdsValidateBeforeCall(SetStateOfRulesByIdsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling setStateOfRulesByIds(Async)"); + } + + com.squareup.okhttp.Call call = setStateOfRulesByIdsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return SetStateOfRulesByIdsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public SetStateOfRulesByIdsResponse setStateOfRulesByIds(SetStateOfRulesByIdsRequest body) throws ApiException { + ApiResponse resp = setStateOfRulesByIdsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<SetStateOfRulesByIdsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse setStateOfRulesByIdsWithHttpInfo( @NotNull SetStateOfRulesByIdsRequest body) throws ApiException { + com.squareup.okhttp.Call call = setStateOfRulesByIdsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call setStateOfRulesByIdsAsync(SetStateOfRulesByIdsRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = setStateOfRulesByIdsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } @@ -1835,11 +3857,259 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call updateContactGroupCall(UpdateContactGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call updateContactGroupCall(UpdateContactGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/UpdateContactGroup/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateContactGroupValidateBeforeCall(UpdateContactGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updateContactGroup(Async)"); + } + + com.squareup.okhttp.Call call = updateContactGroupCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return UpdateContactGroupResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public UpdateContactGroupResponse updateContactGroup(UpdateContactGroupRequest body) throws ApiException { + ApiResponse resp = updateContactGroupWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<UpdateContactGroupResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateContactGroupWithHttpInfo( @NotNull UpdateContactGroupRequest body) throws ApiException { + com.squareup.okhttp.Call call = updateContactGroupValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateContactGroupAsync(UpdateContactGroupRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateContactGroupValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateContactGroupWithContacts + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateContactGroupWithContactsCall(UpdateContactGroupWithContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/UpdateContactGroupWithContacts/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateContactGroupWithContactsValidateBeforeCall(UpdateContactGroupWithContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updateContactGroupWithContacts(Async)"); + } + + com.squareup.okhttp.Call call = updateContactGroupWithContactsCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return UpdateContactGroupWithContactsResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public UpdateContactGroupWithContactsResponse updateContactGroupWithContacts(UpdateContactGroupWithContactsRequest body) throws ApiException { + ApiResponse resp = updateContactGroupWithContactsWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<UpdateContactGroupWithContactsResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateContactGroupWithContactsWithHttpInfo( @NotNull UpdateContactGroupWithContactsRequest body) throws ApiException { + com.squareup.okhttp.Call call = updateContactGroupWithContactsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateContactGroupWithContactsAsync(UpdateContactGroupWithContactsRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateContactGroupWithContactsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateContacts + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateContactsCall(UpdateContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/UpdateContactGroup/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/UpdateContacts/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1877,13 +4147,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call updateContactGroupValidateBeforeCall(UpdateContactGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call updateContactsValidateBeforeCall(UpdateContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling updateContactGroup(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling updateContacts(Async)"); } - com.squareup.okhttp.Call call = updateContactGroupCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updateContactsCall(body, progressListener, progressRequestListener); return call; @@ -1896,11 +4166,11 @@ private com.squareup.okhttp.Call updateContactGroupValidateBeforeCall(UpdateCont * * * @param body (required) - * @return UpdateContactGroupResponse + * @return UpdateContactsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public UpdateContactGroupResponse updateContactGroup(UpdateContactGroupRequest body) throws ApiException { - ApiResponse resp = updateContactGroupWithHttpInfo(body); + public UpdateContactsResponse updateContacts(UpdateContactsRequest body) throws ApiException { + ApiResponse resp = updateContactsWithHttpInfo(body); return resp.getData(); } @@ -1908,12 +4178,12 @@ public UpdateContactGroupResponse updateContactGroup(UpdateContactGroupRequest b * * * @param body (required) - * @return ApiResponse<UpdateContactGroupResponse> + * @return ApiResponse<UpdateContactsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse updateContactGroupWithHttpInfo( @NotNull UpdateContactGroupRequest body) throws ApiException { - com.squareup.okhttp.Call call = updateContactGroupValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse updateContactsWithHttpInfo( @NotNull UpdateContactsRequest body) throws ApiException { + com.squareup.okhttp.Call call = updateContactsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -1925,7 +4195,7 @@ public ApiResponse updateContactGroupWithHttpInfo( @ * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call updateContactGroupAsync(UpdateContactGroupRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call updateContactsAsync(UpdateContactsRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -1946,24 +4216,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = updateContactGroupValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = updateContactsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for updateContactGroupWithContacts + * Build call for updateContactsWithContactGroups * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call updateContactGroupWithContactsCall(UpdateContactGroupWithContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call updateContactsWithContactGroupsCall(UpdateContactsWithContactGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/UpdateContactGroupWithContacts/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/UpdateContactsWithContactGroups/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2001,13 +4271,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call updateContactGroupWithContactsValidateBeforeCall(UpdateContactGroupWithContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call updateContactsWithContactGroupsValidateBeforeCall(UpdateContactsWithContactGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling updateContactGroupWithContacts(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling updateContactsWithContactGroups(Async)"); } - com.squareup.okhttp.Call call = updateContactGroupWithContactsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updateContactsWithContactGroupsCall(body, progressListener, progressRequestListener); return call; @@ -2020,11 +4290,11 @@ private com.squareup.okhttp.Call updateContactGroupWithContactsValidateBeforeCal * * * @param body (required) - * @return UpdateContactGroupWithContactsResponse + * @return UpdateContactsWithContactGroupsResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public UpdateContactGroupWithContactsResponse updateContactGroupWithContacts(UpdateContactGroupWithContactsRequest body) throws ApiException { - ApiResponse resp = updateContactGroupWithContactsWithHttpInfo(body); + public UpdateContactsWithContactGroupsResponse updateContactsWithContactGroups(UpdateContactsWithContactGroupsRequest body) throws ApiException { + ApiResponse resp = updateContactsWithContactGroupsWithHttpInfo(body); return resp.getData(); } @@ -2032,12 +4302,12 @@ public UpdateContactGroupWithContactsResponse updateContactGroupWithContacts(Upd * * * @param body (required) - * @return ApiResponse<UpdateContactGroupWithContactsResponse> + * @return ApiResponse<UpdateContactsWithContactGroupsResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse updateContactGroupWithContactsWithHttpInfo( @NotNull UpdateContactGroupWithContactsRequest body) throws ApiException { - com.squareup.okhttp.Call call = updateContactGroupWithContactsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse updateContactsWithContactGroupsWithHttpInfo( @NotNull UpdateContactsWithContactGroupsRequest body) throws ApiException { + com.squareup.okhttp.Call call = updateContactsWithContactGroupsValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -2049,7 +4319,7 @@ public ApiResponse updateContactGroupWit * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call updateContactGroupWithContactsAsync(UpdateContactGroupWithContactsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call updateContactsWithContactGroupsAsync(UpdateContactsWithContactGroupsRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2070,24 +4340,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = updateContactGroupWithContactsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = updateContactsWithContactGroupsValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for updateContacts + * Build call for updateEventRule * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call updateContactsCall(UpdateContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call updateEventRuleCall(UpdateEventRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/UpdateContacts/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/UpdateEventRule/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2125,13 +4395,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call updateContactsValidateBeforeCall(UpdateContactsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call updateEventRuleValidateBeforeCall(UpdateEventRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling updateContacts(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling updateEventRule(Async)"); } - com.squareup.okhttp.Call call = updateContactsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updateEventRuleCall(body, progressListener, progressRequestListener); return call; @@ -2144,11 +4414,11 @@ private com.squareup.okhttp.Call updateContactsValidateBeforeCall(UpdateContacts * * * @param body (required) - * @return UpdateContactsResponse + * @return UpdateEventRuleResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public UpdateContactsResponse updateContacts(UpdateContactsRequest body) throws ApiException { - ApiResponse resp = updateContactsWithHttpInfo(body); + public UpdateEventRuleResponse updateEventRule(UpdateEventRuleRequest body) throws ApiException { + ApiResponse resp = updateEventRuleWithHttpInfo(body); return resp.getData(); } @@ -2156,12 +4426,12 @@ public UpdateContactsResponse updateContacts(UpdateContactsRequest body) throws * * * @param body (required) - * @return ApiResponse<UpdateContactsResponse> + * @return ApiResponse<UpdateEventRuleResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse updateContactsWithHttpInfo( @NotNull UpdateContactsRequest body) throws ApiException { - com.squareup.okhttp.Call call = updateContactsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse updateEventRuleWithHttpInfo( @NotNull UpdateEventRuleRequest body) throws ApiException { + com.squareup.okhttp.Call call = updateEventRuleValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -2173,7 +4443,7 @@ public ApiResponse updateContactsWithHttpInfo( @NotNull * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call updateContactsAsync(UpdateContactsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call updateEventRuleAsync(UpdateEventRuleRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2194,24 +4464,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = updateContactsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = updateEventRuleValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for updateContactsWithContactGroups + * Build call for updateObjectGroup * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call updateContactsWithContactGroupsCall(UpdateContactsWithContactGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call updateObjectGroupCall(UpdateObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/UpdateContactsWithContactGroups/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/UpdateObjectGroup/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2249,13 +4519,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call updateContactsWithContactGroupsValidateBeforeCall(UpdateContactsWithContactGroupsRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call updateObjectGroupValidateBeforeCall(UpdateObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling updateContactsWithContactGroups(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling updateObjectGroup(Async)"); } - com.squareup.okhttp.Call call = updateContactsWithContactGroupsCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updateObjectGroupCall(body, progressListener, progressRequestListener); return call; @@ -2268,11 +4538,11 @@ private com.squareup.okhttp.Call updateContactsWithContactGroupsValidateBeforeCa * * * @param body (required) - * @return UpdateContactsWithContactGroupsResponse + * @return UpdateObjectGroupResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public UpdateContactsWithContactGroupsResponse updateContactsWithContactGroups(UpdateContactsWithContactGroupsRequest body) throws ApiException { - ApiResponse resp = updateContactsWithContactGroupsWithHttpInfo(body); + public UpdateObjectGroupResponse updateObjectGroup(UpdateObjectGroupRequest body) throws ApiException { + ApiResponse resp = updateObjectGroupWithHttpInfo(body); return resp.getData(); } @@ -2280,12 +4550,12 @@ public UpdateContactsWithContactGroupsResponse updateContactsWithContactGroups(U * * * @param body (required) - * @return ApiResponse<UpdateContactsWithContactGroupsResponse> + * @return ApiResponse<UpdateObjectGroupResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse updateContactsWithContactGroupsWithHttpInfo( @NotNull UpdateContactsWithContactGroupsRequest body) throws ApiException { - com.squareup.okhttp.Call call = updateContactsWithContactGroupsValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse updateObjectGroupWithHttpInfo( @NotNull UpdateObjectGroupRequest body) throws ApiException { + com.squareup.okhttp.Call call = updateObjectGroupValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -2297,7 +4567,7 @@ public ApiResponse updateContactsWithCo * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call updateContactsWithContactGroupsAsync(UpdateContactsWithContactGroupsRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call updateObjectGroupAsync(UpdateObjectGroupRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2318,24 +4588,24 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = updateContactsWithContactGroupsValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = updateObjectGroupValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } /** - * Build call for updateObjectGroup + * Build call for updateRule * @param body (required) * @param progressListener Progress listener * @param progressRequestListener Progress request listener * @return Call to execute * @throws ApiException If fail to serialize the request body object */ - public com.squareup.okhttp.Call updateObjectGroupCall(UpdateObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public com.squareup.okhttp.Call updateRuleCall(UpdateRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { Object localVarPostBody = body; // create path and map variables - String localVarPath = "/UpdateObjectGroup/2018-01-01/volc_observe/post/application_json/"; + String localVarPath = "/UpdateRule/2018-01-01/volc_observe/post/application_json/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2373,13 +4643,13 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch } @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call updateObjectGroupValidateBeforeCall(UpdateObjectGroupRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private com.squareup.okhttp.Call updateRuleValidateBeforeCall(UpdateRuleRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling updateObjectGroup(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling updateRule(Async)"); } - com.squareup.okhttp.Call call = updateObjectGroupCall(body, progressListener, progressRequestListener); + com.squareup.okhttp.Call call = updateRuleCall(body, progressListener, progressRequestListener); return call; @@ -2392,11 +4662,11 @@ private com.squareup.okhttp.Call updateObjectGroupValidateBeforeCall(UpdateObjec * * * @param body (required) - * @return UpdateObjectGroupResponse + * @return UpdateRuleResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public UpdateObjectGroupResponse updateObjectGroup(UpdateObjectGroupRequest body) throws ApiException { - ApiResponse resp = updateObjectGroupWithHttpInfo(body); + public UpdateRuleResponse updateRule(UpdateRuleRequest body) throws ApiException { + ApiResponse resp = updateRuleWithHttpInfo(body); return resp.getData(); } @@ -2404,12 +4674,12 @@ public UpdateObjectGroupResponse updateObjectGroup(UpdateObjectGroupRequest body * * * @param body (required) - * @return ApiResponse<UpdateObjectGroupResponse> + * @return ApiResponse<UpdateRuleResponse> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse updateObjectGroupWithHttpInfo( @NotNull UpdateObjectGroupRequest body) throws ApiException { - com.squareup.okhttp.Call call = updateObjectGroupValidateBeforeCall(body, null, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse updateRuleWithHttpInfo( @NotNull UpdateRuleRequest body) throws ApiException { + com.squareup.okhttp.Call call = updateRuleValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -2421,7 +4691,7 @@ public ApiResponse updateObjectGroupWithHttpInfo( @No * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object */ - public com.squareup.okhttp.Call updateObjectGroupAsync(UpdateObjectGroupRequest body, final ApiCallback callback) throws ApiException { + public com.squareup.okhttp.Call updateRuleAsync(UpdateRuleRequest body, final ApiCallback callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; @@ -2442,8 +4712,132 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - com.squareup.okhttp.Call call = updateObjectGroupValidateBeforeCall(body, progressListener, progressRequestListener); - Type localVarReturnType = new TypeToken(){}.getType(); + com.squareup.okhttp.Call call = updateRuleValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); + apiClient.executeAsync(call, localVarReturnType, callback); + return call; + } + /** + * Build call for updateWebhook + * @param body (required) + * @param progressListener Progress listener + * @param progressRequestListener Progress request listener + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + */ + public com.squareup.okhttp.Call updateWebhookCall(UpdateWebhookRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/UpdateWebhook/2018-01-01/volc_observe/post/application_json/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + + Map localVarHeaderParams = new HashMap(); + + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + + final String[] localVarContentTypes = { + "text/plain" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); + + if(progressListener != null) { + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { + @Override + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) + .build(); + } + }); + } + + String[] localVarAuthNames = new String[] { "volcengineSign" }; + return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + } + + @SuppressWarnings("rawtypes") + private com.squareup.okhttp.Call updateWebhookValidateBeforeCall(UpdateWebhookRequest body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling updateWebhook(Async)"); + } + + com.squareup.okhttp.Call call = updateWebhookCall(body, progressListener, progressRequestListener); + return call; + + + + + + } + + /** + * + * + * @param body (required) + * @return UpdateWebhookResponse + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public UpdateWebhookResponse updateWebhook(UpdateWebhookRequest body) throws ApiException { + ApiResponse resp = updateWebhookWithHttpInfo(body); + return resp.getData(); + } + + /** + * + * + * @param body (required) + * @return ApiResponse<UpdateWebhookResponse> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + */ + public ApiResponse updateWebhookWithHttpInfo( @NotNull UpdateWebhookRequest body) throws ApiException { + com.squareup.okhttp.Call call = updateWebhookValidateBeforeCall(body, null, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return apiClient.execute(call, localVarReturnType); + } + + /** + * (asynchronously) + * + * @param body (required) + * @param callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + */ + public com.squareup.okhttp.Call updateWebhookAsync(UpdateWebhookRequest body, final ApiCallback callback) throws ApiException { + + ProgressResponseBody.ProgressListener progressListener = null; + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + + if (callback != null) { + progressListener = new ProgressResponseBody.ProgressListener() { + @Override + public void update(long bytesRead, long contentLength, boolean done) { + callback.onDownloadProgress(bytesRead, contentLength, done); + } + }; + + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { + @Override + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { + callback.onUploadProgress(bytesWritten, contentLength, done); + } + }; + } + + com.squareup.okhttp.Call call = updateWebhookValidateBeforeCall(body, progressListener, progressRequestListener); + Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; } diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForCreateRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForCreateRuleInput.java new file mode 100644 index 00000000..7adafbfa --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForCreateRuleInput.java @@ -0,0 +1,209 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ConditionForCreateRuleInput + */ + + + +public class ConditionForCreateRuleInput { + @SerializedName("ComparisonOperator") + private String comparisonOperator = null; + + @SerializedName("MetricName") + private String metricName = null; + + @SerializedName("MetricUnit") + private String metricUnit = null; + + @SerializedName("Period") + private String period = null; + + @SerializedName("Statistics") + private String statistics = null; + + @SerializedName("Threshold") + private String threshold = null; + + public ConditionForCreateRuleInput comparisonOperator(String comparisonOperator) { + this.comparisonOperator = comparisonOperator; + return this; + } + + /** + * Get comparisonOperator + * @return comparisonOperator + **/ + @Schema(description = "") + public String getComparisonOperator() { + return comparisonOperator; + } + + public void setComparisonOperator(String comparisonOperator) { + this.comparisonOperator = comparisonOperator; + } + + public ConditionForCreateRuleInput metricName(String metricName) { + this.metricName = metricName; + return this; + } + + /** + * Get metricName + * @return metricName + **/ + @Schema(description = "") + public String getMetricName() { + return metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public ConditionForCreateRuleInput metricUnit(String metricUnit) { + this.metricUnit = metricUnit; + return this; + } + + /** + * Get metricUnit + * @return metricUnit + **/ + @Schema(description = "") + public String getMetricUnit() { + return metricUnit; + } + + public void setMetricUnit(String metricUnit) { + this.metricUnit = metricUnit; + } + + public ConditionForCreateRuleInput period(String period) { + this.period = period; + return this; + } + + /** + * Get period + * @return period + **/ + @Schema(description = "") + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period; + } + + public ConditionForCreateRuleInput statistics(String statistics) { + this.statistics = statistics; + return this; + } + + /** + * Get statistics + * @return statistics + **/ + @Schema(description = "") + public String getStatistics() { + return statistics; + } + + public void setStatistics(String statistics) { + this.statistics = statistics; + } + + public ConditionForCreateRuleInput threshold(String threshold) { + this.threshold = threshold; + return this; + } + + /** + * Get threshold + * @return threshold + **/ + @Schema(description = "") + public String getThreshold() { + return threshold; + } + + public void setThreshold(String threshold) { + this.threshold = threshold; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConditionForCreateRuleInput conditionForCreateRuleInput = (ConditionForCreateRuleInput) o; + return Objects.equals(this.comparisonOperator, conditionForCreateRuleInput.comparisonOperator) && + Objects.equals(this.metricName, conditionForCreateRuleInput.metricName) && + Objects.equals(this.metricUnit, conditionForCreateRuleInput.metricUnit) && + Objects.equals(this.period, conditionForCreateRuleInput.period) && + Objects.equals(this.statistics, conditionForCreateRuleInput.statistics) && + Objects.equals(this.threshold, conditionForCreateRuleInput.threshold); + } + + @Override + public int hashCode() { + return Objects.hash(comparisonOperator, metricName, metricUnit, period, statistics, threshold); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConditionForCreateRuleInput {\n"); + + sb.append(" comparisonOperator: ").append(toIndentedString(comparisonOperator)).append("\n"); + sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); + sb.append(" metricUnit: ").append(toIndentedString(metricUnit)).append("\n"); + sb.append(" period: ").append(toIndentedString(period)).append("\n"); + sb.append(" statistics: ").append(toIndentedString(statistics)).append("\n"); + sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForListRulesByIdsOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForListRulesByIdsOutput.java new file mode 100644 index 00000000..ad004134 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForListRulesByIdsOutput.java @@ -0,0 +1,186 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ConditionForListRulesByIdsOutput + */ + + + +public class ConditionForListRulesByIdsOutput { + @SerializedName("ComparisonOperator") + private String comparisonOperator = null; + + @SerializedName("MetricName") + private String metricName = null; + + @SerializedName("MetricUnit") + private String metricUnit = null; + + @SerializedName("Statistics") + private String statistics = null; + + @SerializedName("Threshold") + private String threshold = null; + + public ConditionForListRulesByIdsOutput comparisonOperator(String comparisonOperator) { + this.comparisonOperator = comparisonOperator; + return this; + } + + /** + * Get comparisonOperator + * @return comparisonOperator + **/ + @Schema(description = "") + public String getComparisonOperator() { + return comparisonOperator; + } + + public void setComparisonOperator(String comparisonOperator) { + this.comparisonOperator = comparisonOperator; + } + + public ConditionForListRulesByIdsOutput metricName(String metricName) { + this.metricName = metricName; + return this; + } + + /** + * Get metricName + * @return metricName + **/ + @Schema(description = "") + public String getMetricName() { + return metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public ConditionForListRulesByIdsOutput metricUnit(String metricUnit) { + this.metricUnit = metricUnit; + return this; + } + + /** + * Get metricUnit + * @return metricUnit + **/ + @Schema(description = "") + public String getMetricUnit() { + return metricUnit; + } + + public void setMetricUnit(String metricUnit) { + this.metricUnit = metricUnit; + } + + public ConditionForListRulesByIdsOutput statistics(String statistics) { + this.statistics = statistics; + return this; + } + + /** + * Get statistics + * @return statistics + **/ + @Schema(description = "") + public String getStatistics() { + return statistics; + } + + public void setStatistics(String statistics) { + this.statistics = statistics; + } + + public ConditionForListRulesByIdsOutput threshold(String threshold) { + this.threshold = threshold; + return this; + } + + /** + * Get threshold + * @return threshold + **/ + @Schema(description = "") + public String getThreshold() { + return threshold; + } + + public void setThreshold(String threshold) { + this.threshold = threshold; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConditionForListRulesByIdsOutput conditionForListRulesByIdsOutput = (ConditionForListRulesByIdsOutput) o; + return Objects.equals(this.comparisonOperator, conditionForListRulesByIdsOutput.comparisonOperator) && + Objects.equals(this.metricName, conditionForListRulesByIdsOutput.metricName) && + Objects.equals(this.metricUnit, conditionForListRulesByIdsOutput.metricUnit) && + Objects.equals(this.statistics, conditionForListRulesByIdsOutput.statistics) && + Objects.equals(this.threshold, conditionForListRulesByIdsOutput.threshold); + } + + @Override + public int hashCode() { + return Objects.hash(comparisonOperator, metricName, metricUnit, statistics, threshold); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConditionForListRulesByIdsOutput {\n"); + + sb.append(" comparisonOperator: ").append(toIndentedString(comparisonOperator)).append("\n"); + sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); + sb.append(" metricUnit: ").append(toIndentedString(metricUnit)).append("\n"); + sb.append(" statistics: ").append(toIndentedString(statistics)).append("\n"); + sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForListRulesOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForListRulesOutput.java new file mode 100644 index 00000000..4de5d983 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForListRulesOutput.java @@ -0,0 +1,186 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ConditionForListRulesOutput + */ + + + +public class ConditionForListRulesOutput { + @SerializedName("ComparisonOperator") + private String comparisonOperator = null; + + @SerializedName("MetricName") + private String metricName = null; + + @SerializedName("MetricUnit") + private String metricUnit = null; + + @SerializedName("Statistics") + private String statistics = null; + + @SerializedName("Threshold") + private String threshold = null; + + public ConditionForListRulesOutput comparisonOperator(String comparisonOperator) { + this.comparisonOperator = comparisonOperator; + return this; + } + + /** + * Get comparisonOperator + * @return comparisonOperator + **/ + @Schema(description = "") + public String getComparisonOperator() { + return comparisonOperator; + } + + public void setComparisonOperator(String comparisonOperator) { + this.comparisonOperator = comparisonOperator; + } + + public ConditionForListRulesOutput metricName(String metricName) { + this.metricName = metricName; + return this; + } + + /** + * Get metricName + * @return metricName + **/ + @Schema(description = "") + public String getMetricName() { + return metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public ConditionForListRulesOutput metricUnit(String metricUnit) { + this.metricUnit = metricUnit; + return this; + } + + /** + * Get metricUnit + * @return metricUnit + **/ + @Schema(description = "") + public String getMetricUnit() { + return metricUnit; + } + + public void setMetricUnit(String metricUnit) { + this.metricUnit = metricUnit; + } + + public ConditionForListRulesOutput statistics(String statistics) { + this.statistics = statistics; + return this; + } + + /** + * Get statistics + * @return statistics + **/ + @Schema(description = "") + public String getStatistics() { + return statistics; + } + + public void setStatistics(String statistics) { + this.statistics = statistics; + } + + public ConditionForListRulesOutput threshold(String threshold) { + this.threshold = threshold; + return this; + } + + /** + * Get threshold + * @return threshold + **/ + @Schema(description = "") + public String getThreshold() { + return threshold; + } + + public void setThreshold(String threshold) { + this.threshold = threshold; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConditionForListRulesOutput conditionForListRulesOutput = (ConditionForListRulesOutput) o; + return Objects.equals(this.comparisonOperator, conditionForListRulesOutput.comparisonOperator) && + Objects.equals(this.metricName, conditionForListRulesOutput.metricName) && + Objects.equals(this.metricUnit, conditionForListRulesOutput.metricUnit) && + Objects.equals(this.statistics, conditionForListRulesOutput.statistics) && + Objects.equals(this.threshold, conditionForListRulesOutput.threshold); + } + + @Override + public int hashCode() { + return Objects.hash(comparisonOperator, metricName, metricUnit, statistics, threshold); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConditionForListRulesOutput {\n"); + + sb.append(" comparisonOperator: ").append(toIndentedString(comparisonOperator)).append("\n"); + sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); + sb.append(" metricUnit: ").append(toIndentedString(metricUnit)).append("\n"); + sb.append(" statistics: ").append(toIndentedString(statistics)).append("\n"); + sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForUpdateRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForUpdateRuleInput.java new file mode 100644 index 00000000..eb8d7b41 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ConditionForUpdateRuleInput.java @@ -0,0 +1,209 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ConditionForUpdateRuleInput + */ + + + +public class ConditionForUpdateRuleInput { + @SerializedName("ComparisonOperator") + private String comparisonOperator = null; + + @SerializedName("MetricName") + private String metricName = null; + + @SerializedName("MetricUnit") + private String metricUnit = null; + + @SerializedName("Period") + private String period = null; + + @SerializedName("Statistics") + private String statistics = null; + + @SerializedName("Threshold") + private String threshold = null; + + public ConditionForUpdateRuleInput comparisonOperator(String comparisonOperator) { + this.comparisonOperator = comparisonOperator; + return this; + } + + /** + * Get comparisonOperator + * @return comparisonOperator + **/ + @Schema(description = "") + public String getComparisonOperator() { + return comparisonOperator; + } + + public void setComparisonOperator(String comparisonOperator) { + this.comparisonOperator = comparisonOperator; + } + + public ConditionForUpdateRuleInput metricName(String metricName) { + this.metricName = metricName; + return this; + } + + /** + * Get metricName + * @return metricName + **/ + @Schema(description = "") + public String getMetricName() { + return metricName; + } + + public void setMetricName(String metricName) { + this.metricName = metricName; + } + + public ConditionForUpdateRuleInput metricUnit(String metricUnit) { + this.metricUnit = metricUnit; + return this; + } + + /** + * Get metricUnit + * @return metricUnit + **/ + @Schema(description = "") + public String getMetricUnit() { + return metricUnit; + } + + public void setMetricUnit(String metricUnit) { + this.metricUnit = metricUnit; + } + + public ConditionForUpdateRuleInput period(String period) { + this.period = period; + return this; + } + + /** + * Get period + * @return period + **/ + @Schema(description = "") + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period; + } + + public ConditionForUpdateRuleInput statistics(String statistics) { + this.statistics = statistics; + return this; + } + + /** + * Get statistics + * @return statistics + **/ + @Schema(description = "") + public String getStatistics() { + return statistics; + } + + public void setStatistics(String statistics) { + this.statistics = statistics; + } + + public ConditionForUpdateRuleInput threshold(String threshold) { + this.threshold = threshold; + return this; + } + + /** + * Get threshold + * @return threshold + **/ + @Schema(description = "") + public String getThreshold() { + return threshold; + } + + public void setThreshold(String threshold) { + this.threshold = threshold; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConditionForUpdateRuleInput conditionForUpdateRuleInput = (ConditionForUpdateRuleInput) o; + return Objects.equals(this.comparisonOperator, conditionForUpdateRuleInput.comparisonOperator) && + Objects.equals(this.metricName, conditionForUpdateRuleInput.metricName) && + Objects.equals(this.metricUnit, conditionForUpdateRuleInput.metricUnit) && + Objects.equals(this.period, conditionForUpdateRuleInput.period) && + Objects.equals(this.statistics, conditionForUpdateRuleInput.statistics) && + Objects.equals(this.threshold, conditionForUpdateRuleInput.threshold); + } + + @Override + public int hashCode() { + return Objects.hash(comparisonOperator, metricName, metricUnit, period, statistics, threshold); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConditionForUpdateRuleInput {\n"); + + sb.append(" comparisonOperator: ").append(toIndentedString(comparisonOperator)).append("\n"); + sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); + sb.append(" metricUnit: ").append(toIndentedString(metricUnit)).append("\n"); + sb.append(" period: ").append(toIndentedString(period)).append("\n"); + sb.append(" statistics: ").append(toIndentedString(statistics)).append("\n"); + sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateEventRuleRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateEventRuleRequest.java new file mode 100644 index 00000000..395a8f75 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateEventRuleRequest.java @@ -0,0 +1,570 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.EffectiveTimeForCreateEventRuleInput; +import com.volcengine.volcobserve.model.MessageQueueForCreateEventRuleInput; +import com.volcengine.volcobserve.model.TLSTargetForCreateEventRuleInput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * CreateEventRuleRequest + */ + + + +public class CreateEventRuleRequest { + @SerializedName("ContactGroupIds") + private List contactGroupIds = null; + + @SerializedName("ContactMethods") + private List contactMethods = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("EffectiveTime") + private EffectiveTimeForCreateEventRuleInput effectiveTime = null; + + @SerializedName("Endpoint") + private String endpoint = null; + + /** + * Gets or Sets eventBusName + */ + @JsonAdapter(EventBusNameEnum.Adapter.class) + public enum EventBusNameEnum { + @SerializedName("default") + DEFAULT("default"); + + private String value; + + EventBusNameEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + public static EventBusNameEnum fromValue(String input) { + for (EventBusNameEnum b : EventBusNameEnum.values()) { + if (b.value.equals(input)) { + return b; + } + } + return null; + } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EventBusNameEnum enumeration) throws IOException { + jsonWriter.value(String.valueOf(enumeration.getValue())); + } + + @Override + public EventBusNameEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextString(); + return EventBusNameEnum.fromValue((String)(value)); + } + } + } @SerializedName("EventBusName") + private EventBusNameEnum eventBusName = null; + + @SerializedName("EventSource") + private String eventSource = null; + + @SerializedName("EventType") + private List eventType = null; + + @SerializedName("FilterPattern") + private Map filterPattern = null; + + @SerializedName("Level") + private String level = null; + + @SerializedName("MessageQueue") + private List messageQueue = null; + + @SerializedName("RuleName") + private String ruleName = null; + + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + @SerializedName("enable") + ENABLE("enable"), + @SerializedName("disable") + DISABLE("disable"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + public static StatusEnum fromValue(String input) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(input)) { + return b; + } + } + return null; + } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(String.valueOf(enumeration.getValue())); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextString(); + return StatusEnum.fromValue((String)(value)); + } + } + } @SerializedName("Status") + private StatusEnum status = null; + + @SerializedName("TLSTarget") + private List tlSTarget = null; + + @SerializedName("WebhookIds") + private List webhookIds = null; + + public CreateEventRuleRequest contactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + return this; + } + + public CreateEventRuleRequest addContactGroupIdsItem(String contactGroupIdsItem) { + if (this.contactGroupIds == null) { + this.contactGroupIds = new ArrayList(); + } + this.contactGroupIds.add(contactGroupIdsItem); + return this; + } + + /** + * Get contactGroupIds + * @return contactGroupIds + **/ + @Schema(description = "") + public List getContactGroupIds() { + return contactGroupIds; + } + + public void setContactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + } + + public CreateEventRuleRequest contactMethods(List contactMethods) { + this.contactMethods = contactMethods; + return this; + } + + public CreateEventRuleRequest addContactMethodsItem(String contactMethodsItem) { + if (this.contactMethods == null) { + this.contactMethods = new ArrayList(); + } + this.contactMethods.add(contactMethodsItem); + return this; + } + + /** + * Get contactMethods + * @return contactMethods + **/ + @Schema(description = "") + public List getContactMethods() { + return contactMethods; + } + + public void setContactMethods(List contactMethods) { + this.contactMethods = contactMethods; + } + + public CreateEventRuleRequest description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateEventRuleRequest effectiveTime(EffectiveTimeForCreateEventRuleInput effectiveTime) { + this.effectiveTime = effectiveTime; + return this; + } + + /** + * Get effectiveTime + * @return effectiveTime + **/ + @Valid + @Schema(description = "") + public EffectiveTimeForCreateEventRuleInput getEffectiveTime() { + return effectiveTime; + } + + public void setEffectiveTime(EffectiveTimeForCreateEventRuleInput effectiveTime) { + this.effectiveTime = effectiveTime; + } + + public CreateEventRuleRequest endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get endpoint + * @return endpoint + **/ + @Schema(description = "") + public String getEndpoint() { + return endpoint; + } + + public void setEndpoint(String endpoint) { + this.endpoint = endpoint; + } + + public CreateEventRuleRequest eventBusName(EventBusNameEnum eventBusName) { + this.eventBusName = eventBusName; + return this; + } + + /** + * Get eventBusName + * @return eventBusName + **/ + @NotNull + @Size(min=2,max=127) @Schema(required = true, description = "") + public EventBusNameEnum getEventBusName() { + return eventBusName; + } + + public void setEventBusName(EventBusNameEnum eventBusName) { + this.eventBusName = eventBusName; + } + + public CreateEventRuleRequest eventSource(String eventSource) { + this.eventSource = eventSource; + return this; + } + + /** + * Get eventSource + * @return eventSource + **/ + @NotNull + @Schema(required = true, description = "") + public String getEventSource() { + return eventSource; + } + + public void setEventSource(String eventSource) { + this.eventSource = eventSource; + } + + public CreateEventRuleRequest eventType(List eventType) { + this.eventType = eventType; + return this; + } + + public CreateEventRuleRequest addEventTypeItem(String eventTypeItem) { + if (this.eventType == null) { + this.eventType = new ArrayList(); + } + this.eventType.add(eventTypeItem); + return this; + } + + /** + * Get eventType + * @return eventType + **/ + @Schema(description = "") + public List getEventType() { + return eventType; + } + + public void setEventType(List eventType) { + this.eventType = eventType; + } + + public CreateEventRuleRequest filterPattern(Map filterPattern) { + this.filterPattern = filterPattern; + return this; + } + + public CreateEventRuleRequest putFilterPatternItem(String key, Object filterPatternItem) { + if (this.filterPattern == null) { + this.filterPattern = new HashMap(); + } + this.filterPattern.put(key, filterPatternItem); + return this; + } + + /** + * Get filterPattern + * @return filterPattern + **/ + @Schema(description = "") + public Map getFilterPattern() { + return filterPattern; + } + + public void setFilterPattern(Map filterPattern) { + this.filterPattern = filterPattern; + } + + public CreateEventRuleRequest level(String level) { + this.level = level; + return this; + } + + /** + * Get level + * @return level + **/ + @NotNull + @Schema(required = true, description = "") + public String getLevel() { + return level; + } + + public void setLevel(String level) { + this.level = level; + } + + public CreateEventRuleRequest messageQueue(List messageQueue) { + this.messageQueue = messageQueue; + return this; + } + + public CreateEventRuleRequest addMessageQueueItem(MessageQueueForCreateEventRuleInput messageQueueItem) { + if (this.messageQueue == null) { + this.messageQueue = new ArrayList(); + } + this.messageQueue.add(messageQueueItem); + return this; + } + + /** + * Get messageQueue + * @return messageQueue + **/ + @Valid + @Schema(description = "") + public List getMessageQueue() { + return messageQueue; + } + + public void setMessageQueue(List messageQueue) { + this.messageQueue = messageQueue; + } + + public CreateEventRuleRequest ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get ruleName + * @return ruleName + **/ + @NotNull + @Size(min=2,max=127) @Schema(required = true, description = "") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public CreateEventRuleRequest status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @Schema(description = "") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public CreateEventRuleRequest tlSTarget(List tlSTarget) { + this.tlSTarget = tlSTarget; + return this; + } + + public CreateEventRuleRequest addTlSTargetItem(TLSTargetForCreateEventRuleInput tlSTargetItem) { + if (this.tlSTarget == null) { + this.tlSTarget = new ArrayList(); + } + this.tlSTarget.add(tlSTargetItem); + return this; + } + + /** + * Get tlSTarget + * @return tlSTarget + **/ + @Valid + @Schema(description = "") + public List getTlSTarget() { + return tlSTarget; + } + + public void setTlSTarget(List tlSTarget) { + this.tlSTarget = tlSTarget; + } + + public CreateEventRuleRequest webhookIds(List webhookIds) { + this.webhookIds = webhookIds; + return this; + } + + public CreateEventRuleRequest addWebhookIdsItem(String webhookIdsItem) { + if (this.webhookIds == null) { + this.webhookIds = new ArrayList(); + } + this.webhookIds.add(webhookIdsItem); + return this; + } + + /** + * Get webhookIds + * @return webhookIds + **/ + @Schema(description = "") + public List getWebhookIds() { + return webhookIds; + } + + public void setWebhookIds(List webhookIds) { + this.webhookIds = webhookIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateEventRuleRequest createEventRuleRequest = (CreateEventRuleRequest) o; + return Objects.equals(this.contactGroupIds, createEventRuleRequest.contactGroupIds) && + Objects.equals(this.contactMethods, createEventRuleRequest.contactMethods) && + Objects.equals(this.description, createEventRuleRequest.description) && + Objects.equals(this.effectiveTime, createEventRuleRequest.effectiveTime) && + Objects.equals(this.endpoint, createEventRuleRequest.endpoint) && + Objects.equals(this.eventBusName, createEventRuleRequest.eventBusName) && + Objects.equals(this.eventSource, createEventRuleRequest.eventSource) && + Objects.equals(this.eventType, createEventRuleRequest.eventType) && + Objects.equals(this.filterPattern, createEventRuleRequest.filterPattern) && + Objects.equals(this.level, createEventRuleRequest.level) && + Objects.equals(this.messageQueue, createEventRuleRequest.messageQueue) && + Objects.equals(this.ruleName, createEventRuleRequest.ruleName) && + Objects.equals(this.status, createEventRuleRequest.status) && + Objects.equals(this.tlSTarget, createEventRuleRequest.tlSTarget) && + Objects.equals(this.webhookIds, createEventRuleRequest.webhookIds); + } + + @Override + public int hashCode() { + return Objects.hash(contactGroupIds, contactMethods, description, effectiveTime, endpoint, eventBusName, eventSource, eventType, filterPattern, level, messageQueue, ruleName, status, tlSTarget, webhookIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateEventRuleRequest {\n"); + + sb.append(" contactGroupIds: ").append(toIndentedString(contactGroupIds)).append("\n"); + sb.append(" contactMethods: ").append(toIndentedString(contactMethods)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" effectiveTime: ").append(toIndentedString(effectiveTime)).append("\n"); + sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); + sb.append(" eventBusName: ").append(toIndentedString(eventBusName)).append("\n"); + sb.append(" eventSource: ").append(toIndentedString(eventSource)).append("\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" filterPattern: ").append(toIndentedString(filterPattern)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" messageQueue: ").append(toIndentedString(messageQueue)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tlSTarget: ").append(toIndentedString(tlSTarget)).append("\n"); + sb.append(" webhookIds: ").append(toIndentedString(webhookIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateEventRuleResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateEventRuleResponse.java new file mode 100644 index 00000000..a7e5b5da --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateEventRuleResponse.java @@ -0,0 +1,96 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForCreateEventRuleOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * CreateEventRuleResponse + */ + + + +public class CreateEventRuleResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private DataForCreateEventRuleOutput data = null; + + public CreateEventRuleResponse data(DataForCreateEventRuleOutput data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public DataForCreateEventRuleOutput getData() { + return data; + } + + public void setData(DataForCreateEventRuleOutput data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateEventRuleResponse createEventRuleResponse = (CreateEventRuleResponse) o; + return Objects.equals(this.data, createEventRuleResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateEventRuleResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateRuleRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateRuleRequest.java new file mode 100644 index 00000000..98117353 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateRuleRequest.java @@ -0,0 +1,734 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.ConditionForCreateRuleInput; +import com.volcengine.volcobserve.model.NoDataForCreateRuleInput; +import com.volcengine.volcobserve.model.RecoveryNotifyForCreateRuleInput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * CreateRuleRequest + */ + + + +public class CreateRuleRequest { + /** + * Gets or Sets alertMethods + */ + @JsonAdapter(AlertMethodsEnum.Adapter.class) + public enum AlertMethodsEnum { + @SerializedName("Email") + EMAIL("Email"), + @SerializedName("Phone") + PHONE("Phone"), + @SerializedName("SMS") + SMS("SMS"), + @SerializedName("Webhook") + WEBHOOK("Webhook"); + + private String value; + + AlertMethodsEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + public static AlertMethodsEnum fromValue(String input) { + for (AlertMethodsEnum b : AlertMethodsEnum.values()) { + if (b.value.equals(input)) { + return b; + } + } + return null; + } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AlertMethodsEnum enumeration) throws IOException { + jsonWriter.value(String.valueOf(enumeration.getValue())); + } + + @Override + public AlertMethodsEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextString(); + return AlertMethodsEnum.fromValue((String)(value)); + } + } + } @SerializedName("AlertMethods") + private List alertMethods = null; + + @SerializedName("ConditionOperator") + private String conditionOperator = null; + + @SerializedName("Conditions") + private List conditions = null; + + @SerializedName("ContactGroupIds") + private List contactGroupIds = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("EffectEndAt") + private String effectEndAt = null; + + @SerializedName("EffectStartAt") + private String effectStartAt = null; + + @SerializedName("EnableState") + private String enableState = null; + + @SerializedName("EvaluationCount") + private Integer evaluationCount = null; + + @SerializedName("Level") + private String level = null; + + @SerializedName("MultipleConditions") + private Boolean multipleConditions = null; + + @SerializedName("Namespace") + private String namespace = null; + + @SerializedName("NoData") + private NoDataForCreateRuleInput noData = null; + + @SerializedName("OriginalDimensions") + private Map> originalDimensions = null; + + @SerializedName("RecoveryNotify") + private RecoveryNotifyForCreateRuleInput recoveryNotify = null; + + @SerializedName("Regions") + private List regions = null; + + @SerializedName("RuleName") + private String ruleName = null; + + /** + * Gets or Sets ruleType + */ + @JsonAdapter(RuleTypeEnum.Adapter.class) + public enum RuleTypeEnum { + @SerializedName("static") + STATIC("static"); + + private String value; + + RuleTypeEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + public static RuleTypeEnum fromValue(String input) { + for (RuleTypeEnum b : RuleTypeEnum.values()) { + if (b.value.equals(input)) { + return b; + } + } + return null; + } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RuleTypeEnum enumeration) throws IOException { + jsonWriter.value(String.valueOf(enumeration.getValue())); + } + + @Override + public RuleTypeEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextString(); + return RuleTypeEnum.fromValue((String)(value)); + } + } + } @SerializedName("RuleType") + private RuleTypeEnum ruleType = null; + + @SerializedName("SilenceTime") + private Integer silenceTime = null; + + @SerializedName("SubNamespace") + private String subNamespace = null; + + @SerializedName("Webhook") + private String webhook = null; + + @SerializedName("WebhookIds") + private List webhookIds = null; + + public CreateRuleRequest alertMethods(List alertMethods) { + this.alertMethods = alertMethods; + return this; + } + + public CreateRuleRequest addAlertMethodsItem(AlertMethodsEnum alertMethodsItem) { + if (this.alertMethods == null) { + this.alertMethods = new ArrayList(); + } + this.alertMethods.add(alertMethodsItem); + return this; + } + + /** + * Get alertMethods + * @return alertMethods + **/ + @Schema(description = "") + public List getAlertMethods() { + return alertMethods; + } + + public void setAlertMethods(List alertMethods) { + this.alertMethods = alertMethods; + } + + public CreateRuleRequest conditionOperator(String conditionOperator) { + this.conditionOperator = conditionOperator; + return this; + } + + /** + * Get conditionOperator + * @return conditionOperator + **/ + @Schema(description = "") + public String getConditionOperator() { + return conditionOperator; + } + + public void setConditionOperator(String conditionOperator) { + this.conditionOperator = conditionOperator; + } + + public CreateRuleRequest conditions(List conditions) { + this.conditions = conditions; + return this; + } + + public CreateRuleRequest addConditionsItem(ConditionForCreateRuleInput conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * Get conditions + * @return conditions + **/ + @Valid + @Schema(description = "") + public List getConditions() { + return conditions; + } + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + public CreateRuleRequest contactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + return this; + } + + public CreateRuleRequest addContactGroupIdsItem(String contactGroupIdsItem) { + if (this.contactGroupIds == null) { + this.contactGroupIds = new ArrayList(); + } + this.contactGroupIds.add(contactGroupIdsItem); + return this; + } + + /** + * Get contactGroupIds + * @return contactGroupIds + **/ + @Schema(description = "") + public List getContactGroupIds() { + return contactGroupIds; + } + + public void setContactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + } + + public CreateRuleRequest description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateRuleRequest effectEndAt(String effectEndAt) { + this.effectEndAt = effectEndAt; + return this; + } + + /** + * Get effectEndAt + * @return effectEndAt + **/ + @NotNull + @Schema(required = true, description = "") + public String getEffectEndAt() { + return effectEndAt; + } + + public void setEffectEndAt(String effectEndAt) { + this.effectEndAt = effectEndAt; + } + + public CreateRuleRequest effectStartAt(String effectStartAt) { + this.effectStartAt = effectStartAt; + return this; + } + + /** + * Get effectStartAt + * @return effectStartAt + **/ + @NotNull + @Schema(required = true, description = "") + public String getEffectStartAt() { + return effectStartAt; + } + + public void setEffectStartAt(String effectStartAt) { + this.effectStartAt = effectStartAt; + } + + public CreateRuleRequest enableState(String enableState) { + this.enableState = enableState; + return this; + } + + /** + * Get enableState + * @return enableState + **/ + @NotNull + @Schema(required = true, description = "") + public String getEnableState() { + return enableState; + } + + public void setEnableState(String enableState) { + this.enableState = enableState; + } + + public CreateRuleRequest evaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + return this; + } + + /** + * Get evaluationCount + * @return evaluationCount + **/ + @NotNull + @Schema(required = true, description = "") + public Integer getEvaluationCount() { + return evaluationCount; + } + + public void setEvaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + } + + public CreateRuleRequest level(String level) { + this.level = level; + return this; + } + + /** + * Get level + * @return level + **/ + @NotNull + @Schema(required = true, description = "") + public String getLevel() { + return level; + } + + public void setLevel(String level) { + this.level = level; + } + + public CreateRuleRequest multipleConditions(Boolean multipleConditions) { + this.multipleConditions = multipleConditions; + return this; + } + + /** + * Get multipleConditions + * @return multipleConditions + **/ + @Schema(description = "") + public Boolean isMultipleConditions() { + return multipleConditions; + } + + public void setMultipleConditions(Boolean multipleConditions) { + this.multipleConditions = multipleConditions; + } + + public CreateRuleRequest namespace(String namespace) { + this.namespace = namespace; + return this; + } + + /** + * Get namespace + * @return namespace + **/ + @NotNull + @Schema(required = true, description = "") + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public CreateRuleRequest noData(NoDataForCreateRuleInput noData) { + this.noData = noData; + return this; + } + + /** + * Get noData + * @return noData + **/ + @Valid + @Schema(description = "") + public NoDataForCreateRuleInput getNoData() { + return noData; + } + + public void setNoData(NoDataForCreateRuleInput noData) { + this.noData = noData; + } + + public CreateRuleRequest originalDimensions(Map> originalDimensions) { + this.originalDimensions = originalDimensions; + return this; + } + + public CreateRuleRequest putOriginalDimensionsItem(String key, List originalDimensionsItem) { + if (this.originalDimensions == null) { + this.originalDimensions = new HashMap>(); + } + this.originalDimensions.put(key, originalDimensionsItem); + return this; + } + + /** + * Get originalDimensions + * @return originalDimensions + **/ + @Valid + @Schema(description = "") + public Map> getOriginalDimensions() { + return originalDimensions; + } + + public void setOriginalDimensions(Map> originalDimensions) { + this.originalDimensions = originalDimensions; + } + + public CreateRuleRequest recoveryNotify(RecoveryNotifyForCreateRuleInput recoveryNotify) { + this.recoveryNotify = recoveryNotify; + return this; + } + + /** + * Get recoveryNotify + * @return recoveryNotify + **/ + @Valid + @Schema(description = "") + public RecoveryNotifyForCreateRuleInput getRecoveryNotify() { + return recoveryNotify; + } + + public void setRecoveryNotify(RecoveryNotifyForCreateRuleInput recoveryNotify) { + this.recoveryNotify = recoveryNotify; + } + + public CreateRuleRequest regions(List regions) { + this.regions = regions; + return this; + } + + public CreateRuleRequest addRegionsItem(String regionsItem) { + if (this.regions == null) { + this.regions = new ArrayList(); + } + this.regions.add(regionsItem); + return this; + } + + /** + * Get regions + * @return regions + **/ + @Schema(description = "") + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public CreateRuleRequest ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get ruleName + * @return ruleName + **/ + @NotNull + @Schema(required = true, description = "") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public CreateRuleRequest ruleType(RuleTypeEnum ruleType) { + this.ruleType = ruleType; + return this; + } + + /** + * Get ruleType + * @return ruleType + **/ + @NotNull + @Schema(required = true, description = "") + public RuleTypeEnum getRuleType() { + return ruleType; + } + + public void setRuleType(RuleTypeEnum ruleType) { + this.ruleType = ruleType; + } + + public CreateRuleRequest silenceTime(Integer silenceTime) { + this.silenceTime = silenceTime; + return this; + } + + /** + * Get silenceTime + * @return silenceTime + **/ + @NotNull + @Schema(required = true, description = "") + public Integer getSilenceTime() { + return silenceTime; + } + + public void setSilenceTime(Integer silenceTime) { + this.silenceTime = silenceTime; + } + + public CreateRuleRequest subNamespace(String subNamespace) { + this.subNamespace = subNamespace; + return this; + } + + /** + * Get subNamespace + * @return subNamespace + **/ + @NotNull + @Schema(required = true, description = "") + public String getSubNamespace() { + return subNamespace; + } + + public void setSubNamespace(String subNamespace) { + this.subNamespace = subNamespace; + } + + public CreateRuleRequest webhook(String webhook) { + this.webhook = webhook; + return this; + } + + /** + * Get webhook + * @return webhook + **/ + @Schema(description = "") + public String getWebhook() { + return webhook; + } + + public void setWebhook(String webhook) { + this.webhook = webhook; + } + + public CreateRuleRequest webhookIds(List webhookIds) { + this.webhookIds = webhookIds; + return this; + } + + public CreateRuleRequest addWebhookIdsItem(String webhookIdsItem) { + if (this.webhookIds == null) { + this.webhookIds = new ArrayList(); + } + this.webhookIds.add(webhookIdsItem); + return this; + } + + /** + * Get webhookIds + * @return webhookIds + **/ + @Schema(description = "") + public List getWebhookIds() { + return webhookIds; + } + + public void setWebhookIds(List webhookIds) { + this.webhookIds = webhookIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateRuleRequest createRuleRequest = (CreateRuleRequest) o; + return Objects.equals(this.alertMethods, createRuleRequest.alertMethods) && + Objects.equals(this.conditionOperator, createRuleRequest.conditionOperator) && + Objects.equals(this.conditions, createRuleRequest.conditions) && + Objects.equals(this.contactGroupIds, createRuleRequest.contactGroupIds) && + Objects.equals(this.description, createRuleRequest.description) && + Objects.equals(this.effectEndAt, createRuleRequest.effectEndAt) && + Objects.equals(this.effectStartAt, createRuleRequest.effectStartAt) && + Objects.equals(this.enableState, createRuleRequest.enableState) && + Objects.equals(this.evaluationCount, createRuleRequest.evaluationCount) && + Objects.equals(this.level, createRuleRequest.level) && + Objects.equals(this.multipleConditions, createRuleRequest.multipleConditions) && + Objects.equals(this.namespace, createRuleRequest.namespace) && + Objects.equals(this.noData, createRuleRequest.noData) && + Objects.equals(this.originalDimensions, createRuleRequest.originalDimensions) && + Objects.equals(this.recoveryNotify, createRuleRequest.recoveryNotify) && + Objects.equals(this.regions, createRuleRequest.regions) && + Objects.equals(this.ruleName, createRuleRequest.ruleName) && + Objects.equals(this.ruleType, createRuleRequest.ruleType) && + Objects.equals(this.silenceTime, createRuleRequest.silenceTime) && + Objects.equals(this.subNamespace, createRuleRequest.subNamespace) && + Objects.equals(this.webhook, createRuleRequest.webhook) && + Objects.equals(this.webhookIds, createRuleRequest.webhookIds); + } + + @Override + public int hashCode() { + return Objects.hash(alertMethods, conditionOperator, conditions, contactGroupIds, description, effectEndAt, effectStartAt, enableState, evaluationCount, level, multipleConditions, namespace, noData, originalDimensions, recoveryNotify, regions, ruleName, ruleType, silenceTime, subNamespace, webhook, webhookIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRuleRequest {\n"); + + sb.append(" alertMethods: ").append(toIndentedString(alertMethods)).append("\n"); + sb.append(" conditionOperator: ").append(toIndentedString(conditionOperator)).append("\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" contactGroupIds: ").append(toIndentedString(contactGroupIds)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" effectEndAt: ").append(toIndentedString(effectEndAt)).append("\n"); + sb.append(" effectStartAt: ").append(toIndentedString(effectStartAt)).append("\n"); + sb.append(" enableState: ").append(toIndentedString(enableState)).append("\n"); + sb.append(" evaluationCount: ").append(toIndentedString(evaluationCount)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" multipleConditions: ").append(toIndentedString(multipleConditions)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" noData: ").append(toIndentedString(noData)).append("\n"); + sb.append(" originalDimensions: ").append(toIndentedString(originalDimensions)).append("\n"); + sb.append(" recoveryNotify: ").append(toIndentedString(recoveryNotify)).append("\n"); + sb.append(" regions: ").append(toIndentedString(regions)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" ruleType: ").append(toIndentedString(ruleType)).append("\n"); + sb.append(" silenceTime: ").append(toIndentedString(silenceTime)).append("\n"); + sb.append(" subNamespace: ").append(toIndentedString(subNamespace)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append(" webhookIds: ").append(toIndentedString(webhookIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateRuleResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateRuleResponse.java new file mode 100644 index 00000000..434be021 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateRuleResponse.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * CreateRuleResponse + */ + + + +public class CreateRuleResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + public CreateRuleResponse data(List data) { + this.data = data; + return this; + } + + public CreateRuleResponse addDataItem(String dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateRuleResponse createRuleResponse = (CreateRuleResponse) o; + return Objects.equals(this.data, createRuleResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRuleResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateWebhookRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateWebhookRequest.java new file mode 100644 index 00000000..7a14cb7f --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateWebhookRequest.java @@ -0,0 +1,190 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * CreateWebhookRequest + */ + + + +public class CreateWebhookRequest { + @SerializedName("Name") + private String name = null; + + /** + * Gets or Sets type + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + @SerializedName("wecom") + WECOM("wecom"), + @SerializedName("dingtalk") + DINGTALK("dingtalk"), + @SerializedName("lark") + LARK("lark"), + @SerializedName("custom") + CUSTOM("custom"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + public static TypeEnum fromValue(String input) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(input)) { + return b; + } + } + return null; + } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(String.valueOf(enumeration.getValue())); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextString(); + return TypeEnum.fromValue((String)(value)); + } + } + } @SerializedName("Type") + private TypeEnum type = null; + + @SerializedName("Url") + private String url = null; + + public CreateWebhookRequest name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @NotNull + @Size(min=1,max=512) @Schema(required = true, description = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateWebhookRequest type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @NotNull + @Schema(required = true, description = "") + public TypeEnum getType() { + return type; + } + + public void setType(TypeEnum type) { + this.type = type; + } + + public CreateWebhookRequest url(String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + **/ + @NotNull + @Schema(required = true, description = "") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWebhookRequest createWebhookRequest = (CreateWebhookRequest) o; + return Objects.equals(this.name, createWebhookRequest.name) && + Objects.equals(this.type, createWebhookRequest.type) && + Objects.equals(this.url, createWebhookRequest.url); + } + + @Override + public int hashCode() { + return Objects.hash(name, type, url); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWebhookRequest {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateWebhookResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateWebhookResponse.java new file mode 100644 index 00000000..d2737bd9 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/CreateWebhookResponse.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * CreateWebhookResponse + */ + + + +public class CreateWebhookResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + public CreateWebhookResponse data(List data) { + this.data = data; + return this; + } + + public CreateWebhookResponse addDataItem(String dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWebhookResponse createWebhookResponse = (CreateWebhookResponse) o; + return Objects.equals(this.data, createWebhookResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWebhookResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForCreateEventRuleOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForCreateEventRuleOutput.java new file mode 100644 index 00000000..75db6df5 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForCreateEventRuleOutput.java @@ -0,0 +1,94 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForCreateEventRuleOutput + */ + + + +public class DataForCreateEventRuleOutput { + @SerializedName("RuleId") + private String ruleId = null; + + public DataForCreateEventRuleOutput ruleId(String ruleId) { + this.ruleId = ruleId; + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @Schema(description = "") + public String getRuleId() { + return ruleId; + } + + public void setRuleId(String ruleId) { + this.ruleId = ruleId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForCreateEventRuleOutput dataForCreateEventRuleOutput = (DataForCreateEventRuleOutput) o; + return Objects.equals(this.ruleId, dataForCreateEventRuleOutput.ruleId); + } + + @Override + public int hashCode() { + return Objects.hash(ruleId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForCreateEventRuleOutput {\n"); + + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForDeleteEventRuleOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForDeleteEventRuleOutput.java new file mode 100644 index 00000000..6511372d --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForDeleteEventRuleOutput.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForDeleteEventRuleOutput + */ + + + +public class DataForDeleteEventRuleOutput { + @SerializedName("RuleId") + private List ruleId = null; + + public DataForDeleteEventRuleOutput ruleId(List ruleId) { + this.ruleId = ruleId; + return this; + } + + public DataForDeleteEventRuleOutput addRuleIdItem(String ruleIdItem) { + if (this.ruleId == null) { + this.ruleId = new ArrayList(); + } + this.ruleId.add(ruleIdItem); + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @Schema(description = "") + public List getRuleId() { + return ruleId; + } + + public void setRuleId(List ruleId) { + this.ruleId = ruleId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForDeleteEventRuleOutput dataForDeleteEventRuleOutput = (DataForDeleteEventRuleOutput) o; + return Objects.equals(this.ruleId, dataForDeleteEventRuleOutput.ruleId); + } + + @Override + public int hashCode() { + return Objects.hash(ruleId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForDeleteEventRuleOutput {\n"); + + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForDisableEventRuleOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForDisableEventRuleOutput.java new file mode 100644 index 00000000..9412bd45 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForDisableEventRuleOutput.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForDisableEventRuleOutput + */ + + + +public class DataForDisableEventRuleOutput { + @SerializedName("RuleId") + private List ruleId = null; + + public DataForDisableEventRuleOutput ruleId(List ruleId) { + this.ruleId = ruleId; + return this; + } + + public DataForDisableEventRuleOutput addRuleIdItem(String ruleIdItem) { + if (this.ruleId == null) { + this.ruleId = new ArrayList(); + } + this.ruleId.add(ruleIdItem); + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @Schema(description = "") + public List getRuleId() { + return ruleId; + } + + public void setRuleId(List ruleId) { + this.ruleId = ruleId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForDisableEventRuleOutput dataForDisableEventRuleOutput = (DataForDisableEventRuleOutput) o; + return Objects.equals(this.ruleId, dataForDisableEventRuleOutput.ruleId); + } + + @Override + public int hashCode() { + return Objects.hash(ruleId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForDisableEventRuleOutput {\n"); + + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForEnableEventRuleOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForEnableEventRuleOutput.java new file mode 100644 index 00000000..c485a1ff --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForEnableEventRuleOutput.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForEnableEventRuleOutput + */ + + + +public class DataForEnableEventRuleOutput { + @SerializedName("RuleId") + private List ruleId = null; + + public DataForEnableEventRuleOutput ruleId(List ruleId) { + this.ruleId = ruleId; + return this; + } + + public DataForEnableEventRuleOutput addRuleIdItem(String ruleIdItem) { + if (this.ruleId == null) { + this.ruleId = new ArrayList(); + } + this.ruleId.add(ruleIdItem); + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @Schema(description = "") + public List getRuleId() { + return ruleId; + } + + public void setRuleId(List ruleId) { + this.ruleId = ruleId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForEnableEventRuleOutput dataForEnableEventRuleOutput = (DataForEnableEventRuleOutput) o; + return Objects.equals(this.ruleId, dataForEnableEventRuleOutput.ruleId); + } + + @Override + public int hashCode() { + return Objects.hash(ruleId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForEnableEventRuleOutput {\n"); + + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListAlertGroupOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListAlertGroupOutput.java new file mode 100644 index 00000000..1a7fc185 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListAlertGroupOutput.java @@ -0,0 +1,589 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.ResourceTagForListAlertGroupOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForListAlertGroupOutput + */ + + + +public class DataForListAlertGroupOutput { + @SerializedName("AlertCount") + private Integer alertCount = null; + + @SerializedName("AlertState") + private String alertState = null; + + @SerializedName("Dimension") + private String dimension = null; + + @SerializedName("Duration") + private String duration = null; + + @SerializedName("EndAt") + private String endAt = null; + + @SerializedName("Id") + private String id = null; + + @SerializedName("Level") + private String level = null; + + @SerializedName("Namespace") + private String namespace = null; + + @SerializedName("Region") + private String region = null; + + @SerializedName("ResourceId") + private String resourceId = null; + + @SerializedName("ResourceName") + private String resourceName = null; + + @SerializedName("ResourceStatus") + private String resourceStatus = null; + + @SerializedName("ResourceStatusCN") + private String resourceStatusCN = null; + + @SerializedName("ResourceTags") + private List resourceTags = null; + + @SerializedName("ResourceType") + private String resourceType = null; + + @SerializedName("RuleId") + private String ruleId = null; + + @SerializedName("RuleName") + private String ruleName = null; + + @SerializedName("RuleStatus") + private String ruleStatus = null; + + @SerializedName("RuleTriggerCondition") + private String ruleTriggerCondition = null; + + @SerializedName("SendAlertCount") + private Integer sendAlertCount = null; + + @SerializedName("StartAt") + private String startAt = null; + + @SerializedName("SubNamespace") + private String subNamespace = null; + + public DataForListAlertGroupOutput alertCount(Integer alertCount) { + this.alertCount = alertCount; + return this; + } + + /** + * Get alertCount + * @return alertCount + **/ + @Schema(description = "") + public Integer getAlertCount() { + return alertCount; + } + + public void setAlertCount(Integer alertCount) { + this.alertCount = alertCount; + } + + public DataForListAlertGroupOutput alertState(String alertState) { + this.alertState = alertState; + return this; + } + + /** + * Get alertState + * @return alertState + **/ + @Schema(description = "") + public String getAlertState() { + return alertState; + } + + public void setAlertState(String alertState) { + this.alertState = alertState; + } + + public DataForListAlertGroupOutput dimension(String dimension) { + this.dimension = dimension; + return this; + } + + /** + * Get dimension + * @return dimension + **/ + @Schema(description = "") + public String getDimension() { + return dimension; + } + + public void setDimension(String dimension) { + this.dimension = dimension; + } + + public DataForListAlertGroupOutput duration(String duration) { + this.duration = duration; + return this; + } + + /** + * Get duration + * @return duration + **/ + @Schema(description = "") + public String getDuration() { + return duration; + } + + public void setDuration(String duration) { + this.duration = duration; + } + + public DataForListAlertGroupOutput endAt(String endAt) { + this.endAt = endAt; + return this; + } + + /** + * Get endAt + * @return endAt + **/ + @Schema(description = "") + public String getEndAt() { + return endAt; + } + + public void setEndAt(String endAt) { + this.endAt = endAt; + } + + public DataForListAlertGroupOutput id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @Schema(description = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DataForListAlertGroupOutput level(String level) { + this.level = level; + return this; + } + + /** + * Get level + * @return level + **/ + @Schema(description = "") + public String getLevel() { + return level; + } + + public void setLevel(String level) { + this.level = level; + } + + public DataForListAlertGroupOutput namespace(String namespace) { + this.namespace = namespace; + return this; + } + + /** + * Get namespace + * @return namespace + **/ + @Schema(description = "") + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public DataForListAlertGroupOutput region(String region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @Schema(description = "") + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public DataForListAlertGroupOutput resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Get resourceId + * @return resourceId + **/ + @Schema(description = "") + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public DataForListAlertGroupOutput resourceName(String resourceName) { + this.resourceName = resourceName; + return this; + } + + /** + * Get resourceName + * @return resourceName + **/ + @Schema(description = "") + public String getResourceName() { + return resourceName; + } + + public void setResourceName(String resourceName) { + this.resourceName = resourceName; + } + + public DataForListAlertGroupOutput resourceStatus(String resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + + /** + * Get resourceStatus + * @return resourceStatus + **/ + @Schema(description = "") + public String getResourceStatus() { + return resourceStatus; + } + + public void setResourceStatus(String resourceStatus) { + this.resourceStatus = resourceStatus; + } + + public DataForListAlertGroupOutput resourceStatusCN(String resourceStatusCN) { + this.resourceStatusCN = resourceStatusCN; + return this; + } + + /** + * Get resourceStatusCN + * @return resourceStatusCN + **/ + @Schema(description = "") + public String getResourceStatusCN() { + return resourceStatusCN; + } + + public void setResourceStatusCN(String resourceStatusCN) { + this.resourceStatusCN = resourceStatusCN; + } + + public DataForListAlertGroupOutput resourceTags(List resourceTags) { + this.resourceTags = resourceTags; + return this; + } + + public DataForListAlertGroupOutput addResourceTagsItem(ResourceTagForListAlertGroupOutput resourceTagsItem) { + if (this.resourceTags == null) { + this.resourceTags = new ArrayList(); + } + this.resourceTags.add(resourceTagsItem); + return this; + } + + /** + * Get resourceTags + * @return resourceTags + **/ + @Valid + @Schema(description = "") + public List getResourceTags() { + return resourceTags; + } + + public void setResourceTags(List resourceTags) { + this.resourceTags = resourceTags; + } + + public DataForListAlertGroupOutput resourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Get resourceType + * @return resourceType + **/ + @Schema(description = "") + public String getResourceType() { + return resourceType; + } + + public void setResourceType(String resourceType) { + this.resourceType = resourceType; + } + + public DataForListAlertGroupOutput ruleId(String ruleId) { + this.ruleId = ruleId; + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @Schema(description = "") + public String getRuleId() { + return ruleId; + } + + public void setRuleId(String ruleId) { + this.ruleId = ruleId; + } + + public DataForListAlertGroupOutput ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get ruleName + * @return ruleName + **/ + @Schema(description = "") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public DataForListAlertGroupOutput ruleStatus(String ruleStatus) { + this.ruleStatus = ruleStatus; + return this; + } + + /** + * Get ruleStatus + * @return ruleStatus + **/ + @Schema(description = "") + public String getRuleStatus() { + return ruleStatus; + } + + public void setRuleStatus(String ruleStatus) { + this.ruleStatus = ruleStatus; + } + + public DataForListAlertGroupOutput ruleTriggerCondition(String ruleTriggerCondition) { + this.ruleTriggerCondition = ruleTriggerCondition; + return this; + } + + /** + * Get ruleTriggerCondition + * @return ruleTriggerCondition + **/ + @Schema(description = "") + public String getRuleTriggerCondition() { + return ruleTriggerCondition; + } + + public void setRuleTriggerCondition(String ruleTriggerCondition) { + this.ruleTriggerCondition = ruleTriggerCondition; + } + + public DataForListAlertGroupOutput sendAlertCount(Integer sendAlertCount) { + this.sendAlertCount = sendAlertCount; + return this; + } + + /** + * Get sendAlertCount + * @return sendAlertCount + **/ + @Schema(description = "") + public Integer getSendAlertCount() { + return sendAlertCount; + } + + public void setSendAlertCount(Integer sendAlertCount) { + this.sendAlertCount = sendAlertCount; + } + + public DataForListAlertGroupOutput startAt(String startAt) { + this.startAt = startAt; + return this; + } + + /** + * Get startAt + * @return startAt + **/ + @Schema(description = "") + public String getStartAt() { + return startAt; + } + + public void setStartAt(String startAt) { + this.startAt = startAt; + } + + public DataForListAlertGroupOutput subNamespace(String subNamespace) { + this.subNamespace = subNamespace; + return this; + } + + /** + * Get subNamespace + * @return subNamespace + **/ + @Schema(description = "") + public String getSubNamespace() { + return subNamespace; + } + + public void setSubNamespace(String subNamespace) { + this.subNamespace = subNamespace; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForListAlertGroupOutput dataForListAlertGroupOutput = (DataForListAlertGroupOutput) o; + return Objects.equals(this.alertCount, dataForListAlertGroupOutput.alertCount) && + Objects.equals(this.alertState, dataForListAlertGroupOutput.alertState) && + Objects.equals(this.dimension, dataForListAlertGroupOutput.dimension) && + Objects.equals(this.duration, dataForListAlertGroupOutput.duration) && + Objects.equals(this.endAt, dataForListAlertGroupOutput.endAt) && + Objects.equals(this.id, dataForListAlertGroupOutput.id) && + Objects.equals(this.level, dataForListAlertGroupOutput.level) && + Objects.equals(this.namespace, dataForListAlertGroupOutput.namespace) && + Objects.equals(this.region, dataForListAlertGroupOutput.region) && + Objects.equals(this.resourceId, dataForListAlertGroupOutput.resourceId) && + Objects.equals(this.resourceName, dataForListAlertGroupOutput.resourceName) && + Objects.equals(this.resourceStatus, dataForListAlertGroupOutput.resourceStatus) && + Objects.equals(this.resourceStatusCN, dataForListAlertGroupOutput.resourceStatusCN) && + Objects.equals(this.resourceTags, dataForListAlertGroupOutput.resourceTags) && + Objects.equals(this.resourceType, dataForListAlertGroupOutput.resourceType) && + Objects.equals(this.ruleId, dataForListAlertGroupOutput.ruleId) && + Objects.equals(this.ruleName, dataForListAlertGroupOutput.ruleName) && + Objects.equals(this.ruleStatus, dataForListAlertGroupOutput.ruleStatus) && + Objects.equals(this.ruleTriggerCondition, dataForListAlertGroupOutput.ruleTriggerCondition) && + Objects.equals(this.sendAlertCount, dataForListAlertGroupOutput.sendAlertCount) && + Objects.equals(this.startAt, dataForListAlertGroupOutput.startAt) && + Objects.equals(this.subNamespace, dataForListAlertGroupOutput.subNamespace); + } + + @Override + public int hashCode() { + return Objects.hash(alertCount, alertState, dimension, duration, endAt, id, level, namespace, region, resourceId, resourceName, resourceStatus, resourceStatusCN, resourceTags, resourceType, ruleId, ruleName, ruleStatus, ruleTriggerCondition, sendAlertCount, startAt, subNamespace); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForListAlertGroupOutput {\n"); + + sb.append(" alertCount: ").append(toIndentedString(alertCount)).append("\n"); + sb.append(" alertState: ").append(toIndentedString(alertState)).append("\n"); + sb.append(" dimension: ").append(toIndentedString(dimension)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" endAt: ").append(toIndentedString(endAt)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); + sb.append(" resourceStatus: ").append(toIndentedString(resourceStatus)).append("\n"); + sb.append(" resourceStatusCN: ").append(toIndentedString(resourceStatusCN)).append("\n"); + sb.append(" resourceTags: ").append(toIndentedString(resourceTags)).append("\n"); + sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" ruleStatus: ").append(toIndentedString(ruleStatus)).append("\n"); + sb.append(" ruleTriggerCondition: ").append(toIndentedString(ruleTriggerCondition)).append("\n"); + sb.append(" sendAlertCount: ").append(toIndentedString(sendAlertCount)).append("\n"); + sb.append(" startAt: ").append(toIndentedString(startAt)).append("\n"); + sb.append(" subNamespace: ").append(toIndentedString(subNamespace)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListEventRulesOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListEventRulesOutput.java new file mode 100644 index 00000000..d3138a24 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListEventRulesOutput.java @@ -0,0 +1,610 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.MessageQueueForListEventRulesOutput; +import com.volcengine.volcobserve.model.TLSTargetForListEventRulesOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForListEventRulesOutput + */ + + + +public class DataForListEventRulesOutput { + @SerializedName("AccountId") + private String accountId = null; + + @SerializedName("ContactGroupIds") + private List contactGroupIds = null; + + @SerializedName("ContactMethods") + private List contactMethods = null; + + @SerializedName("CreatedAt") + private Integer createdAt = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("EffectEndAt") + private String effectEndAt = null; + + @SerializedName("EffectStartAt") + private String effectStartAt = null; + + @SerializedName("EnableState") + private String enableState = null; + + @SerializedName("Endpoint") + private String endpoint = null; + + @SerializedName("EventBusName") + private String eventBusName = null; + + @SerializedName("EventType") + private List eventType = null; + + @SerializedName("FilterPattern") + private Map filterPattern = null; + + @SerializedName("Level") + private String level = null; + + @SerializedName("MessageQueue") + private MessageQueueForListEventRulesOutput messageQueue = null; + + @SerializedName("Region") + private String region = null; + + @SerializedName("RuleId") + private String ruleId = null; + + @SerializedName("RuleName") + private String ruleName = null; + + @SerializedName("Source") + private String source = null; + + @SerializedName("TLSTarget") + private List tlSTarget = null; + + @SerializedName("UpdatedAt") + private Integer updatedAt = null; + + @SerializedName("WebhookIds") + private List webhookIds = null; + + public DataForListEventRulesOutput accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * Get accountId + * @return accountId + **/ + @Schema(description = "") + public String getAccountId() { + return accountId; + } + + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + public DataForListEventRulesOutput contactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + return this; + } + + public DataForListEventRulesOutput addContactGroupIdsItem(String contactGroupIdsItem) { + if (this.contactGroupIds == null) { + this.contactGroupIds = new ArrayList(); + } + this.contactGroupIds.add(contactGroupIdsItem); + return this; + } + + /** + * Get contactGroupIds + * @return contactGroupIds + **/ + @Schema(description = "") + public List getContactGroupIds() { + return contactGroupIds; + } + + public void setContactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + } + + public DataForListEventRulesOutput contactMethods(List contactMethods) { + this.contactMethods = contactMethods; + return this; + } + + public DataForListEventRulesOutput addContactMethodsItem(String contactMethodsItem) { + if (this.contactMethods == null) { + this.contactMethods = new ArrayList(); + } + this.contactMethods.add(contactMethodsItem); + return this; + } + + /** + * Get contactMethods + * @return contactMethods + **/ + @Schema(description = "") + public List getContactMethods() { + return contactMethods; + } + + public void setContactMethods(List contactMethods) { + this.contactMethods = contactMethods; + } + + public DataForListEventRulesOutput createdAt(Integer createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @Schema(description = "") + public Integer getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Integer createdAt) { + this.createdAt = createdAt; + } + + public DataForListEventRulesOutput description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public DataForListEventRulesOutput effectEndAt(String effectEndAt) { + this.effectEndAt = effectEndAt; + return this; + } + + /** + * Get effectEndAt + * @return effectEndAt + **/ + @Schema(description = "") + public String getEffectEndAt() { + return effectEndAt; + } + + public void setEffectEndAt(String effectEndAt) { + this.effectEndAt = effectEndAt; + } + + public DataForListEventRulesOutput effectStartAt(String effectStartAt) { + this.effectStartAt = effectStartAt; + return this; + } + + /** + * Get effectStartAt + * @return effectStartAt + **/ + @Schema(description = "") + public String getEffectStartAt() { + return effectStartAt; + } + + public void setEffectStartAt(String effectStartAt) { + this.effectStartAt = effectStartAt; + } + + public DataForListEventRulesOutput enableState(String enableState) { + this.enableState = enableState; + return this; + } + + /** + * Get enableState + * @return enableState + **/ + @Schema(description = "") + public String getEnableState() { + return enableState; + } + + public void setEnableState(String enableState) { + this.enableState = enableState; + } + + public DataForListEventRulesOutput endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get endpoint + * @return endpoint + **/ + @Schema(description = "") + public String getEndpoint() { + return endpoint; + } + + public void setEndpoint(String endpoint) { + this.endpoint = endpoint; + } + + public DataForListEventRulesOutput eventBusName(String eventBusName) { + this.eventBusName = eventBusName; + return this; + } + + /** + * Get eventBusName + * @return eventBusName + **/ + @Schema(description = "") + public String getEventBusName() { + return eventBusName; + } + + public void setEventBusName(String eventBusName) { + this.eventBusName = eventBusName; + } + + public DataForListEventRulesOutput eventType(List eventType) { + this.eventType = eventType; + return this; + } + + public DataForListEventRulesOutput addEventTypeItem(String eventTypeItem) { + if (this.eventType == null) { + this.eventType = new ArrayList(); + } + this.eventType.add(eventTypeItem); + return this; + } + + /** + * Get eventType + * @return eventType + **/ + @Schema(description = "") + public List getEventType() { + return eventType; + } + + public void setEventType(List eventType) { + this.eventType = eventType; + } + + public DataForListEventRulesOutput filterPattern(Map filterPattern) { + this.filterPattern = filterPattern; + return this; + } + + public DataForListEventRulesOutput putFilterPatternItem(String key, Object filterPatternItem) { + if (this.filterPattern == null) { + this.filterPattern = new HashMap(); + } + this.filterPattern.put(key, filterPatternItem); + return this; + } + + /** + * Get filterPattern + * @return filterPattern + **/ + @Schema(description = "") + public Map getFilterPattern() { + return filterPattern; + } + + public void setFilterPattern(Map filterPattern) { + this.filterPattern = filterPattern; + } + + public DataForListEventRulesOutput level(String level) { + this.level = level; + return this; + } + + /** + * Get level + * @return level + **/ + @Schema(description = "") + public String getLevel() { + return level; + } + + public void setLevel(String level) { + this.level = level; + } + + public DataForListEventRulesOutput messageQueue(MessageQueueForListEventRulesOutput messageQueue) { + this.messageQueue = messageQueue; + return this; + } + + /** + * Get messageQueue + * @return messageQueue + **/ + @Valid + @Schema(description = "") + public MessageQueueForListEventRulesOutput getMessageQueue() { + return messageQueue; + } + + public void setMessageQueue(MessageQueueForListEventRulesOutput messageQueue) { + this.messageQueue = messageQueue; + } + + public DataForListEventRulesOutput region(String region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @Schema(description = "") + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public DataForListEventRulesOutput ruleId(String ruleId) { + this.ruleId = ruleId; + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @Schema(description = "") + public String getRuleId() { + return ruleId; + } + + public void setRuleId(String ruleId) { + this.ruleId = ruleId; + } + + public DataForListEventRulesOutput ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get ruleName + * @return ruleName + **/ + @Schema(description = "") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public DataForListEventRulesOutput source(String source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + **/ + @Schema(description = "") + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public DataForListEventRulesOutput tlSTarget(List tlSTarget) { + this.tlSTarget = tlSTarget; + return this; + } + + public DataForListEventRulesOutput addTlSTargetItem(TLSTargetForListEventRulesOutput tlSTargetItem) { + if (this.tlSTarget == null) { + this.tlSTarget = new ArrayList(); + } + this.tlSTarget.add(tlSTargetItem); + return this; + } + + /** + * Get tlSTarget + * @return tlSTarget + **/ + @Valid + @Schema(description = "") + public List getTlSTarget() { + return tlSTarget; + } + + public void setTlSTarget(List tlSTarget) { + this.tlSTarget = tlSTarget; + } + + public DataForListEventRulesOutput updatedAt(Integer updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @Schema(description = "") + public Integer getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Integer updatedAt) { + this.updatedAt = updatedAt; + } + + public DataForListEventRulesOutput webhookIds(List webhookIds) { + this.webhookIds = webhookIds; + return this; + } + + public DataForListEventRulesOutput addWebhookIdsItem(String webhookIdsItem) { + if (this.webhookIds == null) { + this.webhookIds = new ArrayList(); + } + this.webhookIds.add(webhookIdsItem); + return this; + } + + /** + * Get webhookIds + * @return webhookIds + **/ + @Schema(description = "") + public List getWebhookIds() { + return webhookIds; + } + + public void setWebhookIds(List webhookIds) { + this.webhookIds = webhookIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForListEventRulesOutput dataForListEventRulesOutput = (DataForListEventRulesOutput) o; + return Objects.equals(this.accountId, dataForListEventRulesOutput.accountId) && + Objects.equals(this.contactGroupIds, dataForListEventRulesOutput.contactGroupIds) && + Objects.equals(this.contactMethods, dataForListEventRulesOutput.contactMethods) && + Objects.equals(this.createdAt, dataForListEventRulesOutput.createdAt) && + Objects.equals(this.description, dataForListEventRulesOutput.description) && + Objects.equals(this.effectEndAt, dataForListEventRulesOutput.effectEndAt) && + Objects.equals(this.effectStartAt, dataForListEventRulesOutput.effectStartAt) && + Objects.equals(this.enableState, dataForListEventRulesOutput.enableState) && + Objects.equals(this.endpoint, dataForListEventRulesOutput.endpoint) && + Objects.equals(this.eventBusName, dataForListEventRulesOutput.eventBusName) && + Objects.equals(this.eventType, dataForListEventRulesOutput.eventType) && + Objects.equals(this.filterPattern, dataForListEventRulesOutput.filterPattern) && + Objects.equals(this.level, dataForListEventRulesOutput.level) && + Objects.equals(this.messageQueue, dataForListEventRulesOutput.messageQueue) && + Objects.equals(this.region, dataForListEventRulesOutput.region) && + Objects.equals(this.ruleId, dataForListEventRulesOutput.ruleId) && + Objects.equals(this.ruleName, dataForListEventRulesOutput.ruleName) && + Objects.equals(this.source, dataForListEventRulesOutput.source) && + Objects.equals(this.tlSTarget, dataForListEventRulesOutput.tlSTarget) && + Objects.equals(this.updatedAt, dataForListEventRulesOutput.updatedAt) && + Objects.equals(this.webhookIds, dataForListEventRulesOutput.webhookIds); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, contactGroupIds, contactMethods, createdAt, description, effectEndAt, effectStartAt, enableState, endpoint, eventBusName, eventType, filterPattern, level, messageQueue, region, ruleId, ruleName, source, tlSTarget, updatedAt, webhookIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForListEventRulesOutput {\n"); + + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" contactGroupIds: ").append(toIndentedString(contactGroupIds)).append("\n"); + sb.append(" contactMethods: ").append(toIndentedString(contactMethods)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" effectEndAt: ").append(toIndentedString(effectEndAt)).append("\n"); + sb.append(" effectStartAt: ").append(toIndentedString(effectStartAt)).append("\n"); + sb.append(" enableState: ").append(toIndentedString(enableState)).append("\n"); + sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); + sb.append(" eventBusName: ").append(toIndentedString(eventBusName)).append("\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" filterPattern: ").append(toIndentedString(filterPattern)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" messageQueue: ").append(toIndentedString(messageQueue)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" tlSTarget: ").append(toIndentedString(tlSTarget)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" webhookIds: ").append(toIndentedString(webhookIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListRulesByIdsOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListRulesByIdsOutput.java new file mode 100644 index 00000000..30a75379 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListRulesByIdsOutput.java @@ -0,0 +1,680 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.ConditionForListRulesByIdsOutput; +import com.volcengine.volcobserve.model.RecoveryNotifyForListRulesByIdsOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForListRulesByIdsOutput + */ + + + +public class DataForListRulesByIdsOutput { + @SerializedName("AlertMethods") + private List alertMethods = null; + + @SerializedName("AlertState") + private String alertState = null; + + @SerializedName("ConditionOperator") + private String conditionOperator = null; + + @SerializedName("Conditions") + private List conditions = null; + + @SerializedName("ContactGroupIds") + private List contactGroupIds = null; + + @SerializedName("CreatedAt") + private String createdAt = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("EffectEndAt") + private String effectEndAt = null; + + @SerializedName("EffectStartAt") + private String effectStartAt = null; + + @SerializedName("EnableState") + private String enableState = null; + + @SerializedName("EvaluationCount") + private Integer evaluationCount = null; + + @SerializedName("Id") + private String id = null; + + @SerializedName("Level") + private String level = null; + + @SerializedName("MultipleConditions") + private Boolean multipleConditions = null; + + @SerializedName("Namespace") + private String namespace = null; + + @SerializedName("OriginalDimensions") + private Map> originalDimensions = null; + + @SerializedName("RecoveryNotify") + private RecoveryNotifyForListRulesByIdsOutput recoveryNotify = null; + + @SerializedName("Regions") + private List regions = null; + + @SerializedName("RuleName") + private String ruleName = null; + + @SerializedName("SilenceTime") + private Integer silenceTime = null; + + @SerializedName("SubNamespace") + private String subNamespace = null; + + @SerializedName("UpdatedAt") + private String updatedAt = null; + + @SerializedName("WebHook") + private String webHook = null; + + @SerializedName("WebhookIds") + private List webhookIds = null; + + public DataForListRulesByIdsOutput alertMethods(List alertMethods) { + this.alertMethods = alertMethods; + return this; + } + + public DataForListRulesByIdsOutput addAlertMethodsItem(String alertMethodsItem) { + if (this.alertMethods == null) { + this.alertMethods = new ArrayList(); + } + this.alertMethods.add(alertMethodsItem); + return this; + } + + /** + * Get alertMethods + * @return alertMethods + **/ + @Schema(description = "") + public List getAlertMethods() { + return alertMethods; + } + + public void setAlertMethods(List alertMethods) { + this.alertMethods = alertMethods; + } + + public DataForListRulesByIdsOutput alertState(String alertState) { + this.alertState = alertState; + return this; + } + + /** + * Get alertState + * @return alertState + **/ + @Schema(description = "") + public String getAlertState() { + return alertState; + } + + public void setAlertState(String alertState) { + this.alertState = alertState; + } + + public DataForListRulesByIdsOutput conditionOperator(String conditionOperator) { + this.conditionOperator = conditionOperator; + return this; + } + + /** + * Get conditionOperator + * @return conditionOperator + **/ + @Schema(description = "") + public String getConditionOperator() { + return conditionOperator; + } + + public void setConditionOperator(String conditionOperator) { + this.conditionOperator = conditionOperator; + } + + public DataForListRulesByIdsOutput conditions(List conditions) { + this.conditions = conditions; + return this; + } + + public DataForListRulesByIdsOutput addConditionsItem(ConditionForListRulesByIdsOutput conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * Get conditions + * @return conditions + **/ + @Valid + @Schema(description = "") + public List getConditions() { + return conditions; + } + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + public DataForListRulesByIdsOutput contactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + return this; + } + + public DataForListRulesByIdsOutput addContactGroupIdsItem(String contactGroupIdsItem) { + if (this.contactGroupIds == null) { + this.contactGroupIds = new ArrayList(); + } + this.contactGroupIds.add(contactGroupIdsItem); + return this; + } + + /** + * Get contactGroupIds + * @return contactGroupIds + **/ + @Schema(description = "") + public List getContactGroupIds() { + return contactGroupIds; + } + + public void setContactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + } + + public DataForListRulesByIdsOutput createdAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @Schema(description = "") + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public DataForListRulesByIdsOutput description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public DataForListRulesByIdsOutput effectEndAt(String effectEndAt) { + this.effectEndAt = effectEndAt; + return this; + } + + /** + * Get effectEndAt + * @return effectEndAt + **/ + @Schema(description = "") + public String getEffectEndAt() { + return effectEndAt; + } + + public void setEffectEndAt(String effectEndAt) { + this.effectEndAt = effectEndAt; + } + + public DataForListRulesByIdsOutput effectStartAt(String effectStartAt) { + this.effectStartAt = effectStartAt; + return this; + } + + /** + * Get effectStartAt + * @return effectStartAt + **/ + @Schema(description = "") + public String getEffectStartAt() { + return effectStartAt; + } + + public void setEffectStartAt(String effectStartAt) { + this.effectStartAt = effectStartAt; + } + + public DataForListRulesByIdsOutput enableState(String enableState) { + this.enableState = enableState; + return this; + } + + /** + * Get enableState + * @return enableState + **/ + @Schema(description = "") + public String getEnableState() { + return enableState; + } + + public void setEnableState(String enableState) { + this.enableState = enableState; + } + + public DataForListRulesByIdsOutput evaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + return this; + } + + /** + * Get evaluationCount + * @return evaluationCount + **/ + @Schema(description = "") + public Integer getEvaluationCount() { + return evaluationCount; + } + + public void setEvaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + } + + public DataForListRulesByIdsOutput id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @Schema(description = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DataForListRulesByIdsOutput level(String level) { + this.level = level; + return this; + } + + /** + * Get level + * @return level + **/ + @Schema(description = "") + public String getLevel() { + return level; + } + + public void setLevel(String level) { + this.level = level; + } + + public DataForListRulesByIdsOutput multipleConditions(Boolean multipleConditions) { + this.multipleConditions = multipleConditions; + return this; + } + + /** + * Get multipleConditions + * @return multipleConditions + **/ + @Schema(description = "") + public Boolean isMultipleConditions() { + return multipleConditions; + } + + public void setMultipleConditions(Boolean multipleConditions) { + this.multipleConditions = multipleConditions; + } + + public DataForListRulesByIdsOutput namespace(String namespace) { + this.namespace = namespace; + return this; + } + + /** + * Get namespace + * @return namespace + **/ + @Schema(description = "") + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public DataForListRulesByIdsOutput originalDimensions(Map> originalDimensions) { + this.originalDimensions = originalDimensions; + return this; + } + + public DataForListRulesByIdsOutput putOriginalDimensionsItem(String key, List originalDimensionsItem) { + if (this.originalDimensions == null) { + this.originalDimensions = new HashMap>(); + } + this.originalDimensions.put(key, originalDimensionsItem); + return this; + } + + /** + * Get originalDimensions + * @return originalDimensions + **/ + @Valid + @Schema(description = "") + public Map> getOriginalDimensions() { + return originalDimensions; + } + + public void setOriginalDimensions(Map> originalDimensions) { + this.originalDimensions = originalDimensions; + } + + public DataForListRulesByIdsOutput recoveryNotify(RecoveryNotifyForListRulesByIdsOutput recoveryNotify) { + this.recoveryNotify = recoveryNotify; + return this; + } + + /** + * Get recoveryNotify + * @return recoveryNotify + **/ + @Valid + @Schema(description = "") + public RecoveryNotifyForListRulesByIdsOutput getRecoveryNotify() { + return recoveryNotify; + } + + public void setRecoveryNotify(RecoveryNotifyForListRulesByIdsOutput recoveryNotify) { + this.recoveryNotify = recoveryNotify; + } + + public DataForListRulesByIdsOutput regions(List regions) { + this.regions = regions; + return this; + } + + public DataForListRulesByIdsOutput addRegionsItem(String regionsItem) { + if (this.regions == null) { + this.regions = new ArrayList(); + } + this.regions.add(regionsItem); + return this; + } + + /** + * Get regions + * @return regions + **/ + @Schema(description = "") + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public DataForListRulesByIdsOutput ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get ruleName + * @return ruleName + **/ + @Schema(description = "") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public DataForListRulesByIdsOutput silenceTime(Integer silenceTime) { + this.silenceTime = silenceTime; + return this; + } + + /** + * Get silenceTime + * @return silenceTime + **/ + @Schema(description = "") + public Integer getSilenceTime() { + return silenceTime; + } + + public void setSilenceTime(Integer silenceTime) { + this.silenceTime = silenceTime; + } + + public DataForListRulesByIdsOutput subNamespace(String subNamespace) { + this.subNamespace = subNamespace; + return this; + } + + /** + * Get subNamespace + * @return subNamespace + **/ + @Schema(description = "") + public String getSubNamespace() { + return subNamespace; + } + + public void setSubNamespace(String subNamespace) { + this.subNamespace = subNamespace; + } + + public DataForListRulesByIdsOutput updatedAt(String updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @Schema(description = "") + public String getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + + public DataForListRulesByIdsOutput webHook(String webHook) { + this.webHook = webHook; + return this; + } + + /** + * Get webHook + * @return webHook + **/ + @Schema(description = "") + public String getWebHook() { + return webHook; + } + + public void setWebHook(String webHook) { + this.webHook = webHook; + } + + public DataForListRulesByIdsOutput webhookIds(List webhookIds) { + this.webhookIds = webhookIds; + return this; + } + + public DataForListRulesByIdsOutput addWebhookIdsItem(String webhookIdsItem) { + if (this.webhookIds == null) { + this.webhookIds = new ArrayList(); + } + this.webhookIds.add(webhookIdsItem); + return this; + } + + /** + * Get webhookIds + * @return webhookIds + **/ + @Schema(description = "") + public List getWebhookIds() { + return webhookIds; + } + + public void setWebhookIds(List webhookIds) { + this.webhookIds = webhookIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForListRulesByIdsOutput dataForListRulesByIdsOutput = (DataForListRulesByIdsOutput) o; + return Objects.equals(this.alertMethods, dataForListRulesByIdsOutput.alertMethods) && + Objects.equals(this.alertState, dataForListRulesByIdsOutput.alertState) && + Objects.equals(this.conditionOperator, dataForListRulesByIdsOutput.conditionOperator) && + Objects.equals(this.conditions, dataForListRulesByIdsOutput.conditions) && + Objects.equals(this.contactGroupIds, dataForListRulesByIdsOutput.contactGroupIds) && + Objects.equals(this.createdAt, dataForListRulesByIdsOutput.createdAt) && + Objects.equals(this.description, dataForListRulesByIdsOutput.description) && + Objects.equals(this.effectEndAt, dataForListRulesByIdsOutput.effectEndAt) && + Objects.equals(this.effectStartAt, dataForListRulesByIdsOutput.effectStartAt) && + Objects.equals(this.enableState, dataForListRulesByIdsOutput.enableState) && + Objects.equals(this.evaluationCount, dataForListRulesByIdsOutput.evaluationCount) && + Objects.equals(this.id, dataForListRulesByIdsOutput.id) && + Objects.equals(this.level, dataForListRulesByIdsOutput.level) && + Objects.equals(this.multipleConditions, dataForListRulesByIdsOutput.multipleConditions) && + Objects.equals(this.namespace, dataForListRulesByIdsOutput.namespace) && + Objects.equals(this.originalDimensions, dataForListRulesByIdsOutput.originalDimensions) && + Objects.equals(this.recoveryNotify, dataForListRulesByIdsOutput.recoveryNotify) && + Objects.equals(this.regions, dataForListRulesByIdsOutput.regions) && + Objects.equals(this.ruleName, dataForListRulesByIdsOutput.ruleName) && + Objects.equals(this.silenceTime, dataForListRulesByIdsOutput.silenceTime) && + Objects.equals(this.subNamespace, dataForListRulesByIdsOutput.subNamespace) && + Objects.equals(this.updatedAt, dataForListRulesByIdsOutput.updatedAt) && + Objects.equals(this.webHook, dataForListRulesByIdsOutput.webHook) && + Objects.equals(this.webhookIds, dataForListRulesByIdsOutput.webhookIds); + } + + @Override + public int hashCode() { + return Objects.hash(alertMethods, alertState, conditionOperator, conditions, contactGroupIds, createdAt, description, effectEndAt, effectStartAt, enableState, evaluationCount, id, level, multipleConditions, namespace, originalDimensions, recoveryNotify, regions, ruleName, silenceTime, subNamespace, updatedAt, webHook, webhookIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForListRulesByIdsOutput {\n"); + + sb.append(" alertMethods: ").append(toIndentedString(alertMethods)).append("\n"); + sb.append(" alertState: ").append(toIndentedString(alertState)).append("\n"); + sb.append(" conditionOperator: ").append(toIndentedString(conditionOperator)).append("\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" contactGroupIds: ").append(toIndentedString(contactGroupIds)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" effectEndAt: ").append(toIndentedString(effectEndAt)).append("\n"); + sb.append(" effectStartAt: ").append(toIndentedString(effectStartAt)).append("\n"); + sb.append(" enableState: ").append(toIndentedString(enableState)).append("\n"); + sb.append(" evaluationCount: ").append(toIndentedString(evaluationCount)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" multipleConditions: ").append(toIndentedString(multipleConditions)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" originalDimensions: ").append(toIndentedString(originalDimensions)).append("\n"); + sb.append(" recoveryNotify: ").append(toIndentedString(recoveryNotify)).append("\n"); + sb.append(" regions: ").append(toIndentedString(regions)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" silenceTime: ").append(toIndentedString(silenceTime)).append("\n"); + sb.append(" subNamespace: ").append(toIndentedString(subNamespace)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" webHook: ").append(toIndentedString(webHook)).append("\n"); + sb.append(" webhookIds: ").append(toIndentedString(webhookIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListRulesOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListRulesOutput.java new file mode 100644 index 00000000..488a26d9 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListRulesOutput.java @@ -0,0 +1,680 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.ConditionForListRulesOutput; +import com.volcengine.volcobserve.model.RecoveryNotifyForListRulesOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForListRulesOutput + */ + + + +public class DataForListRulesOutput { + @SerializedName("AlertMethods") + private List alertMethods = null; + + @SerializedName("AlertState") + private String alertState = null; + + @SerializedName("ConditionOperator") + private String conditionOperator = null; + + @SerializedName("Conditions") + private List conditions = null; + + @SerializedName("ContactGroupIds") + private List contactGroupIds = null; + + @SerializedName("CreatedAt") + private String createdAt = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("EffectEndAt") + private String effectEndAt = null; + + @SerializedName("EffectStartAt") + private String effectStartAt = null; + + @SerializedName("EnableState") + private String enableState = null; + + @SerializedName("EvaluationCount") + private Integer evaluationCount = null; + + @SerializedName("Id") + private String id = null; + + @SerializedName("Level") + private String level = null; + + @SerializedName("MultipleConditions") + private Boolean multipleConditions = null; + + @SerializedName("Namespace") + private String namespace = null; + + @SerializedName("OriginalDimensions") + private Map> originalDimensions = null; + + @SerializedName("RecoveryNotify") + private RecoveryNotifyForListRulesOutput recoveryNotify = null; + + @SerializedName("Regions") + private List regions = null; + + @SerializedName("RuleName") + private String ruleName = null; + + @SerializedName("SilenceTime") + private Integer silenceTime = null; + + @SerializedName("SubNamespace") + private String subNamespace = null; + + @SerializedName("UpdatedAt") + private String updatedAt = null; + + @SerializedName("WebHook") + private String webHook = null; + + @SerializedName("WebhookIds") + private List webhookIds = null; + + public DataForListRulesOutput alertMethods(List alertMethods) { + this.alertMethods = alertMethods; + return this; + } + + public DataForListRulesOutput addAlertMethodsItem(String alertMethodsItem) { + if (this.alertMethods == null) { + this.alertMethods = new ArrayList(); + } + this.alertMethods.add(alertMethodsItem); + return this; + } + + /** + * Get alertMethods + * @return alertMethods + **/ + @Schema(description = "") + public List getAlertMethods() { + return alertMethods; + } + + public void setAlertMethods(List alertMethods) { + this.alertMethods = alertMethods; + } + + public DataForListRulesOutput alertState(String alertState) { + this.alertState = alertState; + return this; + } + + /** + * Get alertState + * @return alertState + **/ + @Schema(description = "") + public String getAlertState() { + return alertState; + } + + public void setAlertState(String alertState) { + this.alertState = alertState; + } + + public DataForListRulesOutput conditionOperator(String conditionOperator) { + this.conditionOperator = conditionOperator; + return this; + } + + /** + * Get conditionOperator + * @return conditionOperator + **/ + @Schema(description = "") + public String getConditionOperator() { + return conditionOperator; + } + + public void setConditionOperator(String conditionOperator) { + this.conditionOperator = conditionOperator; + } + + public DataForListRulesOutput conditions(List conditions) { + this.conditions = conditions; + return this; + } + + public DataForListRulesOutput addConditionsItem(ConditionForListRulesOutput conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * Get conditions + * @return conditions + **/ + @Valid + @Schema(description = "") + public List getConditions() { + return conditions; + } + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + public DataForListRulesOutput contactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + return this; + } + + public DataForListRulesOutput addContactGroupIdsItem(String contactGroupIdsItem) { + if (this.contactGroupIds == null) { + this.contactGroupIds = new ArrayList(); + } + this.contactGroupIds.add(contactGroupIdsItem); + return this; + } + + /** + * Get contactGroupIds + * @return contactGroupIds + **/ + @Schema(description = "") + public List getContactGroupIds() { + return contactGroupIds; + } + + public void setContactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + } + + public DataForListRulesOutput createdAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @Schema(description = "") + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public DataForListRulesOutput description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public DataForListRulesOutput effectEndAt(String effectEndAt) { + this.effectEndAt = effectEndAt; + return this; + } + + /** + * Get effectEndAt + * @return effectEndAt + **/ + @Schema(description = "") + public String getEffectEndAt() { + return effectEndAt; + } + + public void setEffectEndAt(String effectEndAt) { + this.effectEndAt = effectEndAt; + } + + public DataForListRulesOutput effectStartAt(String effectStartAt) { + this.effectStartAt = effectStartAt; + return this; + } + + /** + * Get effectStartAt + * @return effectStartAt + **/ + @Schema(description = "") + public String getEffectStartAt() { + return effectStartAt; + } + + public void setEffectStartAt(String effectStartAt) { + this.effectStartAt = effectStartAt; + } + + public DataForListRulesOutput enableState(String enableState) { + this.enableState = enableState; + return this; + } + + /** + * Get enableState + * @return enableState + **/ + @Schema(description = "") + public String getEnableState() { + return enableState; + } + + public void setEnableState(String enableState) { + this.enableState = enableState; + } + + public DataForListRulesOutput evaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + return this; + } + + /** + * Get evaluationCount + * @return evaluationCount + **/ + @Schema(description = "") + public Integer getEvaluationCount() { + return evaluationCount; + } + + public void setEvaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + } + + public DataForListRulesOutput id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @Schema(description = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DataForListRulesOutput level(String level) { + this.level = level; + return this; + } + + /** + * Get level + * @return level + **/ + @Schema(description = "") + public String getLevel() { + return level; + } + + public void setLevel(String level) { + this.level = level; + } + + public DataForListRulesOutput multipleConditions(Boolean multipleConditions) { + this.multipleConditions = multipleConditions; + return this; + } + + /** + * Get multipleConditions + * @return multipleConditions + **/ + @Schema(description = "") + public Boolean isMultipleConditions() { + return multipleConditions; + } + + public void setMultipleConditions(Boolean multipleConditions) { + this.multipleConditions = multipleConditions; + } + + public DataForListRulesOutput namespace(String namespace) { + this.namespace = namespace; + return this; + } + + /** + * Get namespace + * @return namespace + **/ + @Schema(description = "") + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public DataForListRulesOutput originalDimensions(Map> originalDimensions) { + this.originalDimensions = originalDimensions; + return this; + } + + public DataForListRulesOutput putOriginalDimensionsItem(String key, List originalDimensionsItem) { + if (this.originalDimensions == null) { + this.originalDimensions = new HashMap>(); + } + this.originalDimensions.put(key, originalDimensionsItem); + return this; + } + + /** + * Get originalDimensions + * @return originalDimensions + **/ + @Valid + @Schema(description = "") + public Map> getOriginalDimensions() { + return originalDimensions; + } + + public void setOriginalDimensions(Map> originalDimensions) { + this.originalDimensions = originalDimensions; + } + + public DataForListRulesOutput recoveryNotify(RecoveryNotifyForListRulesOutput recoveryNotify) { + this.recoveryNotify = recoveryNotify; + return this; + } + + /** + * Get recoveryNotify + * @return recoveryNotify + **/ + @Valid + @Schema(description = "") + public RecoveryNotifyForListRulesOutput getRecoveryNotify() { + return recoveryNotify; + } + + public void setRecoveryNotify(RecoveryNotifyForListRulesOutput recoveryNotify) { + this.recoveryNotify = recoveryNotify; + } + + public DataForListRulesOutput regions(List regions) { + this.regions = regions; + return this; + } + + public DataForListRulesOutput addRegionsItem(String regionsItem) { + if (this.regions == null) { + this.regions = new ArrayList(); + } + this.regions.add(regionsItem); + return this; + } + + /** + * Get regions + * @return regions + **/ + @Schema(description = "") + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public DataForListRulesOutput ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get ruleName + * @return ruleName + **/ + @Schema(description = "") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public DataForListRulesOutput silenceTime(Integer silenceTime) { + this.silenceTime = silenceTime; + return this; + } + + /** + * Get silenceTime + * @return silenceTime + **/ + @Schema(description = "") + public Integer getSilenceTime() { + return silenceTime; + } + + public void setSilenceTime(Integer silenceTime) { + this.silenceTime = silenceTime; + } + + public DataForListRulesOutput subNamespace(String subNamespace) { + this.subNamespace = subNamespace; + return this; + } + + /** + * Get subNamespace + * @return subNamespace + **/ + @Schema(description = "") + public String getSubNamespace() { + return subNamespace; + } + + public void setSubNamespace(String subNamespace) { + this.subNamespace = subNamespace; + } + + public DataForListRulesOutput updatedAt(String updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @Schema(description = "") + public String getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + + public DataForListRulesOutput webHook(String webHook) { + this.webHook = webHook; + return this; + } + + /** + * Get webHook + * @return webHook + **/ + @Schema(description = "") + public String getWebHook() { + return webHook; + } + + public void setWebHook(String webHook) { + this.webHook = webHook; + } + + public DataForListRulesOutput webhookIds(List webhookIds) { + this.webhookIds = webhookIds; + return this; + } + + public DataForListRulesOutput addWebhookIdsItem(String webhookIdsItem) { + if (this.webhookIds == null) { + this.webhookIds = new ArrayList(); + } + this.webhookIds.add(webhookIdsItem); + return this; + } + + /** + * Get webhookIds + * @return webhookIds + **/ + @Schema(description = "") + public List getWebhookIds() { + return webhookIds; + } + + public void setWebhookIds(List webhookIds) { + this.webhookIds = webhookIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForListRulesOutput dataForListRulesOutput = (DataForListRulesOutput) o; + return Objects.equals(this.alertMethods, dataForListRulesOutput.alertMethods) && + Objects.equals(this.alertState, dataForListRulesOutput.alertState) && + Objects.equals(this.conditionOperator, dataForListRulesOutput.conditionOperator) && + Objects.equals(this.conditions, dataForListRulesOutput.conditions) && + Objects.equals(this.contactGroupIds, dataForListRulesOutput.contactGroupIds) && + Objects.equals(this.createdAt, dataForListRulesOutput.createdAt) && + Objects.equals(this.description, dataForListRulesOutput.description) && + Objects.equals(this.effectEndAt, dataForListRulesOutput.effectEndAt) && + Objects.equals(this.effectStartAt, dataForListRulesOutput.effectStartAt) && + Objects.equals(this.enableState, dataForListRulesOutput.enableState) && + Objects.equals(this.evaluationCount, dataForListRulesOutput.evaluationCount) && + Objects.equals(this.id, dataForListRulesOutput.id) && + Objects.equals(this.level, dataForListRulesOutput.level) && + Objects.equals(this.multipleConditions, dataForListRulesOutput.multipleConditions) && + Objects.equals(this.namespace, dataForListRulesOutput.namespace) && + Objects.equals(this.originalDimensions, dataForListRulesOutput.originalDimensions) && + Objects.equals(this.recoveryNotify, dataForListRulesOutput.recoveryNotify) && + Objects.equals(this.regions, dataForListRulesOutput.regions) && + Objects.equals(this.ruleName, dataForListRulesOutput.ruleName) && + Objects.equals(this.silenceTime, dataForListRulesOutput.silenceTime) && + Objects.equals(this.subNamespace, dataForListRulesOutput.subNamespace) && + Objects.equals(this.updatedAt, dataForListRulesOutput.updatedAt) && + Objects.equals(this.webHook, dataForListRulesOutput.webHook) && + Objects.equals(this.webhookIds, dataForListRulesOutput.webhookIds); + } + + @Override + public int hashCode() { + return Objects.hash(alertMethods, alertState, conditionOperator, conditions, contactGroupIds, createdAt, description, effectEndAt, effectStartAt, enableState, evaluationCount, id, level, multipleConditions, namespace, originalDimensions, recoveryNotify, regions, ruleName, silenceTime, subNamespace, updatedAt, webHook, webhookIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForListRulesOutput {\n"); + + sb.append(" alertMethods: ").append(toIndentedString(alertMethods)).append("\n"); + sb.append(" alertState: ").append(toIndentedString(alertState)).append("\n"); + sb.append(" conditionOperator: ").append(toIndentedString(conditionOperator)).append("\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" contactGroupIds: ").append(toIndentedString(contactGroupIds)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" effectEndAt: ").append(toIndentedString(effectEndAt)).append("\n"); + sb.append(" effectStartAt: ").append(toIndentedString(effectStartAt)).append("\n"); + sb.append(" enableState: ").append(toIndentedString(enableState)).append("\n"); + sb.append(" evaluationCount: ").append(toIndentedString(evaluationCount)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" multipleConditions: ").append(toIndentedString(multipleConditions)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" originalDimensions: ").append(toIndentedString(originalDimensions)).append("\n"); + sb.append(" recoveryNotify: ").append(toIndentedString(recoveryNotify)).append("\n"); + sb.append(" regions: ").append(toIndentedString(regions)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" silenceTime: ").append(toIndentedString(silenceTime)).append("\n"); + sb.append(" subNamespace: ").append(toIndentedString(subNamespace)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" webHook: ").append(toIndentedString(webHook)).append("\n"); + sb.append(" webhookIds: ").append(toIndentedString(webhookIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListSendAlertOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListSendAlertOutput.java new file mode 100644 index 00000000..dd2118a6 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListSendAlertOutput.java @@ -0,0 +1,221 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.SendResultForListSendAlertOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForListSendAlertOutput + */ + + + +public class DataForListSendAlertOutput { + @SerializedName("AlertMethod") + private String alertMethod = null; + + @SerializedName("BathId") + private String bathId = null; + + @SerializedName("Content") + private String content = null; + + @SerializedName("Id") + private String id = null; + + @SerializedName("SendAt") + private String sendAt = null; + + @SerializedName("SendResult") + private List sendResult = null; + + public DataForListSendAlertOutput alertMethod(String alertMethod) { + this.alertMethod = alertMethod; + return this; + } + + /** + * Get alertMethod + * @return alertMethod + **/ + @Schema(description = "") + public String getAlertMethod() { + return alertMethod; + } + + public void setAlertMethod(String alertMethod) { + this.alertMethod = alertMethod; + } + + public DataForListSendAlertOutput bathId(String bathId) { + this.bathId = bathId; + return this; + } + + /** + * Get bathId + * @return bathId + **/ + @Schema(description = "") + public String getBathId() { + return bathId; + } + + public void setBathId(String bathId) { + this.bathId = bathId; + } + + public DataForListSendAlertOutput content(String content) { + this.content = content; + return this; + } + + /** + * Get content + * @return content + **/ + @Schema(description = "") + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public DataForListSendAlertOutput id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @Schema(description = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DataForListSendAlertOutput sendAt(String sendAt) { + this.sendAt = sendAt; + return this; + } + + /** + * Get sendAt + * @return sendAt + **/ + @Schema(description = "") + public String getSendAt() { + return sendAt; + } + + public void setSendAt(String sendAt) { + this.sendAt = sendAt; + } + + public DataForListSendAlertOutput sendResult(List sendResult) { + this.sendResult = sendResult; + return this; + } + + public DataForListSendAlertOutput addSendResultItem(SendResultForListSendAlertOutput sendResultItem) { + if (this.sendResult == null) { + this.sendResult = new ArrayList(); + } + this.sendResult.add(sendResultItem); + return this; + } + + /** + * Get sendResult + * @return sendResult + **/ + @Valid + @Schema(description = "") + public List getSendResult() { + return sendResult; + } + + public void setSendResult(List sendResult) { + this.sendResult = sendResult; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForListSendAlertOutput dataForListSendAlertOutput = (DataForListSendAlertOutput) o; + return Objects.equals(this.alertMethod, dataForListSendAlertOutput.alertMethod) && + Objects.equals(this.bathId, dataForListSendAlertOutput.bathId) && + Objects.equals(this.content, dataForListSendAlertOutput.content) && + Objects.equals(this.id, dataForListSendAlertOutput.id) && + Objects.equals(this.sendAt, dataForListSendAlertOutput.sendAt) && + Objects.equals(this.sendResult, dataForListSendAlertOutput.sendResult); + } + + @Override + public int hashCode() { + return Objects.hash(alertMethod, bathId, content, id, sendAt, sendResult); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForListSendAlertOutput {\n"); + + sb.append(" alertMethod: ").append(toIndentedString(alertMethod)).append("\n"); + sb.append(" bathId: ").append(toIndentedString(bathId)).append("\n"); + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" sendAt: ").append(toIndentedString(sendAt)).append("\n"); + sb.append(" sendResult: ").append(toIndentedString(sendResult)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListWebhooksByIdsOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListWebhooksByIdsOutput.java new file mode 100644 index 00000000..ed6263b7 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListWebhooksByIdsOutput.java @@ -0,0 +1,273 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForListWebhooksByIdsOutput + */ + + + +public class DataForListWebhooksByIdsOutput { + @SerializedName("CreatedAt") + private String createdAt = null; + + @SerializedName("EventRuleIds") + private List eventRuleIds = null; + + @SerializedName("Id") + private String id = null; + + @SerializedName("Name") + private String name = null; + + @SerializedName("RuleIds") + private List ruleIds = null; + + @SerializedName("Type") + private String type = null; + + @SerializedName("UpdatedAt") + private String updatedAt = null; + + @SerializedName("Url") + private String url = null; + + public DataForListWebhooksByIdsOutput createdAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @Schema(description = "") + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public DataForListWebhooksByIdsOutput eventRuleIds(List eventRuleIds) { + this.eventRuleIds = eventRuleIds; + return this; + } + + public DataForListWebhooksByIdsOutput addEventRuleIdsItem(String eventRuleIdsItem) { + if (this.eventRuleIds == null) { + this.eventRuleIds = new ArrayList(); + } + this.eventRuleIds.add(eventRuleIdsItem); + return this; + } + + /** + * Get eventRuleIds + * @return eventRuleIds + **/ + @Schema(description = "") + public List getEventRuleIds() { + return eventRuleIds; + } + + public void setEventRuleIds(List eventRuleIds) { + this.eventRuleIds = eventRuleIds; + } + + public DataForListWebhooksByIdsOutput id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @Schema(description = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DataForListWebhooksByIdsOutput name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @Schema(description = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DataForListWebhooksByIdsOutput ruleIds(List ruleIds) { + this.ruleIds = ruleIds; + return this; + } + + public DataForListWebhooksByIdsOutput addRuleIdsItem(String ruleIdsItem) { + if (this.ruleIds == null) { + this.ruleIds = new ArrayList(); + } + this.ruleIds.add(ruleIdsItem); + return this; + } + + /** + * Get ruleIds + * @return ruleIds + **/ + @Schema(description = "") + public List getRuleIds() { + return ruleIds; + } + + public void setRuleIds(List ruleIds) { + this.ruleIds = ruleIds; + } + + public DataForListWebhooksByIdsOutput type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @Schema(description = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public DataForListWebhooksByIdsOutput updatedAt(String updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @Schema(description = "") + public String getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + + public DataForListWebhooksByIdsOutput url(String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + **/ + @Schema(description = "") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForListWebhooksByIdsOutput dataForListWebhooksByIdsOutput = (DataForListWebhooksByIdsOutput) o; + return Objects.equals(this.createdAt, dataForListWebhooksByIdsOutput.createdAt) && + Objects.equals(this.eventRuleIds, dataForListWebhooksByIdsOutput.eventRuleIds) && + Objects.equals(this.id, dataForListWebhooksByIdsOutput.id) && + Objects.equals(this.name, dataForListWebhooksByIdsOutput.name) && + Objects.equals(this.ruleIds, dataForListWebhooksByIdsOutput.ruleIds) && + Objects.equals(this.type, dataForListWebhooksByIdsOutput.type) && + Objects.equals(this.updatedAt, dataForListWebhooksByIdsOutput.updatedAt) && + Objects.equals(this.url, dataForListWebhooksByIdsOutput.url); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, eventRuleIds, id, name, ruleIds, type, updatedAt, url); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForListWebhooksByIdsOutput {\n"); + + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" eventRuleIds: ").append(toIndentedString(eventRuleIds)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ruleIds: ").append(toIndentedString(ruleIds)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListWebhooksOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListWebhooksOutput.java new file mode 100644 index 00000000..23263965 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForListWebhooksOutput.java @@ -0,0 +1,273 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForListWebhooksOutput + */ + + + +public class DataForListWebhooksOutput { + @SerializedName("CreatedAt") + private String createdAt = null; + + @SerializedName("EventRuleIds") + private List eventRuleIds = null; + + @SerializedName("Id") + private String id = null; + + @SerializedName("Name") + private String name = null; + + @SerializedName("RuleIds") + private List ruleIds = null; + + @SerializedName("Type") + private String type = null; + + @SerializedName("UpdatedAt") + private String updatedAt = null; + + @SerializedName("Url") + private String url = null; + + public DataForListWebhooksOutput createdAt(String createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @Schema(description = "") + public String getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(String createdAt) { + this.createdAt = createdAt; + } + + public DataForListWebhooksOutput eventRuleIds(List eventRuleIds) { + this.eventRuleIds = eventRuleIds; + return this; + } + + public DataForListWebhooksOutput addEventRuleIdsItem(String eventRuleIdsItem) { + if (this.eventRuleIds == null) { + this.eventRuleIds = new ArrayList(); + } + this.eventRuleIds.add(eventRuleIdsItem); + return this; + } + + /** + * Get eventRuleIds + * @return eventRuleIds + **/ + @Schema(description = "") + public List getEventRuleIds() { + return eventRuleIds; + } + + public void setEventRuleIds(List eventRuleIds) { + this.eventRuleIds = eventRuleIds; + } + + public DataForListWebhooksOutput id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @Schema(description = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DataForListWebhooksOutput name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @Schema(description = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DataForListWebhooksOutput ruleIds(List ruleIds) { + this.ruleIds = ruleIds; + return this; + } + + public DataForListWebhooksOutput addRuleIdsItem(String ruleIdsItem) { + if (this.ruleIds == null) { + this.ruleIds = new ArrayList(); + } + this.ruleIds.add(ruleIdsItem); + return this; + } + + /** + * Get ruleIds + * @return ruleIds + **/ + @Schema(description = "") + public List getRuleIds() { + return ruleIds; + } + + public void setRuleIds(List ruleIds) { + this.ruleIds = ruleIds; + } + + public DataForListWebhooksOutput type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @Schema(description = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public DataForListWebhooksOutput updatedAt(String updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @Schema(description = "") + public String getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(String updatedAt) { + this.updatedAt = updatedAt; + } + + public DataForListWebhooksOutput url(String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + **/ + @Schema(description = "") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForListWebhooksOutput dataForListWebhooksOutput = (DataForListWebhooksOutput) o; + return Objects.equals(this.createdAt, dataForListWebhooksOutput.createdAt) && + Objects.equals(this.eventRuleIds, dataForListWebhooksOutput.eventRuleIds) && + Objects.equals(this.id, dataForListWebhooksOutput.id) && + Objects.equals(this.name, dataForListWebhooksOutput.name) && + Objects.equals(this.ruleIds, dataForListWebhooksOutput.ruleIds) && + Objects.equals(this.type, dataForListWebhooksOutput.type) && + Objects.equals(this.updatedAt, dataForListWebhooksOutput.updatedAt) && + Objects.equals(this.url, dataForListWebhooksOutput.url); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, eventRuleIds, id, name, ruleIds, type, updatedAt, url); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForListWebhooksOutput {\n"); + + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" eventRuleIds: ").append(toIndentedString(eventRuleIds)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ruleIds: ").append(toIndentedString(ruleIds)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForUpdateEventRuleOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForUpdateEventRuleOutput.java new file mode 100644 index 00000000..3440178e --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DataForUpdateEventRuleOutput.java @@ -0,0 +1,94 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DataForUpdateEventRuleOutput + */ + + + +public class DataForUpdateEventRuleOutput { + @SerializedName("RuleId") + private String ruleId = null; + + public DataForUpdateEventRuleOutput ruleId(String ruleId) { + this.ruleId = ruleId; + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @Schema(description = "") + public String getRuleId() { + return ruleId; + } + + public void setRuleId(String ruleId) { + this.ruleId = ruleId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DataForUpdateEventRuleOutput dataForUpdateEventRuleOutput = (DataForUpdateEventRuleOutput) o; + return Objects.equals(this.ruleId, dataForUpdateEventRuleOutput.ruleId); + } + + @Override + public int hashCode() { + return Objects.hash(ruleId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataForUpdateEventRuleOutput {\n"); + + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteEventRuleRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteEventRuleRequest.java new file mode 100644 index 00000000..1af9c9ba --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteEventRuleRequest.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DeleteEventRuleRequest + */ + + + +public class DeleteEventRuleRequest { + @SerializedName("RuleId") + private List ruleId = null; + + public DeleteEventRuleRequest ruleId(List ruleId) { + this.ruleId = ruleId; + return this; + } + + public DeleteEventRuleRequest addRuleIdItem(String ruleIdItem) { + if (this.ruleId == null) { + this.ruleId = new ArrayList(); + } + this.ruleId.add(ruleIdItem); + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @Schema(description = "") + public List getRuleId() { + return ruleId; + } + + public void setRuleId(List ruleId) { + this.ruleId = ruleId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteEventRuleRequest deleteEventRuleRequest = (DeleteEventRuleRequest) o; + return Objects.equals(this.ruleId, deleteEventRuleRequest.ruleId); + } + + @Override + public int hashCode() { + return Objects.hash(ruleId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteEventRuleRequest {\n"); + + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteEventRuleResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteEventRuleResponse.java new file mode 100644 index 00000000..1d24738a --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteEventRuleResponse.java @@ -0,0 +1,96 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForDeleteEventRuleOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DeleteEventRuleResponse + */ + + + +public class DeleteEventRuleResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private DataForDeleteEventRuleOutput data = null; + + public DeleteEventRuleResponse data(DataForDeleteEventRuleOutput data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public DataForDeleteEventRuleOutput getData() { + return data; + } + + public void setData(DataForDeleteEventRuleOutput data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteEventRuleResponse deleteEventRuleResponse = (DeleteEventRuleResponse) o; + return Objects.equals(this.data, deleteEventRuleResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteEventRuleResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteRulesByIdsRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteRulesByIdsRequest.java new file mode 100644 index 00000000..7e6849b6 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteRulesByIdsRequest.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DeleteRulesByIdsRequest + */ + + + +public class DeleteRulesByIdsRequest { + @SerializedName("Ids") + private List ids = null; + + public DeleteRulesByIdsRequest ids(List ids) { + this.ids = ids; + return this; + } + + public DeleteRulesByIdsRequest addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + **/ + @Schema(description = "") + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteRulesByIdsRequest deleteRulesByIdsRequest = (DeleteRulesByIdsRequest) o; + return Objects.equals(this.ids, deleteRulesByIdsRequest.ids); + } + + @Override + public int hashCode() { + return Objects.hash(ids); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteRulesByIdsRequest {\n"); + + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteRulesByIdsResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteRulesByIdsResponse.java new file mode 100644 index 00000000..1dbc896a --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteRulesByIdsResponse.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DeleteRulesByIdsResponse + */ + + + +public class DeleteRulesByIdsResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + public DeleteRulesByIdsResponse data(List data) { + this.data = data; + return this; + } + + public DeleteRulesByIdsResponse addDataItem(String dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteRulesByIdsResponse deleteRulesByIdsResponse = (DeleteRulesByIdsResponse) o; + return Objects.equals(this.data, deleteRulesByIdsResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteRulesByIdsResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteWebhooksByIdsRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteWebhooksByIdsRequest.java new file mode 100644 index 00000000..3cdb9106 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteWebhooksByIdsRequest.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DeleteWebhooksByIdsRequest + */ + + + +public class DeleteWebhooksByIdsRequest { + @SerializedName("Ids") + private List ids = null; + + public DeleteWebhooksByIdsRequest ids(List ids) { + this.ids = ids; + return this; + } + + public DeleteWebhooksByIdsRequest addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + **/ + @Schema(description = "") + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteWebhooksByIdsRequest deleteWebhooksByIdsRequest = (DeleteWebhooksByIdsRequest) o; + return Objects.equals(this.ids, deleteWebhooksByIdsRequest.ids); + } + + @Override + public int hashCode() { + return Objects.hash(ids); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteWebhooksByIdsRequest {\n"); + + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteWebhooksByIdsResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteWebhooksByIdsResponse.java new file mode 100644 index 00000000..dbc46b67 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DeleteWebhooksByIdsResponse.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DeleteWebhooksByIdsResponse + */ + + + +public class DeleteWebhooksByIdsResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + public DeleteWebhooksByIdsResponse data(List data) { + this.data = data; + return this; + } + + public DeleteWebhooksByIdsResponse addDataItem(String dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteWebhooksByIdsResponse deleteWebhooksByIdsResponse = (DeleteWebhooksByIdsResponse) o; + return Objects.equals(this.data, deleteWebhooksByIdsResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteWebhooksByIdsResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DisableEventRuleRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DisableEventRuleRequest.java new file mode 100644 index 00000000..bac2908a --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DisableEventRuleRequest.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DisableEventRuleRequest + */ + + + +public class DisableEventRuleRequest { + @SerializedName("RuleId") + private List ruleId = null; + + public DisableEventRuleRequest ruleId(List ruleId) { + this.ruleId = ruleId; + return this; + } + + public DisableEventRuleRequest addRuleIdItem(String ruleIdItem) { + if (this.ruleId == null) { + this.ruleId = new ArrayList(); + } + this.ruleId.add(ruleIdItem); + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @Schema(description = "") + public List getRuleId() { + return ruleId; + } + + public void setRuleId(List ruleId) { + this.ruleId = ruleId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DisableEventRuleRequest disableEventRuleRequest = (DisableEventRuleRequest) o; + return Objects.equals(this.ruleId, disableEventRuleRequest.ruleId); + } + + @Override + public int hashCode() { + return Objects.hash(ruleId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DisableEventRuleRequest {\n"); + + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DisableEventRuleResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DisableEventRuleResponse.java new file mode 100644 index 00000000..4b341647 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/DisableEventRuleResponse.java @@ -0,0 +1,96 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForDisableEventRuleOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * DisableEventRuleResponse + */ + + + +public class DisableEventRuleResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private DataForDisableEventRuleOutput data = null; + + public DisableEventRuleResponse data(DataForDisableEventRuleOutput data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public DataForDisableEventRuleOutput getData() { + return data; + } + + public void setData(DataForDisableEventRuleOutput data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DisableEventRuleResponse disableEventRuleResponse = (DisableEventRuleResponse) o; + return Objects.equals(this.data, disableEventRuleResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DisableEventRuleResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EffectiveTimeForCreateEventRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EffectiveTimeForCreateEventRuleInput.java new file mode 100644 index 00000000..7163525d --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EffectiveTimeForCreateEventRuleInput.java @@ -0,0 +1,117 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * EffectiveTimeForCreateEventRuleInput + */ + + + +public class EffectiveTimeForCreateEventRuleInput { + @SerializedName("EndTime") + private String endTime = null; + + @SerializedName("StartTime") + private String startTime = null; + + public EffectiveTimeForCreateEventRuleInput endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Get endTime + * @return endTime + **/ + @Schema(description = "") + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public EffectiveTimeForCreateEventRuleInput startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get startTime + * @return startTime + **/ + @Schema(description = "") + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EffectiveTimeForCreateEventRuleInput effectiveTimeForCreateEventRuleInput = (EffectiveTimeForCreateEventRuleInput) o; + return Objects.equals(this.endTime, effectiveTimeForCreateEventRuleInput.endTime) && + Objects.equals(this.startTime, effectiveTimeForCreateEventRuleInput.startTime); + } + + @Override + public int hashCode() { + return Objects.hash(endTime, startTime); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EffectiveTimeForCreateEventRuleInput {\n"); + + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EffectiveTimeForUpdateEventRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EffectiveTimeForUpdateEventRuleInput.java new file mode 100644 index 00000000..b01535e5 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EffectiveTimeForUpdateEventRuleInput.java @@ -0,0 +1,117 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * EffectiveTimeForUpdateEventRuleInput + */ + + + +public class EffectiveTimeForUpdateEventRuleInput { + @SerializedName("EndTime") + private String endTime = null; + + @SerializedName("StartTime") + private String startTime = null; + + public EffectiveTimeForUpdateEventRuleInput endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Get endTime + * @return endTime + **/ + @Schema(description = "") + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public EffectiveTimeForUpdateEventRuleInput startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get startTime + * @return startTime + **/ + @Schema(description = "") + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EffectiveTimeForUpdateEventRuleInput effectiveTimeForUpdateEventRuleInput = (EffectiveTimeForUpdateEventRuleInput) o; + return Objects.equals(this.endTime, effectiveTimeForUpdateEventRuleInput.endTime) && + Objects.equals(this.startTime, effectiveTimeForUpdateEventRuleInput.startTime); + } + + @Override + public int hashCode() { + return Objects.hash(endTime, startTime); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EffectiveTimeForUpdateEventRuleInput {\n"); + + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EnableEventRuleRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EnableEventRuleRequest.java new file mode 100644 index 00000000..49f36696 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EnableEventRuleRequest.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * EnableEventRuleRequest + */ + + + +public class EnableEventRuleRequest { + @SerializedName("RuleId") + private List ruleId = null; + + public EnableEventRuleRequest ruleId(List ruleId) { + this.ruleId = ruleId; + return this; + } + + public EnableEventRuleRequest addRuleIdItem(String ruleIdItem) { + if (this.ruleId == null) { + this.ruleId = new ArrayList(); + } + this.ruleId.add(ruleIdItem); + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @Schema(description = "") + public List getRuleId() { + return ruleId; + } + + public void setRuleId(List ruleId) { + this.ruleId = ruleId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EnableEventRuleRequest enableEventRuleRequest = (EnableEventRuleRequest) o; + return Objects.equals(this.ruleId, enableEventRuleRequest.ruleId); + } + + @Override + public int hashCode() { + return Objects.hash(ruleId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EnableEventRuleRequest {\n"); + + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EnableEventRuleResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EnableEventRuleResponse.java new file mode 100644 index 00000000..9ed2902e --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/EnableEventRuleResponse.java @@ -0,0 +1,96 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForEnableEventRuleOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * EnableEventRuleResponse + */ + + + +public class EnableEventRuleResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private DataForEnableEventRuleOutput data = null; + + public EnableEventRuleResponse data(DataForEnableEventRuleOutput data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public DataForEnableEventRuleOutput getData() { + return data; + } + + public void setData(DataForEnableEventRuleOutput data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EnableEventRuleResponse enableEventRuleResponse = (EnableEventRuleResponse) o; + return Objects.equals(this.data, enableEventRuleResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EnableEventRuleResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListAlertGroupRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListAlertGroupRequest.java new file mode 100644 index 00000000..68774b9f --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListAlertGroupRequest.java @@ -0,0 +1,335 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListAlertGroupRequest + */ + + + +public class ListAlertGroupRequest { + @SerializedName("AlertStates") + private List alertStates = null; + + @SerializedName("EndAt") + private Integer endAt = null; + + @SerializedName("Levels") + private List levels = null; + + @SerializedName("Namespaces") + private List namespaces = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("ResourceId") + private String resourceId = null; + + @SerializedName("RuleIds") + private List ruleIds = null; + + @SerializedName("RuleName") + private String ruleName = null; + + @SerializedName("StartAt") + private Integer startAt = null; + + public ListAlertGroupRequest alertStates(List alertStates) { + this.alertStates = alertStates; + return this; + } + + public ListAlertGroupRequest addAlertStatesItem(String alertStatesItem) { + if (this.alertStates == null) { + this.alertStates = new ArrayList(); + } + this.alertStates.add(alertStatesItem); + return this; + } + + /** + * Get alertStates + * @return alertStates + **/ + @Schema(description = "") + public List getAlertStates() { + return alertStates; + } + + public void setAlertStates(List alertStates) { + this.alertStates = alertStates; + } + + public ListAlertGroupRequest endAt(Integer endAt) { + this.endAt = endAt; + return this; + } + + /** + * Get endAt + * @return endAt + **/ + @Schema(description = "") + public Integer getEndAt() { + return endAt; + } + + public void setEndAt(Integer endAt) { + this.endAt = endAt; + } + + public ListAlertGroupRequest levels(List levels) { + this.levels = levels; + return this; + } + + public ListAlertGroupRequest addLevelsItem(String levelsItem) { + if (this.levels == null) { + this.levels = new ArrayList(); + } + this.levels.add(levelsItem); + return this; + } + + /** + * Get levels + * @return levels + **/ + @Schema(description = "") + public List getLevels() { + return levels; + } + + public void setLevels(List levels) { + this.levels = levels; + } + + public ListAlertGroupRequest namespaces(List namespaces) { + this.namespaces = namespaces; + return this; + } + + public ListAlertGroupRequest addNamespacesItem(String namespacesItem) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + this.namespaces.add(namespacesItem); + return this; + } + + /** + * Get namespaces + * @return namespaces + **/ + @Schema(description = "") + public List getNamespaces() { + return namespaces; + } + + public void setNamespaces(List namespaces) { + this.namespaces = namespaces; + } + + public ListAlertGroupRequest pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListAlertGroupRequest pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListAlertGroupRequest resourceId(String resourceId) { + this.resourceId = resourceId; + return this; + } + + /** + * Get resourceId + * @return resourceId + **/ + @Schema(description = "") + public String getResourceId() { + return resourceId; + } + + public void setResourceId(String resourceId) { + this.resourceId = resourceId; + } + + public ListAlertGroupRequest ruleIds(List ruleIds) { + this.ruleIds = ruleIds; + return this; + } + + public ListAlertGroupRequest addRuleIdsItem(String ruleIdsItem) { + if (this.ruleIds == null) { + this.ruleIds = new ArrayList(); + } + this.ruleIds.add(ruleIdsItem); + return this; + } + + /** + * Get ruleIds + * @return ruleIds + **/ + @Schema(description = "") + public List getRuleIds() { + return ruleIds; + } + + public void setRuleIds(List ruleIds) { + this.ruleIds = ruleIds; + } + + public ListAlertGroupRequest ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get ruleName + * @return ruleName + **/ + @Schema(description = "") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public ListAlertGroupRequest startAt(Integer startAt) { + this.startAt = startAt; + return this; + } + + /** + * Get startAt + * @return startAt + **/ + @Schema(description = "") + public Integer getStartAt() { + return startAt; + } + + public void setStartAt(Integer startAt) { + this.startAt = startAt; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListAlertGroupRequest listAlertGroupRequest = (ListAlertGroupRequest) o; + return Objects.equals(this.alertStates, listAlertGroupRequest.alertStates) && + Objects.equals(this.endAt, listAlertGroupRequest.endAt) && + Objects.equals(this.levels, listAlertGroupRequest.levels) && + Objects.equals(this.namespaces, listAlertGroupRequest.namespaces) && + Objects.equals(this.pageNumber, listAlertGroupRequest.pageNumber) && + Objects.equals(this.pageSize, listAlertGroupRequest.pageSize) && + Objects.equals(this.resourceId, listAlertGroupRequest.resourceId) && + Objects.equals(this.ruleIds, listAlertGroupRequest.ruleIds) && + Objects.equals(this.ruleName, listAlertGroupRequest.ruleName) && + Objects.equals(this.startAt, listAlertGroupRequest.startAt); + } + + @Override + public int hashCode() { + return Objects.hash(alertStates, endAt, levels, namespaces, pageNumber, pageSize, resourceId, ruleIds, ruleName, startAt); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAlertGroupRequest {\n"); + + sb.append(" alertStates: ").append(toIndentedString(alertStates)).append("\n"); + sb.append(" endAt: ").append(toIndentedString(endAt)).append("\n"); + sb.append(" levels: ").append(toIndentedString(levels)).append("\n"); + sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" resourceId: ").append(toIndentedString(resourceId)).append("\n"); + sb.append(" ruleIds: ").append(toIndentedString(ruleIds)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" startAt: ").append(toIndentedString(startAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListAlertGroupResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListAlertGroupResponse.java new file mode 100644 index 00000000..1151c9fc --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListAlertGroupResponse.java @@ -0,0 +1,221 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForListAlertGroupOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListAlertGroupResponse + */ + + + +public class ListAlertGroupResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Asc") + private Boolean asc = null; + + @SerializedName("Data") + private List data = null; + + @SerializedName("OrderBy") + private String orderBy = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("TotalCount") + private Integer totalCount = null; + + public ListAlertGroupResponse asc(Boolean asc) { + this.asc = asc; + return this; + } + + /** + * Get asc + * @return asc + **/ + @Schema(description = "") + public Boolean isAsc() { + return asc; + } + + public void setAsc(Boolean asc) { + this.asc = asc; + } + + public ListAlertGroupResponse data(List data) { + this.data = data; + return this; + } + + public ListAlertGroupResponse addDataItem(DataForListAlertGroupOutput dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ListAlertGroupResponse orderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get orderBy + * @return orderBy + **/ + @Schema(description = "") + public String getOrderBy() { + return orderBy; + } + + public void setOrderBy(String orderBy) { + this.orderBy = orderBy; + } + + public ListAlertGroupResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListAlertGroupResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListAlertGroupResponse totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListAlertGroupResponse listAlertGroupResponse = (ListAlertGroupResponse) o; + return Objects.equals(this.asc, listAlertGroupResponse.asc) && + Objects.equals(this.data, listAlertGroupResponse.data) && + Objects.equals(this.orderBy, listAlertGroupResponse.orderBy) && + Objects.equals(this.pageNumber, listAlertGroupResponse.pageNumber) && + Objects.equals(this.pageSize, listAlertGroupResponse.pageSize) && + Objects.equals(this.totalCount, listAlertGroupResponse.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(asc, data, orderBy, pageNumber, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAlertGroupResponse {\n"); + + sb.append(" asc: ").append(toIndentedString(asc)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListEventRulesRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListEventRulesRequest.java new file mode 100644 index 00000000..14135062 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListEventRulesRequest.java @@ -0,0 +1,250 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListEventRulesRequest + */ + + + +public class ListEventRulesRequest { + @SerializedName("Asc") + private Boolean asc = null; + + @SerializedName("OrderBy") + private String orderBy = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("RuleName") + private String ruleName = null; + + @SerializedName("Source") + private List source = null; + + @SerializedName("Status") + private List status = null; + + public ListEventRulesRequest asc(Boolean asc) { + this.asc = asc; + return this; + } + + /** + * Get asc + * @return asc + **/ + @Schema(description = "") + public Boolean isAsc() { + return asc; + } + + public void setAsc(Boolean asc) { + this.asc = asc; + } + + public ListEventRulesRequest orderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get orderBy + * @return orderBy + **/ + @Schema(description = "") + public String getOrderBy() { + return orderBy; + } + + public void setOrderBy(String orderBy) { + this.orderBy = orderBy; + } + + public ListEventRulesRequest pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListEventRulesRequest pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListEventRulesRequest ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get ruleName + * @return ruleName + **/ + @Schema(description = "") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public ListEventRulesRequest source(List source) { + this.source = source; + return this; + } + + public ListEventRulesRequest addSourceItem(String sourceItem) { + if (this.source == null) { + this.source = new ArrayList(); + } + this.source.add(sourceItem); + return this; + } + + /** + * Get source + * @return source + **/ + @Schema(description = "") + public List getSource() { + return source; + } + + public void setSource(List source) { + this.source = source; + } + + public ListEventRulesRequest status(List status) { + this.status = status; + return this; + } + + public ListEventRulesRequest addStatusItem(String statusItem) { + if (this.status == null) { + this.status = new ArrayList(); + } + this.status.add(statusItem); + return this; + } + + /** + * Get status + * @return status + **/ + @Schema(description = "") + public List getStatus() { + return status; + } + + public void setStatus(List status) { + this.status = status; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListEventRulesRequest listEventRulesRequest = (ListEventRulesRequest) o; + return Objects.equals(this.asc, listEventRulesRequest.asc) && + Objects.equals(this.orderBy, listEventRulesRequest.orderBy) && + Objects.equals(this.pageNumber, listEventRulesRequest.pageNumber) && + Objects.equals(this.pageSize, listEventRulesRequest.pageSize) && + Objects.equals(this.ruleName, listEventRulesRequest.ruleName) && + Objects.equals(this.source, listEventRulesRequest.source) && + Objects.equals(this.status, listEventRulesRequest.status); + } + + @Override + public int hashCode() { + return Objects.hash(asc, orderBy, pageNumber, pageSize, ruleName, source, status); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListEventRulesRequest {\n"); + + sb.append(" asc: ").append(toIndentedString(asc)).append("\n"); + sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListEventRulesResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListEventRulesResponse.java new file mode 100644 index 00000000..62483579 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListEventRulesResponse.java @@ -0,0 +1,221 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForListEventRulesOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListEventRulesResponse + */ + + + +public class ListEventRulesResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Asc") + private Boolean asc = null; + + @SerializedName("Data") + private List data = null; + + @SerializedName("OrderBy") + private String orderBy = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("TotalCount") + private Integer totalCount = null; + + public ListEventRulesResponse asc(Boolean asc) { + this.asc = asc; + return this; + } + + /** + * Get asc + * @return asc + **/ + @Schema(description = "") + public Boolean isAsc() { + return asc; + } + + public void setAsc(Boolean asc) { + this.asc = asc; + } + + public ListEventRulesResponse data(List data) { + this.data = data; + return this; + } + + public ListEventRulesResponse addDataItem(DataForListEventRulesOutput dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ListEventRulesResponse orderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get orderBy + * @return orderBy + **/ + @Schema(description = "") + public String getOrderBy() { + return orderBy; + } + + public void setOrderBy(String orderBy) { + this.orderBy = orderBy; + } + + public ListEventRulesResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListEventRulesResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListEventRulesResponse totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListEventRulesResponse listEventRulesResponse = (ListEventRulesResponse) o; + return Objects.equals(this.asc, listEventRulesResponse.asc) && + Objects.equals(this.data, listEventRulesResponse.data) && + Objects.equals(this.orderBy, listEventRulesResponse.orderBy) && + Objects.equals(this.pageNumber, listEventRulesResponse.pageNumber) && + Objects.equals(this.pageSize, listEventRulesResponse.pageSize) && + Objects.equals(this.totalCount, listEventRulesResponse.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(asc, data, orderBy, pageNumber, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListEventRulesResponse {\n"); + + sb.append(" asc: ").append(toIndentedString(asc)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesByIdsRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesByIdsRequest.java new file mode 100644 index 00000000..9721a2ec --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesByIdsRequest.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListRulesByIdsRequest + */ + + + +public class ListRulesByIdsRequest { + @SerializedName("Ids") + private List ids = null; + + public ListRulesByIdsRequest ids(List ids) { + this.ids = ids; + return this; + } + + public ListRulesByIdsRequest addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + **/ + @Schema(description = "") + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListRulesByIdsRequest listRulesByIdsRequest = (ListRulesByIdsRequest) o; + return Objects.equals(this.ids, listRulesByIdsRequest.ids); + } + + @Override + public int hashCode() { + return Objects.hash(ids); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRulesByIdsRequest {\n"); + + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesByIdsResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesByIdsResponse.java new file mode 100644 index 00000000..fec0cb00 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesByIdsResponse.java @@ -0,0 +1,106 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForListRulesByIdsOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListRulesByIdsResponse + */ + + + +public class ListRulesByIdsResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + public ListRulesByIdsResponse data(List data) { + this.data = data; + return this; + } + + public ListRulesByIdsResponse addDataItem(DataForListRulesByIdsOutput dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListRulesByIdsResponse listRulesByIdsResponse = (ListRulesByIdsResponse) o; + return Objects.equals(this.data, listRulesByIdsResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRulesByIdsResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesRequest.java new file mode 100644 index 00000000..132c7536 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesRequest.java @@ -0,0 +1,266 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListRulesRequest + */ + + + +public class ListRulesRequest { + @SerializedName("AlertState") + private List alertState = null; + + @SerializedName("EnableState") + private List enableState = null; + + @SerializedName("Level") + private List level = null; + + @SerializedName("Namespace") + private List namespace = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("RuleName") + private String ruleName = null; + + public ListRulesRequest alertState(List alertState) { + this.alertState = alertState; + return this; + } + + public ListRulesRequest addAlertStateItem(String alertStateItem) { + if (this.alertState == null) { + this.alertState = new ArrayList(); + } + this.alertState.add(alertStateItem); + return this; + } + + /** + * Get alertState + * @return alertState + **/ + @Schema(description = "") + public List getAlertState() { + return alertState; + } + + public void setAlertState(List alertState) { + this.alertState = alertState; + } + + public ListRulesRequest enableState(List enableState) { + this.enableState = enableState; + return this; + } + + public ListRulesRequest addEnableStateItem(String enableStateItem) { + if (this.enableState == null) { + this.enableState = new ArrayList(); + } + this.enableState.add(enableStateItem); + return this; + } + + /** + * Get enableState + * @return enableState + **/ + @Schema(description = "") + public List getEnableState() { + return enableState; + } + + public void setEnableState(List enableState) { + this.enableState = enableState; + } + + public ListRulesRequest level(List level) { + this.level = level; + return this; + } + + public ListRulesRequest addLevelItem(String levelItem) { + if (this.level == null) { + this.level = new ArrayList(); + } + this.level.add(levelItem); + return this; + } + + /** + * Get level + * @return level + **/ + @Schema(description = "") + public List getLevel() { + return level; + } + + public void setLevel(List level) { + this.level = level; + } + + public ListRulesRequest namespace(List namespace) { + this.namespace = namespace; + return this; + } + + public ListRulesRequest addNamespaceItem(String namespaceItem) { + if (this.namespace == null) { + this.namespace = new ArrayList(); + } + this.namespace.add(namespaceItem); + return this; + } + + /** + * Get namespace + * @return namespace + **/ + @Schema(description = "") + public List getNamespace() { + return namespace; + } + + public void setNamespace(List namespace) { + this.namespace = namespace; + } + + public ListRulesRequest pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListRulesRequest pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListRulesRequest ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get ruleName + * @return ruleName + **/ + @Schema(description = "") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListRulesRequest listRulesRequest = (ListRulesRequest) o; + return Objects.equals(this.alertState, listRulesRequest.alertState) && + Objects.equals(this.enableState, listRulesRequest.enableState) && + Objects.equals(this.level, listRulesRequest.level) && + Objects.equals(this.namespace, listRulesRequest.namespace) && + Objects.equals(this.pageNumber, listRulesRequest.pageNumber) && + Objects.equals(this.pageSize, listRulesRequest.pageSize) && + Objects.equals(this.ruleName, listRulesRequest.ruleName); + } + + @Override + public int hashCode() { + return Objects.hash(alertState, enableState, level, namespace, pageNumber, pageSize, ruleName); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRulesRequest {\n"); + + sb.append(" alertState: ").append(toIndentedString(alertState)).append("\n"); + sb.append(" enableState: ").append(toIndentedString(enableState)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesResponse.java new file mode 100644 index 00000000..924cf076 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListRulesResponse.java @@ -0,0 +1,175 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForListRulesOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListRulesResponse + */ + + + +public class ListRulesResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("TotalCount") + private Integer totalCount = null; + + public ListRulesResponse data(List data) { + this.data = data; + return this; + } + + public ListRulesResponse addDataItem(DataForListRulesOutput dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ListRulesResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListRulesResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListRulesResponse totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListRulesResponse listRulesResponse = (ListRulesResponse) o; + return Objects.equals(this.data, listRulesResponse.data) && + Objects.equals(this.pageNumber, listRulesResponse.pageNumber) && + Objects.equals(this.pageSize, listRulesResponse.pageSize) && + Objects.equals(this.totalCount, listRulesResponse.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(data, pageNumber, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRulesResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListSendAlertRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListSendAlertRequest.java new file mode 100644 index 00000000..d9093f98 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListSendAlertRequest.java @@ -0,0 +1,141 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListSendAlertRequest + */ + + + +public class ListSendAlertRequest { + @SerializedName("AlertGroupId") + private String alertGroupId = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + public ListSendAlertRequest alertGroupId(String alertGroupId) { + this.alertGroupId = alertGroupId; + return this; + } + + /** + * Get alertGroupId + * @return alertGroupId + **/ + @NotNull + @Schema(required = true, description = "") + public String getAlertGroupId() { + return alertGroupId; + } + + public void setAlertGroupId(String alertGroupId) { + this.alertGroupId = alertGroupId; + } + + public ListSendAlertRequest pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListSendAlertRequest pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSendAlertRequest listSendAlertRequest = (ListSendAlertRequest) o; + return Objects.equals(this.alertGroupId, listSendAlertRequest.alertGroupId) && + Objects.equals(this.pageNumber, listSendAlertRequest.pageNumber) && + Objects.equals(this.pageSize, listSendAlertRequest.pageSize); + } + + @Override + public int hashCode() { + return Objects.hash(alertGroupId, pageNumber, pageSize); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSendAlertRequest {\n"); + + sb.append(" alertGroupId: ").append(toIndentedString(alertGroupId)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListSendAlertResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListSendAlertResponse.java new file mode 100644 index 00000000..f995a71e --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListSendAlertResponse.java @@ -0,0 +1,175 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForListSendAlertOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListSendAlertResponse + */ + + + +public class ListSendAlertResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("TotalCount") + private Integer totalCount = null; + + public ListSendAlertResponse data(List data) { + this.data = data; + return this; + } + + public ListSendAlertResponse addDataItem(DataForListSendAlertOutput dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ListSendAlertResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListSendAlertResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListSendAlertResponse totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSendAlertResponse listSendAlertResponse = (ListSendAlertResponse) o; + return Objects.equals(this.data, listSendAlertResponse.data) && + Objects.equals(this.pageNumber, listSendAlertResponse.pageNumber) && + Objects.equals(this.pageSize, listSendAlertResponse.pageSize) && + Objects.equals(this.totalCount, listSendAlertResponse.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(data, pageNumber, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSendAlertResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksByIdsRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksByIdsRequest.java new file mode 100644 index 00000000..2e5eb461 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksByIdsRequest.java @@ -0,0 +1,219 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListWebhooksByIdsRequest + */ + + + +public class ListWebhooksByIdsRequest { + @SerializedName("Asc") + private Boolean asc = null; + + @SerializedName("Ids") + private List ids = null; + + @SerializedName("OrderBy") + private String orderBy = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("TotalCount") + private Integer totalCount = null; + + public ListWebhooksByIdsRequest asc(Boolean asc) { + this.asc = asc; + return this; + } + + /** + * Get asc + * @return asc + **/ + @Schema(description = "") + public Boolean isAsc() { + return asc; + } + + public void setAsc(Boolean asc) { + this.asc = asc; + } + + public ListWebhooksByIdsRequest ids(List ids) { + this.ids = ids; + return this; + } + + public ListWebhooksByIdsRequest addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + **/ + @Schema(description = "") + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + public ListWebhooksByIdsRequest orderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get orderBy + * @return orderBy + **/ + @Schema(description = "") + public String getOrderBy() { + return orderBy; + } + + public void setOrderBy(String orderBy) { + this.orderBy = orderBy; + } + + public ListWebhooksByIdsRequest pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListWebhooksByIdsRequest pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListWebhooksByIdsRequest totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListWebhooksByIdsRequest listWebhooksByIdsRequest = (ListWebhooksByIdsRequest) o; + return Objects.equals(this.asc, listWebhooksByIdsRequest.asc) && + Objects.equals(this.ids, listWebhooksByIdsRequest.ids) && + Objects.equals(this.orderBy, listWebhooksByIdsRequest.orderBy) && + Objects.equals(this.pageNumber, listWebhooksByIdsRequest.pageNumber) && + Objects.equals(this.pageSize, listWebhooksByIdsRequest.pageSize) && + Objects.equals(this.totalCount, listWebhooksByIdsRequest.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(asc, ids, orderBy, pageNumber, pageSize, totalCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWebhooksByIdsRequest {\n"); + + sb.append(" asc: ").append(toIndentedString(asc)).append("\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksByIdsResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksByIdsResponse.java new file mode 100644 index 00000000..d7d27882 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksByIdsResponse.java @@ -0,0 +1,152 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForListWebhooksByIdsOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListWebhooksByIdsResponse + */ + + + +public class ListWebhooksByIdsResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + public ListWebhooksByIdsResponse data(List data) { + this.data = data; + return this; + } + + public ListWebhooksByIdsResponse addDataItem(DataForListWebhooksByIdsOutput dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ListWebhooksByIdsResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListWebhooksByIdsResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListWebhooksByIdsResponse listWebhooksByIdsResponse = (ListWebhooksByIdsResponse) o; + return Objects.equals(this.data, listWebhooksByIdsResponse.data) && + Objects.equals(this.pageNumber, listWebhooksByIdsResponse.pageNumber) && + Objects.equals(this.pageSize, listWebhooksByIdsResponse.pageSize); + } + + @Override + public int hashCode() { + return Objects.hash(data, pageNumber, pageSize); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWebhooksByIdsResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksRequest.java new file mode 100644 index 00000000..9243de40 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksRequest.java @@ -0,0 +1,301 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListWebhooksRequest + */ + + + +public class ListWebhooksRequest { + @SerializedName("Asc") + private Boolean asc = null; + + @SerializedName("EventRuleId") + private String eventRuleId = null; + + @SerializedName("Name") + private String name = null; + + @SerializedName("OrderBy") + private String orderBy = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + @SerializedName("RuleId") + private String ruleId = null; + + @SerializedName("TotalCount") + private Integer totalCount = null; + + @SerializedName("Type") + private String type = null; + + @SerializedName("Url") + private String url = null; + + public ListWebhooksRequest asc(Boolean asc) { + this.asc = asc; + return this; + } + + /** + * Get asc + * @return asc + **/ + @Schema(description = "") + public Boolean isAsc() { + return asc; + } + + public void setAsc(Boolean asc) { + this.asc = asc; + } + + public ListWebhooksRequest eventRuleId(String eventRuleId) { + this.eventRuleId = eventRuleId; + return this; + } + + /** + * Get eventRuleId + * @return eventRuleId + **/ + @Schema(description = "") + public String getEventRuleId() { + return eventRuleId; + } + + public void setEventRuleId(String eventRuleId) { + this.eventRuleId = eventRuleId; + } + + public ListWebhooksRequest name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @Schema(description = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ListWebhooksRequest orderBy(String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Get orderBy + * @return orderBy + **/ + @Schema(description = "") + public String getOrderBy() { + return orderBy; + } + + public void setOrderBy(String orderBy) { + this.orderBy = orderBy; + } + + public ListWebhooksRequest pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListWebhooksRequest pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public ListWebhooksRequest ruleId(String ruleId) { + this.ruleId = ruleId; + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @Schema(description = "") + public String getRuleId() { + return ruleId; + } + + public void setRuleId(String ruleId) { + this.ruleId = ruleId; + } + + public ListWebhooksRequest totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + **/ + @Schema(description = "") + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public ListWebhooksRequest type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @Schema(description = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ListWebhooksRequest url(String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + **/ + @Schema(description = "") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListWebhooksRequest listWebhooksRequest = (ListWebhooksRequest) o; + return Objects.equals(this.asc, listWebhooksRequest.asc) && + Objects.equals(this.eventRuleId, listWebhooksRequest.eventRuleId) && + Objects.equals(this.name, listWebhooksRequest.name) && + Objects.equals(this.orderBy, listWebhooksRequest.orderBy) && + Objects.equals(this.pageNumber, listWebhooksRequest.pageNumber) && + Objects.equals(this.pageSize, listWebhooksRequest.pageSize) && + Objects.equals(this.ruleId, listWebhooksRequest.ruleId) && + Objects.equals(this.totalCount, listWebhooksRequest.totalCount) && + Objects.equals(this.type, listWebhooksRequest.type) && + Objects.equals(this.url, listWebhooksRequest.url); + } + + @Override + public int hashCode() { + return Objects.hash(asc, eventRuleId, name, orderBy, pageNumber, pageSize, ruleId, totalCount, type, url); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWebhooksRequest {\n"); + + sb.append(" asc: ").append(toIndentedString(asc)).append("\n"); + sb.append(" eventRuleId: ").append(toIndentedString(eventRuleId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" orderBy: ").append(toIndentedString(orderBy)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksResponse.java new file mode 100644 index 00000000..7d63549f --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ListWebhooksResponse.java @@ -0,0 +1,152 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForListWebhooksOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ListWebhooksResponse + */ + + + +public class ListWebhooksResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + @SerializedName("PageNumber") + private Integer pageNumber = null; + + @SerializedName("PageSize") + private Integer pageSize = null; + + public ListWebhooksResponse data(List data) { + this.data = data; + return this; + } + + public ListWebhooksResponse addDataItem(DataForListWebhooksOutput dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ListWebhooksResponse pageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + return this; + } + + /** + * Get pageNumber + * @return pageNumber + **/ + @Schema(description = "") + public Integer getPageNumber() { + return pageNumber; + } + + public void setPageNumber(Integer pageNumber) { + this.pageNumber = pageNumber; + } + + public ListWebhooksResponse pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Get pageSize + * @return pageSize + **/ + @Schema(description = "") + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListWebhooksResponse listWebhooksResponse = (ListWebhooksResponse) o; + return Objects.equals(this.data, listWebhooksResponse.data) && + Objects.equals(this.pageNumber, listWebhooksResponse.pageNumber) && + Objects.equals(this.pageSize, listWebhooksResponse.pageSize); + } + + @Override + public int hashCode() { + return Objects.hash(data, pageNumber, pageSize); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWebhooksResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" pageNumber: ").append(toIndentedString(pageNumber)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/MessageQueueForCreateEventRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/MessageQueueForCreateEventRuleInput.java new file mode 100644 index 00000000..9c8d6f4c --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/MessageQueueForCreateEventRuleInput.java @@ -0,0 +1,288 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * MessageQueueForCreateEventRuleInput + */ + + + +public class MessageQueueForCreateEventRuleInput { + @SerializedName("AuthEncrypt") + private List authEncrypt = null; + + @SerializedName("Endpoints") + private String endpoints = null; + + @SerializedName("InstanceId") + private String instanceId = null; + + @SerializedName("Password") + private String password = null; + + @SerializedName("Region") + private String region = null; + + @SerializedName("Topic") + private String topic = null; + + @SerializedName("Type") + private String type = null; + + @SerializedName("Username") + private String username = null; + + @SerializedName("VpcId") + private String vpcId = null; + + public MessageQueueForCreateEventRuleInput authEncrypt(List authEncrypt) { + this.authEncrypt = authEncrypt; + return this; + } + + public MessageQueueForCreateEventRuleInput addAuthEncryptItem(Integer authEncryptItem) { + if (this.authEncrypt == null) { + this.authEncrypt = new ArrayList(); + } + this.authEncrypt.add(authEncryptItem); + return this; + } + + /** + * Get authEncrypt + * @return authEncrypt + **/ + @Schema(description = "") + public List getAuthEncrypt() { + return authEncrypt; + } + + public void setAuthEncrypt(List authEncrypt) { + this.authEncrypt = authEncrypt; + } + + public MessageQueueForCreateEventRuleInput endpoints(String endpoints) { + this.endpoints = endpoints; + return this; + } + + /** + * Get endpoints + * @return endpoints + **/ + @Schema(description = "") + public String getEndpoints() { + return endpoints; + } + + public void setEndpoints(String endpoints) { + this.endpoints = endpoints; + } + + public MessageQueueForCreateEventRuleInput instanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * Get instanceId + * @return instanceId + **/ + @Schema(description = "") + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public MessageQueueForCreateEventRuleInput password(String password) { + this.password = password; + return this; + } + + /** + * Get password + * @return password + **/ + @Schema(description = "") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public MessageQueueForCreateEventRuleInput region(String region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @Schema(description = "") + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public MessageQueueForCreateEventRuleInput topic(String topic) { + this.topic = topic; + return this; + } + + /** + * Get topic + * @return topic + **/ + @Schema(description = "") + public String getTopic() { + return topic; + } + + public void setTopic(String topic) { + this.topic = topic; + } + + public MessageQueueForCreateEventRuleInput type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @Schema(description = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public MessageQueueForCreateEventRuleInput username(String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + **/ + @Schema(description = "") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public MessageQueueForCreateEventRuleInput vpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * Get vpcId + * @return vpcId + **/ + @Schema(description = "") + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessageQueueForCreateEventRuleInput messageQueueForCreateEventRuleInput = (MessageQueueForCreateEventRuleInput) o; + return Objects.equals(this.authEncrypt, messageQueueForCreateEventRuleInput.authEncrypt) && + Objects.equals(this.endpoints, messageQueueForCreateEventRuleInput.endpoints) && + Objects.equals(this.instanceId, messageQueueForCreateEventRuleInput.instanceId) && + Objects.equals(this.password, messageQueueForCreateEventRuleInput.password) && + Objects.equals(this.region, messageQueueForCreateEventRuleInput.region) && + Objects.equals(this.topic, messageQueueForCreateEventRuleInput.topic) && + Objects.equals(this.type, messageQueueForCreateEventRuleInput.type) && + Objects.equals(this.username, messageQueueForCreateEventRuleInput.username) && + Objects.equals(this.vpcId, messageQueueForCreateEventRuleInput.vpcId); + } + + @Override + public int hashCode() { + return Objects.hash(authEncrypt, endpoints, instanceId, password, region, topic, type, username, vpcId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessageQueueForCreateEventRuleInput {\n"); + + sb.append(" authEncrypt: ").append(toIndentedString(authEncrypt)).append("\n"); + sb.append(" endpoints: ").append(toIndentedString(endpoints)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" topic: ").append(toIndentedString(topic)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/MessageQueueForListEventRulesOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/MessageQueueForListEventRulesOutput.java new file mode 100644 index 00000000..eed15144 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/MessageQueueForListEventRulesOutput.java @@ -0,0 +1,186 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * MessageQueueForListEventRulesOutput + */ + + + +public class MessageQueueForListEventRulesOutput { + @SerializedName("InstanceId") + private String instanceId = null; + + @SerializedName("Region") + private String region = null; + + @SerializedName("Topic") + private String topic = null; + + @SerializedName("Type") + private String type = null; + + @SerializedName("VpcId") + private String vpcId = null; + + public MessageQueueForListEventRulesOutput instanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * Get instanceId + * @return instanceId + **/ + @Schema(description = "") + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public MessageQueueForListEventRulesOutput region(String region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @Schema(description = "") + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public MessageQueueForListEventRulesOutput topic(String topic) { + this.topic = topic; + return this; + } + + /** + * Get topic + * @return topic + **/ + @Schema(description = "") + public String getTopic() { + return topic; + } + + public void setTopic(String topic) { + this.topic = topic; + } + + public MessageQueueForListEventRulesOutput type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @Schema(description = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public MessageQueueForListEventRulesOutput vpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * Get vpcId + * @return vpcId + **/ + @Schema(description = "") + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessageQueueForListEventRulesOutput messageQueueForListEventRulesOutput = (MessageQueueForListEventRulesOutput) o; + return Objects.equals(this.instanceId, messageQueueForListEventRulesOutput.instanceId) && + Objects.equals(this.region, messageQueueForListEventRulesOutput.region) && + Objects.equals(this.topic, messageQueueForListEventRulesOutput.topic) && + Objects.equals(this.type, messageQueueForListEventRulesOutput.type) && + Objects.equals(this.vpcId, messageQueueForListEventRulesOutput.vpcId); + } + + @Override + public int hashCode() { + return Objects.hash(instanceId, region, topic, type, vpcId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessageQueueForListEventRulesOutput {\n"); + + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" topic: ").append(toIndentedString(topic)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/MessageQueueForUpdateEventRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/MessageQueueForUpdateEventRuleInput.java new file mode 100644 index 00000000..e35f2ce7 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/MessageQueueForUpdateEventRuleInput.java @@ -0,0 +1,288 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * MessageQueueForUpdateEventRuleInput + */ + + + +public class MessageQueueForUpdateEventRuleInput { + @SerializedName("AuthEncrypt") + private List authEncrypt = null; + + @SerializedName("Endpoints") + private String endpoints = null; + + @SerializedName("InstanceId") + private String instanceId = null; + + @SerializedName("Password") + private String password = null; + + @SerializedName("Region") + private String region = null; + + @SerializedName("Topic") + private String topic = null; + + @SerializedName("Type") + private String type = null; + + @SerializedName("Username") + private String username = null; + + @SerializedName("VpcId") + private String vpcId = null; + + public MessageQueueForUpdateEventRuleInput authEncrypt(List authEncrypt) { + this.authEncrypt = authEncrypt; + return this; + } + + public MessageQueueForUpdateEventRuleInput addAuthEncryptItem(Integer authEncryptItem) { + if (this.authEncrypt == null) { + this.authEncrypt = new ArrayList(); + } + this.authEncrypt.add(authEncryptItem); + return this; + } + + /** + * Get authEncrypt + * @return authEncrypt + **/ + @Schema(description = "") + public List getAuthEncrypt() { + return authEncrypt; + } + + public void setAuthEncrypt(List authEncrypt) { + this.authEncrypt = authEncrypt; + } + + public MessageQueueForUpdateEventRuleInput endpoints(String endpoints) { + this.endpoints = endpoints; + return this; + } + + /** + * Get endpoints + * @return endpoints + **/ + @Schema(description = "") + public String getEndpoints() { + return endpoints; + } + + public void setEndpoints(String endpoints) { + this.endpoints = endpoints; + } + + public MessageQueueForUpdateEventRuleInput instanceId(String instanceId) { + this.instanceId = instanceId; + return this; + } + + /** + * Get instanceId + * @return instanceId + **/ + @Schema(description = "") + public String getInstanceId() { + return instanceId; + } + + public void setInstanceId(String instanceId) { + this.instanceId = instanceId; + } + + public MessageQueueForUpdateEventRuleInput password(String password) { + this.password = password; + return this; + } + + /** + * Get password + * @return password + **/ + @Schema(description = "") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public MessageQueueForUpdateEventRuleInput region(String region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @Schema(description = "") + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public MessageQueueForUpdateEventRuleInput topic(String topic) { + this.topic = topic; + return this; + } + + /** + * Get topic + * @return topic + **/ + @Schema(description = "") + public String getTopic() { + return topic; + } + + public void setTopic(String topic) { + this.topic = topic; + } + + public MessageQueueForUpdateEventRuleInput type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @Schema(description = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public MessageQueueForUpdateEventRuleInput username(String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + **/ + @Schema(description = "") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public MessageQueueForUpdateEventRuleInput vpcId(String vpcId) { + this.vpcId = vpcId; + return this; + } + + /** + * Get vpcId + * @return vpcId + **/ + @Schema(description = "") + public String getVpcId() { + return vpcId; + } + + public void setVpcId(String vpcId) { + this.vpcId = vpcId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessageQueueForUpdateEventRuleInput messageQueueForUpdateEventRuleInput = (MessageQueueForUpdateEventRuleInput) o; + return Objects.equals(this.authEncrypt, messageQueueForUpdateEventRuleInput.authEncrypt) && + Objects.equals(this.endpoints, messageQueueForUpdateEventRuleInput.endpoints) && + Objects.equals(this.instanceId, messageQueueForUpdateEventRuleInput.instanceId) && + Objects.equals(this.password, messageQueueForUpdateEventRuleInput.password) && + Objects.equals(this.region, messageQueueForUpdateEventRuleInput.region) && + Objects.equals(this.topic, messageQueueForUpdateEventRuleInput.topic) && + Objects.equals(this.type, messageQueueForUpdateEventRuleInput.type) && + Objects.equals(this.username, messageQueueForUpdateEventRuleInput.username) && + Objects.equals(this.vpcId, messageQueueForUpdateEventRuleInput.vpcId); + } + + @Override + public int hashCode() { + return Objects.hash(authEncrypt, endpoints, instanceId, password, region, topic, type, username, vpcId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MessageQueueForUpdateEventRuleInput {\n"); + + sb.append(" authEncrypt: ").append(toIndentedString(authEncrypt)).append("\n"); + sb.append(" endpoints: ").append(toIndentedString(endpoints)).append("\n"); + sb.append(" instanceId: ").append(toIndentedString(instanceId)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" topic: ").append(toIndentedString(topic)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" vpcId: ").append(toIndentedString(vpcId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/NoDataForCreateRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/NoDataForCreateRuleInput.java new file mode 100644 index 00000000..5ea93a2f --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/NoDataForCreateRuleInput.java @@ -0,0 +1,117 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * NoDataForCreateRuleInput + */ + + + +public class NoDataForCreateRuleInput { + @SerializedName("Enable") + private Boolean enable = null; + + @SerializedName("EvaluationCount") + private Integer evaluationCount = null; + + public NoDataForCreateRuleInput enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + **/ + @Schema(description = "") + public Boolean isEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public NoDataForCreateRuleInput evaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + return this; + } + + /** + * Get evaluationCount + * @return evaluationCount + **/ + @Schema(description = "") + public Integer getEvaluationCount() { + return evaluationCount; + } + + public void setEvaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NoDataForCreateRuleInput noDataForCreateRuleInput = (NoDataForCreateRuleInput) o; + return Objects.equals(this.enable, noDataForCreateRuleInput.enable) && + Objects.equals(this.evaluationCount, noDataForCreateRuleInput.evaluationCount); + } + + @Override + public int hashCode() { + return Objects.hash(enable, evaluationCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NoDataForCreateRuleInput {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" evaluationCount: ").append(toIndentedString(evaluationCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/NoDataForUpdateRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/NoDataForUpdateRuleInput.java new file mode 100644 index 00000000..a7d16050 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/NoDataForUpdateRuleInput.java @@ -0,0 +1,117 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * NoDataForUpdateRuleInput + */ + + + +public class NoDataForUpdateRuleInput { + @SerializedName("Enable") + private Boolean enable = null; + + @SerializedName("EvaluationCount") + private Integer evaluationCount = null; + + public NoDataForUpdateRuleInput enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + **/ + @Schema(description = "") + public Boolean isEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public NoDataForUpdateRuleInput evaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + return this; + } + + /** + * Get evaluationCount + * @return evaluationCount + **/ + @Schema(description = "") + public Integer getEvaluationCount() { + return evaluationCount; + } + + public void setEvaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NoDataForUpdateRuleInput noDataForUpdateRuleInput = (NoDataForUpdateRuleInput) o; + return Objects.equals(this.enable, noDataForUpdateRuleInput.enable) && + Objects.equals(this.evaluationCount, noDataForUpdateRuleInput.evaluationCount); + } + + @Override + public int hashCode() { + return Objects.hash(enable, evaluationCount); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NoDataForUpdateRuleInput {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" evaluationCount: ").append(toIndentedString(evaluationCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForCreateRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForCreateRuleInput.java new file mode 100644 index 00000000..909b2dfd --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForCreateRuleInput.java @@ -0,0 +1,94 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * RecoveryNotifyForCreateRuleInput + */ + + + +public class RecoveryNotifyForCreateRuleInput { + @SerializedName("Enable") + private Boolean enable = null; + + public RecoveryNotifyForCreateRuleInput enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + **/ + @Schema(description = "") + public Boolean isEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecoveryNotifyForCreateRuleInput recoveryNotifyForCreateRuleInput = (RecoveryNotifyForCreateRuleInput) o; + return Objects.equals(this.enable, recoveryNotifyForCreateRuleInput.enable); + } + + @Override + public int hashCode() { + return Objects.hash(enable); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecoveryNotifyForCreateRuleInput {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForListRulesByIdsOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForListRulesByIdsOutput.java new file mode 100644 index 00000000..9be30e28 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForListRulesByIdsOutput.java @@ -0,0 +1,94 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * RecoveryNotifyForListRulesByIdsOutput + */ + + + +public class RecoveryNotifyForListRulesByIdsOutput { + @SerializedName("Enable") + private Boolean enable = null; + + public RecoveryNotifyForListRulesByIdsOutput enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + **/ + @Schema(description = "") + public Boolean isEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecoveryNotifyForListRulesByIdsOutput recoveryNotifyForListRulesByIdsOutput = (RecoveryNotifyForListRulesByIdsOutput) o; + return Objects.equals(this.enable, recoveryNotifyForListRulesByIdsOutput.enable); + } + + @Override + public int hashCode() { + return Objects.hash(enable); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecoveryNotifyForListRulesByIdsOutput {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForListRulesOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForListRulesOutput.java new file mode 100644 index 00000000..20fa3d92 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForListRulesOutput.java @@ -0,0 +1,94 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * RecoveryNotifyForListRulesOutput + */ + + + +public class RecoveryNotifyForListRulesOutput { + @SerializedName("Enable") + private Boolean enable = null; + + public RecoveryNotifyForListRulesOutput enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + **/ + @Schema(description = "") + public Boolean isEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecoveryNotifyForListRulesOutput recoveryNotifyForListRulesOutput = (RecoveryNotifyForListRulesOutput) o; + return Objects.equals(this.enable, recoveryNotifyForListRulesOutput.enable); + } + + @Override + public int hashCode() { + return Objects.hash(enable); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecoveryNotifyForListRulesOutput {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForUpdateRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForUpdateRuleInput.java new file mode 100644 index 00000000..05dff612 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/RecoveryNotifyForUpdateRuleInput.java @@ -0,0 +1,94 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * RecoveryNotifyForUpdateRuleInput + */ + + + +public class RecoveryNotifyForUpdateRuleInput { + @SerializedName("Enable") + private Boolean enable = null; + + public RecoveryNotifyForUpdateRuleInput enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + **/ + @Schema(description = "") + public Boolean isEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecoveryNotifyForUpdateRuleInput recoveryNotifyForUpdateRuleInput = (RecoveryNotifyForUpdateRuleInput) o; + return Objects.equals(this.enable, recoveryNotifyForUpdateRuleInput.enable); + } + + @Override + public int hashCode() { + return Objects.hash(enable); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RecoveryNotifyForUpdateRuleInput {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ResourceTagForListAlertGroupOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ResourceTagForListAlertGroupOutput.java new file mode 100644 index 00000000..262e882f --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/ResourceTagForListAlertGroupOutput.java @@ -0,0 +1,117 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * ResourceTagForListAlertGroupOutput + */ + + + +public class ResourceTagForListAlertGroupOutput { + @SerializedName("Name") + private String name = null; + + @SerializedName("Value") + private String value = null; + + public ResourceTagForListAlertGroupOutput name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @Schema(description = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ResourceTagForListAlertGroupOutput value(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @Schema(description = "") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceTagForListAlertGroupOutput resourceTagForListAlertGroupOutput = (ResourceTagForListAlertGroupOutput) o; + return Objects.equals(this.name, resourceTagForListAlertGroupOutput.name) && + Objects.equals(this.value, resourceTagForListAlertGroupOutput.value); + } + + @Override + public int hashCode() { + return Objects.hash(name, value); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceTagForListAlertGroupOutput {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/SendResultForListSendAlertOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/SendResultForListSendAlertOutput.java new file mode 100644 index 00000000..5ce2562b --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/SendResultForListSendAlertOutput.java @@ -0,0 +1,186 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * SendResultForListSendAlertOutput + */ + + + +public class SendResultForListSendAlertOutput { + @SerializedName("AlertMethod") + private String alertMethod = null; + + @SerializedName("AlertMethodVal") + private String alertMethodVal = null; + + @SerializedName("ErrMsg") + private String errMsg = null; + + @SerializedName("Receiver") + private String receiver = null; + + @SerializedName("Success") + private Boolean success = null; + + public SendResultForListSendAlertOutput alertMethod(String alertMethod) { + this.alertMethod = alertMethod; + return this; + } + + /** + * Get alertMethod + * @return alertMethod + **/ + @Schema(description = "") + public String getAlertMethod() { + return alertMethod; + } + + public void setAlertMethod(String alertMethod) { + this.alertMethod = alertMethod; + } + + public SendResultForListSendAlertOutput alertMethodVal(String alertMethodVal) { + this.alertMethodVal = alertMethodVal; + return this; + } + + /** + * Get alertMethodVal + * @return alertMethodVal + **/ + @Schema(description = "") + public String getAlertMethodVal() { + return alertMethodVal; + } + + public void setAlertMethodVal(String alertMethodVal) { + this.alertMethodVal = alertMethodVal; + } + + public SendResultForListSendAlertOutput errMsg(String errMsg) { + this.errMsg = errMsg; + return this; + } + + /** + * Get errMsg + * @return errMsg + **/ + @Schema(description = "") + public String getErrMsg() { + return errMsg; + } + + public void setErrMsg(String errMsg) { + this.errMsg = errMsg; + } + + public SendResultForListSendAlertOutput receiver(String receiver) { + this.receiver = receiver; + return this; + } + + /** + * Get receiver + * @return receiver + **/ + @Schema(description = "") + public String getReceiver() { + return receiver; + } + + public void setReceiver(String receiver) { + this.receiver = receiver; + } + + public SendResultForListSendAlertOutput success(Boolean success) { + this.success = success; + return this; + } + + /** + * Get success + * @return success + **/ + @Schema(description = "") + public Boolean isSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SendResultForListSendAlertOutput sendResultForListSendAlertOutput = (SendResultForListSendAlertOutput) o; + return Objects.equals(this.alertMethod, sendResultForListSendAlertOutput.alertMethod) && + Objects.equals(this.alertMethodVal, sendResultForListSendAlertOutput.alertMethodVal) && + Objects.equals(this.errMsg, sendResultForListSendAlertOutput.errMsg) && + Objects.equals(this.receiver, sendResultForListSendAlertOutput.receiver) && + Objects.equals(this.success, sendResultForListSendAlertOutput.success); + } + + @Override + public int hashCode() { + return Objects.hash(alertMethod, alertMethodVal, errMsg, receiver, success); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SendResultForListSendAlertOutput {\n"); + + sb.append(" alertMethod: ").append(toIndentedString(alertMethod)).append("\n"); + sb.append(" alertMethodVal: ").append(toIndentedString(alertMethodVal)).append("\n"); + sb.append(" errMsg: ").append(toIndentedString(errMsg)).append("\n"); + sb.append(" receiver: ").append(toIndentedString(receiver)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/SetStateOfRulesByIdsRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/SetStateOfRulesByIdsRequest.java new file mode 100644 index 00000000..c88363d4 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/SetStateOfRulesByIdsRequest.java @@ -0,0 +1,171 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * SetStateOfRulesByIdsRequest + */ + + + +public class SetStateOfRulesByIdsRequest { + @SerializedName("Ids") + private List ids = null; + + /** + * Gets or Sets state + */ + @JsonAdapter(StateEnum.Adapter.class) + public enum StateEnum { + @SerializedName("disable") + DISABLE("disable"), + @SerializedName("enable") + ENABLE("enable"); + + private String value; + + StateEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + public static StateEnum fromValue(String input) { + for (StateEnum b : StateEnum.values()) { + if (b.value.equals(input)) { + return b; + } + } + return null; + } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StateEnum enumeration) throws IOException { + jsonWriter.value(String.valueOf(enumeration.getValue())); + } + + @Override + public StateEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextString(); + return StateEnum.fromValue((String)(value)); + } + } + } @SerializedName("State") + private StateEnum state = null; + + public SetStateOfRulesByIdsRequest ids(List ids) { + this.ids = ids; + return this; + } + + public SetStateOfRulesByIdsRequest addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + **/ + @Schema(description = "") + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + public SetStateOfRulesByIdsRequest state(StateEnum state) { + this.state = state; + return this; + } + + /** + * Get state + * @return state + **/ + @NotNull + @Schema(required = true, description = "") + public StateEnum getState() { + return state; + } + + public void setState(StateEnum state) { + this.state = state; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetStateOfRulesByIdsRequest setStateOfRulesByIdsRequest = (SetStateOfRulesByIdsRequest) o; + return Objects.equals(this.ids, setStateOfRulesByIdsRequest.ids) && + Objects.equals(this.state, setStateOfRulesByIdsRequest.state); + } + + @Override + public int hashCode() { + return Objects.hash(ids, state); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetStateOfRulesByIdsRequest {\n"); + + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/SetStateOfRulesByIdsResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/SetStateOfRulesByIdsResponse.java new file mode 100644 index 00000000..ff1ba36f --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/SetStateOfRulesByIdsResponse.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * SetStateOfRulesByIdsResponse + */ + + + +public class SetStateOfRulesByIdsResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + public SetStateOfRulesByIdsResponse data(List data) { + this.data = data; + return this; + } + + public SetStateOfRulesByIdsResponse addDataItem(String dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetStateOfRulesByIdsResponse setStateOfRulesByIdsResponse = (SetStateOfRulesByIdsResponse) o; + return Objects.equals(this.data, setStateOfRulesByIdsResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetStateOfRulesByIdsResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/TLSTargetForCreateEventRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/TLSTargetForCreateEventRuleInput.java new file mode 100644 index 00000000..378226c6 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/TLSTargetForCreateEventRuleInput.java @@ -0,0 +1,186 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * TLSTargetForCreateEventRuleInput + */ + + + +public class TLSTargetForCreateEventRuleInput { + @SerializedName("ProjectId") + private String projectId = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("RegionNameCN") + private String regionNameCN = null; + + @SerializedName("RegionNameEN") + private String regionNameEN = null; + + @SerializedName("TopicId") + private String topicId = null; + + public TLSTargetForCreateEventRuleInput projectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * Get projectId + * @return projectId + **/ + @Schema(description = "") + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public TLSTargetForCreateEventRuleInput projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * @return projectName + **/ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public TLSTargetForCreateEventRuleInput regionNameCN(String regionNameCN) { + this.regionNameCN = regionNameCN; + return this; + } + + /** + * Get regionNameCN + * @return regionNameCN + **/ + @Schema(description = "") + public String getRegionNameCN() { + return regionNameCN; + } + + public void setRegionNameCN(String regionNameCN) { + this.regionNameCN = regionNameCN; + } + + public TLSTargetForCreateEventRuleInput regionNameEN(String regionNameEN) { + this.regionNameEN = regionNameEN; + return this; + } + + /** + * Get regionNameEN + * @return regionNameEN + **/ + @Schema(description = "") + public String getRegionNameEN() { + return regionNameEN; + } + + public void setRegionNameEN(String regionNameEN) { + this.regionNameEN = regionNameEN; + } + + public TLSTargetForCreateEventRuleInput topicId(String topicId) { + this.topicId = topicId; + return this; + } + + /** + * Get topicId + * @return topicId + **/ + @Schema(description = "") + public String getTopicId() { + return topicId; + } + + public void setTopicId(String topicId) { + this.topicId = topicId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TLSTargetForCreateEventRuleInput tlSTargetForCreateEventRuleInput = (TLSTargetForCreateEventRuleInput) o; + return Objects.equals(this.projectId, tlSTargetForCreateEventRuleInput.projectId) && + Objects.equals(this.projectName, tlSTargetForCreateEventRuleInput.projectName) && + Objects.equals(this.regionNameCN, tlSTargetForCreateEventRuleInput.regionNameCN) && + Objects.equals(this.regionNameEN, tlSTargetForCreateEventRuleInput.regionNameEN) && + Objects.equals(this.topicId, tlSTargetForCreateEventRuleInput.topicId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, projectName, regionNameCN, regionNameEN, topicId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TLSTargetForCreateEventRuleInput {\n"); + + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" regionNameCN: ").append(toIndentedString(regionNameCN)).append("\n"); + sb.append(" regionNameEN: ").append(toIndentedString(regionNameEN)).append("\n"); + sb.append(" topicId: ").append(toIndentedString(topicId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/TLSTargetForListEventRulesOutput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/TLSTargetForListEventRulesOutput.java new file mode 100644 index 00000000..6aa92045 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/TLSTargetForListEventRulesOutput.java @@ -0,0 +1,186 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * TLSTargetForListEventRulesOutput + */ + + + +public class TLSTargetForListEventRulesOutput { + @SerializedName("ProjectId") + private String projectId = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("RegionNameCN") + private String regionNameCN = null; + + @SerializedName("RegionNameEN") + private String regionNameEN = null; + + @SerializedName("TopicId") + private String topicId = null; + + public TLSTargetForListEventRulesOutput projectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * Get projectId + * @return projectId + **/ + @Schema(description = "") + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public TLSTargetForListEventRulesOutput projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * @return projectName + **/ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public TLSTargetForListEventRulesOutput regionNameCN(String regionNameCN) { + this.regionNameCN = regionNameCN; + return this; + } + + /** + * Get regionNameCN + * @return regionNameCN + **/ + @Schema(description = "") + public String getRegionNameCN() { + return regionNameCN; + } + + public void setRegionNameCN(String regionNameCN) { + this.regionNameCN = regionNameCN; + } + + public TLSTargetForListEventRulesOutput regionNameEN(String regionNameEN) { + this.regionNameEN = regionNameEN; + return this; + } + + /** + * Get regionNameEN + * @return regionNameEN + **/ + @Schema(description = "") + public String getRegionNameEN() { + return regionNameEN; + } + + public void setRegionNameEN(String regionNameEN) { + this.regionNameEN = regionNameEN; + } + + public TLSTargetForListEventRulesOutput topicId(String topicId) { + this.topicId = topicId; + return this; + } + + /** + * Get topicId + * @return topicId + **/ + @Schema(description = "") + public String getTopicId() { + return topicId; + } + + public void setTopicId(String topicId) { + this.topicId = topicId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TLSTargetForListEventRulesOutput tlSTargetForListEventRulesOutput = (TLSTargetForListEventRulesOutput) o; + return Objects.equals(this.projectId, tlSTargetForListEventRulesOutput.projectId) && + Objects.equals(this.projectName, tlSTargetForListEventRulesOutput.projectName) && + Objects.equals(this.regionNameCN, tlSTargetForListEventRulesOutput.regionNameCN) && + Objects.equals(this.regionNameEN, tlSTargetForListEventRulesOutput.regionNameEN) && + Objects.equals(this.topicId, tlSTargetForListEventRulesOutput.topicId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, projectName, regionNameCN, regionNameEN, topicId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TLSTargetForListEventRulesOutput {\n"); + + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" regionNameCN: ").append(toIndentedString(regionNameCN)).append("\n"); + sb.append(" regionNameEN: ").append(toIndentedString(regionNameEN)).append("\n"); + sb.append(" topicId: ").append(toIndentedString(topicId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/TLSTargetForUpdateEventRuleInput.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/TLSTargetForUpdateEventRuleInput.java new file mode 100644 index 00000000..6867ccba --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/TLSTargetForUpdateEventRuleInput.java @@ -0,0 +1,186 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * TLSTargetForUpdateEventRuleInput + */ + + + +public class TLSTargetForUpdateEventRuleInput { + @SerializedName("ProjectId") + private String projectId = null; + + @SerializedName("ProjectName") + private String projectName = null; + + @SerializedName("RegionNameCN") + private String regionNameCN = null; + + @SerializedName("RegionNameEN") + private String regionNameEN = null; + + @SerializedName("TopicId") + private String topicId = null; + + public TLSTargetForUpdateEventRuleInput projectId(String projectId) { + this.projectId = projectId; + return this; + } + + /** + * Get projectId + * @return projectId + **/ + @Schema(description = "") + public String getProjectId() { + return projectId; + } + + public void setProjectId(String projectId) { + this.projectId = projectId; + } + + public TLSTargetForUpdateEventRuleInput projectName(String projectName) { + this.projectName = projectName; + return this; + } + + /** + * Get projectName + * @return projectName + **/ + @Schema(description = "") + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName; + } + + public TLSTargetForUpdateEventRuleInput regionNameCN(String regionNameCN) { + this.regionNameCN = regionNameCN; + return this; + } + + /** + * Get regionNameCN + * @return regionNameCN + **/ + @Schema(description = "") + public String getRegionNameCN() { + return regionNameCN; + } + + public void setRegionNameCN(String regionNameCN) { + this.regionNameCN = regionNameCN; + } + + public TLSTargetForUpdateEventRuleInput regionNameEN(String regionNameEN) { + this.regionNameEN = regionNameEN; + return this; + } + + /** + * Get regionNameEN + * @return regionNameEN + **/ + @Schema(description = "") + public String getRegionNameEN() { + return regionNameEN; + } + + public void setRegionNameEN(String regionNameEN) { + this.regionNameEN = regionNameEN; + } + + public TLSTargetForUpdateEventRuleInput topicId(String topicId) { + this.topicId = topicId; + return this; + } + + /** + * Get topicId + * @return topicId + **/ + @Schema(description = "") + public String getTopicId() { + return topicId; + } + + public void setTopicId(String topicId) { + this.topicId = topicId; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TLSTargetForUpdateEventRuleInput tlSTargetForUpdateEventRuleInput = (TLSTargetForUpdateEventRuleInput) o; + return Objects.equals(this.projectId, tlSTargetForUpdateEventRuleInput.projectId) && + Objects.equals(this.projectName, tlSTargetForUpdateEventRuleInput.projectName) && + Objects.equals(this.regionNameCN, tlSTargetForUpdateEventRuleInput.regionNameCN) && + Objects.equals(this.regionNameEN, tlSTargetForUpdateEventRuleInput.regionNameEN) && + Objects.equals(this.topicId, tlSTargetForUpdateEventRuleInput.topicId); + } + + @Override + public int hashCode() { + return Objects.hash(projectId, projectName, regionNameCN, regionNameEN, topicId); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TLSTargetForUpdateEventRuleInput {\n"); + + sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n"); + sb.append(" projectName: ").append(toIndentedString(projectName)).append("\n"); + sb.append(" regionNameCN: ").append(toIndentedString(regionNameCN)).append("\n"); + sb.append(" regionNameEN: ").append(toIndentedString(regionNameEN)).append("\n"); + sb.append(" topicId: ").append(toIndentedString(topicId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateEventRuleRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateEventRuleRequest.java new file mode 100644 index 00000000..394cfd22 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateEventRuleRequest.java @@ -0,0 +1,594 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.EffectiveTimeForUpdateEventRuleInput; +import com.volcengine.volcobserve.model.MessageQueueForUpdateEventRuleInput; +import com.volcengine.volcobserve.model.TLSTargetForUpdateEventRuleInput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * UpdateEventRuleRequest + */ + + + +public class UpdateEventRuleRequest { + @SerializedName("ContactGroupIds") + private List contactGroupIds = null; + + @SerializedName("ContactMethods") + private List contactMethods = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("EffectiveTime") + private EffectiveTimeForUpdateEventRuleInput effectiveTime = null; + + @SerializedName("Endpoint") + private String endpoint = null; + + /** + * Gets or Sets eventBusName + */ + @JsonAdapter(EventBusNameEnum.Adapter.class) + public enum EventBusNameEnum { + @SerializedName("default") + DEFAULT("default"); + + private String value; + + EventBusNameEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + public static EventBusNameEnum fromValue(String input) { + for (EventBusNameEnum b : EventBusNameEnum.values()) { + if (b.value.equals(input)) { + return b; + } + } + return null; + } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EventBusNameEnum enumeration) throws IOException { + jsonWriter.value(String.valueOf(enumeration.getValue())); + } + + @Override + public EventBusNameEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextString(); + return EventBusNameEnum.fromValue((String)(value)); + } + } + } @SerializedName("EventBusName") + private EventBusNameEnum eventBusName = null; + + @SerializedName("EventSource") + private String eventSource = null; + + @SerializedName("EventType") + private List eventType = null; + + @SerializedName("FilterPattern") + private Map filterPattern = null; + + @SerializedName("Level") + private String level = null; + + @SerializedName("MessageQueue") + private List messageQueue = null; + + @SerializedName("RuleId") + private String ruleId = null; + + @SerializedName("RuleName") + private String ruleName = null; + + /** + * Gets or Sets status + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + @SerializedName("enable") + ENABLE("enable"), + @SerializedName("disable") + DISABLE("disable"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + public static StatusEnum fromValue(String input) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(input)) { + return b; + } + } + return null; + } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(String.valueOf(enumeration.getValue())); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextString(); + return StatusEnum.fromValue((String)(value)); + } + } + } @SerializedName("Status") + private StatusEnum status = null; + + @SerializedName("TLSTarget") + private List tlSTarget = null; + + @SerializedName("WebhookIds") + private List webhookIds = null; + + public UpdateEventRuleRequest contactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + return this; + } + + public UpdateEventRuleRequest addContactGroupIdsItem(String contactGroupIdsItem) { + if (this.contactGroupIds == null) { + this.contactGroupIds = new ArrayList(); + } + this.contactGroupIds.add(contactGroupIdsItem); + return this; + } + + /** + * Get contactGroupIds + * @return contactGroupIds + **/ + @Schema(description = "") + public List getContactGroupIds() { + return contactGroupIds; + } + + public void setContactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + } + + public UpdateEventRuleRequest contactMethods(List contactMethods) { + this.contactMethods = contactMethods; + return this; + } + + public UpdateEventRuleRequest addContactMethodsItem(String contactMethodsItem) { + if (this.contactMethods == null) { + this.contactMethods = new ArrayList(); + } + this.contactMethods.add(contactMethodsItem); + return this; + } + + /** + * Get contactMethods + * @return contactMethods + **/ + @Schema(description = "") + public List getContactMethods() { + return contactMethods; + } + + public void setContactMethods(List contactMethods) { + this.contactMethods = contactMethods; + } + + public UpdateEventRuleRequest description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public UpdateEventRuleRequest effectiveTime(EffectiveTimeForUpdateEventRuleInput effectiveTime) { + this.effectiveTime = effectiveTime; + return this; + } + + /** + * Get effectiveTime + * @return effectiveTime + **/ + @Valid + @Schema(description = "") + public EffectiveTimeForUpdateEventRuleInput getEffectiveTime() { + return effectiveTime; + } + + public void setEffectiveTime(EffectiveTimeForUpdateEventRuleInput effectiveTime) { + this.effectiveTime = effectiveTime; + } + + public UpdateEventRuleRequest endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * Get endpoint + * @return endpoint + **/ + @Schema(description = "") + public String getEndpoint() { + return endpoint; + } + + public void setEndpoint(String endpoint) { + this.endpoint = endpoint; + } + + public UpdateEventRuleRequest eventBusName(EventBusNameEnum eventBusName) { + this.eventBusName = eventBusName; + return this; + } + + /** + * Get eventBusName + * @return eventBusName + **/ + @NotNull + @Size(min=2,max=127) @Schema(required = true, description = "") + public EventBusNameEnum getEventBusName() { + return eventBusName; + } + + public void setEventBusName(EventBusNameEnum eventBusName) { + this.eventBusName = eventBusName; + } + + public UpdateEventRuleRequest eventSource(String eventSource) { + this.eventSource = eventSource; + return this; + } + + /** + * Get eventSource + * @return eventSource + **/ + @NotNull + @Schema(required = true, description = "") + public String getEventSource() { + return eventSource; + } + + public void setEventSource(String eventSource) { + this.eventSource = eventSource; + } + + public UpdateEventRuleRequest eventType(List eventType) { + this.eventType = eventType; + return this; + } + + public UpdateEventRuleRequest addEventTypeItem(String eventTypeItem) { + if (this.eventType == null) { + this.eventType = new ArrayList(); + } + this.eventType.add(eventTypeItem); + return this; + } + + /** + * Get eventType + * @return eventType + **/ + @Schema(description = "") + public List getEventType() { + return eventType; + } + + public void setEventType(List eventType) { + this.eventType = eventType; + } + + public UpdateEventRuleRequest filterPattern(Map filterPattern) { + this.filterPattern = filterPattern; + return this; + } + + public UpdateEventRuleRequest putFilterPatternItem(String key, Object filterPatternItem) { + if (this.filterPattern == null) { + this.filterPattern = new HashMap(); + } + this.filterPattern.put(key, filterPatternItem); + return this; + } + + /** + * Get filterPattern + * @return filterPattern + **/ + @Schema(description = "") + public Map getFilterPattern() { + return filterPattern; + } + + public void setFilterPattern(Map filterPattern) { + this.filterPattern = filterPattern; + } + + public UpdateEventRuleRequest level(String level) { + this.level = level; + return this; + } + + /** + * Get level + * @return level + **/ + @NotNull + @Schema(required = true, description = "") + public String getLevel() { + return level; + } + + public void setLevel(String level) { + this.level = level; + } + + public UpdateEventRuleRequest messageQueue(List messageQueue) { + this.messageQueue = messageQueue; + return this; + } + + public UpdateEventRuleRequest addMessageQueueItem(MessageQueueForUpdateEventRuleInput messageQueueItem) { + if (this.messageQueue == null) { + this.messageQueue = new ArrayList(); + } + this.messageQueue.add(messageQueueItem); + return this; + } + + /** + * Get messageQueue + * @return messageQueue + **/ + @Valid + @Schema(description = "") + public List getMessageQueue() { + return messageQueue; + } + + public void setMessageQueue(List messageQueue) { + this.messageQueue = messageQueue; + } + + public UpdateEventRuleRequest ruleId(String ruleId) { + this.ruleId = ruleId; + return this; + } + + /** + * Get ruleId + * @return ruleId + **/ + @NotNull + @Schema(required = true, description = "") + public String getRuleId() { + return ruleId; + } + + public void setRuleId(String ruleId) { + this.ruleId = ruleId; + } + + public UpdateEventRuleRequest ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get ruleName + * @return ruleName + **/ + @NotNull + @Size(min=2,max=127) @Schema(required = true, description = "") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public UpdateEventRuleRequest status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @Schema(description = "") + public StatusEnum getStatus() { + return status; + } + + public void setStatus(StatusEnum status) { + this.status = status; + } + + public UpdateEventRuleRequest tlSTarget(List tlSTarget) { + this.tlSTarget = tlSTarget; + return this; + } + + public UpdateEventRuleRequest addTlSTargetItem(TLSTargetForUpdateEventRuleInput tlSTargetItem) { + if (this.tlSTarget == null) { + this.tlSTarget = new ArrayList(); + } + this.tlSTarget.add(tlSTargetItem); + return this; + } + + /** + * Get tlSTarget + * @return tlSTarget + **/ + @Valid + @Schema(description = "") + public List getTlSTarget() { + return tlSTarget; + } + + public void setTlSTarget(List tlSTarget) { + this.tlSTarget = tlSTarget; + } + + public UpdateEventRuleRequest webhookIds(List webhookIds) { + this.webhookIds = webhookIds; + return this; + } + + public UpdateEventRuleRequest addWebhookIdsItem(String webhookIdsItem) { + if (this.webhookIds == null) { + this.webhookIds = new ArrayList(); + } + this.webhookIds.add(webhookIdsItem); + return this; + } + + /** + * Get webhookIds + * @return webhookIds + **/ + @Schema(description = "") + public List getWebhookIds() { + return webhookIds; + } + + public void setWebhookIds(List webhookIds) { + this.webhookIds = webhookIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateEventRuleRequest updateEventRuleRequest = (UpdateEventRuleRequest) o; + return Objects.equals(this.contactGroupIds, updateEventRuleRequest.contactGroupIds) && + Objects.equals(this.contactMethods, updateEventRuleRequest.contactMethods) && + Objects.equals(this.description, updateEventRuleRequest.description) && + Objects.equals(this.effectiveTime, updateEventRuleRequest.effectiveTime) && + Objects.equals(this.endpoint, updateEventRuleRequest.endpoint) && + Objects.equals(this.eventBusName, updateEventRuleRequest.eventBusName) && + Objects.equals(this.eventSource, updateEventRuleRequest.eventSource) && + Objects.equals(this.eventType, updateEventRuleRequest.eventType) && + Objects.equals(this.filterPattern, updateEventRuleRequest.filterPattern) && + Objects.equals(this.level, updateEventRuleRequest.level) && + Objects.equals(this.messageQueue, updateEventRuleRequest.messageQueue) && + Objects.equals(this.ruleId, updateEventRuleRequest.ruleId) && + Objects.equals(this.ruleName, updateEventRuleRequest.ruleName) && + Objects.equals(this.status, updateEventRuleRequest.status) && + Objects.equals(this.tlSTarget, updateEventRuleRequest.tlSTarget) && + Objects.equals(this.webhookIds, updateEventRuleRequest.webhookIds); + } + + @Override + public int hashCode() { + return Objects.hash(contactGroupIds, contactMethods, description, effectiveTime, endpoint, eventBusName, eventSource, eventType, filterPattern, level, messageQueue, ruleId, ruleName, status, tlSTarget, webhookIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateEventRuleRequest {\n"); + + sb.append(" contactGroupIds: ").append(toIndentedString(contactGroupIds)).append("\n"); + sb.append(" contactMethods: ").append(toIndentedString(contactMethods)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" effectiveTime: ").append(toIndentedString(effectiveTime)).append("\n"); + sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); + sb.append(" eventBusName: ").append(toIndentedString(eventBusName)).append("\n"); + sb.append(" eventSource: ").append(toIndentedString(eventSource)).append("\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" filterPattern: ").append(toIndentedString(filterPattern)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" messageQueue: ").append(toIndentedString(messageQueue)).append("\n"); + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tlSTarget: ").append(toIndentedString(tlSTarget)).append("\n"); + sb.append(" webhookIds: ").append(toIndentedString(webhookIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateEventRuleResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateEventRuleResponse.java new file mode 100644 index 00000000..0ac3426b --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateEventRuleResponse.java @@ -0,0 +1,96 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.DataForUpdateEventRuleOutput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * UpdateEventRuleResponse + */ + + + +public class UpdateEventRuleResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private DataForUpdateEventRuleOutput data = null; + + public UpdateEventRuleResponse data(DataForUpdateEventRuleOutput data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @Valid + @Schema(description = "") + public DataForUpdateEventRuleOutput getData() { + return data; + } + + public void setData(DataForUpdateEventRuleOutput data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateEventRuleResponse updateEventRuleResponse = (UpdateEventRuleResponse) o; + return Objects.equals(this.data, updateEventRuleResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateEventRuleResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateRuleRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateRuleRequest.java new file mode 100644 index 00000000..1510d8ea --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateRuleRequest.java @@ -0,0 +1,758 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.volcengine.volcobserve.model.ConditionForUpdateRuleInput; +import com.volcengine.volcobserve.model.NoDataForUpdateRuleInput; +import com.volcengine.volcobserve.model.RecoveryNotifyForUpdateRuleInput; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * UpdateRuleRequest + */ + + + +public class UpdateRuleRequest { + /** + * Gets or Sets alertMethods + */ + @JsonAdapter(AlertMethodsEnum.Adapter.class) + public enum AlertMethodsEnum { + @SerializedName("Email") + EMAIL("Email"), + @SerializedName("Phone") + PHONE("Phone"), + @SerializedName("SMS") + SMS("SMS"), + @SerializedName("Webhook") + WEBHOOK("Webhook"); + + private String value; + + AlertMethodsEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + public static AlertMethodsEnum fromValue(String input) { + for (AlertMethodsEnum b : AlertMethodsEnum.values()) { + if (b.value.equals(input)) { + return b; + } + } + return null; + } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AlertMethodsEnum enumeration) throws IOException { + jsonWriter.value(String.valueOf(enumeration.getValue())); + } + + @Override + public AlertMethodsEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextString(); + return AlertMethodsEnum.fromValue((String)(value)); + } + } + } @SerializedName("AlertMethods") + private List alertMethods = null; + + @SerializedName("ConditionOperator") + private String conditionOperator = null; + + @SerializedName("Conditions") + private List conditions = null; + + @SerializedName("ContactGroupIds") + private List contactGroupIds = null; + + @SerializedName("Description") + private String description = null; + + @SerializedName("EffectEndAt") + private String effectEndAt = null; + + @SerializedName("EffectStartAt") + private String effectStartAt = null; + + @SerializedName("EnableState") + private String enableState = null; + + @SerializedName("EvaluationCount") + private Integer evaluationCount = null; + + @SerializedName("Id") + private String id = null; + + @SerializedName("Level") + private String level = null; + + @SerializedName("MultipleConditions") + private Boolean multipleConditions = null; + + @SerializedName("Namespace") + private String namespace = null; + + @SerializedName("NoData") + private NoDataForUpdateRuleInput noData = null; + + @SerializedName("OriginalDimensions") + private Map> originalDimensions = null; + + @SerializedName("RecoveryNotify") + private RecoveryNotifyForUpdateRuleInput recoveryNotify = null; + + @SerializedName("Regions") + private List regions = null; + + @SerializedName("RuleName") + private String ruleName = null; + + /** + * Gets or Sets ruleType + */ + @JsonAdapter(RuleTypeEnum.Adapter.class) + public enum RuleTypeEnum { + @SerializedName("static") + STATIC("static"); + + private String value; + + RuleTypeEnum(String value) { + this.value = value; + } + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + public static RuleTypeEnum fromValue(String input) { + for (RuleTypeEnum b : RuleTypeEnum.values()) { + if (b.value.equals(input)) { + return b; + } + } + return null; + } + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RuleTypeEnum enumeration) throws IOException { + jsonWriter.value(String.valueOf(enumeration.getValue())); + } + + @Override + public RuleTypeEnum read(final JsonReader jsonReader) throws IOException { + Object value = jsonReader.nextString(); + return RuleTypeEnum.fromValue((String)(value)); + } + } + } @SerializedName("RuleType") + private RuleTypeEnum ruleType = null; + + @SerializedName("SilenceTime") + private Integer silenceTime = null; + + @SerializedName("SubNamespace") + private String subNamespace = null; + + @SerializedName("Webhook") + private String webhook = null; + + @SerializedName("WebhookIds") + private List webhookIds = null; + + public UpdateRuleRequest alertMethods(List alertMethods) { + this.alertMethods = alertMethods; + return this; + } + + public UpdateRuleRequest addAlertMethodsItem(AlertMethodsEnum alertMethodsItem) { + if (this.alertMethods == null) { + this.alertMethods = new ArrayList(); + } + this.alertMethods.add(alertMethodsItem); + return this; + } + + /** + * Get alertMethods + * @return alertMethods + **/ + @Schema(description = "") + public List getAlertMethods() { + return alertMethods; + } + + public void setAlertMethods(List alertMethods) { + this.alertMethods = alertMethods; + } + + public UpdateRuleRequest conditionOperator(String conditionOperator) { + this.conditionOperator = conditionOperator; + return this; + } + + /** + * Get conditionOperator + * @return conditionOperator + **/ + @Schema(description = "") + public String getConditionOperator() { + return conditionOperator; + } + + public void setConditionOperator(String conditionOperator) { + this.conditionOperator = conditionOperator; + } + + public UpdateRuleRequest conditions(List conditions) { + this.conditions = conditions; + return this; + } + + public UpdateRuleRequest addConditionsItem(ConditionForUpdateRuleInput conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * Get conditions + * @return conditions + **/ + @Valid + @Schema(description = "") + public List getConditions() { + return conditions; + } + + public void setConditions(List conditions) { + this.conditions = conditions; + } + + public UpdateRuleRequest contactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + return this; + } + + public UpdateRuleRequest addContactGroupIdsItem(String contactGroupIdsItem) { + if (this.contactGroupIds == null) { + this.contactGroupIds = new ArrayList(); + } + this.contactGroupIds.add(contactGroupIdsItem); + return this; + } + + /** + * Get contactGroupIds + * @return contactGroupIds + **/ + @Schema(description = "") + public List getContactGroupIds() { + return contactGroupIds; + } + + public void setContactGroupIds(List contactGroupIds) { + this.contactGroupIds = contactGroupIds; + } + + public UpdateRuleRequest description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @Schema(description = "") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public UpdateRuleRequest effectEndAt(String effectEndAt) { + this.effectEndAt = effectEndAt; + return this; + } + + /** + * Get effectEndAt + * @return effectEndAt + **/ + @NotNull + @Schema(required = true, description = "") + public String getEffectEndAt() { + return effectEndAt; + } + + public void setEffectEndAt(String effectEndAt) { + this.effectEndAt = effectEndAt; + } + + public UpdateRuleRequest effectStartAt(String effectStartAt) { + this.effectStartAt = effectStartAt; + return this; + } + + /** + * Get effectStartAt + * @return effectStartAt + **/ + @NotNull + @Schema(required = true, description = "") + public String getEffectStartAt() { + return effectStartAt; + } + + public void setEffectStartAt(String effectStartAt) { + this.effectStartAt = effectStartAt; + } + + public UpdateRuleRequest enableState(String enableState) { + this.enableState = enableState; + return this; + } + + /** + * Get enableState + * @return enableState + **/ + @NotNull + @Schema(required = true, description = "") + public String getEnableState() { + return enableState; + } + + public void setEnableState(String enableState) { + this.enableState = enableState; + } + + public UpdateRuleRequest evaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + return this; + } + + /** + * Get evaluationCount + * @return evaluationCount + **/ + @NotNull + @Schema(required = true, description = "") + public Integer getEvaluationCount() { + return evaluationCount; + } + + public void setEvaluationCount(Integer evaluationCount) { + this.evaluationCount = evaluationCount; + } + + public UpdateRuleRequest id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @NotNull + @Schema(required = true, description = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public UpdateRuleRequest level(String level) { + this.level = level; + return this; + } + + /** + * Get level + * @return level + **/ + @NotNull + @Schema(required = true, description = "") + public String getLevel() { + return level; + } + + public void setLevel(String level) { + this.level = level; + } + + public UpdateRuleRequest multipleConditions(Boolean multipleConditions) { + this.multipleConditions = multipleConditions; + return this; + } + + /** + * Get multipleConditions + * @return multipleConditions + **/ + @Schema(description = "") + public Boolean isMultipleConditions() { + return multipleConditions; + } + + public void setMultipleConditions(Boolean multipleConditions) { + this.multipleConditions = multipleConditions; + } + + public UpdateRuleRequest namespace(String namespace) { + this.namespace = namespace; + return this; + } + + /** + * Get namespace + * @return namespace + **/ + @NotNull + @Schema(required = true, description = "") + public String getNamespace() { + return namespace; + } + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public UpdateRuleRequest noData(NoDataForUpdateRuleInput noData) { + this.noData = noData; + return this; + } + + /** + * Get noData + * @return noData + **/ + @Valid + @Schema(description = "") + public NoDataForUpdateRuleInput getNoData() { + return noData; + } + + public void setNoData(NoDataForUpdateRuleInput noData) { + this.noData = noData; + } + + public UpdateRuleRequest originalDimensions(Map> originalDimensions) { + this.originalDimensions = originalDimensions; + return this; + } + + public UpdateRuleRequest putOriginalDimensionsItem(String key, List originalDimensionsItem) { + if (this.originalDimensions == null) { + this.originalDimensions = new HashMap>(); + } + this.originalDimensions.put(key, originalDimensionsItem); + return this; + } + + /** + * Get originalDimensions + * @return originalDimensions + **/ + @Valid + @Schema(description = "") + public Map> getOriginalDimensions() { + return originalDimensions; + } + + public void setOriginalDimensions(Map> originalDimensions) { + this.originalDimensions = originalDimensions; + } + + public UpdateRuleRequest recoveryNotify(RecoveryNotifyForUpdateRuleInput recoveryNotify) { + this.recoveryNotify = recoveryNotify; + return this; + } + + /** + * Get recoveryNotify + * @return recoveryNotify + **/ + @Valid + @Schema(description = "") + public RecoveryNotifyForUpdateRuleInput getRecoveryNotify() { + return recoveryNotify; + } + + public void setRecoveryNotify(RecoveryNotifyForUpdateRuleInput recoveryNotify) { + this.recoveryNotify = recoveryNotify; + } + + public UpdateRuleRequest regions(List regions) { + this.regions = regions; + return this; + } + + public UpdateRuleRequest addRegionsItem(String regionsItem) { + if (this.regions == null) { + this.regions = new ArrayList(); + } + this.regions.add(regionsItem); + return this; + } + + /** + * Get regions + * @return regions + **/ + @Schema(description = "") + public List getRegions() { + return regions; + } + + public void setRegions(List regions) { + this.regions = regions; + } + + public UpdateRuleRequest ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get ruleName + * @return ruleName + **/ + @NotNull + @Schema(required = true, description = "") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public UpdateRuleRequest ruleType(RuleTypeEnum ruleType) { + this.ruleType = ruleType; + return this; + } + + /** + * Get ruleType + * @return ruleType + **/ + @NotNull + @Schema(required = true, description = "") + public RuleTypeEnum getRuleType() { + return ruleType; + } + + public void setRuleType(RuleTypeEnum ruleType) { + this.ruleType = ruleType; + } + + public UpdateRuleRequest silenceTime(Integer silenceTime) { + this.silenceTime = silenceTime; + return this; + } + + /** + * Get silenceTime + * @return silenceTime + **/ + @NotNull + @Schema(required = true, description = "") + public Integer getSilenceTime() { + return silenceTime; + } + + public void setSilenceTime(Integer silenceTime) { + this.silenceTime = silenceTime; + } + + public UpdateRuleRequest subNamespace(String subNamespace) { + this.subNamespace = subNamespace; + return this; + } + + /** + * Get subNamespace + * @return subNamespace + **/ + @NotNull + @Schema(required = true, description = "") + public String getSubNamespace() { + return subNamespace; + } + + public void setSubNamespace(String subNamespace) { + this.subNamespace = subNamespace; + } + + public UpdateRuleRequest webhook(String webhook) { + this.webhook = webhook; + return this; + } + + /** + * Get webhook + * @return webhook + **/ + @Schema(description = "") + public String getWebhook() { + return webhook; + } + + public void setWebhook(String webhook) { + this.webhook = webhook; + } + + public UpdateRuleRequest webhookIds(List webhookIds) { + this.webhookIds = webhookIds; + return this; + } + + public UpdateRuleRequest addWebhookIdsItem(String webhookIdsItem) { + if (this.webhookIds == null) { + this.webhookIds = new ArrayList(); + } + this.webhookIds.add(webhookIdsItem); + return this; + } + + /** + * Get webhookIds + * @return webhookIds + **/ + @Schema(description = "") + public List getWebhookIds() { + return webhookIds; + } + + public void setWebhookIds(List webhookIds) { + this.webhookIds = webhookIds; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateRuleRequest updateRuleRequest = (UpdateRuleRequest) o; + return Objects.equals(this.alertMethods, updateRuleRequest.alertMethods) && + Objects.equals(this.conditionOperator, updateRuleRequest.conditionOperator) && + Objects.equals(this.conditions, updateRuleRequest.conditions) && + Objects.equals(this.contactGroupIds, updateRuleRequest.contactGroupIds) && + Objects.equals(this.description, updateRuleRequest.description) && + Objects.equals(this.effectEndAt, updateRuleRequest.effectEndAt) && + Objects.equals(this.effectStartAt, updateRuleRequest.effectStartAt) && + Objects.equals(this.enableState, updateRuleRequest.enableState) && + Objects.equals(this.evaluationCount, updateRuleRequest.evaluationCount) && + Objects.equals(this.id, updateRuleRequest.id) && + Objects.equals(this.level, updateRuleRequest.level) && + Objects.equals(this.multipleConditions, updateRuleRequest.multipleConditions) && + Objects.equals(this.namespace, updateRuleRequest.namespace) && + Objects.equals(this.noData, updateRuleRequest.noData) && + Objects.equals(this.originalDimensions, updateRuleRequest.originalDimensions) && + Objects.equals(this.recoveryNotify, updateRuleRequest.recoveryNotify) && + Objects.equals(this.regions, updateRuleRequest.regions) && + Objects.equals(this.ruleName, updateRuleRequest.ruleName) && + Objects.equals(this.ruleType, updateRuleRequest.ruleType) && + Objects.equals(this.silenceTime, updateRuleRequest.silenceTime) && + Objects.equals(this.subNamespace, updateRuleRequest.subNamespace) && + Objects.equals(this.webhook, updateRuleRequest.webhook) && + Objects.equals(this.webhookIds, updateRuleRequest.webhookIds); + } + + @Override + public int hashCode() { + return Objects.hash(alertMethods, conditionOperator, conditions, contactGroupIds, description, effectEndAt, effectStartAt, enableState, evaluationCount, id, level, multipleConditions, namespace, noData, originalDimensions, recoveryNotify, regions, ruleName, ruleType, silenceTime, subNamespace, webhook, webhookIds); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateRuleRequest {\n"); + + sb.append(" alertMethods: ").append(toIndentedString(alertMethods)).append("\n"); + sb.append(" conditionOperator: ").append(toIndentedString(conditionOperator)).append("\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" contactGroupIds: ").append(toIndentedString(contactGroupIds)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" effectEndAt: ").append(toIndentedString(effectEndAt)).append("\n"); + sb.append(" effectStartAt: ").append(toIndentedString(effectStartAt)).append("\n"); + sb.append(" enableState: ").append(toIndentedString(enableState)).append("\n"); + sb.append(" evaluationCount: ").append(toIndentedString(evaluationCount)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" multipleConditions: ").append(toIndentedString(multipleConditions)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" noData: ").append(toIndentedString(noData)).append("\n"); + sb.append(" originalDimensions: ").append(toIndentedString(originalDimensions)).append("\n"); + sb.append(" recoveryNotify: ").append(toIndentedString(recoveryNotify)).append("\n"); + sb.append(" regions: ").append(toIndentedString(regions)).append("\n"); + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" ruleType: ").append(toIndentedString(ruleType)).append("\n"); + sb.append(" silenceTime: ").append(toIndentedString(silenceTime)).append("\n"); + sb.append(" subNamespace: ").append(toIndentedString(subNamespace)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append(" webhookIds: ").append(toIndentedString(webhookIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateRuleResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateRuleResponse.java new file mode 100644 index 00000000..152be3f5 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateRuleResponse.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * UpdateRuleResponse + */ + + + +public class UpdateRuleResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + public UpdateRuleResponse data(List data) { + this.data = data; + return this; + } + + public UpdateRuleResponse addDataItem(String dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateRuleResponse updateRuleResponse = (UpdateRuleResponse) o; + return Objects.equals(this.data, updateRuleResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateRuleResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateWebhookRequest.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateWebhookRequest.java new file mode 100644 index 00000000..10a2f7ad --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateWebhookRequest.java @@ -0,0 +1,167 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * UpdateWebhookRequest + */ + + + +public class UpdateWebhookRequest { + @SerializedName("Id") + private String id = null; + + @SerializedName("Name") + private String name = null; + + @SerializedName("Type") + private String type = null; + + @SerializedName("Url") + private String url = null; + + public UpdateWebhookRequest id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @NotNull + @Schema(required = true, description = "") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public UpdateWebhookRequest name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @NotNull + @Schema(required = true, description = "") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateWebhookRequest type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @NotNull + @Schema(required = true, description = "") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public UpdateWebhookRequest url(String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + **/ + @NotNull + @Schema(required = true, description = "") + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateWebhookRequest updateWebhookRequest = (UpdateWebhookRequest) o; + return Objects.equals(this.id, updateWebhookRequest.id) && + Objects.equals(this.name, updateWebhookRequest.name) && + Objects.equals(this.type, updateWebhookRequest.type) && + Objects.equals(this.url, updateWebhookRequest.url); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, type, url); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWebhookRequest {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} diff --git a/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateWebhookResponse.java b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateWebhookResponse.java new file mode 100644 index 00000000..dde31c08 --- /dev/null +++ b/volcengine-java-sdk-volcobserve/src/main/java/com/volcengine/volcobserve/model/UpdateWebhookResponse.java @@ -0,0 +1,104 @@ +/* + * volc_observe + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * OpenAPI spec version: common-version + * + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +package com.volcengine.volcobserve.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.v3.oas.annotations.media.Schema; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.validation.constraints.*; +import javax.validation.Valid; +/** + * UpdateWebhookResponse + */ + + + +public class UpdateWebhookResponse extends com.volcengine.model.AbstractResponse { + @SerializedName("Data") + private List data = null; + + public UpdateWebhookResponse data(List data) { + this.data = data; + return this; + } + + public UpdateWebhookResponse addDataItem(String dataItem) { + if (this.data == null) { + this.data = new ArrayList(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @Schema(description = "") + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateWebhookResponse updateWebhookResponse = (UpdateWebhookResponse) o; + return Objects.equals(this.data, updateWebhookResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWebhookResponse {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +}