2121import com .segment .publicapi .models .AddAudienceScheduleToAudience200Response ;
2222import com .segment .publicapi .models .AddAudienceScheduleToAudienceAlphaInput ;
2323import com .segment .publicapi .models .CreateAudience200Response ;
24- import com .segment .publicapi .models .CreateAudienceBetaInput ;
24+ import com .segment .publicapi .models .CreateAudienceInput ;
2525import com .segment .publicapi .models .CreateAudiencePreview200Response ;
2626import com .segment .publicapi .models .CreateAudiencePreviewBetaInput ;
2727import com .segment .publicapi .models .ForceExecuteAudienceRun200Response ;
@@ -327,7 +327,7 @@ public okhttp3.Call addAudienceScheduleToAudienceAsync(
327327 * Build call for createAudience
328328 *
329329 * @param spaceId (required)
330- * @param createAudienceBetaInput (required)
330+ * @param createAudienceInput (required)
331331 * @param _callback Callback for upload/download progress
332332 * @return Call to execute
333333 * @throws ApiException If fail to serialize the request body object
@@ -341,9 +341,7 @@ public okhttp3.Call addAudienceScheduleToAudienceAsync(
341341 * </table>
342342 */
343343 public okhttp3 .Call createAudienceCall (
344- String spaceId ,
345- CreateAudienceBetaInput createAudienceBetaInput ,
346- final ApiCallback _callback )
344+ String spaceId , CreateAudienceInput createAudienceInput , final ApiCallback _callback )
347345 throws ApiException {
348346 String basePath = null ;
349347 // Operation Servers
@@ -358,7 +356,7 @@ public okhttp3.Call createAudienceCall(
358356 basePath = null ;
359357 }
360358
361- Object localVarPostBody = createAudienceBetaInput ;
359+ Object localVarPostBody = createAudienceInput ;
362360
363361 // create path and map variables
364362 String localVarPath =
@@ -374,17 +372,21 @@ public okhttp3.Call createAudienceCall(
374372 Map <String , Object > localVarFormParams = new HashMap <String , Object >();
375373
376374 final String [] localVarAccepts = {
375+ "application/vnd.segment.v1+json" ,
376+ "application/json" ,
377377 "application/vnd.segment.v1beta+json" ,
378- "application/vnd.segment.v1alpha+json" ,
379- "application/json"
378+ "application/vnd.segment.v1alpha+json"
380379 };
381380 final String localVarAccept = localVarApiClient .selectHeaderAccept (localVarAccepts );
382381 if (localVarAccept != null ) {
383382 localVarHeaderParams .put ("Accept" , localVarAccept );
384383 }
385384
386385 final String [] localVarContentTypes = {
387- "application/vnd.segment.v1beta+json" , "application/vnd.segment.v1alpha+json"
386+ "application/json" ,
387+ "application/vnd.segment.v1+json" ,
388+ "application/vnd.segment.v1beta+json" ,
389+ "application/vnd.segment.v1alpha+json"
388390 };
389391 final String localVarContentType =
390392 localVarApiClient .selectHeaderContentType (localVarContentTypes );
@@ -409,40 +411,37 @@ public okhttp3.Call createAudienceCall(
409411
410412 @ SuppressWarnings ("rawtypes" )
411413 private okhttp3 .Call createAudienceValidateBeforeCall (
412- String spaceId ,
413- CreateAudienceBetaInput createAudienceBetaInput ,
414- final ApiCallback _callback )
414+ String spaceId , CreateAudienceInput createAudienceInput , final ApiCallback _callback )
415415 throws ApiException {
416416 // verify the required parameter 'spaceId' is set
417417 if (spaceId == null ) {
418418 throw new ApiException (
419419 "Missing the required parameter 'spaceId' when calling createAudience(Async)" );
420420 }
421421
422- // verify the required parameter 'createAudienceBetaInput ' is set
423- if (createAudienceBetaInput == null ) {
422+ // verify the required parameter 'createAudienceInput ' is set
423+ if (createAudienceInput == null ) {
424424 throw new ApiException (
425- "Missing the required parameter 'createAudienceBetaInput ' when calling"
425+ "Missing the required parameter 'createAudienceInput ' when calling"
426426 + " createAudience(Async)" );
427427 }
428428
429- return createAudienceCall (spaceId , createAudienceBetaInput , _callback );
429+ return createAudienceCall (spaceId , createAudienceInput , _callback );
430430 }
431431
432432 /**
433- * Create Audience Creates Audience. • This endpoint is in **Beta** testing. Please submit any
434- * feedback by sending an email to friends@segment.com. • In order to successfully call this
435- * endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach
436- * out to your customer success manager for more information. • When called, this endpoint may
437- * generate the `Audience Created` event in the [audit trail](/tag/Audit-Trail). Note:
438- * The definition for an Audience created using the API is not editable through the Segment App.
439- * The rate limit for this endpoint is 50 requests per minute, which is lower than the default
440- * due to access pattern restrictions. Once reached, this endpoint will respond with the 429
441- * HTTP status code with headers indicating the limit parameters. See [Rate
433+ * Create Audience Creates Audience. • In order to successfully call this endpoint, the
434+ * specified Workspace needs to have the Audience feature enabled. Please reach out to your
435+ * customer success manager for more information. • When called, this endpoint may generate the
436+ * `Audience Created` event in the [audit trail](/tag/Audit-Trail). Note: The
437+ * definition for an Audience created using the API is not editable through the Segment App. The
438+ * rate limit for this endpoint is 50 requests per minute, which is lower than the default due
439+ * to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP
440+ * status code with headers indicating the limit parameters. See [Rate
442441 * Limiting](/#tag/Rate-Limits) for more information.
443442 *
444443 * @param spaceId (required)
445- * @param createAudienceBetaInput (required)
444+ * @param createAudienceInput (required)
446445 * @return CreateAudience200Response
447446 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
448447 * response body
@@ -456,26 +455,25 @@ private okhttp3.Call createAudienceValidateBeforeCall(
456455 * </table>
457456 */
458457 public CreateAudience200Response createAudience (
459- String spaceId , CreateAudienceBetaInput createAudienceBetaInput ) throws ApiException {
458+ String spaceId , CreateAudienceInput createAudienceInput ) throws ApiException {
460459 ApiResponse <CreateAudience200Response > localVarResp =
461- createAudienceWithHttpInfo (spaceId , createAudienceBetaInput );
460+ createAudienceWithHttpInfo (spaceId , createAudienceInput );
462461 return localVarResp .getData ();
463462 }
464463
465464 /**
466- * Create Audience Creates Audience. • This endpoint is in **Beta** testing. Please submit any
467- * feedback by sending an email to friends@segment.com. • In order to successfully call this
468- * endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach
469- * out to your customer success manager for more information. • When called, this endpoint may
470- * generate the `Audience Created` event in the [audit trail](/tag/Audit-Trail). Note:
471- * The definition for an Audience created using the API is not editable through the Segment App.
472- * The rate limit for this endpoint is 50 requests per minute, which is lower than the default
473- * due to access pattern restrictions. Once reached, this endpoint will respond with the 429
474- * HTTP status code with headers indicating the limit parameters. See [Rate
465+ * Create Audience Creates Audience. • In order to successfully call this endpoint, the
466+ * specified Workspace needs to have the Audience feature enabled. Please reach out to your
467+ * customer success manager for more information. • When called, this endpoint may generate the
468+ * `Audience Created` event in the [audit trail](/tag/Audit-Trail). Note: The
469+ * definition for an Audience created using the API is not editable through the Segment App. The
470+ * rate limit for this endpoint is 50 requests per minute, which is lower than the default due
471+ * to access pattern restrictions. Once reached, this endpoint will respond with the 429 HTTP
472+ * status code with headers indicating the limit parameters. See [Rate
475473 * Limiting](/#tag/Rate-Limits) for more information.
476474 *
477475 * @param spaceId (required)
478- * @param createAudienceBetaInput (required)
476+ * @param createAudienceInput (required)
479477 * @return ApiResponse<CreateAudience200Response>
480478 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
481479 * response body
@@ -489,27 +487,26 @@ public CreateAudience200Response createAudience(
489487 * </table>
490488 */
491489 public ApiResponse <CreateAudience200Response > createAudienceWithHttpInfo (
492- String spaceId , CreateAudienceBetaInput createAudienceBetaInput ) throws ApiException {
490+ String spaceId , CreateAudienceInput createAudienceInput ) throws ApiException {
493491 okhttp3 .Call localVarCall =
494- createAudienceValidateBeforeCall (spaceId , createAudienceBetaInput , null );
492+ createAudienceValidateBeforeCall (spaceId , createAudienceInput , null );
495493 Type localVarReturnType = new TypeToken <CreateAudience200Response >() {}.getType ();
496494 return localVarApiClient .execute (localVarCall , localVarReturnType );
497495 }
498496
499497 /**
500- * Create Audience (asynchronously) Creates Audience. • This endpoint is in **Beta** testing.
501- * Please submit any feedback by sending an email to friends@segment.com. • In order to
502- * successfully call this endpoint, the specified Workspace needs to have the Audience feature
503- * enabled. Please reach out to your customer success manager for more information. • When
504- * called, this endpoint may generate the `Audience Created` event in the [audit
505- * trail](/tag/Audit-Trail). Note: The definition for an Audience created using the API is not
506- * editable through the Segment App. The rate limit for this endpoint is 50 requests per minute,
507- * which is lower than the default due to access pattern restrictions. Once reached, this
508- * endpoint will respond with the 429 HTTP status code with headers indicating the limit
509- * parameters. See [Rate Limiting](/#tag/Rate-Limits) for more information.
498+ * Create Audience (asynchronously) Creates Audience. • In order to successfully call this
499+ * endpoint, the specified Workspace needs to have the Audience feature enabled. Please reach
500+ * out to your customer success manager for more information. • When called, this endpoint may
501+ * generate the `Audience Created` event in the [audit trail](/tag/Audit-Trail). Note:
502+ * The definition for an Audience created using the API is not editable through the Segment App.
503+ * The rate limit for this endpoint is 50 requests per minute, which is lower than the default
504+ * due to access pattern restrictions. Once reached, this endpoint will respond with the 429
505+ * HTTP status code with headers indicating the limit parameters. See [Rate
506+ * Limiting](/#tag/Rate-Limits) for more information.
510507 *
511508 * @param spaceId (required)
512- * @param createAudienceBetaInput (required)
509+ * @param createAudienceInput (required)
513510 * @param _callback The callback to be executed when the API call finishes
514511 * @return The request call
515512 * @throws ApiException If fail to process the API call, e.g. serializing the request body
@@ -525,12 +522,12 @@ public ApiResponse<CreateAudience200Response> createAudienceWithHttpInfo(
525522 */
526523 public okhttp3 .Call createAudienceAsync (
527524 String spaceId ,
528- CreateAudienceBetaInput createAudienceBetaInput ,
525+ CreateAudienceInput createAudienceInput ,
529526 final ApiCallback <CreateAudience200Response > _callback )
530527 throws ApiException {
531528
532529 okhttp3 .Call localVarCall =
533- createAudienceValidateBeforeCall (spaceId , createAudienceBetaInput , _callback );
530+ createAudienceValidateBeforeCall (spaceId , createAudienceInput , _callback );
534531 Type localVarReturnType = new TypeToken <CreateAudience200Response >() {}.getType ();
535532 localVarApiClient .executeAsync (localVarCall , localVarReturnType , _callback );
536533 return localVarCall ;
0 commit comments