diff --git a/.travis.yml b/.travis.yml
index 9e83bd1..3177f06 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,6 +24,3 @@ script: mvn clean test
after_failure: "cat /home/travis/build/docusign/docusign-admin-java-client/target/surefire-reports/SdkUnitTests.txt && cat /home/travis/build/docusign/docusign-admin-java-client/target/surefire-reports/TEST-SdkUnitTests.xml"
-cache:
- directories:
- - $HOME/.m2
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b59e9c1..4e330ec 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,11 @@
# DocuSign Admin Java Client Changelog
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
+## [v1.2.0] - Admin API v2.1-1.1.1 - 2023-03-22
+### Changed
+- Added support for version v2.1-1.1.1 of the DocuSign Admin API.
+- Updated the SDK release version.
+
## [v1.1.0] - Admin API v2.1-1.1.0 - 2022-04-26
### Changed
- Added support for version v2.1-1.1.0 of the DocuSign Admin API.
diff --git a/README.md b/README.md
index 1f88835..fe4c188 100644
--- a/README.md
+++ b/README.md
@@ -74,8 +74,8 @@ The DocuSign Java Client is licensed under the [MIT License](https://github.com/
/master/LICENSE).
-[travis-image]: https://img.shields.io/travis/docusign/docusign-admin-java-client.svg?style=flat
-[travis-url]: https://travis-ci.org/docusign/docusign-admin-java-client
+[travis-image]: https://api.travis-ci.com/docusign/docusign-admin-java-client.svg?branch=master
+[travis-url]: https://app.travis-ci.com/github/docusign/docusign-admin-java-client
[maven-image]: https://img.shields.io/maven-central/v/com.docusign/docusign-admin-java.svg?style=flat
[maven-url]: https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.docusign%22
diff --git a/pom.xml b/pom.xml
index 70439fc..2e3702c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
docusign-admin-java
jar
docusign-admin-java
- 1.1.0
+ 1.2.0
https://developers.docusign.com
The DocuSign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.
@@ -259,6 +259,16 @@
org.hamcrest:hamcrest-core:jar
+
+
+ *:*
+
+ META-INF/*.SF
+ META-INF/*.DSA
+ META-INF/*.RSA
+
+
+
diff --git a/src/main/java/com/docusign/admin/api/AccountsApi.java b/src/main/java/com/docusign/admin/api/AccountsApi.java
index a4773df..736784d 100644
--- a/src/main/java/com/docusign/admin/api/AccountsApi.java
+++ b/src/main/java/com/docusign/admin/api/AccountsApi.java
@@ -1,22 +1,34 @@
+
package com.docusign.admin.api;
-import com.docusign.admin.client.ApiClient;
+import javax.ws.rs.core.GenericType;
+
import com.docusign.admin.client.ApiException;
+import com.docusign.admin.client.ApiClient;
import com.docusign.admin.client.Configuration;
-import com.docusign.admin.client.Pair;
import com.docusign.admin.model.*;
-import javax.ws.rs.core.GenericType;
+import com.docusign.admin.client.Pair;
+import com.docusign.admin.client.ApiResponse;
-/** AccountsApi class. */
+/**
+ * AccountsApi class.
+ *
+ **/
public class AccountsApi {
private ApiClient apiClient;
- /** AccountsApi. */
+ /**
+ * AccountsApi.
+ *
+ **/
public AccountsApi() {
this(Configuration.getDefaultApiClient());
}
- /** AccountsApi. */
+ /**
+ * AccountsApi.
+ *
+ **/
public AccountsApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
@@ -25,12 +37,15 @@ public AccountsApi(ApiClient apiClient) {
* getApiClient Method.
*
* @return ApiClient
- */
+ **/
public ApiClient getApiClient() {
return apiClient;
}
- /** setApiClient Method. */
+ /**
+ * setApiClient Method.
+ *
+ **/
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
@@ -39,13 +54,18 @@ public void setApiClient(ApiClient apiClient) {
/// Returns the list of groups in an account. Required scopes: group_read
///
- /** GetGroupsOptions Class. */
+ /**
+ * GetGroupsOptions Class.
+ *
+ **/
public class GetGroupsOptions {
private Integer start = null;
private Integer take = null;
private Integer end = null;
- /** setStart method. */
+ /**
+ * setStart method.
+ */
public void setStart(Integer start) {
this.start = start;
}
@@ -59,7 +79,9 @@ public Integer getStart() {
return this.start;
}
- /** setTake method. */
+ /**
+ * setTake method.
+ */
public void setTake(Integer take) {
this.take = take;
}
@@ -73,7 +95,9 @@ public Integer getTake() {
return this.take;
}
- /** setEnd method. */
+ /**
+ * setEnd method.
+ */
public void setEnd(Integer end) {
this.end = end;
}
@@ -89,49 +113,61 @@ public Integer getEnd() {
}
/**
- * Returns the list of groups in an account.. Required scopes: group_read
- *
+ * Returns the list of groups in an account..
+ * Required scopes: group_read
+ *
* @param organizationId The organization ID Guid (required)
- * @param accountId The account ID Guid (required)
+ * @param accountId The account ID Guid (required)
* @return MemberGroupsResponse
*/
- public MemberGroupsResponse getGroups(java.util.UUID organizationId, java.util.UUID accountId)
- throws ApiException {
+ public MemberGroupsResponse getGroups(java.util.UUID organizationId, java.util.UUID accountId) throws ApiException {
return getGroups(organizationId, accountId, null);
}
/**
- * Returns the list of groups in an account.. Required scopes: group_read
- *
+ * Returns the list of groups in an account..
+ * Required scopes: group_read
+ *
* @param organizationId The organization ID Guid (required)
- * @param accountId The account ID Guid (required)
- * @param options for modifying the method behavior.
+ * @param accountId The account ID Guid (required)
+ * @param options for modifying the method behavior.
* @return MemberGroupsResponse
* @throws ApiException if fails to make API call
*/
- public MemberGroupsResponse getGroups(
- java.util.UUID organizationId, java.util.UUID accountId, AccountsApi.GetGroupsOptions options)
- throws ApiException {
+ public MemberGroupsResponse getGroups(java.util.UUID organizationId, java.util.UUID accountId,
+ AccountsApi.GetGroupsOptions options) throws ApiException {
+ ApiResponse localVarResponse = getGroupsWithHttpInfo(organizationId, accountId, options);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Returns the list of groups in an account.
+ * Required scopes: group_read
+ *
+ * @param organizationId The organization ID Guid (required)
+ * @param accountId The account ID Guid (required)
+ * @param options for modifying the method behavior.
+ * @return MemberGroupsResponse
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse getGroupsWithHttpInfo(java.util.UUID organizationId,
+ java.util.UUID accountId, AccountsApi.GetGroupsOptions options) throws ApiException {
Object localVarPostBody = "{}";
// verify the required parameter 'organizationId' is set
if (organizationId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'organizationId' when calling getGroups");
+ throw new ApiException(400, "Missing the required parameter 'organizationId' when calling getGroups");
}
// verify the required parameter 'accountId' is set
if (accountId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'accountId' when calling getGroups");
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling getGroups");
}
// create path and map variables
- String localVarPath =
- "/v2/organizations/{organizationId}/accounts/{accountId}/groups"
- .replaceAll(
- "\\{" + "organizationId" + "\\}", apiClient.escapeString(organizationId.toString()))
- .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
+ String localVarPath = "/v2/organizations/{organizationId}/accounts/{accountId}/groups"
+ .replaceAll("\\{" + "organizationId" + "\\}", apiClient.escapeString(organizationId.toString()))
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
@@ -149,39 +185,41 @@ public MemberGroupsResponse getGroups(
localVarQueryParams.addAll(apiClient.parameterToPair("end", options.end));
}
- final String[] localVarAccepts = {"application/json"};
+ final String[] localVarAccepts = {
+ "application/json"
+ };
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {"application/json"};
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] {"docusignAccessCode"};
-
- GenericType localVarReturnType =
- new GenericType() {};
- return apiClient.invokeAPI(
- localVarPath,
- "GET",
- localVarQueryParams,
- localVarCollectionQueryParams,
- localVarPostBody,
- localVarHeaderParams,
- localVarFormParams,
- localVarAccept,
- localVarContentType,
- localVarAuthNames,
- localVarReturnType);
+ String[] localVarAuthNames = new String[] {};
+
+ GenericType localVarReturnType = new GenericType() {
+ };
+ MemberGroupsResponse localVarResponse = apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept,
+ localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(),
+ localVarResponse);
}
///
- /// Returns the list of organizations of which the authenticated user is a member. Required
- // scopes: organization_read
+ /// Returns the list of organizations of which the authenticated user is a
+ /// member. Required scopes: organization_read
///
- /** GetOrganizationsOptions Class. */
+ /**
+ * GetOrganizationsOptions Class.
+ *
+ **/
public class GetOrganizationsOptions {
private String mode = null;
- /** setMode method. */
+ /**
+ * setMode method.
+ */
public void setMode(String mode) {
this.mode = mode;
}
@@ -197,9 +235,10 @@ public String getMode() {
}
/**
- * Returns the list of organizations of which the authenticated user is a member.. Required
- * scopes: organization_read
- *
+ * Returns the list of organizations of which the authenticated user is a
+ * member..
+ * Required scopes: organization_read
+ *
* @return OrganizationsResponse
*/
public OrganizationsResponse getOrganizations() throws ApiException {
@@ -207,14 +246,29 @@ public OrganizationsResponse getOrganizations() throws ApiException {
}
/**
- * Returns the list of organizations of which the authenticated user is a member.. Required
- * scopes: organization_read
- *
+ * Returns the list of organizations of which the authenticated user is a
+ * member..
+ * Required scopes: organization_read
+ *
* @param options for modifying the method behavior.
* @return OrganizationsResponse
* @throws ApiException if fails to make API call
*/
- public OrganizationsResponse getOrganizations(AccountsApi.GetOrganizationsOptions options)
+ public OrganizationsResponse getOrganizations(AccountsApi.GetOrganizationsOptions options) throws ApiException {
+ ApiResponse localVarResponse = getOrganizationsWithHttpInfo(options);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Returns the list of organizations of which the authenticated user is a
+ * member.
+ * Required scopes: organization_read
+ *
+ * @param options for modifying the method behavior.
+ * @return OrganizationsResponse
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse getOrganizationsWithHttpInfo(AccountsApi.GetOrganizationsOptions options)
throws ApiException {
Object localVarPostBody = "{}";
@@ -231,60 +285,69 @@ public OrganizationsResponse getOrganizations(AccountsApi.GetOrganizationsOption
localVarQueryParams.addAll(apiClient.parameterToPair("mode", options.mode));
}
- final String[] localVarAccepts = {"application/json"};
+ final String[] localVarAccepts = {
+ "application/json"
+ };
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {"application/json"};
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] {"docusignAccessCode"};
-
- GenericType localVarReturnType =
- new GenericType() {};
- return apiClient.invokeAPI(
- localVarPath,
- "GET",
- localVarQueryParams,
- localVarCollectionQueryParams,
- localVarPostBody,
- localVarHeaderParams,
- localVarFormParams,
- localVarAccept,
- localVarContentType,
- localVarAuthNames,
- localVarReturnType);
+ String[] localVarAuthNames = new String[] {};
+
+ GenericType localVarReturnType = new GenericType() {
+ };
+ OrganizationsResponse localVarResponse = apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept,
+ localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(),
+ localVarResponse);
}
/**
- * Returns the list of permission profiles in an account.. Required scopes: permission_read
- *
+ * Returns the list of permission profiles in an account..
+ * Required scopes: permission_read
+ *
* @param organizationId The organization ID Guid (required)
- * @param accountId The account ID Guid (required)
+ * @param accountId The account ID Guid (required)
* @return PermissionsResponse
* @throws ApiException if fails to make API call
*/
public PermissionsResponse getPermissions(java.util.UUID organizationId, java.util.UUID accountId)
throws ApiException {
+ ApiResponse localVarResponse = getPermissionsWithHttpInfo(organizationId, accountId);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Returns the list of permission profiles in an account.
+ * Required scopes: permission_read
+ *
+ * @param organizationId The organization ID Guid (required)
+ * @param accountId The account ID Guid (required)
+ * @return PermissionsResponse
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse getPermissionsWithHttpInfo(java.util.UUID organizationId,
+ java.util.UUID accountId) throws ApiException {
Object localVarPostBody = "{}";
// verify the required parameter 'organizationId' is set
if (organizationId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'organizationId' when calling getPermissions");
+ throw new ApiException(400, "Missing the required parameter 'organizationId' when calling getPermissions");
}
// verify the required parameter 'accountId' is set
if (accountId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'accountId' when calling getPermissions");
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling getPermissions");
}
// create path and map variables
- String localVarPath =
- "/v2/organizations/{organizationId}/accounts/{accountId}/permissions"
- .replaceAll(
- "\\{" + "organizationId" + "\\}", apiClient.escapeString(organizationId.toString()))
- .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
+ String localVarPath = "/v2/organizations/{organizationId}/accounts/{accountId}/permissions"
+ .replaceAll("\\{" + "organizationId" + "\\}", apiClient.escapeString(organizationId.toString()))
+ .replaceAll("\\{" + "accountId" + "\\}", apiClient.escapeString(accountId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
@@ -292,26 +355,24 @@ public PermissionsResponse getPermissions(java.util.UUID organizationId, java.ut
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
- final String[] localVarAccepts = {"application/json"};
+ final String[] localVarAccepts = {
+ "application/json"
+ };
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {"application/json"};
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] {"docusignAccessCode"};
-
- GenericType localVarReturnType = new GenericType() {};
- return apiClient.invokeAPI(
- localVarPath,
- "GET",
- localVarQueryParams,
- localVarCollectionQueryParams,
- localVarPostBody,
- localVarHeaderParams,
- localVarFormParams,
- localVarAccept,
- localVarContentType,
- localVarAuthNames,
- localVarReturnType);
+ String[] localVarAuthNames = new String[] {};
+
+ GenericType localVarReturnType = new GenericType() {
+ };
+ PermissionsResponse localVarResponse = apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept,
+ localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(),
+ localVarResponse);
}
}
diff --git a/src/main/java/com/docusign/admin/api/BulkExportsApi.java b/src/main/java/com/docusign/admin/api/BulkExportsApi.java
index 56663b9..959a582 100644
--- a/src/main/java/com/docusign/admin/api/BulkExportsApi.java
+++ b/src/main/java/com/docusign/admin/api/BulkExportsApi.java
@@ -1,22 +1,34 @@
+
package com.docusign.admin.api;
-import com.docusign.admin.client.ApiClient;
+import javax.ws.rs.core.GenericType;
+
import com.docusign.admin.client.ApiException;
+import com.docusign.admin.client.ApiClient;
import com.docusign.admin.client.Configuration;
-import com.docusign.admin.client.Pair;
import com.docusign.admin.model.*;
-import javax.ws.rs.core.GenericType;
+import com.docusign.admin.client.Pair;
+import com.docusign.admin.client.ApiResponse;
-/** BulkExportsApi class. */
+/**
+ * BulkExportsApi class.
+ *
+ **/
public class BulkExportsApi {
private ApiClient apiClient;
- /** BulkExportsApi. */
+ /**
+ * BulkExportsApi.
+ *
+ **/
public BulkExportsApi() {
this(Configuration.getDefaultApiClient());
}
- /** BulkExportsApi. */
+ /**
+ * BulkExportsApi.
+ *
+ **/
public BulkExportsApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
@@ -25,47 +37,64 @@ public BulkExportsApi(ApiClient apiClient) {
* getApiClient Method.
*
* @return ApiClient
- */
+ **/
public ApiClient getApiClient() {
return apiClient;
}
- /** setApiClient Method. */
+ /**
+ * setApiClient Method.
+ *
+ **/
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
- * Creates a new Account Setting Export request.. Required scopes: account_read
- *
+ * Creates a new Account Setting Export request..
+ * Required scopes: account_read
+ *
+ * @param organizationId The organization ID Guid (required)
+ * @param request Request body containing details about the accounts be
+ * compared (required)
+ * @return OrganizationExportResponse
+ * @throws ApiException if fails to make API call
+ */
+ public OrganizationExportResponse createAccountSettingsExport(java.util.UUID organizationId,
+ OrganizationAccountsRequest request) throws ApiException {
+ ApiResponse localVarResponse = createAccountSettingsExportWithHttpInfo(organizationId,
+ request);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Creates a new Account Setting Export request.
+ * Required scopes: account_read
+ *
* @param organizationId The organization ID Guid (required)
- * @param request Request body containing details about the accounts be compared (required)
+ * @param request Request body containing details about the accounts be
+ * compared (required)
* @return OrganizationExportResponse
* @throws ApiException if fails to make API call
*/
- public OrganizationExportResponse createAccountSettingsExport(
- java.util.UUID organizationId, OrganizationAccountsRequest request) throws ApiException {
+ public ApiResponse createAccountSettingsExportWithHttpInfo(java.util.UUID organizationId,
+ OrganizationAccountsRequest request) throws ApiException {
Object localVarPostBody = request;
// verify the required parameter 'organizationId' is set
if (organizationId == null) {
- throw new ApiException(
- 400,
+ throw new ApiException(400,
"Missing the required parameter 'organizationId' when calling createAccountSettingsExport");
}
// verify the required parameter 'request' is set
if (request == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'request' when calling createAccountSettingsExport");
+ throw new ApiException(400, "Missing the required parameter 'request' when calling createAccountSettingsExport");
}
// create path and map variables
- String localVarPath =
- "/v2/organizations/{organizationId}/exports/account_settings"
- .replaceAll(
- "\\{" + "organizationId" + "\\}",
- apiClient.escapeString(organizationId.toString()));
+ String localVarPath = "/v2/organizations/{organizationId}/exports/account_settings"
+ .replaceAll("\\{" + "organizationId" + "\\}", apiClient.escapeString(organizationId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
@@ -73,60 +102,71 @@ public OrganizationExportResponse createAccountSettingsExport(
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
- final String[] localVarAccepts = {"application/json"};
+ final String[] localVarAccepts = {
+ "application/json"
+ };
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {"application/json"};
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] {"docusignAccessCode"};
-
- GenericType localVarReturnType =
- new GenericType() {};
- return apiClient.invokeAPI(
- localVarPath,
- "POST",
- localVarQueryParams,
- localVarCollectionQueryParams,
- localVarPostBody,
- localVarHeaderParams,
- localVarFormParams,
- localVarAccept,
- localVarContentType,
- localVarAuthNames,
- localVarReturnType);
+ String[] localVarAuthNames = new String[] {};
+
+ GenericType localVarReturnType = new GenericType() {
+ };
+ OrganizationExportResponse localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept,
+ localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(),
+ localVarResponse);
}
/**
- * Creates a new User List Export request.. Required scopes: user_read
- *
+ * Creates a new User List Export request..
+ * Required scopes: user_read
+ *
* @param organizationId The organization ID Guid (required)
- * @param request Request body containing details about what is to be exported (required)
+ * @param request Request body containing details about what is to be
+ * exported (required)
* @return OrganizationExportResponse
* @throws ApiException if fails to make API call
*/
- public OrganizationExportResponse createUserListExport(
- java.util.UUID organizationId, OrganizationExportRequest request) throws ApiException {
+ public OrganizationExportResponse createUserListExport(java.util.UUID organizationId,
+ OrganizationExportRequest request) throws ApiException {
+ ApiResponse localVarResponse = createUserListExportWithHttpInfo(organizationId,
+ request);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Creates a new User List Export request.
+ * Required scopes: user_read
+ *
+ * @param organizationId The organization ID Guid (required)
+ * @param request Request body containing details about what is to be
+ * exported (required)
+ * @return OrganizationExportResponse
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createUserListExportWithHttpInfo(java.util.UUID organizationId,
+ OrganizationExportRequest request) throws ApiException {
Object localVarPostBody = request;
// verify the required parameter 'organizationId' is set
if (organizationId == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'organizationId' when calling createUserListExport");
+ throw new ApiException(400, "Missing the required parameter 'organizationId' when calling createUserListExport");
}
// verify the required parameter 'request' is set
if (request == null) {
- throw new ApiException(
- 400, "Missing the required parameter 'request' when calling createUserListExport");
+ throw new ApiException(400, "Missing the required parameter 'request' when calling createUserListExport");
}
// create path and map variables
- String localVarPath =
- "/v2/organizations/{organizationId}/exports/user_list"
- .replaceAll(
- "\\{" + "organizationId" + "\\}",
- apiClient.escapeString(organizationId.toString()));
+ String localVarPath = "/v2/organizations/{organizationId}/exports/user_list"
+ .replaceAll("\\{" + "organizationId" + "\\}", apiClient.escapeString(organizationId.toString()));
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
@@ -134,62 +174,70 @@ public OrganizationExportResponse createUserListExport(
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
- final String[] localVarAccepts = {"application/json"};
+ final String[] localVarAccepts = {
+ "application/json"
+ };
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- final String[] localVarContentTypes = {"application/json"};
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] {"docusignAccessCode"};
-
- GenericType localVarReturnType =
- new GenericType() {};
- return apiClient.invokeAPI(
- localVarPath,
- "POST",
- localVarQueryParams,
- localVarCollectionQueryParams,
- localVarPostBody,
- localVarHeaderParams,
- localVarFormParams,
- localVarAccept,
- localVarContentType,
- localVarAuthNames,
- localVarReturnType);
+ String[] localVarAuthNames = new String[] {};
+
+ GenericType localVarReturnType = new GenericType() {
+ };
+ OrganizationExportResponse localVarResponse = apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams,
+ localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept,
+ localVarContentType, localVarAuthNames, localVarReturnType);
+ return new ApiResponse(apiClient.getStatusCode(), apiClient.getResponseHeaders(),
+ localVarResponse);
}
/**
- * Deletes a single Account Settings Export request. Required scopes: account_read
- *
+ * Deletes a single Account Settings Export request.
+ * Required scopes: account_read
+ *
* @param organizationId The organization ID Guid (required)
- * @param exportId The export ID Guid for the request (required)
+ * @param exportId The export ID Guid for the request (required)
* @return Object
* @throws ApiException if fails to make API call
*/
public Object deleteAccountSettingsExport(java.util.UUID organizationId, java.util.UUID exportId)
throws ApiException {
+ ApiResponse