diff --git a/src/main/java/com/getconvoy/api/EventsApi.java b/src/main/java/com/getconvoy/api/EventsApi.java index afd8395..316f26f 100644 --- a/src/main/java/com/getconvoy/api/EventsApi.java +++ b/src/main/java/com/getconvoy/api/EventsApi.java @@ -20,7 +20,8 @@ import com.getconvoy.models.BatchReplayEvents200Response; import com.getconvoy.models.CountAffectedEvents200Response; -import com.getconvoy.models.CreateBroadcastEvent201Response; +import com.getconvoy.models.CreateEndpointEvent201Response; +import com.getconvoy.models.GetEndpointEvent200Response; import com.getconvoy.models.GetEventsPaged200Response; import com.getconvoy.models.GetProjects400Response; import com.getconvoy.models.ModelsBroadcastEvent; @@ -578,52 +579,52 @@ private HttpRequest.Builder countAffectedEventsRequestBuilder(@jakarta.annotatio /** * Create a broadcast event - * This endpoint creates a event that is broadcast to every endpoint whose subscription matches the given event type. + * This endpoint creates a event that is broadcast to every endpoint whose subscription matches the given event type. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsBroadcastEvent Broadcast Event Details (required) - * @return CreateBroadcastEvent201Response + * @return CreateEndpointEvent201Response * @throws ApiException if fails to make API call */ - public CreateBroadcastEvent201Response createBroadcastEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsBroadcastEvent modelsBroadcastEvent) throws ApiException { + public CreateEndpointEvent201Response createBroadcastEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsBroadcastEvent modelsBroadcastEvent) throws ApiException { return createBroadcastEvent(projectID, modelsBroadcastEvent, null); } /** * Create a broadcast event - * This endpoint creates a event that is broadcast to every endpoint whose subscription matches the given event type. + * This endpoint creates a event that is broadcast to every endpoint whose subscription matches the given event type. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsBroadcastEvent Broadcast Event Details (required) * @param headers Optional headers to include in the request - * @return CreateBroadcastEvent201Response + * @return CreateEndpointEvent201Response * @throws ApiException if fails to make API call */ - public CreateBroadcastEvent201Response createBroadcastEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsBroadcastEvent modelsBroadcastEvent, Map headers) throws ApiException { - ApiResponse localVarResponse = createBroadcastEventWithHttpInfo(projectID, modelsBroadcastEvent, headers); + public CreateEndpointEvent201Response createBroadcastEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsBroadcastEvent modelsBroadcastEvent, Map headers) throws ApiException { + ApiResponse localVarResponse = createBroadcastEventWithHttpInfo(projectID, modelsBroadcastEvent, headers); return localVarResponse.getData(); } /** * Create a broadcast event - * This endpoint creates a event that is broadcast to every endpoint whose subscription matches the given event type. + * This endpoint creates a event that is broadcast to every endpoint whose subscription matches the given event type. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsBroadcastEvent Broadcast Event Details (required) - * @return ApiResponse<CreateBroadcastEvent201Response> + * @return ApiResponse<CreateEndpointEvent201Response> * @throws ApiException if fails to make API call */ - public ApiResponse createBroadcastEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsBroadcastEvent modelsBroadcastEvent) throws ApiException { + public ApiResponse createBroadcastEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsBroadcastEvent modelsBroadcastEvent) throws ApiException { return createBroadcastEventWithHttpInfo(projectID, modelsBroadcastEvent, null); } /** * Create a broadcast event - * This endpoint creates a event that is broadcast to every endpoint whose subscription matches the given event type. + * This endpoint creates a event that is broadcast to every endpoint whose subscription matches the given event type. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsBroadcastEvent Broadcast Event Details (required) * @param headers Optional headers to include in the request - * @return ApiResponse<CreateBroadcastEvent201Response> + * @return ApiResponse<CreateEndpointEvent201Response> * @throws ApiException if fails to make API call */ - public ApiResponse createBroadcastEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsBroadcastEvent modelsBroadcastEvent, Map headers) throws ApiException { + public ApiResponse createBroadcastEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsBroadcastEvent modelsBroadcastEvent, Map headers) throws ApiException { HttpRequest.Builder localVarRequestBuilder = createBroadcastEventRequestBuilder(projectID, modelsBroadcastEvent, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -639,7 +640,7 @@ public ApiResponse createBroadcastEventWithHttp } localVarResponseBody = ApiClient.getResponseBody(localVarResponse); if (localVarResponseBody == null) { - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), null @@ -649,10 +650,10 @@ public ApiResponse createBroadcastEventWithHttp String responseBody = new String(localVarResponseBody.readAllBytes()); - CreateBroadcastEvent201Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); + CreateEndpointEvent201Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue @@ -710,52 +711,52 @@ private HttpRequest.Builder createBroadcastEventRequestBuilder(@jakarta.annotati /** * Dynamic Events - * This endpoint does not require creating endpoint and subscriptions ahead of time. Instead, you supply the endpoint and the payload, and Convoy delivers the events + * This endpoint creates a dynamic event without creating the endpoint and subscription ahead of time. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsDynamicEvent Event Details (required) - * @return GetProjects400Response + * @return CreateEndpointEvent201Response * @throws ApiException if fails to make API call */ - public GetProjects400Response createDynamicEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsDynamicEvent modelsDynamicEvent) throws ApiException { + public CreateEndpointEvent201Response createDynamicEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsDynamicEvent modelsDynamicEvent) throws ApiException { return createDynamicEvent(projectID, modelsDynamicEvent, null); } /** * Dynamic Events - * This endpoint does not require creating endpoint and subscriptions ahead of time. Instead, you supply the endpoint and the payload, and Convoy delivers the events + * This endpoint creates a dynamic event without creating the endpoint and subscription ahead of time. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsDynamicEvent Event Details (required) * @param headers Optional headers to include in the request - * @return GetProjects400Response + * @return CreateEndpointEvent201Response * @throws ApiException if fails to make API call */ - public GetProjects400Response createDynamicEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsDynamicEvent modelsDynamicEvent, Map headers) throws ApiException { - ApiResponse localVarResponse = createDynamicEventWithHttpInfo(projectID, modelsDynamicEvent, headers); + public CreateEndpointEvent201Response createDynamicEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsDynamicEvent modelsDynamicEvent, Map headers) throws ApiException { + ApiResponse localVarResponse = createDynamicEventWithHttpInfo(projectID, modelsDynamicEvent, headers); return localVarResponse.getData(); } /** * Dynamic Events - * This endpoint does not require creating endpoint and subscriptions ahead of time. Instead, you supply the endpoint and the payload, and Convoy delivers the events + * This endpoint creates a dynamic event without creating the endpoint and subscription ahead of time. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsDynamicEvent Event Details (required) - * @return ApiResponse<GetProjects400Response> + * @return ApiResponse<CreateEndpointEvent201Response> * @throws ApiException if fails to make API call */ - public ApiResponse createDynamicEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsDynamicEvent modelsDynamicEvent) throws ApiException { + public ApiResponse createDynamicEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsDynamicEvent modelsDynamicEvent) throws ApiException { return createDynamicEventWithHttpInfo(projectID, modelsDynamicEvent, null); } /** * Dynamic Events - * This endpoint does not require creating endpoint and subscriptions ahead of time. Instead, you supply the endpoint and the payload, and Convoy delivers the events + * This endpoint creates a dynamic event without creating the endpoint and subscription ahead of time. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsDynamicEvent Event Details (required) * @param headers Optional headers to include in the request - * @return ApiResponse<GetProjects400Response> + * @return ApiResponse<CreateEndpointEvent201Response> * @throws ApiException if fails to make API call */ - public ApiResponse createDynamicEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsDynamicEvent modelsDynamicEvent, Map headers) throws ApiException { + public ApiResponse createDynamicEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsDynamicEvent modelsDynamicEvent, Map headers) throws ApiException { HttpRequest.Builder localVarRequestBuilder = createDynamicEventRequestBuilder(projectID, modelsDynamicEvent, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -771,7 +772,7 @@ public ApiResponse createDynamicEventWithHttpInfo(@jakar } localVarResponseBody = ApiClient.getResponseBody(localVarResponse); if (localVarResponseBody == null) { - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), null @@ -781,10 +782,10 @@ public ApiResponse createDynamicEventWithHttpInfo(@jakar String responseBody = new String(localVarResponseBody.readAllBytes()); - GetProjects400Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); + CreateEndpointEvent201Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue @@ -842,52 +843,52 @@ private HttpRequest.Builder createDynamicEventRequestBuilder(@jakarta.annotation /** * Create an event - * This endpoint creates an endpoint event + * This endpoint creates an endpoint event The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsCreateEvent Event Details (required) - * @return GetProjects400Response + * @return CreateEndpointEvent201Response * @throws ApiException if fails to make API call */ - public GetProjects400Response createEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsCreateEvent modelsCreateEvent) throws ApiException { + public CreateEndpointEvent201Response createEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsCreateEvent modelsCreateEvent) throws ApiException { return createEndpointEvent(projectID, modelsCreateEvent, null); } /** * Create an event - * This endpoint creates an endpoint event + * This endpoint creates an endpoint event The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsCreateEvent Event Details (required) * @param headers Optional headers to include in the request - * @return GetProjects400Response + * @return CreateEndpointEvent201Response * @throws ApiException if fails to make API call */ - public GetProjects400Response createEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsCreateEvent modelsCreateEvent, Map headers) throws ApiException { - ApiResponse localVarResponse = createEndpointEventWithHttpInfo(projectID, modelsCreateEvent, headers); + public CreateEndpointEvent201Response createEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsCreateEvent modelsCreateEvent, Map headers) throws ApiException { + ApiResponse localVarResponse = createEndpointEventWithHttpInfo(projectID, modelsCreateEvent, headers); return localVarResponse.getData(); } /** * Create an event - * This endpoint creates an endpoint event + * This endpoint creates an endpoint event The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsCreateEvent Event Details (required) - * @return ApiResponse<GetProjects400Response> + * @return ApiResponse<CreateEndpointEvent201Response> * @throws ApiException if fails to make API call */ - public ApiResponse createEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsCreateEvent modelsCreateEvent) throws ApiException { + public ApiResponse createEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsCreateEvent modelsCreateEvent) throws ApiException { return createEndpointEventWithHttpInfo(projectID, modelsCreateEvent, null); } /** * Create an event - * This endpoint creates an endpoint event + * This endpoint creates an endpoint event The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsCreateEvent Event Details (required) * @param headers Optional headers to include in the request - * @return ApiResponse<GetProjects400Response> + * @return ApiResponse<CreateEndpointEvent201Response> * @throws ApiException if fails to make API call */ - public ApiResponse createEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsCreateEvent modelsCreateEvent, Map headers) throws ApiException { + public ApiResponse createEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsCreateEvent modelsCreateEvent, Map headers) throws ApiException { HttpRequest.Builder localVarRequestBuilder = createEndpointEventRequestBuilder(projectID, modelsCreateEvent, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -903,7 +904,7 @@ public ApiResponse createEndpointEventWithHttpInfo(@jaka } localVarResponseBody = ApiClient.getResponseBody(localVarResponse); if (localVarResponseBody == null) { - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), null @@ -913,10 +914,10 @@ public ApiResponse createEndpointEventWithHttpInfo(@jaka String responseBody = new String(localVarResponseBody.readAllBytes()); - GetProjects400Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); + CreateEndpointEvent201Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue @@ -974,52 +975,52 @@ private HttpRequest.Builder createEndpointEventRequestBuilder(@jakarta.annotatio /** * Fan out an event - * This endpoint uses the owner_id to fan out an event to multiple endpoints. + * This endpoint uses the owner_id to fan out an event to multiple endpoints. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsFanoutEvent Event Details (required) - * @return GetProjects400Response + * @return CreateEndpointEvent201Response * @throws ApiException if fails to make API call */ - public GetProjects400Response createEndpointFanoutEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsFanoutEvent modelsFanoutEvent) throws ApiException { + public CreateEndpointEvent201Response createEndpointFanoutEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsFanoutEvent modelsFanoutEvent) throws ApiException { return createEndpointFanoutEvent(projectID, modelsFanoutEvent, null); } /** * Fan out an event - * This endpoint uses the owner_id to fan out an event to multiple endpoints. + * This endpoint uses the owner_id to fan out an event to multiple endpoints. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsFanoutEvent Event Details (required) * @param headers Optional headers to include in the request - * @return GetProjects400Response + * @return CreateEndpointEvent201Response * @throws ApiException if fails to make API call */ - public GetProjects400Response createEndpointFanoutEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsFanoutEvent modelsFanoutEvent, Map headers) throws ApiException { - ApiResponse localVarResponse = createEndpointFanoutEventWithHttpInfo(projectID, modelsFanoutEvent, headers); + public CreateEndpointEvent201Response createEndpointFanoutEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsFanoutEvent modelsFanoutEvent, Map headers) throws ApiException { + ApiResponse localVarResponse = createEndpointFanoutEventWithHttpInfo(projectID, modelsFanoutEvent, headers); return localVarResponse.getData(); } /** * Fan out an event - * This endpoint uses the owner_id to fan out an event to multiple endpoints. + * This endpoint uses the owner_id to fan out an event to multiple endpoints. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsFanoutEvent Event Details (required) - * @return ApiResponse<GetProjects400Response> + * @return ApiResponse<CreateEndpointEvent201Response> * @throws ApiException if fails to make API call */ - public ApiResponse createEndpointFanoutEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsFanoutEvent modelsFanoutEvent) throws ApiException { + public ApiResponse createEndpointFanoutEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsFanoutEvent modelsFanoutEvent) throws ApiException { return createEndpointFanoutEventWithHttpInfo(projectID, modelsFanoutEvent, null); } /** * Fan out an event - * This endpoint uses the owner_id to fan out an event to multiple endpoints. + * This endpoint uses the owner_id to fan out an event to multiple endpoints. The 201 body includes uid (the event id). Use GET /events/{eventID} or GET /eventdeliveries?eventId= to follow the send. * @param projectID Project ID (required) * @param modelsFanoutEvent Event Details (required) * @param headers Optional headers to include in the request - * @return ApiResponse<GetProjects400Response> + * @return ApiResponse<CreateEndpointEvent201Response> * @throws ApiException if fails to make API call */ - public ApiResponse createEndpointFanoutEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsFanoutEvent modelsFanoutEvent, Map headers) throws ApiException { + public ApiResponse createEndpointFanoutEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull ModelsFanoutEvent modelsFanoutEvent, Map headers) throws ApiException { HttpRequest.Builder localVarRequestBuilder = createEndpointFanoutEventRequestBuilder(projectID, modelsFanoutEvent, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1035,7 +1036,7 @@ public ApiResponse createEndpointFanoutEventWithHttpInfo } localVarResponseBody = ApiClient.getResponseBody(localVarResponse); if (localVarResponseBody == null) { - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), null @@ -1045,10 +1046,10 @@ public ApiResponse createEndpointFanoutEventWithHttpInfo String responseBody = new String(localVarResponseBody.readAllBytes()); - GetProjects400Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); + CreateEndpointEvent201Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue @@ -1109,10 +1110,10 @@ private HttpRequest.Builder createEndpointFanoutEventRequestBuilder(@jakarta.ann * This endpoint retrieves an event * @param projectID Project ID (required) * @param eventID event id (required) - * @return CreateBroadcastEvent201Response + * @return GetEndpointEvent200Response * @throws ApiException if fails to make API call */ - public CreateBroadcastEvent201Response getEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID) throws ApiException { + public GetEndpointEvent200Response getEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID) throws ApiException { return getEndpointEvent(projectID, eventID, null); } @@ -1122,11 +1123,11 @@ public CreateBroadcastEvent201Response getEndpointEvent(@jakarta.annotation.Nonn * @param projectID Project ID (required) * @param eventID event id (required) * @param headers Optional headers to include in the request - * @return CreateBroadcastEvent201Response + * @return GetEndpointEvent200Response * @throws ApiException if fails to make API call */ - public CreateBroadcastEvent201Response getEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID, Map headers) throws ApiException { - ApiResponse localVarResponse = getEndpointEventWithHttpInfo(projectID, eventID, headers); + public GetEndpointEvent200Response getEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID, Map headers) throws ApiException { + ApiResponse localVarResponse = getEndpointEventWithHttpInfo(projectID, eventID, headers); return localVarResponse.getData(); } @@ -1135,10 +1136,10 @@ public CreateBroadcastEvent201Response getEndpointEvent(@jakarta.annotation.Nonn * This endpoint retrieves an event * @param projectID Project ID (required) * @param eventID event id (required) - * @return ApiResponse<CreateBroadcastEvent201Response> + * @return ApiResponse<GetEndpointEvent200Response> * @throws ApiException if fails to make API call */ - public ApiResponse getEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID) throws ApiException { + public ApiResponse getEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID) throws ApiException { return getEndpointEventWithHttpInfo(projectID, eventID, null); } @@ -1148,10 +1149,10 @@ public ApiResponse getEndpointEventWithHttpInfo * @param projectID Project ID (required) * @param eventID event id (required) * @param headers Optional headers to include in the request - * @return ApiResponse<CreateBroadcastEvent201Response> + * @return ApiResponse<GetEndpointEvent200Response> * @throws ApiException if fails to make API call */ - public ApiResponse getEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID, Map headers) throws ApiException { + public ApiResponse getEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID, Map headers) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getEndpointEventRequestBuilder(projectID, eventID, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1167,7 +1168,7 @@ public ApiResponse getEndpointEventWithHttpInfo } localVarResponseBody = ApiClient.getResponseBody(localVarResponse); if (localVarResponseBody == null) { - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), null @@ -1177,10 +1178,10 @@ public ApiResponse getEndpointEventWithHttpInfo String responseBody = new String(localVarResponseBody.readAllBytes()); - CreateBroadcastEvent201Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); + GetEndpointEvent200Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue @@ -1439,10 +1440,10 @@ private HttpRequest.Builder getEventsPagedRequestBuilder(@jakarta.annotation.Non * This endpoint replays an event afresh assuming it is a new event. * @param projectID Project ID (required) * @param eventID event id (required) - * @return CreateBroadcastEvent201Response + * @return GetEndpointEvent200Response * @throws ApiException if fails to make API call */ - public CreateBroadcastEvent201Response replayEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID) throws ApiException { + public GetEndpointEvent200Response replayEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID) throws ApiException { return replayEndpointEvent(projectID, eventID, null); } @@ -1452,11 +1453,11 @@ public CreateBroadcastEvent201Response replayEndpointEvent(@jakarta.annotation.N * @param projectID Project ID (required) * @param eventID event id (required) * @param headers Optional headers to include in the request - * @return CreateBroadcastEvent201Response + * @return GetEndpointEvent200Response * @throws ApiException if fails to make API call */ - public CreateBroadcastEvent201Response replayEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID, Map headers) throws ApiException { - ApiResponse localVarResponse = replayEndpointEventWithHttpInfo(projectID, eventID, headers); + public GetEndpointEvent200Response replayEndpointEvent(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID, Map headers) throws ApiException { + ApiResponse localVarResponse = replayEndpointEventWithHttpInfo(projectID, eventID, headers); return localVarResponse.getData(); } @@ -1465,10 +1466,10 @@ public CreateBroadcastEvent201Response replayEndpointEvent(@jakarta.annotation.N * This endpoint replays an event afresh assuming it is a new event. * @param projectID Project ID (required) * @param eventID event id (required) - * @return ApiResponse<CreateBroadcastEvent201Response> + * @return ApiResponse<GetEndpointEvent200Response> * @throws ApiException if fails to make API call */ - public ApiResponse replayEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID) throws ApiException { + public ApiResponse replayEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID) throws ApiException { return replayEndpointEventWithHttpInfo(projectID, eventID, null); } @@ -1478,10 +1479,10 @@ public ApiResponse replayEndpointEventWithHttpI * @param projectID Project ID (required) * @param eventID event id (required) * @param headers Optional headers to include in the request - * @return ApiResponse<CreateBroadcastEvent201Response> + * @return ApiResponse<GetEndpointEvent200Response> * @throws ApiException if fails to make API call */ - public ApiResponse replayEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID, Map headers) throws ApiException { + public ApiResponse replayEndpointEventWithHttpInfo(@jakarta.annotation.Nonnull String projectID, @jakarta.annotation.Nonnull String eventID, Map headers) throws ApiException { HttpRequest.Builder localVarRequestBuilder = replayEndpointEventRequestBuilder(projectID, eventID, headers); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1497,7 +1498,7 @@ public ApiResponse replayEndpointEventWithHttpI } localVarResponseBody = ApiClient.getResponseBody(localVarResponse); if (localVarResponseBody == null) { - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), null @@ -1507,10 +1508,10 @@ public ApiResponse replayEndpointEventWithHttpI String responseBody = new String(localVarResponseBody.readAllBytes()); - CreateBroadcastEvent201Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); + GetEndpointEvent200Response responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), responseValue diff --git a/src/main/java/com/getconvoy/models/CreateEndpointEvent201Response.java b/src/main/java/com/getconvoy/models/CreateEndpointEvent201Response.java new file mode 100644 index 0000000..371add0 --- /dev/null +++ b/src/main/java/com/getconvoy/models/CreateEndpointEvent201Response.java @@ -0,0 +1,221 @@ +/* + * Convoy API Reference + * Convoy is a fast and secure webhooks proxy. This document contains datastore's API specification. + * + * The version of the OpenAPI document: 26.3.5 + * Contact: support@getconvoy.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.getconvoy.models; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.getconvoy.models.ModelsEventQueuedResponse; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import com.getconvoy.client.ApiClient; +/** + * CreateEndpointEvent201Response + */ +@JsonPropertyOrder({ + CreateEndpointEvent201Response.JSON_PROPERTY_MESSAGE, + CreateEndpointEvent201Response.JSON_PROPERTY_STATUS, + CreateEndpointEvent201Response.JSON_PROPERTY_DATA +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0") +public class CreateEndpointEvent201Response { + public static final String JSON_PROPERTY_MESSAGE = "message"; + @jakarta.annotation.Nullable + private String message; + + public static final String JSON_PROPERTY_STATUS = "status"; + @jakarta.annotation.Nullable + private Boolean status; + + public static final String JSON_PROPERTY_DATA = "data"; + @jakarta.annotation.Nullable + private ModelsEventQueuedResponse data; + + public CreateEndpointEvent201Response() { + } + + public CreateEndpointEvent201Response message(@jakarta.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Get message + * @return message + */ + @jakarta.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { + return message; + } + + + @JsonProperty(value = JSON_PROPERTY_MESSAGE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMessage(@jakarta.annotation.Nullable String message) { + this.message = message; + } + + + public CreateEndpointEvent201Response status(@jakarta.annotation.Nullable Boolean status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getStatus() { + return status; + } + + + @JsonProperty(value = JSON_PROPERTY_STATUS, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(@jakarta.annotation.Nullable Boolean status) { + this.status = status; + } + + + public CreateEndpointEvent201Response data(@jakarta.annotation.Nullable ModelsEventQueuedResponse data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_DATA, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ModelsEventQueuedResponse getData() { + return data; + } + + + @JsonProperty(value = JSON_PROPERTY_DATA, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(@jakarta.annotation.Nullable ModelsEventQueuedResponse data) { + this.data = data; + } + + + /** + * Return true if this CreateEndpointEvent_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateEndpointEvent201Response createEndpointEvent201Response = (CreateEndpointEvent201Response) o; + return Objects.equals(this.message, createEndpointEvent201Response.message) && + Objects.equals(this.status, createEndpointEvent201Response.status) && + Objects.equals(this.data, createEndpointEvent201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(message, status, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateEndpointEvent201Response {\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\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(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `message` to the URL query string + if (getMessage() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%smessage%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); + } + + // add `status` to the URL query string + if (getStatus() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sstatus%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getStatus())))); + } + + // add `data` to the URL query string + if (getData() != null) { + joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/com/getconvoy/models/CreateBroadcastEvent201Response.java b/src/main/java/com/getconvoy/models/GetEndpointEvent200Response.java similarity index 83% rename from src/main/java/com/getconvoy/models/CreateBroadcastEvent201Response.java rename to src/main/java/com/getconvoy/models/GetEndpointEvent200Response.java index ae86242..4d6289b 100644 --- a/src/main/java/com/getconvoy/models/CreateBroadcastEvent201Response.java +++ b/src/main/java/com/getconvoy/models/GetEndpointEvent200Response.java @@ -31,15 +31,15 @@ import com.getconvoy.client.ApiClient; /** - * CreateBroadcastEvent201Response + * GetEndpointEvent200Response */ @JsonPropertyOrder({ - CreateBroadcastEvent201Response.JSON_PROPERTY_MESSAGE, - CreateBroadcastEvent201Response.JSON_PROPERTY_STATUS, - CreateBroadcastEvent201Response.JSON_PROPERTY_DATA + GetEndpointEvent200Response.JSON_PROPERTY_MESSAGE, + GetEndpointEvent200Response.JSON_PROPERTY_STATUS, + GetEndpointEvent200Response.JSON_PROPERTY_DATA }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0") -public class CreateBroadcastEvent201Response { +public class GetEndpointEvent200Response { public static final String JSON_PROPERTY_MESSAGE = "message"; @jakarta.annotation.Nullable private String message; @@ -52,10 +52,10 @@ public class CreateBroadcastEvent201Response { @jakarta.annotation.Nullable private ModelsEventResponse data; - public CreateBroadcastEvent201Response() { + public GetEndpointEvent200Response() { } - public CreateBroadcastEvent201Response message(@jakarta.annotation.Nullable String message) { + public GetEndpointEvent200Response message(@jakarta.annotation.Nullable String message) { this.message = message; return this; } @@ -79,7 +79,7 @@ public void setMessage(@jakarta.annotation.Nullable String message) { } - public CreateBroadcastEvent201Response status(@jakarta.annotation.Nullable Boolean status) { + public GetEndpointEvent200Response status(@jakarta.annotation.Nullable Boolean status) { this.status = status; return this; } @@ -103,7 +103,7 @@ public void setStatus(@jakarta.annotation.Nullable Boolean status) { } - public CreateBroadcastEvent201Response data(@jakarta.annotation.Nullable ModelsEventResponse data) { + public GetEndpointEvent200Response data(@jakarta.annotation.Nullable ModelsEventResponse data) { this.data = data; return this; } @@ -128,7 +128,7 @@ public void setData(@jakarta.annotation.Nullable ModelsEventResponse data) { /** - * Return true if this CreateBroadcastEvent_201_response object is equal to o. + * Return true if this GetEndpointEvent_200_response object is equal to o. */ @Override public boolean equals(Object o) { @@ -138,10 +138,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateBroadcastEvent201Response createBroadcastEvent201Response = (CreateBroadcastEvent201Response) o; - return Objects.equals(this.message, createBroadcastEvent201Response.message) && - Objects.equals(this.status, createBroadcastEvent201Response.status) && - Objects.equals(this.data, createBroadcastEvent201Response.data); + GetEndpointEvent200Response getEndpointEvent200Response = (GetEndpointEvent200Response) o; + return Objects.equals(this.message, getEndpointEvent200Response.message) && + Objects.equals(this.status, getEndpointEvent200Response.status) && + Objects.equals(this.data, getEndpointEvent200Response.data); } @Override @@ -152,7 +152,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateBroadcastEvent201Response {\n"); + sb.append("class GetEndpointEvent200Response {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); diff --git a/src/main/java/com/getconvoy/models/ModelsEventQueuedResponse.java b/src/main/java/com/getconvoy/models/ModelsEventQueuedResponse.java new file mode 100644 index 0000000..95bed12 --- /dev/null +++ b/src/main/java/com/getconvoy/models/ModelsEventQueuedResponse.java @@ -0,0 +1,220 @@ +/* + * Convoy API Reference + * Convoy is a fast and secure webhooks proxy. This document contains datastore's API specification. + * + * The version of the OpenAPI document: 26.3.5 + * Contact: support@getconvoy.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.getconvoy.models; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import com.getconvoy.client.ApiClient; +/** + * ModelsEventQueuedResponse + */ +@JsonPropertyOrder({ + ModelsEventQueuedResponse.JSON_PROPERTY_EVENT_TYPE, + ModelsEventQueuedResponse.JSON_PROPERTY_IDEMPOTENCY_KEY, + ModelsEventQueuedResponse.JSON_PROPERTY_UID +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.23.0") +public class ModelsEventQueuedResponse { + public static final String JSON_PROPERTY_EVENT_TYPE = "event_type"; + @jakarta.annotation.Nullable + private String eventType; + + public static final String JSON_PROPERTY_IDEMPOTENCY_KEY = "idempotency_key"; + @jakarta.annotation.Nullable + private String idempotencyKey; + + public static final String JSON_PROPERTY_UID = "uid"; + @jakarta.annotation.Nullable + private String uid; + + public ModelsEventQueuedResponse() { + } + + public ModelsEventQueuedResponse eventType(@jakarta.annotation.Nullable String eventType) { + this.eventType = eventType; + return this; + } + + /** + * Get eventType + * @return eventType + */ + @jakarta.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_EVENT_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEventType() { + return eventType; + } + + + @JsonProperty(value = JSON_PROPERTY_EVENT_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEventType(@jakarta.annotation.Nullable String eventType) { + this.eventType = eventType; + } + + + public ModelsEventQueuedResponse idempotencyKey(@jakarta.annotation.Nullable String idempotencyKey) { + this.idempotencyKey = idempotencyKey; + return this; + } + + /** + * Get idempotencyKey + * @return idempotencyKey + */ + @jakarta.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_IDEMPOTENCY_KEY, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getIdempotencyKey() { + return idempotencyKey; + } + + + @JsonProperty(value = JSON_PROPERTY_IDEMPOTENCY_KEY, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdempotencyKey(@jakarta.annotation.Nullable String idempotencyKey) { + this.idempotencyKey = idempotencyKey; + } + + + public ModelsEventQueuedResponse uid(@jakarta.annotation.Nullable String uid) { + this.uid = uid; + return this; + } + + /** + * UID is the event id. + * @return uid + */ + @jakarta.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_UID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUid() { + return uid; + } + + + @JsonProperty(value = JSON_PROPERTY_UID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUid(@jakarta.annotation.Nullable String uid) { + this.uid = uid; + } + + + /** + * Return true if this models.EventQueuedResponse object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelsEventQueuedResponse modelsEventQueuedResponse = (ModelsEventQueuedResponse) o; + return Objects.equals(this.eventType, modelsEventQueuedResponse.eventType) && + Objects.equals(this.idempotencyKey, modelsEventQueuedResponse.idempotencyKey) && + Objects.equals(this.uid, modelsEventQueuedResponse.uid); + } + + @Override + public int hashCode() { + return Objects.hash(eventType, idempotencyKey, uid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelsEventQueuedResponse {\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" idempotencyKey: ").append(toIndentedString(idempotencyKey)).append("\n"); + sb.append(" uid: ").append(toIndentedString(uid)).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(Object o) { + return o == null ? "null" : o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `event_type` to the URL query string + if (getEventType() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sevent_type%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEventType())))); + } + + // add `idempotency_key` to the URL query string + if (getIdempotencyKey() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sidempotency_key%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIdempotencyKey())))); + } + + // add `uid` to the URL query string + if (getUid() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%suid%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getUid())))); + } + + return joiner.toString(); + } +} +