From 81c332a1da318a7896f0b2cee03d9e823ef0f693 Mon Sep 17 00:00:00 2001 From: Michael Schuetze Date: Tue, 28 Apr 2026 16:13:41 -0500 Subject: [PATCH] Updated library to remove Zoomi endpoints --- README.md | 12 +- build.gradle | 4 +- build.sbt | 10 +- pom.xml | 10 +- .../cloud/v2/client/ApiClient.java | 2 +- .../client/api/ApplicationManagementApi.java | 2 +- .../v2/client/api/AuthenticationApi.java | 2 +- .../cloud/v2/client/api/CourseApi.java | 27 +- .../cloud/v2/client/api/DispatchApi.java | 18 +- .../cloud/v2/client/api/InvitationsApi.java | 26 +- .../cloud/v2/client/api/RegistrationApi.java | 1 + .../cloud/v2/client/api/ZoomiApi.java | 542 ------------------ .../DispatchRegistrationCountSchema.java | 4 +- .../cloud/v2/client/model/DispatchSchema.java | 25 +- ....java => InvitationEmailUpdateSchema.java} | 62 +- .../client/model/PrivateInvitationSchema.java | 50 +- .../model/PrivateInvitationUpdateSchema.java | 10 +- .../client/model/PublicInvitationSchema.java | 51 +- .../model/PublicInvitationUpdateSchema.java | 2 +- .../cloud/v2/client/model/ZoomiCompanyId.java | 89 --- 20 files changed, 204 insertions(+), 745 deletions(-) delete mode 100644 src/main/java/com/rusticisoftware/cloud/v2/client/api/ZoomiApi.java rename src/main/java/com/rusticisoftware/cloud/v2/client/model/{ZoomiCourseOptionsSchema.java => InvitationEmailUpdateSchema.java} (51%) delete mode 100644 src/main/java/com/rusticisoftware/cloud/v2/client/model/ZoomiCompanyId.java diff --git a/README.md b/README.md index 91baf44..51acaf4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ SCORM Cloud Rest API - API version: 2.0 - - Build date: 2023-12-14T11:28:58.809-06:00 + - Build date: 2026-04-28T16:00:00.126-05:00 REST API used for SCORM Cloud integrations. @@ -12,7 +12,7 @@ REST API used for SCORM Cloud integrations. ## Requirements Building the API client library requires: -1. Java 1.7+ +1. Java 8+ 2. Maven/Gradle ## Installation @@ -42,7 +42,7 @@ Add this dependency to your project's POM: com.rusticisoftware.cloud.v2.client scormcloud-api-v2-client - 4.0.0 + 5.0.0 compile ``` @@ -52,7 +52,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.rusticisoftware.cloud.v2.client:scormcloud-api-v2-client:4.0.0" +compile "com.rusticisoftware.cloud.v2.client:scormcloud-api-v2-client:5.0.0" ``` #### Others @@ -65,7 +65,7 @@ mvn clean package Then manually install the following JARs: -* `target/scormcloud-api-v2-client-4.0.0.jar` +* `target/scormcloud-api-v2-client-5.0.0.jar` * `target/lib/*.jar` ## Tips and Tricks @@ -271,7 +271,7 @@ public class ScormCloud_Java_Sample { // This call will use OAuth with the "write:course" scope // if configured. Otherwise the basic auth credentials will be used CourseApi courseApi = new CourseApi(); - StringResultSchema jobId = courseApi.createUploadAndImportCourseJob(courseId, null, null, null, null, new File(coursePath)); + StringResultSchema jobId = courseApi.createUploadAndImportCourseJob(courseId, null, null, null, null, null, new File(coursePath)); // This call will use OAuth with the "read:course" scope // if configured. Otherwise the basic auth credentials will be used diff --git a/build.gradle b/build.gradle index 62d4c43..8885344 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'idea' apply plugin: 'eclipse' group = 'com.rusticisoftware.cloud.v2.client' -version = '4.0.0' +version = '5.0.0' buildscript { repositories { @@ -95,7 +95,7 @@ if(hasProperty('target') && target == 'android') { ext { swagger_annotations_version = "1.5.24" - jackson_version = "2.13.5" + jackson_version = "2.18.6" jersey_version = "2.34" } diff --git a/build.sbt b/build.sbt index 129533a..d2ddd6e 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.rusticisoftware.cloud.v2.client", name := "scormcloud-api-v2-client", - version := "4.0.0", + version := "5.0.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), @@ -14,9 +14,9 @@ lazy val root = (project in file(".")). "org.glassfish.jersey.media" % "jersey-media-multipart" % "2.34", "org.glassfish.jersey.inject" % "jersey-hk2" % "2.34", "org.glassfish.jersey.media" % "jersey-media-json-jackson" % "2.34", - "com.fasterxml.jackson.core" % "jackson-core" % "2.13.5" % "compile", - "com.fasterxml.jackson.core" % "jackson-annotations" % "2.13.5" % "compile", - "com.fasterxml.jackson.core" % "jackson-databind" % "2.13.5" % "compile", - "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.13.5" % "compile" + "com.fasterxml.jackson.core" % "jackson-core" % "2.18.6" % "compile", + "com.fasterxml.jackson.core" % "jackson-annotations" % "2.18.6" % "compile", + "com.fasterxml.jackson.core" % "jackson-databind" % "2.18.6" % "compile", + "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.18.6" % "compile" ) ) diff --git a/pom.xml b/pom.xml index 44d8861..231b45d 100644 --- a/pom.xml +++ b/pom.xml @@ -1,18 +1,18 @@ - + 4.0.0 com.rusticisoftware.cloud.v2.client scormcloud-api-v2-client jar scormcloud-api-v2-client - 4.0.1-SNAPSHOT + 5.0.0-SNAPSHOT https://rusticisoftware.com/products/scorm-cloud/api/ Swagger Generated Java Client for SCORM Cloud API v2 scm:git:git@github.com:RusticiSoftware/scormcloud-api-v2-client-java.git scm:git:git@github.com:RusticiSoftware/scormcloud-api-v2-client-java.git https://github.com/RusticiSoftware/scormcloud-api-v2-client-java - HEAD - + @@ -277,7 +277,7 @@ UTF-8 1.5.24 2.34 - 2.13.5 + 2.18.6 1.0.0 diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/ApiClient.java b/src/main/java/com/rusticisoftware/cloud/v2/client/ApiClient.java index 3ee13e0..a81376d 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/ApiClient.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/ApiClient.java @@ -73,7 +73,7 @@ public ApiClient() { this.dateFormat = new RFC3339DateFormat(); // Set default User-Agent. - setUserAgent("Swagger-Codegen/4.0.0/java"); + setUserAgent("Swagger-Codegen/5.0.0/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/api/ApplicationManagementApi.java b/src/main/java/com/rusticisoftware/cloud/v2/client/api/ApplicationManagementApi.java index 4d08660..a3c256a 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/api/ApplicationManagementApi.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/api/ApplicationManagementApi.java @@ -207,7 +207,7 @@ public ApiResponse createTokenWithHttpInfo(TokenRequestSchem }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - String[] localVarAuthNames = new String[] { "APP_NORMAL" }; + String[] localVarAuthNames = new String[] { "APP_MANAGEMENT", "APP_NORMAL" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/api/AuthenticationApi.java b/src/main/java/com/rusticisoftware/cloud/v2/client/api/AuthenticationApi.java index f2eb665..c4b7d23 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/api/AuthenticationApi.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/api/AuthenticationApi.java @@ -88,7 +88,7 @@ public ApiResponse getAppTokenWithHttpInfo(String scope, Integ }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - String[] localVarAuthNames = new String[] { "APP_NORMAL" }; + String[] localVarAuthNames = new String[] { "APP_MANAGEMENT", "APP_NORMAL" }; GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/api/CourseApi.java b/src/main/java/com/rusticisoftware/cloud/v2/client/api/CourseApi.java index 0bee313..8bb3490 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/api/CourseApi.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/api/CourseApi.java @@ -190,11 +190,12 @@ public ApiResponse buildCoursePreviewLaunchLinkWithVersionWith * @param importRequest (required) * @param mayCreateNewVersion Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. (optional, default to false) * @param postbackUrl An optional parameter that specifies a URL to send a postback to when the course has finished uploading. (optional) + * @param tags A list of tags to apply, allowing for more refined filtering of resources (optional) * @return StringResultSchema * @throws ApiException if fails to make API call */ - public StringResultSchema createFetchAndImportCourseJob(String courseId, ImportFetchRequestSchema importRequest, Boolean mayCreateNewVersion, String postbackUrl) throws ApiException { - return createFetchAndImportCourseJobWithHttpInfo(courseId, importRequest, mayCreateNewVersion, postbackUrl).getData(); + public StringResultSchema createFetchAndImportCourseJob(String courseId, ImportFetchRequestSchema importRequest, Boolean mayCreateNewVersion, String postbackUrl, List tags) throws ApiException { + return createFetchAndImportCourseJobWithHttpInfo(courseId, importRequest, mayCreateNewVersion, postbackUrl, tags).getData(); } /** @@ -204,10 +205,11 @@ public StringResultSchema createFetchAndImportCourseJob(String courseId, ImportF * @param importRequest (required) * @param mayCreateNewVersion Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. (optional, default to false) * @param postbackUrl An optional parameter that specifies a URL to send a postback to when the course has finished uploading. (optional) + * @param tags A list of tags to apply, allowing for more refined filtering of resources (optional) * @return ApiResponse<StringResultSchema> * @throws ApiException if fails to make API call */ - public ApiResponse createFetchAndImportCourseJobWithHttpInfo(String courseId, ImportFetchRequestSchema importRequest, Boolean mayCreateNewVersion, String postbackUrl) throws ApiException { + public ApiResponse createFetchAndImportCourseJobWithHttpInfo(String courseId, ImportFetchRequestSchema importRequest, Boolean mayCreateNewVersion, String postbackUrl, List tags) throws ApiException { Object localVarPostBody = importRequest; // verify the required parameter 'courseId' is set @@ -231,6 +233,7 @@ public ApiResponse createFetchAndImportCourseJobWithHttpInfo localVarQueryParams.addAll(apiClient.parameterToPairs("", "courseId", courseId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "mayCreateNewVersion", mayCreateNewVersion)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "postbackUrl", postbackUrl)); + localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "tags", tags)); @@ -256,11 +259,12 @@ public ApiResponse createFetchAndImportCourseJobWithHttpInfo * @param importRequest (required) * @param mayCreateNewVersion Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. (optional, default to false) * @param postbackUrl An optional parameter that specifies a URL to send a postback to when the course has finished uploading. (optional) + * @param tags A list of tags to apply, allowing for more refined filtering of resources (optional) * @return StringResultSchema * @throws ApiException if fails to make API call */ - public StringResultSchema createNoUploadAndImportCourseJob(String courseId, ImportRequestSchema importRequest, Boolean mayCreateNewVersion, String postbackUrl) throws ApiException { - return createNoUploadAndImportCourseJobWithHttpInfo(courseId, importRequest, mayCreateNewVersion, postbackUrl).getData(); + public StringResultSchema createNoUploadAndImportCourseJob(String courseId, ImportRequestSchema importRequest, Boolean mayCreateNewVersion, String postbackUrl, List tags) throws ApiException { + return createNoUploadAndImportCourseJobWithHttpInfo(courseId, importRequest, mayCreateNewVersion, postbackUrl, tags).getData(); } /** @@ -270,10 +274,11 @@ public StringResultSchema createNoUploadAndImportCourseJob(String courseId, Impo * @param importRequest (required) * @param mayCreateNewVersion Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. (optional, default to false) * @param postbackUrl An optional parameter that specifies a URL to send a postback to when the course has finished uploading. (optional) + * @param tags A list of tags to apply, allowing for more refined filtering of resources (optional) * @return ApiResponse<StringResultSchema> * @throws ApiException if fails to make API call */ - public ApiResponse createNoUploadAndImportCourseJobWithHttpInfo(String courseId, ImportRequestSchema importRequest, Boolean mayCreateNewVersion, String postbackUrl) throws ApiException { + public ApiResponse createNoUploadAndImportCourseJobWithHttpInfo(String courseId, ImportRequestSchema importRequest, Boolean mayCreateNewVersion, String postbackUrl, List tags) throws ApiException { Object localVarPostBody = importRequest; // verify the required parameter 'courseId' is set @@ -297,6 +302,7 @@ public ApiResponse createNoUploadAndImportCourseJobWithHttpI localVarQueryParams.addAll(apiClient.parameterToPairs("", "courseId", courseId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "mayCreateNewVersion", mayCreateNewVersion)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "postbackUrl", postbackUrl)); + localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "tags", tags)); @@ -321,14 +327,15 @@ public ApiResponse createNoUploadAndImportCourseJobWithHttpI * @param courseId A unique identifier your application will use to identify the course after import. Your application is responsible both for generating this unique ID and for keeping track of the ID for later use. (required) * @param mayCreateNewVersion Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. (optional, default to false) * @param postbackUrl An optional parameter that specifies a URL to send a postback to when the course has finished uploading. (optional) + * @param tags A list of tags to apply, allowing for more refined filtering of resources (optional) * @param uploadedContentType The MIME type identifier for the content to be uploaded. This is required if uploading a media file (.pdf, .mp3, or .mp4). (optional, default to application/zip) * @param contentMetadata Serialized 'mediaFileMetadata' schema. (optional) * @param file The zip file of the course contents to import. (optional) * @return StringResultSchema * @throws ApiException if fails to make API call */ - public StringResultSchema createUploadAndImportCourseJob(String courseId, Boolean mayCreateNewVersion, String postbackUrl, String uploadedContentType, String contentMetadata, File file) throws ApiException { - return createUploadAndImportCourseJobWithHttpInfo(courseId, mayCreateNewVersion, postbackUrl, uploadedContentType, contentMetadata, file).getData(); + public StringResultSchema createUploadAndImportCourseJob(String courseId, Boolean mayCreateNewVersion, String postbackUrl, List tags, String uploadedContentType, String contentMetadata, File file) throws ApiException { + return createUploadAndImportCourseJobWithHttpInfo(courseId, mayCreateNewVersion, postbackUrl, tags, uploadedContentType, contentMetadata, file).getData(); } /** @@ -337,13 +344,14 @@ public StringResultSchema createUploadAndImportCourseJob(String courseId, Boolea * @param courseId A unique identifier your application will use to identify the course after import. Your application is responsible both for generating this unique ID and for keeping track of the ID for later use. (required) * @param mayCreateNewVersion Is it OK to create a new version of this course? If this is set to false and the course already exists, the upload will fail. If true and the course already exists then a new version will be created. No effect if the course doesn't already exist. (optional, default to false) * @param postbackUrl An optional parameter that specifies a URL to send a postback to when the course has finished uploading. (optional) + * @param tags A list of tags to apply, allowing for more refined filtering of resources (optional) * @param uploadedContentType The MIME type identifier for the content to be uploaded. This is required if uploading a media file (.pdf, .mp3, or .mp4). (optional, default to application/zip) * @param contentMetadata Serialized 'mediaFileMetadata' schema. (optional) * @param file The zip file of the course contents to import. (optional) * @return ApiResponse<StringResultSchema> * @throws ApiException if fails to make API call */ - public ApiResponse createUploadAndImportCourseJobWithHttpInfo(String courseId, Boolean mayCreateNewVersion, String postbackUrl, String uploadedContentType, String contentMetadata, File file) throws ApiException { + public ApiResponse createUploadAndImportCourseJobWithHttpInfo(String courseId, Boolean mayCreateNewVersion, String postbackUrl, List tags, String uploadedContentType, String contentMetadata, File file) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'courseId' is set @@ -362,6 +370,7 @@ public ApiResponse createUploadAndImportCourseJobWithHttpInf localVarQueryParams.addAll(apiClient.parameterToPairs("", "courseId", courseId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "mayCreateNewVersion", mayCreateNewVersion)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "postbackUrl", postbackUrl)); + localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "tags", tags)); if (uploadedContentType != null) localVarHeaderParams.put("uploadedContentType", apiClient.parameterToString(uploadedContentType)); diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/api/DispatchApi.java b/src/main/java/com/rusticisoftware/cloud/v2/client/api/DispatchApi.java index 604cc5e..be47644 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/api/DispatchApi.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/api/DispatchApi.java @@ -780,6 +780,7 @@ public ApiResponse getDestinationDispatchZipWithHttpInfo(String destinatio * Returns a list of dispatches belonging to the destination. Can be filtered using the request parameters to provide a subset of results. Using the `courseId` filter should only ever yield 0 or 1 results, as a dispatch is the intersection of a course and a destination. This can be useful for identifying if a certain course is dispatched to the destination. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. * @param destinationId Identifier for the destination (required) * @param courseId Only retrieve resources having `courseId` (optional) + * @param isEnabled Optional boolean parameter used to filter the list of dispatches so that only enabled or disabled dispatches are retrieved. (optional) * @param since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param datetimeFilter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) @@ -792,8 +793,8 @@ public ApiResponse getDestinationDispatchZipWithHttpInfo(String destinatio * @return DispatchListSchema * @throws ApiException if fails to make API call */ - public DispatchListSchema getDestinationDispatches(String destinationId, String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { - return getDestinationDispatchesWithHttpInfo(destinationId, courseId, since, until, datetimeFilter, tags, filter, filterBy, orderBy, more, includeTotalCount).getData(); + public DispatchListSchema getDestinationDispatches(String destinationId, String courseId, Boolean isEnabled, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { + return getDestinationDispatchesWithHttpInfo(destinationId, courseId, isEnabled, since, until, datetimeFilter, tags, filter, filterBy, orderBy, more, includeTotalCount).getData(); } /** @@ -801,6 +802,7 @@ public DispatchListSchema getDestinationDispatches(String destinationId, String * Returns a list of dispatches belonging to the destination. Can be filtered using the request parameters to provide a subset of results. Using the `courseId` filter should only ever yield 0 or 1 results, as a dispatch is the intersection of a course and a destination. This can be useful for identifying if a certain course is dispatched to the destination. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. * @param destinationId Identifier for the destination (required) * @param courseId Only retrieve resources having `courseId` (optional) + * @param isEnabled Optional boolean parameter used to filter the list of dispatches so that only enabled or disabled dispatches are retrieved. (optional) * @param since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param datetimeFilter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) @@ -813,7 +815,7 @@ public DispatchListSchema getDestinationDispatches(String destinationId, String * @return ApiResponse<DispatchListSchema> * @throws ApiException if fails to make API call */ - public ApiResponse getDestinationDispatchesWithHttpInfo(String destinationId, String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { + public ApiResponse getDestinationDispatchesWithHttpInfo(String destinationId, String courseId, Boolean isEnabled, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'destinationId' is set @@ -831,6 +833,7 @@ public ApiResponse getDestinationDispatchesWithHttpInfo(Stri Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "courseId", courseId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "isEnabled", isEnabled)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "since", since)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "until", until)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "datetimeFilter", datetimeFilter)); @@ -1370,6 +1373,7 @@ public ApiResponse getDispatchZipWithHttpInfo(String dispatchId, String ty * Get a list of Dispatches * Returns a list of dispatches. Can be filtered using the request parameters to provide a subset of results. Using the `courseId` filter will allow for viewing which destinations the course has been dispatched to. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. * @param courseId Only retrieve resources having `courseId` (optional) + * @param isEnabled Optional boolean parameter used to filter the list of dispatches so that only enabled or disabled dispatches are retrieved. (optional) * @param since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param datetimeFilter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) @@ -1382,14 +1386,15 @@ public ApiResponse getDispatchZipWithHttpInfo(String dispatchId, String ty * @return DispatchListSchema * @throws ApiException if fails to make API call */ - public DispatchListSchema getDispatches(String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { - return getDispatchesWithHttpInfo(courseId, since, until, datetimeFilter, tags, filter, filterBy, orderBy, more, includeTotalCount).getData(); + public DispatchListSchema getDispatches(String courseId, Boolean isEnabled, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { + return getDispatchesWithHttpInfo(courseId, isEnabled, since, until, datetimeFilter, tags, filter, filterBy, orderBy, more, includeTotalCount).getData(); } /** * Get a list of Dispatches * Returns a list of dispatches. Can be filtered using the request parameters to provide a subset of results. Using the `courseId` filter will allow for viewing which destinations the course has been dispatched to. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. * @param courseId Only retrieve resources having `courseId` (optional) + * @param isEnabled Optional boolean parameter used to filter the list of dispatches so that only enabled or disabled dispatches are retrieved. (optional) * @param since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param datetimeFilter Specifies field that `since` and `until` parameters are applied against (optional, default to updated) @@ -1402,7 +1407,7 @@ public DispatchListSchema getDispatches(String courseId, OffsetDateTime since, O * @return ApiResponse<DispatchListSchema> * @throws ApiException if fails to make API call */ - public ApiResponse getDispatchesWithHttpInfo(String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { + public ApiResponse getDispatchesWithHttpInfo(String courseId, Boolean isEnabled, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1414,6 +1419,7 @@ public ApiResponse getDispatchesWithHttpInfo(String courseId Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "courseId", courseId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "isEnabled", isEnabled)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "since", since)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "until", until)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "datetimeFilter", datetimeFilter)); diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/api/InvitationsApi.java b/src/main/java/com/rusticisoftware/cloud/v2/client/api/InvitationsApi.java index e515297..5dcf54a 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/api/InvitationsApi.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/api/InvitationsApi.java @@ -451,7 +451,7 @@ public ApiResponse getPrivateInvitationJobStatusWithH } /** * Get a list of Private Invitations - * Returns a list of private invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. + * Returns a list of private invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. >**Info:** >This endpoint caches the launched registration count and total registration count of all private invitations for 24 hours if the `includeRegistrationCount` parameter is set to `true`. Since these values are cached for an extended period, any changes made to the number of launched registrations for a private invitation will not be reflected in the results of this endpoint until the caching period has passed. >If you want to get up-to-date values of the launched or total registration counts for a single private invitation within the caching period, use the GetPrivateInvitation endpoint with `includeRegistrationCount` set to `true`. GetPrivateInvitation *always* gathers the most up-to-date values and overwrites them in the cache, resetting the caching period for that private invitation. * @param courseId Only retrieve resources having `courseId` (optional) * @param since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) @@ -461,17 +461,18 @@ public ApiResponse getPrivateInvitationJobStatusWithH * @param filterBy Optional enum parameter for specifying the field on which to run the filter. (optional, default to invitation_id) * @param orderBy Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to updated_asc) * @param more Pagination token returned as `more` property of multi page list requests (optional) + * @param includeRegistrationCount Include the registration count in the results (optional, default to false) * @param includeTotalCount Include the total count of results matching the provided filters as a header on the initial request. The header will not be present on subsequent requests resulting from passing the `more` token. (optional, default to false) * @return PrivateInvitationList * @throws ApiException if fails to make API call */ - public PrivateInvitationList getPrivateInvitations(String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { - return getPrivateInvitationsWithHttpInfo(courseId, since, until, datetimeFilter, tags, filter, filterBy, orderBy, more, includeTotalCount).getData(); + public PrivateInvitationList getPrivateInvitations(String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeRegistrationCount, Boolean includeTotalCount) throws ApiException { + return getPrivateInvitationsWithHttpInfo(courseId, since, until, datetimeFilter, tags, filter, filterBy, orderBy, more, includeRegistrationCount, includeTotalCount).getData(); } /** * Get a list of Private Invitations - * Returns a list of private invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. + * Returns a list of private invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. >**Info:** >This endpoint caches the launched registration count and total registration count of all private invitations for 24 hours if the `includeRegistrationCount` parameter is set to `true`. Since these values are cached for an extended period, any changes made to the number of launched registrations for a private invitation will not be reflected in the results of this endpoint until the caching period has passed. >If you want to get up-to-date values of the launched or total registration counts for a single private invitation within the caching period, use the GetPrivateInvitation endpoint with `includeRegistrationCount` set to `true`. GetPrivateInvitation *always* gathers the most up-to-date values and overwrites them in the cache, resetting the caching period for that private invitation. * @param courseId Only retrieve resources having `courseId` (optional) * @param since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) @@ -481,11 +482,12 @@ public PrivateInvitationList getPrivateInvitations(String courseId, OffsetDateTi * @param filterBy Optional enum parameter for specifying the field on which to run the filter. (optional, default to invitation_id) * @param orderBy Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to updated_asc) * @param more Pagination token returned as `more` property of multi page list requests (optional) + * @param includeRegistrationCount Include the registration count in the results (optional, default to false) * @param includeTotalCount Include the total count of results matching the provided filters as a header on the initial request. The header will not be present on subsequent requests resulting from passing the `more` token. (optional, default to false) * @return ApiResponse<PrivateInvitationList> * @throws ApiException if fails to make API call */ - public ApiResponse getPrivateInvitationsWithHttpInfo(String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { + public ApiResponse getPrivateInvitationsWithHttpInfo(String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeRegistrationCount, Boolean includeTotalCount) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -505,6 +507,7 @@ public ApiResponse getPrivateInvitationsWithHttpInfo(Stri localVarQueryParams.addAll(apiClient.parameterToPairs("", "filterBy", filterBy)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "orderBy", orderBy)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "more", more)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "includeRegistrationCount", includeRegistrationCount)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "includeTotalCount", includeTotalCount)); @@ -662,7 +665,7 @@ public ApiResponse getPublicInvitationWithHttpInfo(Strin } /** * Get a list of Public Invitations - * Returns a list of public invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. + * Returns a list of public invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. >**Info:** >This endpoint caches the registration count of all public invitations for 24 hours if the `includeRegistrationCount` parameter is set to `true`. Since this value is cached for an extended period, any changes made to the number of registrations for a public invitation will not be reflected in the results of this endpoint until the caching period has passed. >If you want to get an up-to-date value of the registration count for a single public invitation within the caching period, use the GetPublicInvitation endpoint with `includeRegistrationCount` set to `true`. GetPublicInvitation *always* gathers the most up-to-date values and overwrites them in the cache, resetting the caching period for that public invitation. * @param courseId Only retrieve resources having `courseId` (optional) * @param since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) @@ -672,17 +675,18 @@ public ApiResponse getPublicInvitationWithHttpInfo(Strin * @param filterBy Optional enum parameter for specifying the field on which to run the filter. (optional, default to invitation_id) * @param orderBy Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to updated_asc) * @param more Pagination token returned as `more` property of multi page list requests (optional) + * @param includeRegistrationCount Include the registration count in the results (optional, default to false) * @param includeTotalCount Include the total count of results matching the provided filters as a header on the initial request. The header will not be present on subsequent requests resulting from passing the `more` token. (optional, default to false) * @return PublicInvitationList * @throws ApiException if fails to make API call */ - public PublicInvitationList getPublicInvitations(String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { - return getPublicInvitationsWithHttpInfo(courseId, since, until, datetimeFilter, tags, filter, filterBy, orderBy, more, includeTotalCount).getData(); + public PublicInvitationList getPublicInvitations(String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeRegistrationCount, Boolean includeTotalCount) throws ApiException { + return getPublicInvitationsWithHttpInfo(courseId, since, until, datetimeFilter, tags, filter, filterBy, orderBy, more, includeRegistrationCount, includeTotalCount).getData(); } /** * Get a list of Public Invitations - * Returns a list of public invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. + * Returns a list of public invitations. Can be filtered using the request parameters to provide a subset of results. >**Note:** >This request is paginated and will only provide a limited amount of resources at a time. If there are more results to be collected, a `more` token provided with the response which can be passed to get the next page of results. When passing this token, no other filter parameters can be sent as part of the request. The resources will continue to respect the filters passed in by the original request. >**Info:** >This endpoint caches the registration count of all public invitations for 24 hours if the `includeRegistrationCount` parameter is set to `true`. Since this value is cached for an extended period, any changes made to the number of registrations for a public invitation will not be reflected in the results of this endpoint until the caching period has passed. >If you want to get an up-to-date value of the registration count for a single public invitation within the caching period, use the GetPublicInvitation endpoint with `includeRegistrationCount` set to `true`. GetPublicInvitation *always* gathers the most up-to-date values and overwrites them in the cache, resetting the caching period for that public invitation. * @param courseId Only retrieve resources having `courseId` (optional) * @param since Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) * @param until Filter by ISO 8601 TimeStamp inclusive (defaults to UTC) (optional) @@ -692,11 +696,12 @@ public PublicInvitationList getPublicInvitations(String courseId, OffsetDateTime * @param filterBy Optional enum parameter for specifying the field on which to run the filter. (optional, default to invitation_id) * @param orderBy Optional enum parameter for specifying the field and order by which to sort the results. (optional, default to updated_asc) * @param more Pagination token returned as `more` property of multi page list requests (optional) + * @param includeRegistrationCount Include the registration count in the results (optional, default to false) * @param includeTotalCount Include the total count of results matching the provided filters as a header on the initial request. The header will not be present on subsequent requests resulting from passing the `more` token. (optional, default to false) * @return ApiResponse<PublicInvitationList> * @throws ApiException if fails to make API call */ - public ApiResponse getPublicInvitationsWithHttpInfo(String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeTotalCount) throws ApiException { + public ApiResponse getPublicInvitationsWithHttpInfo(String courseId, OffsetDateTime since, OffsetDateTime until, String datetimeFilter, List tags, String filter, String filterBy, String orderBy, String more, Boolean includeRegistrationCount, Boolean includeTotalCount) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -716,6 +721,7 @@ public ApiResponse getPublicInvitationsWithHttpInfo(String localVarQueryParams.addAll(apiClient.parameterToPairs("", "filterBy", filterBy)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "orderBy", orderBy)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "more", more)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "includeRegistrationCount", includeRegistrationCount)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "includeTotalCount", includeTotalCount)); diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/api/RegistrationApi.java b/src/main/java/com/rusticisoftware/cloud/v2/client/api/RegistrationApi.java index 930064f..d2e7344 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/api/RegistrationApi.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/api/RegistrationApi.java @@ -18,6 +18,7 @@ import com.rusticisoftware.cloud.v2.client.model.PostBackSchema; import com.rusticisoftware.cloud.v2.client.model.RegistrationListSchema; import com.rusticisoftware.cloud.v2.client.model.RegistrationSchema; +import com.rusticisoftware.cloud.v2.client.model.ResponseError; import com.rusticisoftware.cloud.v2.client.model.SettingListSchema; import com.rusticisoftware.cloud.v2.client.model.SettingsPostSchema; import com.rusticisoftware.cloud.v2.client.model.TagListSchema; diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/api/ZoomiApi.java b/src/main/java/com/rusticisoftware/cloud/v2/client/api/ZoomiApi.java deleted file mode 100644 index 443d459..0000000 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/api/ZoomiApi.java +++ /dev/null @@ -1,542 +0,0 @@ -package com.rusticisoftware.cloud.v2.client.api; - -import com.rusticisoftware.cloud.v2.client.ApiException; -import com.rusticisoftware.cloud.v2.client.ApiClient; -import com.rusticisoftware.cloud.v2.client.ApiResponse; -import com.rusticisoftware.cloud.v2.client.Configuration; -import com.rusticisoftware.cloud.v2.client.Pair; - -import javax.ws.rs.core.GenericType; - -import com.rusticisoftware.cloud.v2.client.model.EnabledSchema; -import com.rusticisoftware.cloud.v2.client.model.MessageSchema; -import com.rusticisoftware.cloud.v2.client.model.StringResultSchema; -import com.rusticisoftware.cloud.v2.client.model.ZoomiCompanyId; -import com.rusticisoftware.cloud.v2.client.model.ZoomiCourseOptionsSchema; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class ZoomiApi { - private ApiClient apiClient; - - public ZoomiApi() { - this(Configuration.getDefaultApiClient()); - } - - public ZoomiApi(ApiClient apiClient) { - this.apiClient = apiClient; - } - - public ApiClient getApiClient() { - return apiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; - } - - /** - * Delete the Zoomi keys for an Application - * Deletes the Zoomi keys for an application. - * @throws ApiException if fails to make API call - */ - public void deleteApplicationZoomiKeys() throws ApiException { - - deleteApplicationZoomiKeysWithHttpInfo(); - } - - /** - * Delete the Zoomi keys for an Application - * Deletes the Zoomi keys for an application. - * @throws ApiException if fails to make API call - */ - public ApiResponse deleteApplicationZoomiKeysWithHttpInfo() throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/zoomi/key"; - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "APP_NORMAL", "OAUTH" }; - - - return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); - } - /** - * Delete the Course from Zoomi - * Deletes the course from Zoomi, but the course will remain in SCORM Cloud. - * @param courseId (required) - * @param versionId (required) - * @throws ApiException if fails to make API call - */ - public void deleteZoomiCourse(String courseId, Integer versionId) throws ApiException { - - deleteZoomiCourseWithHttpInfo(courseId, versionId); - } - - /** - * Delete the Course from Zoomi - * Deletes the course from Zoomi, but the course will remain in SCORM Cloud. - * @param courseId (required) - * @param versionId (required) - * @throws ApiException if fails to make API call - */ - public ApiResponse deleteZoomiCourseWithHttpInfo(String courseId, Integer versionId) throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'courseId' is set - if (courseId == null) { - throw new ApiException(400, "Missing the required parameter 'courseId' when calling deleteZoomiCourse"); - } - - // verify the required parameter 'versionId' is set - if (versionId == null) { - throw new ApiException(400, "Missing the required parameter 'versionId' when calling deleteZoomiCourse"); - } - - // create path and map variables - String localVarPath = "/zoomi/course/{courseId}/version/{versionId}" - .replaceAll("\\{" + "courseId" + "\\}", apiClient.escapeString(courseId.toString())) - .replaceAll("\\{" + "versionId" + "\\}", apiClient.escapeString(versionId.toString())); - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "APP_NORMAL", "OAUTH" }; - - - return apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); - } - /** - * Get the Zoomi company ID of an Application - * Returns the Zoomi company ID of an application. - * @return StringResultSchema - * @throws ApiException if fails to make API call - */ - public StringResultSchema getApplicationZoomiCompanyId() throws ApiException { - return getApplicationZoomiCompanyIdWithHttpInfo().getData(); - } - - /** - * Get the Zoomi company ID of an Application - * Returns the Zoomi company ID of an application. - * @return ApiResponse<StringResultSchema> - * @throws ApiException if fails to make API call - */ - public ApiResponse getApplicationZoomiCompanyIdWithHttpInfo() throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/zoomi"; - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "APP_NORMAL", "OAUTH" }; - - GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - /** - * Get the Zoomi public key for an Application - * Returns the Zoomi public key for an application. - * @return StringResultSchema - * @throws ApiException if fails to make API call - */ - public StringResultSchema getApplicationZoomiPublicKey() throws ApiException { - return getApplicationZoomiPublicKeyWithHttpInfo().getData(); - } - - /** - * Get the Zoomi public key for an Application - * Returns the Zoomi public key for an application. - * @return ApiResponse<StringResultSchema> - * @throws ApiException if fails to make API call - */ - public ApiResponse getApplicationZoomiPublicKeyWithHttpInfo() throws ApiException { - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/zoomi/key"; - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "APP_NORMAL", "OAUTH" }; - - GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - /** - * Get the Zoomi enabled value of a Course Version - * Returns the Zoomi enabled value of a course version. - * @param courseId (required) - * @param versionId (required) - * @return EnabledSchema - * @throws ApiException if fails to make API call - */ - public EnabledSchema getCourseZoomiEnabled(String courseId, Integer versionId) throws ApiException { - return getCourseZoomiEnabledWithHttpInfo(courseId, versionId).getData(); - } - - /** - * Get the Zoomi enabled value of a Course Version - * Returns the Zoomi enabled value of a course version. - * @param courseId (required) - * @param versionId (required) - * @return ApiResponse<EnabledSchema> - * @throws ApiException if fails to make API call - */ - public ApiResponse getCourseZoomiEnabledWithHttpInfo(String courseId, Integer versionId) throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'courseId' is set - if (courseId == null) { - throw new ApiException(400, "Missing the required parameter 'courseId' when calling getCourseZoomiEnabled"); - } - - // verify the required parameter 'versionId' is set - if (versionId == null) { - throw new ApiException(400, "Missing the required parameter 'versionId' when calling getCourseZoomiEnabled"); - } - - // create path and map variables - String localVarPath = "/zoomi/course/{courseId}/version/{versionId}/enabled" - .replaceAll("\\{" + "courseId" + "\\}", apiClient.escapeString(courseId.toString())) - .replaceAll("\\{" + "versionId" + "\\}", apiClient.escapeString(versionId.toString())); - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "APP_NORMAL", "OAUTH" }; - - GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - /** - * Get the status for a Course from Zoomi - * Returns the status for a course and starts the upload process to Zoomi if not started. - * @param courseId (required) - * @param versionId (required) - * @return StringResultSchema - * @throws ApiException if fails to make API call - */ - public StringResultSchema getZoomiCourseStatus(String courseId, Integer versionId) throws ApiException { - return getZoomiCourseStatusWithHttpInfo(courseId, versionId).getData(); - } - - /** - * Get the status for a Course from Zoomi - * Returns the status for a course and starts the upload process to Zoomi if not started. - * @param courseId (required) - * @param versionId (required) - * @return ApiResponse<StringResultSchema> - * @throws ApiException if fails to make API call - */ - public ApiResponse getZoomiCourseStatusWithHttpInfo(String courseId, Integer versionId) throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'courseId' is set - if (courseId == null) { - throw new ApiException(400, "Missing the required parameter 'courseId' when calling getZoomiCourseStatus"); - } - - // verify the required parameter 'versionId' is set - if (versionId == null) { - throw new ApiException(400, "Missing the required parameter 'versionId' when calling getZoomiCourseStatus"); - } - - // create path and map variables - String localVarPath = "/zoomi/course/{courseId}/version/{versionId}" - .replaceAll("\\{" + "courseId" + "\\}", apiClient.escapeString(courseId.toString())) - .replaceAll("\\{" + "versionId" + "\\}", apiClient.escapeString(versionId.toString())); - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "APP_NORMAL", "OAUTH" }; - - GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - /** - * Begin the import process with Zoomi - * Begins the import process with Zoomi. Must be followed up by a status call. - * @param courseId (required) - * @param versionId (required) - * @param zoomiCourseOptions (required) - * @throws ApiException if fails to make API call - */ - public void importCourseVersionToZoomi(String courseId, Integer versionId, ZoomiCourseOptionsSchema zoomiCourseOptions) throws ApiException { - - importCourseVersionToZoomiWithHttpInfo(courseId, versionId, zoomiCourseOptions); - } - - /** - * Begin the import process with Zoomi - * Begins the import process with Zoomi. Must be followed up by a status call. - * @param courseId (required) - * @param versionId (required) - * @param zoomiCourseOptions (required) - * @throws ApiException if fails to make API call - */ - public ApiResponse importCourseVersionToZoomiWithHttpInfo(String courseId, Integer versionId, ZoomiCourseOptionsSchema zoomiCourseOptions) throws ApiException { - Object localVarPostBody = zoomiCourseOptions; - - // verify the required parameter 'courseId' is set - if (courseId == null) { - throw new ApiException(400, "Missing the required parameter 'courseId' when calling importCourseVersionToZoomi"); - } - - // verify the required parameter 'versionId' is set - if (versionId == null) { - throw new ApiException(400, "Missing the required parameter 'versionId' when calling importCourseVersionToZoomi"); - } - - // verify the required parameter 'zoomiCourseOptions' is set - if (zoomiCourseOptions == null) { - throw new ApiException(400, "Missing the required parameter 'zoomiCourseOptions' when calling importCourseVersionToZoomi"); - } - - // create path and map variables - String localVarPath = "/zoomi/course/{courseId}/version/{versionId}/import" - .replaceAll("\\{" + "courseId" + "\\}", apiClient.escapeString(courseId.toString())) - .replaceAll("\\{" + "versionId" + "\\}", apiClient.escapeString(versionId.toString())); - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "APP_NORMAL", "OAUTH" }; - - - return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); - } - /** - * Set the Zoomi company ID of an Application - * Sets the Zoomi company ID value of an application. - * @param zoomiCompanyId (required) - * @throws ApiException if fails to make API call - */ - public void setApplicationZoomiCompanyId(ZoomiCompanyId zoomiCompanyId) throws ApiException { - - setApplicationZoomiCompanyIdWithHttpInfo(zoomiCompanyId); - } - - /** - * Set the Zoomi company ID of an Application - * Sets the Zoomi company ID value of an application. - * @param zoomiCompanyId (required) - * @throws ApiException if fails to make API call - */ - public ApiResponse setApplicationZoomiCompanyIdWithHttpInfo(ZoomiCompanyId zoomiCompanyId) throws ApiException { - Object localVarPostBody = zoomiCompanyId; - - // verify the required parameter 'zoomiCompanyId' is set - if (zoomiCompanyId == null) { - throw new ApiException(400, "Missing the required parameter 'zoomiCompanyId' when calling setApplicationZoomiCompanyId"); - } - - // create path and map variables - String localVarPath = "/zoomi"; - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "APP_NORMAL", "OAUTH" }; - - - return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); - } - /** - * Set the Zoomi enabled value of a Course Version - * Sets the Zoomi enabled value of a course version. - * @param courseId (required) - * @param versionId (required) - * @param enabled (required) - * @throws ApiException if fails to make API call - */ - public void setCourseZoomiEnabled(String courseId, Integer versionId, EnabledSchema enabled) throws ApiException { - - setCourseZoomiEnabledWithHttpInfo(courseId, versionId, enabled); - } - - /** - * Set the Zoomi enabled value of a Course Version - * Sets the Zoomi enabled value of a course version. - * @param courseId (required) - * @param versionId (required) - * @param enabled (required) - * @throws ApiException if fails to make API call - */ - public ApiResponse setCourseZoomiEnabledWithHttpInfo(String courseId, Integer versionId, EnabledSchema enabled) throws ApiException { - Object localVarPostBody = enabled; - - // verify the required parameter 'courseId' is set - if (courseId == null) { - throw new ApiException(400, "Missing the required parameter 'courseId' when calling setCourseZoomiEnabled"); - } - - // verify the required parameter 'versionId' is set - if (versionId == null) { - throw new ApiException(400, "Missing the required parameter 'versionId' when calling setCourseZoomiEnabled"); - } - - // verify the required parameter 'enabled' is set - if (enabled == null) { - throw new ApiException(400, "Missing the required parameter 'enabled' when calling setCourseZoomiEnabled"); - } - - // create path and map variables - String localVarPath = "/zoomi/course/{courseId}/version/{versionId}/enabled" - .replaceAll("\\{" + "courseId" + "\\}", apiClient.escapeString(courseId.toString())) - .replaceAll("\\{" + "versionId" + "\\}", apiClient.escapeString(versionId.toString())); - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "APP_NORMAL", "OAUTH" }; - - - return apiClient.invokeAPI(localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); - } -} diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/model/DispatchRegistrationCountSchema.java b/src/main/java/com/rusticisoftware/cloud/v2/client/model/DispatchRegistrationCountSchema.java index 4801b58..ba0fb49 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/model/DispatchRegistrationCountSchema.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/model/DispatchRegistrationCountSchema.java @@ -56,10 +56,10 @@ public DispatchRegistrationCountSchema lastResetDate(OffsetDateTime lastResetDat } /** - * Get lastResetDate + * The ISO 8601 TimeStamp (defaults to UTC) at which the registration count for this dispatch was reset. * @return lastResetDate **/ - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The ISO 8601 TimeStamp (defaults to UTC) at which the registration count for this dispatch was reset. ") public OffsetDateTime getLastResetDate() { return lastResetDate; } diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/model/DispatchSchema.java b/src/main/java/com/rusticisoftware/cloud/v2/client/model/DispatchSchema.java index 70ed3f4..32ea52d 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/model/DispatchSchema.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/model/DispatchSchema.java @@ -61,6 +61,9 @@ public class DispatchSchema { @JsonProperty("registrationCount") private Integer registrationCount = null; + @JsonProperty("registrationResetDate") + private OffsetDateTime registrationResetDate = null; + @JsonProperty("expirationDate") private OffsetDateTime expirationDate = null; @@ -271,6 +274,24 @@ public void setRegistrationCount(Integer registrationCount) { this.registrationCount = registrationCount; } + public DispatchSchema registrationResetDate(OffsetDateTime registrationResetDate) { + this.registrationResetDate = registrationResetDate; + return this; + } + + /** + * The ISO 8601 TimeStamp (defaults to UTC) at which the registration count for this dispatch was reset. + * @return registrationResetDate + **/ + @ApiModelProperty(value = "The ISO 8601 TimeStamp (defaults to UTC) at which the registration count for this dispatch was reset. ") + public OffsetDateTime getRegistrationResetDate() { + return registrationResetDate; + } + + public void setRegistrationResetDate(OffsetDateTime registrationResetDate) { + this.registrationResetDate = registrationResetDate; + } + public DispatchSchema expirationDate(OffsetDateTime expirationDate) { this.expirationDate = expirationDate; return this; @@ -372,6 +393,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.instanced, dispatchSchema.instanced) && Objects.equals(this.registrationCap, dispatchSchema.registrationCap) && Objects.equals(this.registrationCount, dispatchSchema.registrationCount) && + Objects.equals(this.registrationResetDate, dispatchSchema.registrationResetDate) && Objects.equals(this.expirationDate, dispatchSchema.expirationDate) && Objects.equals(this.tags, dispatchSchema.tags) && Objects.equals(this.email, dispatchSchema.email) && @@ -380,7 +402,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(destinationId, destinationName, courseId, courseTitle, updated, created, allowNewRegistrations, enabled, instanced, registrationCap, registrationCount, expirationDate, tags, email, notes); + return Objects.hash(destinationId, destinationName, courseId, courseTitle, updated, created, allowNewRegistrations, enabled, instanced, registrationCap, registrationCount, registrationResetDate, expirationDate, tags, email, notes); } @Override @@ -399,6 +421,7 @@ public String toString() { sb.append(" instanced: ").append(toIndentedString(instanced)).append("\n"); sb.append(" registrationCap: ").append(toIndentedString(registrationCap)).append("\n"); sb.append(" registrationCount: ").append(toIndentedString(registrationCount)).append("\n"); + sb.append(" registrationResetDate: ").append(toIndentedString(registrationResetDate)).append("\n"); sb.append(" expirationDate: ").append(toIndentedString(expirationDate)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/model/ZoomiCourseOptionsSchema.java b/src/main/java/com/rusticisoftware/cloud/v2/client/model/InvitationEmailUpdateSchema.java similarity index 51% rename from src/main/java/com/rusticisoftware/cloud/v2/client/model/ZoomiCourseOptionsSchema.java rename to src/main/java/com/rusticisoftware/cloud/v2/client/model/InvitationEmailUpdateSchema.java index dc8bbc3..06ce24a 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/model/ZoomiCourseOptionsSchema.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/model/InvitationEmailUpdateSchema.java @@ -22,49 +22,49 @@ import io.swagger.annotations.ApiModelProperty; /** - * ZoomiCourseOptionsSchema + * InvitationEmailUpdateSchema */ -public class ZoomiCourseOptionsSchema { - @JsonProperty("nti") - private String nti = null; +public class InvitationEmailUpdateSchema { + @JsonProperty("subject") + private String subject = null; - @JsonProperty("cta") - private String cta = null; + @JsonProperty("body") + private String body = null; - public ZoomiCourseOptionsSchema nti(String nti) { - this.nti = nti; + public InvitationEmailUpdateSchema subject(String subject) { + this.subject = subject; return this; } /** - * Get nti - * @return nti + * The subject line for the email. + * @return subject **/ - @ApiModelProperty(required = true, value = "") - public String getNti() { - return nti; + @ApiModelProperty(value = "The subject line for the email.") + public String getSubject() { + return subject; } - public void setNti(String nti) { - this.nti = nti; + public void setSubject(String subject) { + this.subject = subject; } - public ZoomiCourseOptionsSchema cta(String cta) { - this.cta = cta; + public InvitationEmailUpdateSchema body(String body) { + this.body = body; return this; } /** - * Get cta - * @return cta + * The body of the email. + * @return body **/ - @ApiModelProperty(required = true, value = "") - public String getCta() { - return cta; + @ApiModelProperty(value = "The body of the email.") + public String getBody() { + return body; } - public void setCta(String cta) { - this.cta = cta; + public void setBody(String body) { + this.body = body; } @@ -76,23 +76,23 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - ZoomiCourseOptionsSchema zoomiCourseOptionsSchema = (ZoomiCourseOptionsSchema) o; - return Objects.equals(this.nti, zoomiCourseOptionsSchema.nti) && - Objects.equals(this.cta, zoomiCourseOptionsSchema.cta); + InvitationEmailUpdateSchema invitationEmailUpdateSchema = (InvitationEmailUpdateSchema) o; + return Objects.equals(this.subject, invitationEmailUpdateSchema.subject) && + Objects.equals(this.body, invitationEmailUpdateSchema.body); } @Override public int hashCode() { - return Objects.hash(nti, cta); + return Objects.hash(subject, body); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class ZoomiCourseOptionsSchema {\n"); + sb.append("class InvitationEmailUpdateSchema {\n"); - sb.append(" nti: ").append(toIndentedString(nti)).append("\n"); - sb.append(" cta: ").append(toIndentedString(cta)).append("\n"); + sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/model/PrivateInvitationSchema.java b/src/main/java/com/rusticisoftware/cloud/v2/client/model/PrivateInvitationSchema.java index 890fef2..f155c1c 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/model/PrivateInvitationSchema.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/model/PrivateInvitationSchema.java @@ -34,6 +34,9 @@ public class PrivateInvitationSchema { @JsonProperty("courseId") private String courseId = null; + @JsonProperty("courseTitle") + private String courseTitle = null; + @JsonProperty("allowLaunch") private Boolean allowLaunch = null; @@ -55,6 +58,9 @@ public class PrivateInvitationSchema { @JsonProperty("registrationCount") private Integer registrationCount = null; + @JsonProperty("launchedRegistrationCount") + private Integer launchedRegistrationCount = null; + public PrivateInvitationSchema id(String id) { this.id = id; return this; @@ -91,6 +97,24 @@ public void setCourseId(String courseId) { this.courseId = courseId; } + public PrivateInvitationSchema courseTitle(String courseTitle) { + this.courseTitle = courseTitle; + return this; + } + + /** + * Title of the course associated with this invitation. + * @return courseTitle + **/ + @ApiModelProperty(value = "Title of the course associated with this invitation.") + public String getCourseTitle() { + return courseTitle; + } + + public void setCourseTitle(String courseTitle) { + this.courseTitle = courseTitle; + } + public PrivateInvitationSchema allowLaunch(Boolean allowLaunch) { this.allowLaunch = allowLaunch; return this; @@ -217,6 +241,24 @@ public void setRegistrationCount(Integer registrationCount) { this.registrationCount = registrationCount; } + public PrivateInvitationSchema launchedRegistrationCount(Integer launchedRegistrationCount) { + this.launchedRegistrationCount = launchedRegistrationCount; + return this; + } + + /** + * The count of launched registrations for this invitation + * @return launchedRegistrationCount + **/ + @ApiModelProperty(value = "The count of launched registrations for this invitation") + public Integer getLaunchedRegistrationCount() { + return launchedRegistrationCount; + } + + public void setLaunchedRegistrationCount(Integer launchedRegistrationCount) { + this.launchedRegistrationCount = launchedRegistrationCount; + } + @Override public boolean equals(java.lang.Object o) { @@ -229,18 +271,20 @@ public boolean equals(java.lang.Object o) { PrivateInvitationSchema privateInvitationSchema = (PrivateInvitationSchema) o; return Objects.equals(this.id, privateInvitationSchema.id) && Objects.equals(this.courseId, privateInvitationSchema.courseId) && + Objects.equals(this.courseTitle, privateInvitationSchema.courseTitle) && Objects.equals(this.allowLaunch, privateInvitationSchema.allowLaunch) && Objects.equals(this.invitationEmail, privateInvitationSchema.invitationEmail) && Objects.equals(this.createDate, privateInvitationSchema.createDate) && Objects.equals(this.updated, privateInvitationSchema.updated) && Objects.equals(this.postBack, privateInvitationSchema.postBack) && Objects.equals(this.expirationDate, privateInvitationSchema.expirationDate) && - Objects.equals(this.registrationCount, privateInvitationSchema.registrationCount); + Objects.equals(this.registrationCount, privateInvitationSchema.registrationCount) && + Objects.equals(this.launchedRegistrationCount, privateInvitationSchema.launchedRegistrationCount); } @Override public int hashCode() { - return Objects.hash(id, courseId, allowLaunch, invitationEmail, createDate, updated, postBack, expirationDate, registrationCount); + return Objects.hash(id, courseId, courseTitle, allowLaunch, invitationEmail, createDate, updated, postBack, expirationDate, registrationCount, launchedRegistrationCount); } @Override @@ -250,6 +294,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" courseId: ").append(toIndentedString(courseId)).append("\n"); + sb.append(" courseTitle: ").append(toIndentedString(courseTitle)).append("\n"); sb.append(" allowLaunch: ").append(toIndentedString(allowLaunch)).append("\n"); sb.append(" invitationEmail: ").append(toIndentedString(invitationEmail)).append("\n"); sb.append(" createDate: ").append(toIndentedString(createDate)).append("\n"); @@ -257,6 +302,7 @@ public String toString() { sb.append(" postBack: ").append(toIndentedString(postBack)).append("\n"); sb.append(" expirationDate: ").append(toIndentedString(expirationDate)).append("\n"); sb.append(" registrationCount: ").append(toIndentedString(registrationCount)).append("\n"); + sb.append(" launchedRegistrationCount: ").append(toIndentedString(launchedRegistrationCount)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/model/PrivateInvitationUpdateSchema.java b/src/main/java/com/rusticisoftware/cloud/v2/client/model/PrivateInvitationUpdateSchema.java index aadd08a..663eda6 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/model/PrivateInvitationUpdateSchema.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/model/PrivateInvitationUpdateSchema.java @@ -18,7 +18,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import com.rusticisoftware.cloud.v2.client.model.InvitationEmailSchema; +import com.rusticisoftware.cloud.v2.client.model.InvitationEmailUpdateSchema; import com.rusticisoftware.cloud.v2.client.model.PostBackSchema; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -32,7 +32,7 @@ public class PrivateInvitationUpdateSchema { private Boolean allowLaunch = null; @JsonProperty("invitationEmail") - private InvitationEmailSchema invitationEmail = null; + private InvitationEmailUpdateSchema invitationEmail = null; @JsonProperty("postBack") private PostBackSchema postBack = null; @@ -58,7 +58,7 @@ public void setAllowLaunch(Boolean allowLaunch) { this.allowLaunch = allowLaunch; } - public PrivateInvitationUpdateSchema invitationEmail(InvitationEmailSchema invitationEmail) { + public PrivateInvitationUpdateSchema invitationEmail(InvitationEmailUpdateSchema invitationEmail) { this.invitationEmail = invitationEmail; return this; } @@ -68,11 +68,11 @@ public PrivateInvitationUpdateSchema invitationEmail(InvitationEmailSchema invit * @return invitationEmail **/ @ApiModelProperty(value = "") - public InvitationEmailSchema getInvitationEmail() { + public InvitationEmailUpdateSchema getInvitationEmail() { return invitationEmail; } - public void setInvitationEmail(InvitationEmailSchema invitationEmail) { + public void setInvitationEmail(InvitationEmailUpdateSchema invitationEmail) { this.invitationEmail = invitationEmail; } diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/model/PublicInvitationSchema.java b/src/main/java/com/rusticisoftware/cloud/v2/client/model/PublicInvitationSchema.java index 740e443..cfdbf7a 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/model/PublicInvitationSchema.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/model/PublicInvitationSchema.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import com.rusticisoftware.cloud.v2.client.model.InvitationEmailSchema; import com.rusticisoftware.cloud.v2.client.model.PostBackSchema; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -34,12 +33,12 @@ public class PublicInvitationSchema { @JsonProperty("courseId") private String courseId = null; + @JsonProperty("courseTitle") + private String courseTitle = null; + @JsonProperty("allowLaunch") private Boolean allowLaunch = null; - @JsonProperty("invitationEmail") - private InvitationEmailSchema invitationEmail = null; - @JsonProperty("allowNewRegistrations") private Boolean allowNewRegistrations = null; @@ -59,7 +58,7 @@ public class PublicInvitationSchema { private OffsetDateTime expirationDate = null; @JsonProperty("registrationCap") - private Integer registrationCap = 0; + private Integer registrationCap = null; @JsonProperty("registrationCount") private Integer registrationCount = null; @@ -100,40 +99,40 @@ public void setCourseId(String courseId) { this.courseId = courseId; } - public PublicInvitationSchema allowLaunch(Boolean allowLaunch) { - this.allowLaunch = allowLaunch; + public PublicInvitationSchema courseTitle(String courseTitle) { + this.courseTitle = courseTitle; return this; } /** - * Determines if learners are allowed to launch the invitation. If false, the invitation is disabled and no new or existing learners are allowed to launch it. - * @return allowLaunch + * Title of the course associated with this invitation. + * @return courseTitle **/ - @ApiModelProperty(value = "Determines if learners are allowed to launch the invitation. If false, the invitation is disabled and no new or existing learners are allowed to launch it. ") - public Boolean isAllowLaunch() { - return allowLaunch; + @ApiModelProperty(value = "Title of the course associated with this invitation.") + public String getCourseTitle() { + return courseTitle; } - public void setAllowLaunch(Boolean allowLaunch) { - this.allowLaunch = allowLaunch; + public void setCourseTitle(String courseTitle) { + this.courseTitle = courseTitle; } - public PublicInvitationSchema invitationEmail(InvitationEmailSchema invitationEmail) { - this.invitationEmail = invitationEmail; + public PublicInvitationSchema allowLaunch(Boolean allowLaunch) { + this.allowLaunch = allowLaunch; return this; } /** - * Get invitationEmail - * @return invitationEmail + * Determines if learners are allowed to launch the invitation. If false, the invitation is disabled and no new or existing learners are allowed to launch it. + * @return allowLaunch **/ - @ApiModelProperty(value = "") - public InvitationEmailSchema getInvitationEmail() { - return invitationEmail; + @ApiModelProperty(value = "Determines if learners are allowed to launch the invitation. If false, the invitation is disabled and no new or existing learners are allowed to launch it. ") + public Boolean isAllowLaunch() { + return allowLaunch; } - public void setInvitationEmail(InvitationEmailSchema invitationEmail) { - this.invitationEmail = invitationEmail; + public void setAllowLaunch(Boolean allowLaunch) { + this.allowLaunch = allowLaunch; } public PublicInvitationSchema allowNewRegistrations(Boolean allowNewRegistrations) { @@ -292,8 +291,8 @@ public boolean equals(java.lang.Object o) { PublicInvitationSchema publicInvitationSchema = (PublicInvitationSchema) o; return Objects.equals(this.id, publicInvitationSchema.id) && Objects.equals(this.courseId, publicInvitationSchema.courseId) && + Objects.equals(this.courseTitle, publicInvitationSchema.courseTitle) && Objects.equals(this.allowLaunch, publicInvitationSchema.allowLaunch) && - Objects.equals(this.invitationEmail, publicInvitationSchema.invitationEmail) && Objects.equals(this.allowNewRegistrations, publicInvitationSchema.allowNewRegistrations) && Objects.equals(this.url, publicInvitationSchema.url) && Objects.equals(this.createDate, publicInvitationSchema.createDate) && @@ -306,7 +305,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, courseId, allowLaunch, invitationEmail, allowNewRegistrations, url, createDate, updated, postBack, expirationDate, registrationCap, registrationCount); + return Objects.hash(id, courseId, courseTitle, allowLaunch, allowNewRegistrations, url, createDate, updated, postBack, expirationDate, registrationCap, registrationCount); } @Override @@ -316,8 +315,8 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" courseId: ").append(toIndentedString(courseId)).append("\n"); + sb.append(" courseTitle: ").append(toIndentedString(courseTitle)).append("\n"); sb.append(" allowLaunch: ").append(toIndentedString(allowLaunch)).append("\n"); - sb.append(" invitationEmail: ").append(toIndentedString(invitationEmail)).append("\n"); sb.append(" allowNewRegistrations: ").append(toIndentedString(allowNewRegistrations)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" createDate: ").append(toIndentedString(createDate)).append("\n"); diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/model/PublicInvitationUpdateSchema.java b/src/main/java/com/rusticisoftware/cloud/v2/client/model/PublicInvitationUpdateSchema.java index d50485a..13e8936 100644 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/model/PublicInvitationUpdateSchema.java +++ b/src/main/java/com/rusticisoftware/cloud/v2/client/model/PublicInvitationUpdateSchema.java @@ -40,7 +40,7 @@ public class PublicInvitationUpdateSchema { private OffsetDateTime expirationDate = null; @JsonProperty("registrationCap") - private Integer registrationCap = 0; + private Integer registrationCap = null; public PublicInvitationUpdateSchema allowLaunch(Boolean allowLaunch) { this.allowLaunch = allowLaunch; diff --git a/src/main/java/com/rusticisoftware/cloud/v2/client/model/ZoomiCompanyId.java b/src/main/java/com/rusticisoftware/cloud/v2/client/model/ZoomiCompanyId.java deleted file mode 100644 index 3d30196..0000000 --- a/src/main/java/com/rusticisoftware/cloud/v2/client/model/ZoomiCompanyId.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * SCORM Cloud Rest API - * REST API used for SCORM Cloud integrations. - * - * OpenAPI spec version: 2.0 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package com.rusticisoftware.cloud.v2.client.model; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * ZoomiCompanyId - */ -public class ZoomiCompanyId { - @JsonProperty("zoomi_company_id") - private String zoomiCompanyId = null; - - public ZoomiCompanyId zoomiCompanyId(String zoomiCompanyId) { - this.zoomiCompanyId = zoomiCompanyId; - return this; - } - - /** - * Get zoomiCompanyId - * @return zoomiCompanyId - **/ - @ApiModelProperty(value = "") - public String getZoomiCompanyId() { - return zoomiCompanyId; - } - - public void setZoomiCompanyId(String zoomiCompanyId) { - this.zoomiCompanyId = zoomiCompanyId; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ZoomiCompanyId zoomiCompanyId = (ZoomiCompanyId) o; - return Objects.equals(this.zoomiCompanyId, zoomiCompanyId.zoomiCompanyId); - } - - @Override - public int hashCode() { - return Objects.hash(zoomiCompanyId); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ZoomiCompanyId {\n"); - - sb.append(" zoomiCompanyId: ").append(toIndentedString(zoomiCompanyId)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} -