options) {
ResumePausedWorkflowRequest request =
ResumePausedWorkflowRequest
.builder()
diff --git a/src/main/java/com/docusign/iam/sdk/WorkspaceBrands.java b/src/main/java/com/docusign/iam/sdk/WorkspaceBrands.java
new file mode 100644
index 0000000..c916946
--- /dev/null
+++ b/src/main/java/com/docusign/iam/sdk/WorkspaceBrands.java
@@ -0,0 +1,143 @@
+/*
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
+ */
+package com.docusign.iam.sdk;
+
+import static com.docusign.iam.sdk.operations.Operations.RequestOperation;
+
+import com.docusign.iam.sdk.models.components.UpdateWorkspaceBrandBody;
+import com.docusign.iam.sdk.models.operations.GetWorkspaceBrandRequest;
+import com.docusign.iam.sdk.models.operations.GetWorkspaceBrandRequestBuilder;
+import com.docusign.iam.sdk.models.operations.GetWorkspaceBrandResponse;
+import com.docusign.iam.sdk.models.operations.UpdateWorkspaceBrandRequest;
+import com.docusign.iam.sdk.models.operations.UpdateWorkspaceBrandRequestBuilder;
+import com.docusign.iam.sdk.models.operations.UpdateWorkspaceBrandResponse;
+import com.docusign.iam.sdk.operations.GetWorkspaceBrand;
+import com.docusign.iam.sdk.operations.UpdateWorkspaceBrand;
+import com.docusign.iam.sdk.utils.Headers;
+import com.docusign.iam.sdk.utils.Options;
+import java.lang.String;
+import java.util.Optional;
+
+
+public class WorkspaceBrands {
+ private static final Headers _headers = Headers.EMPTY;
+ private final SDKConfiguration sdkConfiguration;
+
+ WorkspaceBrands(SDKConfiguration sdkConfiguration) {
+ this.sdkConfiguration = sdkConfiguration;
+ }
+
+ /**
+ * Returns details about the brand set for a workspace
+ *
+ * This operation retrieves details about a specific workspace. It returns the brand details such as
+ * its unique identifier (ID), name, and metadata such as brand colors and logos.
+ *
+ * @return The call builder
+ */
+ public GetWorkspaceBrandRequestBuilder getWorkspaceBrand() {
+ return new GetWorkspaceBrandRequestBuilder(sdkConfiguration);
+ }
+
+ /**
+ * Returns details about the brand set for a workspace
+ *
+ *
This operation retrieves details about a specific workspace. It returns the brand details such as
+ * its unique identifier (ID), name, and metadata such as brand colors and logos.
+ *
+ * @param accountId The ID of the account
+ * @param workspaceId The ID of the workspace
+ * @return The response from the API call
+ * @throws RuntimeException subclass if the API call fails
+ */
+ public GetWorkspaceBrandResponse getWorkspaceBrand(String accountId, String workspaceId) {
+ return getWorkspaceBrand(accountId, workspaceId, Optional.empty());
+ }
+
+ /**
+ * Returns details about the brand set for a workspace
+ *
+ *
This operation retrieves details about a specific workspace. It returns the brand details such as
+ * its unique identifier (ID), name, and metadata such as brand colors and logos.
+ *
+ * @param accountId The ID of the account
+ * @param workspaceId The ID of the workspace
+ * @param options additional options
+ * @return The response from the API call
+ * @throws RuntimeException subclass if the API call fails
+ */
+ public GetWorkspaceBrandResponse getWorkspaceBrand(
+ String accountId, String workspaceId,
+ Optional options) {
+ GetWorkspaceBrandRequest request =
+ GetWorkspaceBrandRequest
+ .builder()
+ .accountId(accountId)
+ .workspaceId(workspaceId)
+ .build();
+ RequestOperation operation
+ = new GetWorkspaceBrand.Sync(sdkConfiguration, options, _headers);
+ return operation.handleResponse(operation.doRequest(request));
+ }
+
+ /**
+ * Updates brand for an existing workspace
+ *
+ * This operation updates brand for a specific workspace. It returns the brand details such as its
+ * unique identifier (ID), name, and metadata such as brand colors and logos.
+ *
+ * @return The call builder
+ */
+ public UpdateWorkspaceBrandRequestBuilder updateWorkspaceBrand() {
+ return new UpdateWorkspaceBrandRequestBuilder(sdkConfiguration);
+ }
+
+ /**
+ * Updates brand for an existing workspace
+ *
+ *
This operation updates brand for a specific workspace. It returns the brand details such as its
+ * unique identifier (ID), name, and metadata such as brand colors and logos.
+ *
+ * @param accountId The ID of the account
+ * @param workspaceId The ID of the workspace
+ * @param updateWorkspaceBrandBody
+ * @return The response from the API call
+ * @throws RuntimeException subclass if the API call fails
+ */
+ public UpdateWorkspaceBrandResponse updateWorkspaceBrand(
+ String accountId, String workspaceId,
+ UpdateWorkspaceBrandBody updateWorkspaceBrandBody) {
+ return updateWorkspaceBrand(accountId, workspaceId, updateWorkspaceBrandBody,
+ Optional.empty());
+ }
+
+ /**
+ * Updates brand for an existing workspace
+ *
+ *
This operation updates brand for a specific workspace. It returns the brand details such as its
+ * unique identifier (ID), name, and metadata such as brand colors and logos.
+ *
+ * @param accountId The ID of the account
+ * @param workspaceId The ID of the workspace
+ * @param updateWorkspaceBrandBody
+ * @param options additional options
+ * @return The response from the API call
+ * @throws RuntimeException subclass if the API call fails
+ */
+ public UpdateWorkspaceBrandResponse updateWorkspaceBrand(
+ String accountId, String workspaceId,
+ UpdateWorkspaceBrandBody updateWorkspaceBrandBody, Optional options) {
+ UpdateWorkspaceBrandRequest request =
+ UpdateWorkspaceBrandRequest
+ .builder()
+ .accountId(accountId)
+ .workspaceId(workspaceId)
+ .updateWorkspaceBrandBody(updateWorkspaceBrandBody)
+ .build();
+ RequestOperation operation
+ = new UpdateWorkspaceBrand.Sync(sdkConfiguration, options, _headers);
+ return operation.handleResponse(operation.doRequest(request));
+ }
+
+}
diff --git a/src/main/java/com/docusign/iam/sdk/WorkspaceDocuments.java b/src/main/java/com/docusign/iam/sdk/WorkspaceDocuments.java
index 593a2b5..6a3d337 100644
--- a/src/main/java/com/docusign/iam/sdk/WorkspaceDocuments.java
+++ b/src/main/java/com/docusign/iam/sdk/WorkspaceDocuments.java
@@ -27,7 +27,6 @@
import com.docusign.iam.sdk.operations.GetWorkspaceDocuments;
import com.docusign.iam.sdk.utils.Headers;
import com.docusign.iam.sdk.utils.Options;
-import java.lang.Exception;
import java.lang.String;
import java.util.Optional;
@@ -70,9 +69,9 @@ public GetWorkspaceDocumentsRequestBuilder getWorkspaceDocuments() {
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public GetWorkspaceDocumentsResponse getWorkspaceDocuments(GetWorkspaceDocumentsRequest request) throws Exception {
+ public GetWorkspaceDocumentsResponse getWorkspaceDocuments(GetWorkspaceDocumentsRequest request) {
return getWorkspaceDocuments(request, Optional.empty());
}
@@ -90,9 +89,9 @@ public GetWorkspaceDocumentsResponse getWorkspaceDocuments(GetWorkspaceDocuments
* @param request The request object containing all the parameters for the API call.
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public GetWorkspaceDocumentsResponse getWorkspaceDocuments(GetWorkspaceDocumentsRequest request, Optional options) throws Exception {
+ public GetWorkspaceDocumentsResponse getWorkspaceDocuments(GetWorkspaceDocumentsRequest request, Optional options) {
RequestOperation operation
= new GetWorkspaceDocuments.Sync(sdkConfiguration, options, _headers);
return operation.handleResponse(operation.doRequest(request));
@@ -123,9 +122,9 @@ public AddWorkspaceDocumentRequestBuilder addWorkspaceDocument() {
* @param accountId The ID of the account
* @param workspaceId The ID of the workspace
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public AddWorkspaceDocumentResponse addWorkspaceDocument(String accountId, String workspaceId) throws Exception {
+ public AddWorkspaceDocumentResponse addWorkspaceDocument(String accountId, String workspaceId) {
return addWorkspaceDocument(accountId, workspaceId, Optional.empty(),
Optional.empty());
}
@@ -143,11 +142,11 @@ public AddWorkspaceDocumentResponse addWorkspaceDocument(String accountId, Strin
* @param addWorkspaceDocumentRequest
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public AddWorkspaceDocumentResponse addWorkspaceDocument(
String accountId, String workspaceId,
- Optional extends AddWorkspaceDocumentRequest> addWorkspaceDocumentRequest, Optional options) throws Exception {
+ Optional extends AddWorkspaceDocumentRequest> addWorkspaceDocumentRequest, Optional options) {
com.docusign.iam.sdk.models.operations.AddWorkspaceDocumentRequest request =
com.docusign.iam.sdk.models.operations.AddWorkspaceDocumentRequest
.builder()
@@ -182,11 +181,11 @@ public GetWorkspaceDocumentRequestBuilder getWorkspaceDocument() {
* @param workspaceId The ID of the workspace
* @param documentId The ID of the document
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public GetWorkspaceDocumentResponse getWorkspaceDocument(
String accountId, String workspaceId,
- String documentId) throws Exception {
+ String documentId) {
return getWorkspaceDocument(accountId, workspaceId, documentId,
Optional.empty());
}
@@ -202,11 +201,11 @@ public GetWorkspaceDocumentResponse getWorkspaceDocument(
* @param documentId The ID of the document
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public GetWorkspaceDocumentResponse getWorkspaceDocument(
String accountId, String workspaceId,
- String documentId, Optional options) throws Exception {
+ String documentId, Optional options) {
GetWorkspaceDocumentRequest request =
GetWorkspaceDocumentRequest
.builder()
@@ -239,11 +238,11 @@ public DeleteWorkspaceDocumentRequestBuilder deleteWorkspaceDocument() {
* @param workspaceId The ID of the workspace
* @param documentId The ID of the document
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public DeleteWorkspaceDocumentResponse deleteWorkspaceDocument(
String accountId, String workspaceId,
- String documentId) throws Exception {
+ String documentId) {
return deleteWorkspaceDocument(accountId, workspaceId, documentId,
Optional.empty());
}
@@ -258,11 +257,11 @@ public DeleteWorkspaceDocumentResponse deleteWorkspaceDocument(
* @param documentId The ID of the document
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public DeleteWorkspaceDocumentResponse deleteWorkspaceDocument(
String accountId, String workspaceId,
- String documentId, Optional options) throws Exception {
+ String documentId, Optional options) {
DeleteWorkspaceDocumentRequest request =
DeleteWorkspaceDocumentRequest
.builder()
@@ -297,11 +296,11 @@ public GetWorkspaceDocumentContentsRequestBuilder getWorkspaceDocumentContents()
* @param workspaceId The ID of the workspace
* @param documentId The ID of the document
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public GetWorkspaceDocumentContentsResponse getWorkspaceDocumentContents(
String accountId, String workspaceId,
- String documentId) throws Exception {
+ String documentId) {
return getWorkspaceDocumentContents(accountId, workspaceId, documentId,
Optional.empty());
}
@@ -317,11 +316,11 @@ public GetWorkspaceDocumentContentsResponse getWorkspaceDocumentContents(
* @param documentId The ID of the document
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public GetWorkspaceDocumentContentsResponse getWorkspaceDocumentContents(
String accountId, String workspaceId,
- String documentId, Optional options) throws Exception {
+ String documentId, Optional options) {
GetWorkspaceDocumentContentsRequest request =
GetWorkspaceDocumentContentsRequest
.builder()
diff --git a/src/main/java/com/docusign/iam/sdk/WorkspaceUploadRequest.java b/src/main/java/com/docusign/iam/sdk/WorkspaceUploadRequest.java
index abd6cc3..bcd96de 100644
--- a/src/main/java/com/docusign/iam/sdk/WorkspaceUploadRequest.java
+++ b/src/main/java/com/docusign/iam/sdk/WorkspaceUploadRequest.java
@@ -37,7 +37,6 @@
import com.docusign.iam.sdk.operations.UpdateWorkspaceUploadRequest;
import com.docusign.iam.sdk.utils.Headers;
import com.docusign.iam.sdk.utils.Options;
-import java.lang.Exception;
import java.lang.String;
import java.util.Optional;
@@ -74,11 +73,11 @@ public CreateWorkspaceUploadRequestRequestBuilder createWorkspaceUploadRequest()
* @param workspaceId The ID of the workspace
* @param createWorkspaceUploadRequestBody
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public CreateWorkspaceUploadRequestResponse createWorkspaceUploadRequest(
String accountId, String workspaceId,
- CreateWorkspaceUploadRequestBody createWorkspaceUploadRequestBody) throws Exception {
+ CreateWorkspaceUploadRequestBody createWorkspaceUploadRequestBody) {
return createWorkspaceUploadRequest(accountId, workspaceId, createWorkspaceUploadRequestBody,
Optional.empty());
}
@@ -95,11 +94,11 @@ public CreateWorkspaceUploadRequestResponse createWorkspaceUploadRequest(
* @param createWorkspaceUploadRequestBody
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public CreateWorkspaceUploadRequestResponse createWorkspaceUploadRequest(
String accountId, String workspaceId,
- CreateWorkspaceUploadRequestBody createWorkspaceUploadRequestBody, Optional options) throws Exception {
+ CreateWorkspaceUploadRequestBody createWorkspaceUploadRequestBody, Optional options) {
CreateWorkspaceUploadRequestRequest request =
CreateWorkspaceUploadRequestRequest
.builder()
@@ -135,9 +134,9 @@ public GetWorkspaceUploadRequestsRequestBuilder getWorkspaceUploadRequests() {
* @param accountId The ID of the account
* @param workspaceId The ID of the workspace
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public GetWorkspaceUploadRequestsResponse getWorkspaceUploadRequests(String accountId, String workspaceId) throws Exception {
+ public GetWorkspaceUploadRequestsResponse getWorkspaceUploadRequests(String accountId, String workspaceId) {
return getWorkspaceUploadRequests(accountId, workspaceId, Optional.empty());
}
@@ -152,11 +151,11 @@ public GetWorkspaceUploadRequestsResponse getWorkspaceUploadRequests(String acco
* @param workspaceId The ID of the workspace
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public GetWorkspaceUploadRequestsResponse getWorkspaceUploadRequests(
String accountId, String workspaceId,
- Optional options) throws Exception {
+ Optional options) {
GetWorkspaceUploadRequestsRequest request =
GetWorkspaceUploadRequestsRequest
.builder()
@@ -192,11 +191,11 @@ public GetWorkspaceUploadRequestRequestBuilder getWorkspaceUploadRequest() {
* @param workspaceId The ID of the workspace
* @param uploadRequestId The ID of the upload request
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public GetWorkspaceUploadRequestResponse getWorkspaceUploadRequest(
String accountId, String workspaceId,
- String uploadRequestId) throws Exception {
+ String uploadRequestId) {
return getWorkspaceUploadRequest(accountId, workspaceId, uploadRequestId,
Optional.empty());
}
@@ -213,11 +212,11 @@ public GetWorkspaceUploadRequestResponse getWorkspaceUploadRequest(
* @param uploadRequestId The ID of the upload request
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public GetWorkspaceUploadRequestResponse getWorkspaceUploadRequest(
String accountId, String workspaceId,
- String uploadRequestId, Optional options) throws Exception {
+ String uploadRequestId, Optional options) {
GetWorkspaceUploadRequestRequest request =
GetWorkspaceUploadRequestRequest
.builder()
@@ -261,11 +260,11 @@ public UpdateWorkspaceUploadRequestRequestBuilder updateWorkspaceUploadRequest()
* @param uploadRequestId The ID of the upload request to update
* @param updateWorkspaceUploadRequestBody Upload request details for update operations
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public UpdateWorkspaceUploadRequestResponse updateWorkspaceUploadRequest(
String accountId, String workspaceId,
- String uploadRequestId, UpdateWorkspaceUploadRequestBody updateWorkspaceUploadRequestBody) throws Exception {
+ String uploadRequestId, UpdateWorkspaceUploadRequestBody updateWorkspaceUploadRequestBody) {
return updateWorkspaceUploadRequest(accountId, workspaceId, uploadRequestId,
updateWorkspaceUploadRequestBody, Optional.empty());
}
@@ -286,12 +285,12 @@ public UpdateWorkspaceUploadRequestResponse updateWorkspaceUploadRequest(
* @param updateWorkspaceUploadRequestBody Upload request details for update operations
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public UpdateWorkspaceUploadRequestResponse updateWorkspaceUploadRequest(
String accountId, String workspaceId,
String uploadRequestId, UpdateWorkspaceUploadRequestBody updateWorkspaceUploadRequestBody,
- Optional options) throws Exception {
+ Optional options) {
UpdateWorkspaceUploadRequestRequest request =
UpdateWorkspaceUploadRequestRequest
.builder()
@@ -327,11 +326,11 @@ public DeleteWorkspaceUploadRequestRequestBuilder deleteWorkspaceUploadRequest()
* @param workspaceId The ID of the workspace
* @param uploadRequestId The ID of the upload request to delete
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public DeleteWorkspaceUploadRequestResponse deleteWorkspaceUploadRequest(
String accountId, String workspaceId,
- String uploadRequestId) throws Exception {
+ String uploadRequestId) {
return deleteWorkspaceUploadRequest(accountId, workspaceId, uploadRequestId,
Optional.empty());
}
@@ -347,11 +346,11 @@ public DeleteWorkspaceUploadRequestResponse deleteWorkspaceUploadRequest(
* @param uploadRequestId The ID of the upload request to delete
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public DeleteWorkspaceUploadRequestResponse deleteWorkspaceUploadRequest(
String accountId, String workspaceId,
- String uploadRequestId, Optional options) throws Exception {
+ String uploadRequestId, Optional options) {
DeleteWorkspaceUploadRequestRequest request =
DeleteWorkspaceUploadRequestRequest
.builder()
@@ -388,11 +387,11 @@ public AddWorkspaceUploadRequestDocumentRequestBuilder addWorkspaceUploadRequest
* @param workspaceId The ID of the workspace
* @param uploadRequestId The ID of the upload request
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public AddWorkspaceUploadRequestDocumentResponse addWorkspaceUploadRequestDocument(
String accountId, String workspaceId,
- String uploadRequestId) throws Exception {
+ String uploadRequestId) {
return addWorkspaceUploadRequestDocument(accountId, workspaceId, uploadRequestId,
Optional.empty(), Optional.empty());
}
@@ -410,12 +409,12 @@ public AddWorkspaceUploadRequestDocumentResponse addWorkspaceUploadRequestDocume
* @param addWorkspaceUploadRequestDocumentRequest
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public AddWorkspaceUploadRequestDocumentResponse addWorkspaceUploadRequestDocument(
String accountId, String workspaceId,
String uploadRequestId, Optional extends AddWorkspaceUploadRequestDocumentRequest> addWorkspaceUploadRequestDocumentRequest,
- Optional options) throws Exception {
+ Optional options) {
com.docusign.iam.sdk.models.operations.AddWorkspaceUploadRequestDocumentRequest request =
com.docusign.iam.sdk.models.operations.AddWorkspaceUploadRequestDocumentRequest
.builder()
@@ -453,11 +452,11 @@ public CompleteWorkspaceUploadRequestRequestBuilder completeWorkspaceUploadReque
* @param workspaceId The ID of the workspace
* @param uploadRequestId The ID of the upload request to complete
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public CompleteWorkspaceUploadRequestResponse completeWorkspaceUploadRequest(
String accountId, String workspaceId,
- String uploadRequestId) throws Exception {
+ String uploadRequestId) {
return completeWorkspaceUploadRequest(accountId, workspaceId, uploadRequestId,
Optional.empty());
}
@@ -474,11 +473,11 @@ public CompleteWorkspaceUploadRequestResponse completeWorkspaceUploadRequest(
* @param uploadRequestId The ID of the upload request to complete
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public CompleteWorkspaceUploadRequestResponse completeWorkspaceUploadRequest(
String accountId, String workspaceId,
- String uploadRequestId, Optional options) throws Exception {
+ String uploadRequestId, Optional options) {
CompleteWorkspaceUploadRequestRequest request =
CompleteWorkspaceUploadRequestRequest
.builder()
diff --git a/src/main/java/com/docusign/iam/sdk/WorkspaceUsers.java b/src/main/java/com/docusign/iam/sdk/WorkspaceUsers.java
index 0a7294d..efdf0ae 100644
--- a/src/main/java/com/docusign/iam/sdk/WorkspaceUsers.java
+++ b/src/main/java/com/docusign/iam/sdk/WorkspaceUsers.java
@@ -30,7 +30,6 @@
import com.docusign.iam.sdk.operations.UpdateWorkspaceUser;
import com.docusign.iam.sdk.utils.Headers;
import com.docusign.iam.sdk.utils.Options;
-import java.lang.Exception;
import java.lang.String;
import java.util.Optional;
@@ -71,9 +70,9 @@ public GetWorkspaceUsersRequestBuilder getWorkspaceUsers() {
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public GetWorkspaceUsersResponse getWorkspaceUsers(GetWorkspaceUsersRequest request) throws Exception {
+ public GetWorkspaceUsersResponse getWorkspaceUsers(GetWorkspaceUsersRequest request) {
return getWorkspaceUsers(request, Optional.empty());
}
@@ -90,9 +89,9 @@ public GetWorkspaceUsersResponse getWorkspaceUsers(GetWorkspaceUsersRequest requ
* @param request The request object containing all the parameters for the API call.
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public GetWorkspaceUsersResponse getWorkspaceUsers(GetWorkspaceUsersRequest request, Optional options) throws Exception {
+ public GetWorkspaceUsersResponse getWorkspaceUsers(GetWorkspaceUsersRequest request, Optional options) {
RequestOperation operation
= new GetWorkspaceUsers.Sync(sdkConfiguration, options, _headers);
return operation.handleResponse(operation.doRequest(request));
@@ -133,9 +132,9 @@ public AddWorkspaceUserRequestBuilder addWorkspaceUser() {
* @param accountId The ID of the account
* @param workspaceId The ID of the workspace
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public AddWorkspaceUserResponse addWorkspaceUser(String accountId, String workspaceId) throws Exception {
+ public AddWorkspaceUserResponse addWorkspaceUser(String accountId, String workspaceId) {
return addWorkspaceUser(accountId, workspaceId, Optional.empty(),
Optional.empty());
}
@@ -158,11 +157,11 @@ public AddWorkspaceUserResponse addWorkspaceUser(String accountId, String worksp
* @param workspaceUserForCreate
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public AddWorkspaceUserResponse addWorkspaceUser(
String accountId, String workspaceId,
- Optional extends WorkspaceUserForCreate> workspaceUserForCreate, Optional options) throws Exception {
+ Optional extends WorkspaceUserForCreate> workspaceUserForCreate, Optional options) {
AddWorkspaceUserRequest request =
AddWorkspaceUserRequest
.builder()
@@ -199,11 +198,11 @@ public UpdateWorkspaceUserRequestBuilder updateWorkspaceUser() {
* @param workspaceId The ID of the workspace
* @param userId The ID of the user to update
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public UpdateWorkspaceUserResponse updateWorkspaceUser(
String accountId, String workspaceId,
- String userId) throws Exception {
+ String userId) {
return updateWorkspaceUser(accountId, workspaceId, userId,
Optional.empty(), Optional.empty());
}
@@ -221,12 +220,12 @@ public UpdateWorkspaceUserResponse updateWorkspaceUser(
* @param workspaceUserForUpdate
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public UpdateWorkspaceUserResponse updateWorkspaceUser(
String accountId, String workspaceId,
String userId, Optional extends WorkspaceUserForUpdate> workspaceUserForUpdate,
- Optional options) throws Exception {
+ Optional options) {
UpdateWorkspaceUserRequest request =
UpdateWorkspaceUserRequest
.builder()
@@ -262,11 +261,11 @@ public RevokeWorkspaceUserAccessRequestBuilder revokeWorkspaceUserAccess() {
* @param workspaceId The ID of the workspace to revoke access from
* @param userId The ID of the user to be revoked from the workspace
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public RevokeWorkspaceUserAccessResponse revokeWorkspaceUserAccess(
String accountId, String workspaceId,
- String userId) throws Exception {
+ String userId) {
return revokeWorkspaceUserAccess(accountId, workspaceId, userId,
Optional.empty(), Optional.empty());
}
@@ -283,12 +282,12 @@ public RevokeWorkspaceUserAccessResponse revokeWorkspaceUserAccess(
* @param revokeWorkspaceUserDetails
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public RevokeWorkspaceUserAccessResponse revokeWorkspaceUserAccess(
String accountId, String workspaceId,
String userId, Optional extends RevokeWorkspaceUserDetails> revokeWorkspaceUserDetails,
- Optional options) throws Exception {
+ Optional options) {
RevokeWorkspaceUserAccessRequest request =
RevokeWorkspaceUserAccessRequest
.builder()
@@ -324,11 +323,11 @@ public RestoreWorkspaceUserAccessRequestBuilder restoreWorkspaceUserAccess() {
* @param workspaceId The ID of the workspace to restore access
* @param userId The ID of the user to be restored to the workspace
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public RestoreWorkspaceUserAccessResponse restoreWorkspaceUserAccess(
String accountId, String workspaceId,
- String userId) throws Exception {
+ String userId) {
return restoreWorkspaceUserAccess(accountId, workspaceId, userId,
Optional.empty());
}
@@ -344,11 +343,11 @@ public RestoreWorkspaceUserAccessResponse restoreWorkspaceUserAccess(
* @param userId The ID of the user to be restored to the workspace
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public RestoreWorkspaceUserAccessResponse restoreWorkspaceUserAccess(
String accountId, String workspaceId,
- String userId, Optional options) throws Exception {
+ String userId, Optional options) {
RestoreWorkspaceUserAccessRequest request =
RestoreWorkspaceUserAccessRequest
.builder()
diff --git a/src/main/java/com/docusign/iam/sdk/Workspaces1.java b/src/main/java/com/docusign/iam/sdk/Workspaces1.java
index 616b6de..1e1fa82 100644
--- a/src/main/java/com/docusign/iam/sdk/Workspaces1.java
+++ b/src/main/java/com/docusign/iam/sdk/Workspaces1.java
@@ -9,6 +9,7 @@
public class Workspaces1 {
private static final Headers _headers = Headers.EMPTY;
private final SDKConfiguration sdkConfiguration;
+ private final WorkspaceBrands workspaceBrands;
private final WorkspaceDocuments workspaceDocuments;
private final WorkspaceUploadRequest workspaceUploadRequest;
private final WorkspaceUsers workspaceUsers;
@@ -16,12 +17,17 @@ public class Workspaces1 {
Workspaces1(SDKConfiguration sdkConfiguration) {
this.sdkConfiguration = sdkConfiguration;
+ this.workspaceBrands = new WorkspaceBrands(this.sdkConfiguration);
this.workspaceDocuments = new WorkspaceDocuments(this.sdkConfiguration);
this.workspaceUploadRequest = new WorkspaceUploadRequest(this.sdkConfiguration);
this.workspaceUsers = new WorkspaceUsers(this.sdkConfiguration);
this.workspaces = new Workspaces2(this.sdkConfiguration);
}
+ public final WorkspaceBrands workspaceBrands() {
+ return workspaceBrands;
+ }
+
public final WorkspaceDocuments workspaceDocuments() {
return workspaceDocuments;
}
diff --git a/src/main/java/com/docusign/iam/sdk/Workspaces2.java b/src/main/java/com/docusign/iam/sdk/Workspaces2.java
index 41df3de..e483fbf 100644
--- a/src/main/java/com/docusign/iam/sdk/Workspaces2.java
+++ b/src/main/java/com/docusign/iam/sdk/Workspaces2.java
@@ -6,6 +6,7 @@
import static com.docusign.iam.sdk.operations.Operations.RequestOperation;
import com.docusign.iam.sdk.models.components.CreateWorkspaceBody;
+import com.docusign.iam.sdk.models.components.UpdateWorkspaceBody;
import com.docusign.iam.sdk.models.components.WorkspaceEnvelopeForCreate;
import com.docusign.iam.sdk.models.operations.CreateWorkspaceEnvelopeRequest;
import com.docusign.iam.sdk.models.operations.CreateWorkspaceEnvelopeRequestBuilder;
@@ -25,15 +26,18 @@
import com.docusign.iam.sdk.models.operations.GetWorkspacesRequest;
import com.docusign.iam.sdk.models.operations.GetWorkspacesRequestBuilder;
import com.docusign.iam.sdk.models.operations.GetWorkspacesResponse;
+import com.docusign.iam.sdk.models.operations.UpdateWorkspaceRequest;
+import com.docusign.iam.sdk.models.operations.UpdateWorkspaceRequestBuilder;
+import com.docusign.iam.sdk.models.operations.UpdateWorkspaceResponse;
import com.docusign.iam.sdk.operations.CreateWorkspace;
import com.docusign.iam.sdk.operations.CreateWorkspaceEnvelope;
import com.docusign.iam.sdk.operations.GetWorkspace;
import com.docusign.iam.sdk.operations.GetWorkspaceAssignableRoles;
import com.docusign.iam.sdk.operations.GetWorkspaceEnvelopes;
import com.docusign.iam.sdk.operations.GetWorkspaces;
+import com.docusign.iam.sdk.operations.UpdateWorkspace;
import com.docusign.iam.sdk.utils.Headers;
import com.docusign.iam.sdk.utils.Options;
-import java.lang.Exception;
import java.lang.Integer;
import java.lang.String;
import java.util.Optional;
@@ -77,9 +81,9 @@ public GetWorkspacesRequestBuilder getWorkspaces() {
*
* @param accountId The ID of the account
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public GetWorkspacesResponse getWorkspaces(String accountId) throws Exception {
+ public GetWorkspacesResponse getWorkspaces(String accountId) {
return getWorkspaces(accountId, Optional.empty(), Optional.empty(),
Optional.empty());
}
@@ -100,11 +104,11 @@ public GetWorkspacesResponse getWorkspaces(String accountId) throws Exception {
* @param startPosition Position of the first item in the total results. Defaults to 0
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public GetWorkspacesResponse getWorkspaces(
String accountId, Optional count,
- Optional startPosition, Optional options) throws Exception {
+ Optional startPosition, Optional options) {
GetWorkspacesRequest request =
GetWorkspacesRequest
.builder()
@@ -144,9 +148,9 @@ public CreateWorkspaceRequestBuilder createWorkspace() {
* @param accountId The ID of the account
* @param createWorkspaceBody
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public CreateWorkspaceResponse createWorkspace(String accountId, CreateWorkspaceBody createWorkspaceBody) throws Exception {
+ public CreateWorkspaceResponse createWorkspace(String accountId, CreateWorkspaceBody createWorkspaceBody) {
return createWorkspace(accountId, createWorkspaceBody, Optional.empty());
}
@@ -163,11 +167,11 @@ public CreateWorkspaceResponse createWorkspace(String accountId, CreateWorkspace
* @param createWorkspaceBody
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public CreateWorkspaceResponse createWorkspace(
String accountId, CreateWorkspaceBody createWorkspaceBody,
- Optional options) throws Exception {
+ Optional options) {
CreateWorkspaceRequest request =
CreateWorkspaceRequest
.builder()
@@ -179,6 +183,65 @@ public CreateWorkspaceResponse createWorkspace(
return operation.handleResponse(operation.doRequest(request));
}
+ /**
+ * Updates an existing workspace
+ *
+ * This operation updates details about a specific workspace. It returns the workspace's unique
+ * identifier (ID), name, and metadata such as when it was created and by whom.
+ *
+ * @return The call builder
+ */
+ public UpdateWorkspaceRequestBuilder updateWorkspace() {
+ return new UpdateWorkspaceRequestBuilder(sdkConfiguration);
+ }
+
+ /**
+ * Updates an existing workspace
+ *
+ *
This operation updates details about a specific workspace. It returns the workspace's unique
+ * identifier (ID), name, and metadata such as when it was created and by whom.
+ *
+ * @param accountId The ID of the account
+ * @param workspaceId The ID of the workspace
+ * @param updateWorkspaceBody
+ * @return The response from the API call
+ * @throws RuntimeException subclass if the API call fails
+ */
+ public UpdateWorkspaceResponse updateWorkspace(
+ String accountId, String workspaceId,
+ UpdateWorkspaceBody updateWorkspaceBody) {
+ return updateWorkspace(accountId, workspaceId, updateWorkspaceBody,
+ Optional.empty());
+ }
+
+ /**
+ * Updates an existing workspace
+ *
+ *
This operation updates details about a specific workspace. It returns the workspace's unique
+ * identifier (ID), name, and metadata such as when it was created and by whom.
+ *
+ * @param accountId The ID of the account
+ * @param workspaceId The ID of the workspace
+ * @param updateWorkspaceBody
+ * @param options additional options
+ * @return The response from the API call
+ * @throws RuntimeException subclass if the API call fails
+ */
+ public UpdateWorkspaceResponse updateWorkspace(
+ String accountId, String workspaceId,
+ UpdateWorkspaceBody updateWorkspaceBody, Optional options) {
+ UpdateWorkspaceRequest request =
+ UpdateWorkspaceRequest
+ .builder()
+ .accountId(accountId)
+ .workspaceId(workspaceId)
+ .updateWorkspaceBody(updateWorkspaceBody)
+ .build();
+ RequestOperation operation
+ = new UpdateWorkspace.Sync(sdkConfiguration, options, _headers);
+ return operation.handleResponse(operation.doRequest(request));
+ }
+
/**
* Returns details about the workspace
*
@@ -200,9 +263,9 @@ public GetWorkspaceRequestBuilder getWorkspace() {
* @param accountId The ID of the account
* @param workspaceId The ID of the workspace
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public GetWorkspaceResponse getWorkspace(String accountId, String workspaceId) throws Exception {
+ public GetWorkspaceResponse getWorkspace(String accountId, String workspaceId) {
return getWorkspace(accountId, workspaceId, Optional.empty());
}
@@ -216,11 +279,11 @@ public GetWorkspaceResponse getWorkspace(String accountId, String workspaceId) t
* @param workspaceId The ID of the workspace
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public GetWorkspaceResponse getWorkspace(
String accountId, String workspaceId,
- Optional options) throws Exception {
+ Optional options) {
GetWorkspaceRequest request =
GetWorkspaceRequest
.builder()
@@ -268,9 +331,9 @@ public GetWorkspaceAssignableRolesRequestBuilder getWorkspaceAssignableRoles() {
*
* @param request The request object containing all the parameters for the API call.
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public GetWorkspaceAssignableRolesResponse getWorkspaceAssignableRoles(GetWorkspaceAssignableRolesRequest request) throws Exception {
+ public GetWorkspaceAssignableRolesResponse getWorkspaceAssignableRoles(GetWorkspaceAssignableRolesRequest request) {
return getWorkspaceAssignableRoles(request, Optional.empty());
}
@@ -291,9 +354,9 @@ public GetWorkspaceAssignableRolesResponse getWorkspaceAssignableRoles(GetWorksp
* @param request The request object containing all the parameters for the API call.
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public GetWorkspaceAssignableRolesResponse getWorkspaceAssignableRoles(GetWorkspaceAssignableRolesRequest request, Optional options) throws Exception {
+ public GetWorkspaceAssignableRolesResponse getWorkspaceAssignableRoles(GetWorkspaceAssignableRolesRequest request, Optional options) {
RequestOperation operation
= new GetWorkspaceAssignableRoles.Sync(sdkConfiguration, options, _headers);
return operation.handleResponse(operation.doRequest(request));
@@ -349,11 +412,11 @@ public CreateWorkspaceEnvelopeRequestBuilder createWorkspaceEnvelope() {
* @param workspaceId The ID of the workspace
* @param workspaceEnvelopeForCreate
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public CreateWorkspaceEnvelopeResponse createWorkspaceEnvelope(
String accountId, String workspaceId,
- WorkspaceEnvelopeForCreate workspaceEnvelopeForCreate) throws Exception {
+ WorkspaceEnvelopeForCreate workspaceEnvelopeForCreate) {
return createWorkspaceEnvelope(accountId, workspaceId, workspaceEnvelopeForCreate,
Optional.empty());
}
@@ -383,11 +446,11 @@ public CreateWorkspaceEnvelopeResponse createWorkspaceEnvelope(
* @param workspaceEnvelopeForCreate
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public CreateWorkspaceEnvelopeResponse createWorkspaceEnvelope(
String accountId, String workspaceId,
- WorkspaceEnvelopeForCreate workspaceEnvelopeForCreate, Optional options) throws Exception {
+ WorkspaceEnvelopeForCreate workspaceEnvelopeForCreate, Optional options) {
CreateWorkspaceEnvelopeRequest request =
CreateWorkspaceEnvelopeRequest
.builder()
@@ -433,9 +496,9 @@ public GetWorkspaceEnvelopesRequestBuilder getWorkspaceEnvelopes() {
* @param accountId The ID of the account
* @param workspaceId The ID of the workspace
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
- public GetWorkspaceEnvelopesResponse getWorkspaceEnvelopes(String accountId, String workspaceId) throws Exception {
+ public GetWorkspaceEnvelopesResponse getWorkspaceEnvelopes(String accountId, String workspaceId) {
return getWorkspaceEnvelopes(accountId, workspaceId, Optional.empty());
}
@@ -455,11 +518,11 @@ public GetWorkspaceEnvelopesResponse getWorkspaceEnvelopes(String accountId, Str
* @param workspaceId The ID of the workspace
* @param options additional options
* @return The response from the API call
- * @throws Exception if the API call fails
+ * @throws RuntimeException subclass if the API call fails
*/
public GetWorkspaceEnvelopesResponse getWorkspaceEnvelopes(
String accountId, String workspaceId,
- Optional options) throws Exception {
+ Optional options) {
GetWorkspaceEnvelopesRequest request =
GetWorkspaceEnvelopesRequest
.builder()
diff --git a/src/main/java/com/docusign/iam/sdk/models/components/BrandColor.java b/src/main/java/com/docusign/iam/sdk/models/components/BrandColor.java
new file mode 100644
index 0000000..4ddde59
--- /dev/null
+++ b/src/main/java/com/docusign/iam/sdk/models/components/BrandColor.java
@@ -0,0 +1,152 @@
+/*
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
+ */
+package com.docusign.iam.sdk.models.components;
+
+import com.docusign.iam.sdk.utils.Utils;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.lang.Override;
+import java.lang.String;
+import org.openapitools.jackson.nullable.JsonNullable;
+
+
+public class BrandColor {
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("name")
+ private JsonNullable name;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("value")
+ private JsonNullable value;
+
+ @JsonCreator
+ public BrandColor(
+ @JsonProperty("name") JsonNullable name,
+ @JsonProperty("value") JsonNullable value) {
+ Utils.checkNotNull(name, "name");
+ Utils.checkNotNull(value, "value");
+ this.name = name;
+ this.value = value;
+ }
+
+ public BrandColor() {
+ this(JsonNullable.undefined(), JsonNullable.undefined());
+ }
+
+ @JsonIgnore
+ public JsonNullable name() {
+ return name;
+ }
+
+ @JsonIgnore
+ public JsonNullable value() {
+ return value;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+
+ public BrandColor withName(String name) {
+ Utils.checkNotNull(name, "name");
+ this.name = JsonNullable.of(name);
+ return this;
+ }
+
+ public BrandColor withName(JsonNullable name) {
+ Utils.checkNotNull(name, "name");
+ this.name = name;
+ return this;
+ }
+
+ public BrandColor withValue(String value) {
+ Utils.checkNotNull(value, "value");
+ this.value = JsonNullable.of(value);
+ return this;
+ }
+
+ public BrandColor withValue(JsonNullable value) {
+ Utils.checkNotNull(value, "value");
+ this.value = value;
+ return this;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ BrandColor other = (BrandColor) o;
+ return
+ Utils.enhancedDeepEquals(this.name, other.name) &&
+ Utils.enhancedDeepEquals(this.value, other.value);
+ }
+
+ @Override
+ public int hashCode() {
+ return Utils.enhancedHash(
+ name, value);
+ }
+
+ @Override
+ public String toString() {
+ return Utils.toString(BrandColor.class,
+ "name", name,
+ "value", value);
+ }
+
+ @SuppressWarnings("UnusedReturnValue")
+ public final static class Builder {
+
+ private JsonNullable name = JsonNullable.undefined();
+
+ private JsonNullable value = JsonNullable.undefined();
+
+ private Builder() {
+ // force use of static builder() method
+ }
+
+
+ public Builder name(String name) {
+ Utils.checkNotNull(name, "name");
+ this.name = JsonNullable.of(name);
+ return this;
+ }
+
+ public Builder name(JsonNullable name) {
+ Utils.checkNotNull(name, "name");
+ this.name = name;
+ return this;
+ }
+
+
+ public Builder value(String value) {
+ Utils.checkNotNull(value, "value");
+ this.value = JsonNullable.of(value);
+ return this;
+ }
+
+ public Builder value(JsonNullable value) {
+ Utils.checkNotNull(value, "value");
+ this.value = value;
+ return this;
+ }
+
+ public BrandColor build() {
+
+ return new BrandColor(
+ name, value);
+ }
+
+ }
+}
diff --git a/src/main/java/com/docusign/iam/sdk/models/components/BrandLogos.java b/src/main/java/com/docusign/iam/sdk/models/components/BrandLogos.java
new file mode 100644
index 0000000..73dac3b
--- /dev/null
+++ b/src/main/java/com/docusign/iam/sdk/models/components/BrandLogos.java
@@ -0,0 +1,194 @@
+/*
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
+ */
+package com.docusign.iam.sdk.models.components;
+
+import com.docusign.iam.sdk.utils.Utils;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.lang.Override;
+import java.lang.String;
+import org.openapitools.jackson.nullable.JsonNullable;
+
+
+public class BrandLogos {
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("primary")
+ private JsonNullable primary;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("secondary")
+ private JsonNullable secondary;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("email")
+ private JsonNullable email;
+
+ @JsonCreator
+ public BrandLogos(
+ @JsonProperty("primary") JsonNullable primary,
+ @JsonProperty("secondary") JsonNullable secondary,
+ @JsonProperty("email") JsonNullable email) {
+ Utils.checkNotNull(primary, "primary");
+ Utils.checkNotNull(secondary, "secondary");
+ Utils.checkNotNull(email, "email");
+ this.primary = primary;
+ this.secondary = secondary;
+ this.email = email;
+ }
+
+ public BrandLogos() {
+ this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined());
+ }
+
+ @JsonIgnore
+ public JsonNullable primary() {
+ return primary;
+ }
+
+ @JsonIgnore
+ public JsonNullable secondary() {
+ return secondary;
+ }
+
+ @JsonIgnore
+ public JsonNullable email() {
+ return email;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+
+ public BrandLogos withPrimary(String primary) {
+ Utils.checkNotNull(primary, "primary");
+ this.primary = JsonNullable.of(primary);
+ return this;
+ }
+
+ public BrandLogos withPrimary(JsonNullable primary) {
+ Utils.checkNotNull(primary, "primary");
+ this.primary = primary;
+ return this;
+ }
+
+ public BrandLogos withSecondary(String secondary) {
+ Utils.checkNotNull(secondary, "secondary");
+ this.secondary = JsonNullable.of(secondary);
+ return this;
+ }
+
+ public BrandLogos withSecondary(JsonNullable secondary) {
+ Utils.checkNotNull(secondary, "secondary");
+ this.secondary = secondary;
+ return this;
+ }
+
+ public BrandLogos withEmail(String email) {
+ Utils.checkNotNull(email, "email");
+ this.email = JsonNullable.of(email);
+ return this;
+ }
+
+ public BrandLogos withEmail(JsonNullable email) {
+ Utils.checkNotNull(email, "email");
+ this.email = email;
+ return this;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ BrandLogos other = (BrandLogos) o;
+ return
+ Utils.enhancedDeepEquals(this.primary, other.primary) &&
+ Utils.enhancedDeepEquals(this.secondary, other.secondary) &&
+ Utils.enhancedDeepEquals(this.email, other.email);
+ }
+
+ @Override
+ public int hashCode() {
+ return Utils.enhancedHash(
+ primary, secondary, email);
+ }
+
+ @Override
+ public String toString() {
+ return Utils.toString(BrandLogos.class,
+ "primary", primary,
+ "secondary", secondary,
+ "email", email);
+ }
+
+ @SuppressWarnings("UnusedReturnValue")
+ public final static class Builder {
+
+ private JsonNullable primary = JsonNullable.undefined();
+
+ private JsonNullable secondary = JsonNullable.undefined();
+
+ private JsonNullable email = JsonNullable.undefined();
+
+ private Builder() {
+ // force use of static builder() method
+ }
+
+
+ public Builder primary(String primary) {
+ Utils.checkNotNull(primary, "primary");
+ this.primary = JsonNullable.of(primary);
+ return this;
+ }
+
+ public Builder primary(JsonNullable primary) {
+ Utils.checkNotNull(primary, "primary");
+ this.primary = primary;
+ return this;
+ }
+
+
+ public Builder secondary(String secondary) {
+ Utils.checkNotNull(secondary, "secondary");
+ this.secondary = JsonNullable.of(secondary);
+ return this;
+ }
+
+ public Builder secondary(JsonNullable secondary) {
+ Utils.checkNotNull(secondary, "secondary");
+ this.secondary = secondary;
+ return this;
+ }
+
+
+ public Builder email(String email) {
+ Utils.checkNotNull(email, "email");
+ this.email = JsonNullable.of(email);
+ return this;
+ }
+
+ public Builder email(JsonNullable email) {
+ Utils.checkNotNull(email, "email");
+ this.email = email;
+ return this;
+ }
+
+ public BrandLogos build() {
+
+ return new BrandLogos(
+ primary, secondary, email);
+ }
+
+ }
+}
diff --git a/src/main/java/com/docusign/iam/sdk/models/components/GetWorkspaceBrandResponse.java b/src/main/java/com/docusign/iam/sdk/models/components/GetWorkspaceBrandResponse.java
new file mode 100644
index 0000000..597e207
--- /dev/null
+++ b/src/main/java/com/docusign/iam/sdk/models/components/GetWorkspaceBrandResponse.java
@@ -0,0 +1,597 @@
+/*
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
+ */
+package com.docusign.iam.sdk.models.components;
+
+import com.docusign.iam.sdk.utils.Utils;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude.Include;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.lang.Boolean;
+import java.lang.Override;
+import java.lang.String;
+import java.lang.SuppressWarnings;
+import java.util.List;
+import java.util.Optional;
+import org.openapitools.jackson.nullable.JsonNullable;
+
+/**
+ * GetWorkspaceBrandResponse
+ *
+ * The details of a single workspace brand
+ */
+public class GetWorkspaceBrandResponse {
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("brand_id")
+ private JsonNullable brandId;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("brand_name")
+ private JsonNullable brandName;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("brand_company")
+ private JsonNullable brandCompany;
+
+
+ @JsonInclude(Include.ALWAYS)
+ @JsonProperty("colors")
+ private Optional extends List> colors;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("logos")
+ private Optional extends BrandLogos> logos;
+
+
+ @JsonInclude(Include.ALWAYS)
+ @JsonProperty("brand_languages")
+ private Optional extends List> brandLanguages;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("default_brand_language")
+ private JsonNullable defaultBrandLanguage;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("is_sending_default")
+ private Optional isSendingDefault;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("is_signing_default")
+ private Optional isSigningDefault;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("primary_logo_id")
+ private JsonNullable primaryLogoId;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("secondary_logo_id")
+ private JsonNullable secondaryLogoId;
+
+
+ @JsonInclude(Include.NON_ABSENT)
+ @JsonProperty("email_logo_id")
+ private JsonNullable emailLogoId;
+
+ @JsonCreator
+ public GetWorkspaceBrandResponse(
+ @JsonProperty("brand_id") JsonNullable brandId,
+ @JsonProperty("brand_name") JsonNullable brandName,
+ @JsonProperty("brand_company") JsonNullable brandCompany,
+ @JsonProperty("colors") Optional extends List> colors,
+ @JsonProperty("logos") Optional extends BrandLogos> logos,
+ @JsonProperty("brand_languages") Optional extends List> brandLanguages,
+ @JsonProperty("default_brand_language") JsonNullable defaultBrandLanguage,
+ @JsonProperty("is_sending_default") Optional isSendingDefault,
+ @JsonProperty("is_signing_default") Optional isSigningDefault,
+ @JsonProperty("primary_logo_id") JsonNullable primaryLogoId,
+ @JsonProperty("secondary_logo_id") JsonNullable secondaryLogoId,
+ @JsonProperty("email_logo_id") JsonNullable emailLogoId) {
+ Utils.checkNotNull(brandId, "brandId");
+ Utils.checkNotNull(brandName, "brandName");
+ Utils.checkNotNull(brandCompany, "brandCompany");
+ Utils.checkNotNull(colors, "colors");
+ Utils.checkNotNull(logos, "logos");
+ Utils.checkNotNull(brandLanguages, "brandLanguages");
+ Utils.checkNotNull(defaultBrandLanguage, "defaultBrandLanguage");
+ Utils.checkNotNull(isSendingDefault, "isSendingDefault");
+ Utils.checkNotNull(isSigningDefault, "isSigningDefault");
+ Utils.checkNotNull(primaryLogoId, "primaryLogoId");
+ Utils.checkNotNull(secondaryLogoId, "secondaryLogoId");
+ Utils.checkNotNull(emailLogoId, "emailLogoId");
+ this.brandId = brandId;
+ this.brandName = brandName;
+ this.brandCompany = brandCompany;
+ this.colors = colors;
+ this.logos = logos;
+ this.brandLanguages = brandLanguages;
+ this.defaultBrandLanguage = defaultBrandLanguage;
+ this.isSendingDefault = isSendingDefault;
+ this.isSigningDefault = isSigningDefault;
+ this.primaryLogoId = primaryLogoId;
+ this.secondaryLogoId = secondaryLogoId;
+ this.emailLogoId = emailLogoId;
+ }
+
+ public GetWorkspaceBrandResponse() {
+ this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(),
+ Optional.empty(), Optional.empty(), Optional.empty(),
+ JsonNullable.undefined(), Optional.empty(), Optional.empty(),
+ JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined());
+ }
+
+ @JsonIgnore
+ public JsonNullable brandId() {
+ return brandId;
+ }
+
+ @JsonIgnore
+ public JsonNullable brandName() {
+ return brandName;
+ }
+
+ @JsonIgnore
+ public JsonNullable brandCompany() {
+ return brandCompany;
+ }
+
+ @SuppressWarnings("unchecked")
+ @JsonIgnore
+ public Optional> colors() {
+ return (Optional>) colors;
+ }
+
+ @SuppressWarnings("unchecked")
+ @JsonIgnore
+ public Optional logos() {
+ return (Optional) logos;
+ }
+
+ @SuppressWarnings("unchecked")
+ @JsonIgnore
+ public Optional> brandLanguages() {
+ return (Optional>) brandLanguages;
+ }
+
+ @JsonIgnore
+ public JsonNullable defaultBrandLanguage() {
+ return defaultBrandLanguage;
+ }
+
+ @JsonIgnore
+ public Optional isSendingDefault() {
+ return isSendingDefault;
+ }
+
+ @JsonIgnore
+ public Optional isSigningDefault() {
+ return isSigningDefault;
+ }
+
+ @JsonIgnore
+ public JsonNullable primaryLogoId() {
+ return primaryLogoId;
+ }
+
+ @JsonIgnore
+ public JsonNullable secondaryLogoId() {
+ return secondaryLogoId;
+ }
+
+ @JsonIgnore
+ public JsonNullable emailLogoId() {
+ return emailLogoId;
+ }
+
+ public static Builder builder() {
+ return new Builder();
+ }
+
+
+ public GetWorkspaceBrandResponse withBrandId(String brandId) {
+ Utils.checkNotNull(brandId, "brandId");
+ this.brandId = JsonNullable.of(brandId);
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withBrandId(JsonNullable brandId) {
+ Utils.checkNotNull(brandId, "brandId");
+ this.brandId = brandId;
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withBrandName(String brandName) {
+ Utils.checkNotNull(brandName, "brandName");
+ this.brandName = JsonNullable.of(brandName);
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withBrandName(JsonNullable brandName) {
+ Utils.checkNotNull(brandName, "brandName");
+ this.brandName = brandName;
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withBrandCompany(String brandCompany) {
+ Utils.checkNotNull(brandCompany, "brandCompany");
+ this.brandCompany = JsonNullable.of(brandCompany);
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withBrandCompany(JsonNullable brandCompany) {
+ Utils.checkNotNull(brandCompany, "brandCompany");
+ this.brandCompany = brandCompany;
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withColors(List colors) {
+ Utils.checkNotNull(colors, "colors");
+ this.colors = Optional.ofNullable(colors);
+ return this;
+ }
+
+
+ public GetWorkspaceBrandResponse withColors(Optional extends List> colors) {
+ Utils.checkNotNull(colors, "colors");
+ this.colors = colors;
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withLogos(BrandLogos logos) {
+ Utils.checkNotNull(logos, "logos");
+ this.logos = Optional.ofNullable(logos);
+ return this;
+ }
+
+
+ public GetWorkspaceBrandResponse withLogos(Optional extends BrandLogos> logos) {
+ Utils.checkNotNull(logos, "logos");
+ this.logos = logos;
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withBrandLanguages(List brandLanguages) {
+ Utils.checkNotNull(brandLanguages, "brandLanguages");
+ this.brandLanguages = Optional.ofNullable(brandLanguages);
+ return this;
+ }
+
+
+ public GetWorkspaceBrandResponse withBrandLanguages(Optional extends List> brandLanguages) {
+ Utils.checkNotNull(brandLanguages, "brandLanguages");
+ this.brandLanguages = brandLanguages;
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withDefaultBrandLanguage(String defaultBrandLanguage) {
+ Utils.checkNotNull(defaultBrandLanguage, "defaultBrandLanguage");
+ this.defaultBrandLanguage = JsonNullable.of(defaultBrandLanguage);
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withDefaultBrandLanguage(JsonNullable defaultBrandLanguage) {
+ Utils.checkNotNull(defaultBrandLanguage, "defaultBrandLanguage");
+ this.defaultBrandLanguage = defaultBrandLanguage;
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withIsSendingDefault(boolean isSendingDefault) {
+ Utils.checkNotNull(isSendingDefault, "isSendingDefault");
+ this.isSendingDefault = Optional.ofNullable(isSendingDefault);
+ return this;
+ }
+
+
+ public GetWorkspaceBrandResponse withIsSendingDefault(Optional isSendingDefault) {
+ Utils.checkNotNull(isSendingDefault, "isSendingDefault");
+ this.isSendingDefault = isSendingDefault;
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withIsSigningDefault(boolean isSigningDefault) {
+ Utils.checkNotNull(isSigningDefault, "isSigningDefault");
+ this.isSigningDefault = Optional.ofNullable(isSigningDefault);
+ return this;
+ }
+
+
+ public GetWorkspaceBrandResponse withIsSigningDefault(Optional isSigningDefault) {
+ Utils.checkNotNull(isSigningDefault, "isSigningDefault");
+ this.isSigningDefault = isSigningDefault;
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withPrimaryLogoId(String primaryLogoId) {
+ Utils.checkNotNull(primaryLogoId, "primaryLogoId");
+ this.primaryLogoId = JsonNullable.of(primaryLogoId);
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withPrimaryLogoId(JsonNullable primaryLogoId) {
+ Utils.checkNotNull(primaryLogoId, "primaryLogoId");
+ this.primaryLogoId = primaryLogoId;
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withSecondaryLogoId(String secondaryLogoId) {
+ Utils.checkNotNull(secondaryLogoId, "secondaryLogoId");
+ this.secondaryLogoId = JsonNullable.of(secondaryLogoId);
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withSecondaryLogoId(JsonNullable secondaryLogoId) {
+ Utils.checkNotNull(secondaryLogoId, "secondaryLogoId");
+ this.secondaryLogoId = secondaryLogoId;
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withEmailLogoId(String emailLogoId) {
+ Utils.checkNotNull(emailLogoId, "emailLogoId");
+ this.emailLogoId = JsonNullable.of(emailLogoId);
+ return this;
+ }
+
+ public GetWorkspaceBrandResponse withEmailLogoId(JsonNullable emailLogoId) {
+ Utils.checkNotNull(emailLogoId, "emailLogoId");
+ this.emailLogoId = emailLogoId;
+ return this;
+ }
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ GetWorkspaceBrandResponse other = (GetWorkspaceBrandResponse) o;
+ return
+ Utils.enhancedDeepEquals(this.brandId, other.brandId) &&
+ Utils.enhancedDeepEquals(this.brandName, other.brandName) &&
+ Utils.enhancedDeepEquals(this.brandCompany, other.brandCompany) &&
+ Utils.enhancedDeepEquals(this.colors, other.colors) &&
+ Utils.enhancedDeepEquals(this.logos, other.logos) &&
+ Utils.enhancedDeepEquals(this.brandLanguages, other.brandLanguages) &&
+ Utils.enhancedDeepEquals(this.defaultBrandLanguage, other.defaultBrandLanguage) &&
+ Utils.enhancedDeepEquals(this.isSendingDefault, other.isSendingDefault) &&
+ Utils.enhancedDeepEquals(this.isSigningDefault, other.isSigningDefault) &&
+ Utils.enhancedDeepEquals(this.primaryLogoId, other.primaryLogoId) &&
+ Utils.enhancedDeepEquals(this.secondaryLogoId, other.secondaryLogoId) &&
+ Utils.enhancedDeepEquals(this.emailLogoId, other.emailLogoId);
+ }
+
+ @Override
+ public int hashCode() {
+ return Utils.enhancedHash(
+ brandId, brandName, brandCompany,
+ colors, logos, brandLanguages,
+ defaultBrandLanguage, isSendingDefault, isSigningDefault,
+ primaryLogoId, secondaryLogoId, emailLogoId);
+ }
+
+ @Override
+ public String toString() {
+ return Utils.toString(GetWorkspaceBrandResponse.class,
+ "brandId", brandId,
+ "brandName", brandName,
+ "brandCompany", brandCompany,
+ "colors", colors,
+ "logos", logos,
+ "brandLanguages", brandLanguages,
+ "defaultBrandLanguage", defaultBrandLanguage,
+ "isSendingDefault", isSendingDefault,
+ "isSigningDefault", isSigningDefault,
+ "primaryLogoId", primaryLogoId,
+ "secondaryLogoId", secondaryLogoId,
+ "emailLogoId", emailLogoId);
+ }
+
+ @SuppressWarnings("UnusedReturnValue")
+ public final static class Builder {
+
+ private JsonNullable brandId = JsonNullable.undefined();
+
+ private JsonNullable brandName = JsonNullable.undefined();
+
+ private JsonNullable brandCompany = JsonNullable.undefined();
+
+ private Optional extends List> colors = Optional.empty();
+
+ private Optional extends BrandLogos> logos = Optional.empty();
+
+ private Optional extends List> brandLanguages = Optional.empty();
+
+ private JsonNullable defaultBrandLanguage = JsonNullable.undefined();
+
+ private Optional isSendingDefault = Optional.empty();
+
+ private Optional isSigningDefault = Optional.empty();
+
+ private JsonNullable primaryLogoId = JsonNullable.undefined();
+
+ private JsonNullable secondaryLogoId = JsonNullable.undefined();
+
+ private JsonNullable emailLogoId = JsonNullable.undefined();
+
+ private Builder() {
+ // force use of static builder() method
+ }
+
+
+ public Builder brandId(String brandId) {
+ Utils.checkNotNull(brandId, "brandId");
+ this.brandId = JsonNullable.of(brandId);
+ return this;
+ }
+
+ public Builder brandId(JsonNullable brandId) {
+ Utils.checkNotNull(brandId, "brandId");
+ this.brandId = brandId;
+ return this;
+ }
+
+
+ public Builder brandName(String brandName) {
+ Utils.checkNotNull(brandName, "brandName");
+ this.brandName = JsonNullable.of(brandName);
+ return this;
+ }
+
+ public Builder brandName(JsonNullable brandName) {
+ Utils.checkNotNull(brandName, "brandName");
+ this.brandName = brandName;
+ return this;
+ }
+
+
+ public Builder brandCompany(String brandCompany) {
+ Utils.checkNotNull(brandCompany, "brandCompany");
+ this.brandCompany = JsonNullable.of(brandCompany);
+ return this;
+ }
+
+ public Builder brandCompany(JsonNullable brandCompany) {
+ Utils.checkNotNull(brandCompany, "brandCompany");
+ this.brandCompany = brandCompany;
+ return this;
+ }
+
+
+ public Builder colors(List colors) {
+ Utils.checkNotNull(colors, "colors");
+ this.colors = Optional.ofNullable(colors);
+ return this;
+ }
+
+ public Builder colors(Optional extends List