diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index e62d5a3..ad50d7e 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -221,10 +221,7 @@ src/main/java/com/vertexvis/model/QueuedJobData.java
src/main/java/com/vertexvis/model/QueuedJobDataAttributes.java
src/main/java/com/vertexvis/model/QueuedJobList.java
src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEvent.java
-src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEventData.java
-src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEventDataAttributes.java
src/main/java/com/vertexvis/model/QueuedTranslationCompletedEvent.java
-src/main/java/com/vertexvis/model/QueuedTranslationCompletedEventData.java
src/main/java/com/vertexvis/model/QueuedTranslationJob.java
src/main/java/com/vertexvis/model/QueuedTranslationJobData.java
src/main/java/com/vertexvis/model/QueuedTranslationJobDataAttributes.java
@@ -240,12 +237,9 @@ src/main/java/com/vertexvis/model/SceneAlterationData.java
src/main/java/com/vertexvis/model/SceneAlterationDataRelationships.java
src/main/java/com/vertexvis/model/SceneAlterationList.java
src/main/java/com/vertexvis/model/SceneCreatedEvent.java
-src/main/java/com/vertexvis/model/SceneCreatedEventData.java
src/main/java/com/vertexvis/model/SceneData.java
src/main/java/com/vertexvis/model/SceneDataAttributes.java
src/main/java/com/vertexvis/model/SceneDeletedEvent.java
-src/main/java/com/vertexvis/model/SceneDeletedEventData.java
-src/main/java/com/vertexvis/model/SceneEventDataAttributes.java
src/main/java/com/vertexvis/model/SceneItem.java
src/main/java/com/vertexvis/model/SceneItemData.java
src/main/java/com/vertexvis/model/SceneItemDataAttributes.java
@@ -263,7 +257,6 @@ src/main/java/com/vertexvis/model/SceneOperation.java
src/main/java/com/vertexvis/model/SceneRelationship.java
src/main/java/com/vertexvis/model/SceneRelationshipData.java
src/main/java/com/vertexvis/model/SceneUpdatedEvent.java
-src/main/java/com/vertexvis/model/SceneUpdatedEventData.java
src/main/java/com/vertexvis/model/SceneView.java
src/main/java/com/vertexvis/model/SceneViewData.java
src/main/java/com/vertexvis/model/SceneViewDataAttributes.java
@@ -321,6 +314,8 @@ src/main/java/com/vertexvis/model/ViewRenByIdOp.java
src/main/java/com/vertexvis/model/ViewRenBySuppliedIdOp.java
src/main/java/com/vertexvis/model/ViewRepByIdOp.java
src/main/java/com/vertexvis/model/ViewRepByPredefinedIdOp.java
+src/main/java/com/vertexvis/model/WebhookEvent.java
+src/main/java/com/vertexvis/model/WebhookEventData.java
src/main/java/com/vertexvis/model/WebhookEventDataRelationships.java
src/main/java/com/vertexvis/model/WebhookEventDataRelationshipsOwner.java
src/main/java/com/vertexvis/model/WebhookEventDataRelationshipsOwnerData.java
diff --git a/README.md b/README.md
index 062a7f6..2ebd0ab 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ The client can be used with Java 1.8+ and pulled into Maven or Gradle projects.
com.vertexvis
api-client-java
- 0.7.1
+ 0.7.2
compile
```
@@ -25,13 +25,13 @@ The client can be used with Java 1.8+ and pulled into Maven or Gradle projects.
### Gradle
```groovy
-compile "com.vertexvis:api-client-java:0.7.1"
+compile "com.vertexvis:api-client-java:0.7.2"
```
### Sbt
```sbt
-libraryDependencies += "com.vertexvis" % "api-client-java" % "0.7.1"
+libraryDependencies += "com.vertexvis" % "api-client-java" % "0.7.2"
```
### Others
@@ -44,7 +44,7 @@ mvn clean package
Then manually install the following JARs.
-- `target/api-client-java-0.7.1.jar`
+- `target/api-client-java-0.7.2.jar`
- `target/lib/*.jar`
## Usage
diff --git a/api/openapi.yaml b/api/openapi.yaml
index 937af25..9c06118 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -6243,7 +6243,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/QueuedSceneItemCompletedEvent'
+ $ref: '#/components/schemas/WebhookEvent'
responses:
"200":
description: OK
@@ -6256,7 +6256,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/QueuedTranslationCompletedEvent'
+ $ref: '#/components/schemas/WebhookEvent'
responses:
"200":
description: OK
@@ -6269,7 +6269,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/SceneCreatedEvent'
+ $ref: '#/components/schemas/WebhookEvent'
responses:
"200":
description: OK
@@ -6282,7 +6282,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/SceneDeletedEvent'
+ $ref: '#/components/schemas/WebhookEvent'
responses:
"200":
description: OK
@@ -6295,7 +6295,7 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/SceneUpdatedEvent'
+ $ref: '#/components/schemas/WebhookEvent'
responses:
"200":
description: OK
@@ -7984,7 +7984,7 @@ components:
required:
- data
type: object
- QueuedSceneItemCompletedEvent:
+ WebhookEvent:
additionalProperties: false
example:
data:
@@ -8001,9 +8001,7 @@ components:
type: queued-scene-item
links:
related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- attributes:
- created: 2020-01-01T12:00:00Z
- topic: some-string
+ attributes: ""
links:
key:
href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
@@ -8014,165 +8012,7 @@ components:
href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
properties:
data:
- $ref: '#/components/schemas/QueuedSceneItemCompletedEventData'
- links:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- required:
- - data
- type: object
- QueuedTranslationCompletedEvent:
- additionalProperties: false
- example:
- data:
- relationships:
- owner:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: account
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- resource:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: queued-scene-item
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- attributes:
- created: 2020-01-01T12:00:00Z
- topic: some-string
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: webhook-event
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- properties:
- data:
- $ref: '#/components/schemas/QueuedTranslationCompletedEventData'
- links:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- required:
- - data
- type: object
- SceneCreatedEvent:
- additionalProperties: false
- example:
- data:
- relationships:
- owner:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: account
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- resource:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: queued-scene-item
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- attributes:
- metadata:
- key: metadata
- created: 2020-01-01T12:00:00Z
- topic: some-string
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: webhook-event
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- properties:
- data:
- $ref: '#/components/schemas/SceneCreatedEventData'
- links:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- required:
- - data
- type: object
- SceneDeletedEvent:
- additionalProperties: false
- example:
- data:
- relationships:
- owner:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: account
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- resource:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: queued-scene-item
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- attributes:
- metadata:
- key: metadata
- created: 2020-01-01T12:00:00Z
- topic: some-string
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: webhook-event
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- properties:
- data:
- $ref: '#/components/schemas/SceneDeletedEventData'
- links:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- required:
- - data
- type: object
- SceneUpdatedEvent:
- additionalProperties: false
- example:
- data:
- relationships:
- owner:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: account
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- resource:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: queued-scene-item
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- attributes:
- metadata:
- key: metadata
- created: 2020-01-01T12:00:00Z
- topic: some-string
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: webhook-event
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- properties:
- data:
- $ref: '#/components/schemas/SceneUpdatedEventData'
+ $ref: '#/components/schemas/WebhookEventData'
links:
additionalProperties:
$ref: '#/components/schemas/Link'
@@ -9245,101 +9085,7 @@ components:
- relationships
- type
type: object
- QueuedSceneItemCompletedEventData:
- additionalProperties: false
- example:
- relationships:
- owner:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: account
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- resource:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: queued-scene-item
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- attributes:
- created: 2020-01-01T12:00:00Z
- topic: some-string
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: webhook-event
- properties:
- type:
- example: webhook-event
- type: string
- id:
- description: ID of the resource.
- example: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- format: uuid
- maxLength: 36
- type: string
- attributes:
- $ref: '#/components/schemas/QueuedSceneItemCompletedEventData_attributes'
- relationships:
- $ref: '#/components/schemas/WebhookEventDataRelationships'
- links:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- required:
- - attributes
- - id
- - type
- type: object
- QueuedTranslationCompletedEventData:
- additionalProperties: false
- example:
- relationships:
- owner:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: account
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- resource:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: queued-scene-item
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- attributes:
- created: 2020-01-01T12:00:00Z
- topic: some-string
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: webhook-event
- properties:
- type:
- example: webhook-event
- type: string
- id:
- description: ID of the resource.
- example: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- format: uuid
- maxLength: 36
- type: string
- attributes:
- $ref: '#/components/schemas/QueuedSceneItemCompletedEventData_attributes'
- relationships:
- $ref: '#/components/schemas/WebhookEventDataRelationships'
- links:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- required:
- - attributes
- - id
- - type
- type: object
- SceneCreatedEventData:
+ WebhookEventData:
additionalProperties: false
example:
relationships:
@@ -9355,11 +9101,7 @@ components:
type: queued-scene-item
links:
related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- attributes:
- metadata:
- key: metadata
- created: 2020-01-01T12:00:00Z
- topic: some-string
+ attributes: ""
links:
key:
href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
@@ -9376,105 +9118,20 @@ components:
maxLength: 36
type: string
attributes:
- $ref: '#/components/schemas/SceneEventDataAttributes'
- relationships:
- $ref: '#/components/schemas/WebhookEventDataRelationships'
- links:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- required:
- - attributes
- - id
- - type
- type: object
- SceneDeletedEventData:
- additionalProperties: false
- example:
- relationships:
- owner:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: account
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- resource:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: queued-scene-item
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- attributes:
- metadata:
- key: metadata
- created: 2020-01-01T12:00:00Z
- topic: some-string
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: webhook-event
- properties:
- type:
- example: webhook-event
- type: string
- id:
- description: ID of the resource.
- example: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- format: uuid
- maxLength: 36
- type: string
- attributes:
- $ref: '#/components/schemas/SceneEventDataAttributes'
- relationships:
- $ref: '#/components/schemas/WebhookEventDataRelationships'
- links:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- required:
- - attributes
- - id
- - type
- type: object
- SceneUpdatedEventData:
- additionalProperties: false
- example:
- relationships:
- owner:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: account
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- resource:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: queued-scene-item
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- attributes:
- metadata:
- key: metadata
- created: 2020-01-01T12:00:00Z
- topic: some-string
- links:
- key:
- href: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: webhook-event
- properties:
- type:
- example: webhook-event
- type: string
- id:
- description: ID of the resource.
- example: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- format: uuid
- maxLength: 36
- type: string
- attributes:
- $ref: '#/components/schemas/SceneEventDataAttributes'
+ discriminator:
+ mapping:
+ queued-scene-item.completed: '#/components/schemas/QueuedSceneItemCompletedEvent'
+ queued-translation.completed: '#/components/schemas/QueuedTranslationCompletedEvent'
+ scene.created: '#/components/schemas/SceneCreatedEvent'
+ scene.deleted: '#/components/schemas/SceneDeletedEvent'
+ scene.updated: '#/components/schemas/SceneUpdatedEvent'
+ propertyName: topic
+ oneOf:
+ - $ref: '#/components/schemas/QueuedSceneItemCompletedEvent'
+ - $ref: '#/components/schemas/QueuedTranslationCompletedEvent'
+ - $ref: '#/components/schemas/SceneCreatedEvent'
+ - $ref: '#/components/schemas/SceneDeletedEvent'
+ - $ref: '#/components/schemas/SceneUpdatedEvent'
relationships:
$ref: '#/components/schemas/WebhookEventDataRelationships'
links:
@@ -10014,37 +9671,88 @@ components:
- id
- type
type: object
- WebhookEventDataRelationships:
+ QueuedSceneItemCompletedEvent:
additionalProperties: false
- example:
- owner:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: account
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
- resource:
- data:
- id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
- type: queued-scene-item
- links:
- related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
properties:
- owner:
- $ref: '#/components/schemas/WebhookEventDataRelationships_owner'
- resource:
- $ref: '#/components/schemas/WebhookEventDataRelationships_resource'
+ created:
+ example: 2020-01-01T12:00:00Z
+ format: date-time
+ type: string
+ topic:
+ example: some-string
+ maxLength: 1024
+ minLength: 1
+ type: string
required:
- - owner
- - resource
+ - created
+ - topic
type: object
- SceneEventDataAttributes:
+ QueuedTranslationCompletedEvent:
additionalProperties: false
- example:
+ properties:
+ created:
+ example: 2020-01-01T12:00:00Z
+ format: date-time
+ type: string
+ topic:
+ example: some-string
+ maxLength: 1024
+ minLength: 1
+ type: string
+ required:
+ - created
+ - topic
+ type: object
+ SceneCreatedEvent:
+ additionalProperties: false
+ properties:
+ created:
+ example: 2020-01-01T12:00:00Z
+ format: date-time
+ type: string
+ topic:
+ example: some-string
+ maxLength: 1024
+ minLength: 1
+ type: string
+ metadata:
+ additionalProperties:
+ maxLength: 256
+ minLength: 0
+ type: string
+ description: |
+ User supplied key-value pairs for a scene. You can supply up to 50 entries, with key names limited to 64 characters and values limited to 256 characters.
+ type: object
+ required:
+ - created
+ - topic
+ type: object
+ SceneDeletedEvent:
+ additionalProperties: false
+ properties:
+ created:
+ example: 2020-01-01T12:00:00Z
+ format: date-time
+ type: string
+ topic:
+ example: some-string
+ maxLength: 1024
+ minLength: 1
+ type: string
metadata:
- key: metadata
- created: 2020-01-01T12:00:00Z
- topic: some-string
+ additionalProperties:
+ maxLength: 256
+ minLength: 0
+ type: string
+ description: |
+ User supplied key-value pairs for a scene. You can supply up to 50 entries, with key names limited to 64 characters and values limited to 256 characters.
+ type: object
+ required:
+ - created
+ - topic
+ type: object
+ SceneUpdatedEvent:
+ additionalProperties: false
properties:
created:
example: 2020-01-01T12:00:00Z
@@ -10067,6 +9775,30 @@ components:
- created
- topic
type: object
+ WebhookEventDataRelationships:
+ additionalProperties: false
+ example:
+ owner:
+ data:
+ id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
+ type: account
+ links:
+ related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
+ resource:
+ data:
+ id: f79d4760-0b71-44e4-ad0b-22743fdd4ca3
+ type: queued-scene-item
+ links:
+ related: /some-resource/d98d621a-23da-49fe-af96-6be709abb718
+ properties:
+ owner:
+ $ref: '#/components/schemas/WebhookEventDataRelationships_owner'
+ resource:
+ $ref: '#/components/schemas/WebhookEventDataRelationships_resource'
+ required:
+ - owner
+ - resource
+ type: object
Color:
description: Color value from 0 to 255.
example: 255
@@ -11918,24 +11650,6 @@ components:
- topics
- url
type: object
- QueuedSceneItemCompletedEventData_attributes:
- example:
- created: 2020-01-01T12:00:00Z
- topic: some-string
- properties:
- created:
- example: 2020-01-01T12:00:00Z
- format: date-time
- type: string
- topic:
- example: some-string
- maxLength: 1024
- minLength: 1
- type: string
- required:
- - created
- - topic
- type: object
PartRenditionRelationship_data:
properties:
type:
diff --git a/build.gradle b/build.gradle
index 8196da9..1ebf71e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -7,7 +7,7 @@ plugins {
}
group = 'com.vertexvis'
-version = '0.7.1'
+version = '0.7.2'
repositories {
mavenCentral()
diff --git a/scripts/generate.sh b/scripts/generate.sh
index 4166659..1665ae0 100755
--- a/scripts/generate.sh
+++ b/scripts/generate.sh
@@ -22,6 +22,7 @@ main() {
AnyOfGeometrySetRelationshipPartRevisionRelationship.java \
AnyOfQueryByIdQueryByCollectionQueryAll.java \
OneOfHitResultDataSceneItemDataPartRevisionData.java \
+ OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent.java \
OneOfSceneViewRelationshipSceneViewStateRelationship.java \
AnyOfFileRelationshipPartAssemblyRelationship.java )
mv "src/test" . || true
diff --git a/src/main/java/com/vertexvis/ApiClient.java b/src/main/java/com/vertexvis/ApiClient.java
index a160644..0a1c133 100644
--- a/src/main/java/com/vertexvis/ApiClient.java
+++ b/src/main/java/com/vertexvis/ApiClient.java
@@ -207,7 +207,7 @@ private void init() {
json = new JSON();
// Set default User-Agent.
- setUserAgent("vertex-api-client-java/0.7.1");
+ setUserAgent("vertex-api-client-java/0.7.2");
authentications = new HashMap();
}
diff --git a/src/main/java/com/vertexvis/model/OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent.java b/src/main/java/com/vertexvis/model/OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent.java
new file mode 100644
index 0000000..4ef8297
--- /dev/null
+++ b/src/main/java/com/vertexvis/model/OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent.java
@@ -0,0 +1,75 @@
+package com.vertexvis.model;
+
+import javax.annotation.Nullable;
+
+public class OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent {
+ private QueuedSceneItemCompletedEvent queuedSceneItemCompletedEvent;
+ private QueuedTranslationCompletedEvent queuedTranslationCompletedEvent;
+ private SceneCreatedEvent sceneCreatedEvent;
+ private SceneDeletedEvent sceneDeletedEvent;
+ private SceneUpdatedEvent sceneUpdatedEvent;
+
+ public OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent(QueuedSceneItemCompletedEvent event) {
+ this.queuedSceneItemCompletedEvent = event;
+ }
+
+ public OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent(QueuedTranslationCompletedEvent event) {
+ this.queuedTranslationCompletedEvent = event;
+ }
+
+ public OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent(SceneCreatedEvent event) {
+ this.sceneCreatedEvent = event;
+ }
+
+ public OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent(SceneDeletedEvent event) {
+ this.sceneDeletedEvent = event;
+ }
+
+ public OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent(SceneUpdatedEvent event) {
+ this.sceneUpdatedEvent = event;
+ }
+
+ public Object getData() {
+ if (this.queuedSceneItemCompletedEvent != null) {
+ return this.queuedSceneItemCompletedEvent;
+ }
+ if (this.queuedTranslationCompletedEvent != null) {
+ return this.queuedTranslationCompletedEvent;
+ }
+ if (this.sceneCreatedEvent != null) {
+ return this.sceneCreatedEvent;
+ }
+ if (this.sceneDeletedEvent != null) {
+ return this.sceneUpdatedEvent;
+ }
+ if (this.sceneUpdatedEvent != null) {
+ return this.sceneUpdatedEvent;
+ }
+ return null;
+ }
+
+ @Nullable
+ public QueuedSceneItemCompletedEvent getQueuedSceneItemCompletedEvent() {
+ return queuedSceneItemCompletedEvent;
+ }
+
+ @Nullable
+ public QueuedTranslationCompletedEvent getQueuedTranslationCompletedEvent() {
+ return queuedTranslationCompletedEvent;
+ }
+
+ @Nullable
+ public SceneCreatedEvent getSceneCreatedEvent() {
+ return sceneCreatedEvent;
+ }
+
+ @Nullable
+ public SceneDeletedEvent getSceneDeletedEvent() {
+ return sceneDeletedEvent;
+ }
+
+ @Nullable
+ public SceneUpdatedEvent getSceneUpdatedEvent() {
+ return sceneUpdatedEvent;
+ }
+}
diff --git a/src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEvent.java b/src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEvent.java
index 752a27a..a9bc2a9 100644
--- a/src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEvent.java
+++ b/src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEvent.java
@@ -20,82 +20,70 @@
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
-import com.vertexvis.model.Link;
-import com.vertexvis.model.QueuedSceneItemCompletedEventData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
+import java.time.OffsetDateTime;
/**
* QueuedSceneItemCompletedEvent
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class QueuedSceneItemCompletedEvent {
- public static final String SERIALIZED_NAME_DATA = "data";
- @SerializedName(SERIALIZED_NAME_DATA)
- private QueuedSceneItemCompletedEventData data;
+ public static final String SERIALIZED_NAME_CREATED = "created";
+ @SerializedName(SERIALIZED_NAME_CREATED)
+ private OffsetDateTime created;
- public static final String SERIALIZED_NAME_LINKS = "links";
- @SerializedName(SERIALIZED_NAME_LINKS)
- private Map links = null;
+ public static final String SERIALIZED_NAME_TOPIC = "topic";
+ @SerializedName(SERIALIZED_NAME_TOPIC)
+ private String topic;
public QueuedSceneItemCompletedEvent() {
}
- public QueuedSceneItemCompletedEvent data(QueuedSceneItemCompletedEventData data) {
+ public QueuedSceneItemCompletedEvent created(OffsetDateTime created) {
- this.data = data;
+ this.created = created;
return this;
}
/**
- * Get data
- * @return data
+ * Get created
+ * @return created
**/
@javax.annotation.Nonnull
- @ApiModelProperty(required = true, value = "")
+ @ApiModelProperty(example = "2020-01-01T12:00Z", required = true, value = "")
- public QueuedSceneItemCompletedEventData getData() {
- return data;
+ public OffsetDateTime getCreated() {
+ return created;
}
- public void setData(QueuedSceneItemCompletedEventData data) {
- this.data = data;
+ public void setCreated(OffsetDateTime created) {
+ this.created = created;
}
- public QueuedSceneItemCompletedEvent links(Map links) {
+ public QueuedSceneItemCompletedEvent topic(String topic) {
- this.links = links;
- return this;
- }
-
- public QueuedSceneItemCompletedEvent putLinksItem(String key, Link linksItem) {
- if (this.links == null) {
- this.links = new HashMap<>();
- }
- this.links.put(key, linksItem);
+ this.topic = topic;
return this;
}
/**
- * Get links
- * @return links
+ * Get topic
+ * @return topic
**/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
+ @javax.annotation.Nonnull
+ @ApiModelProperty(example = "some-string", required = true, value = "")
- public Map getLinks() {
- return links;
+ public String getTopic() {
+ return topic;
}
- public void setLinks(Map links) {
- this.links = links;
+ public void setTopic(String topic) {
+ this.topic = topic;
}
@@ -108,21 +96,21 @@ public boolean equals(Object o) {
return false;
}
QueuedSceneItemCompletedEvent queuedSceneItemCompletedEvent = (QueuedSceneItemCompletedEvent) o;
- return Objects.equals(this.data, queuedSceneItemCompletedEvent.data) &&
- Objects.equals(this.links, queuedSceneItemCompletedEvent.links);
+ return Objects.equals(this.created, queuedSceneItemCompletedEvent.created) &&
+ Objects.equals(this.topic, queuedSceneItemCompletedEvent.topic);
}
@Override
public int hashCode() {
- return Objects.hash(data, links);
+ return Objects.hash(created, topic);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class QueuedSceneItemCompletedEvent {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" links: ").append(toIndentedString(links)).append("\n");
+ sb.append(" created: ").append(toIndentedString(created)).append("\n");
+ sb.append(" topic: ").append(toIndentedString(topic)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/com/vertexvis/model/QueuedTranslationCompletedEvent.java b/src/main/java/com/vertexvis/model/QueuedTranslationCompletedEvent.java
index 50c265b..b1906cf 100644
--- a/src/main/java/com/vertexvis/model/QueuedTranslationCompletedEvent.java
+++ b/src/main/java/com/vertexvis/model/QueuedTranslationCompletedEvent.java
@@ -20,82 +20,70 @@
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
-import com.vertexvis.model.Link;
-import com.vertexvis.model.QueuedTranslationCompletedEventData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
+import java.time.OffsetDateTime;
/**
* QueuedTranslationCompletedEvent
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class QueuedTranslationCompletedEvent {
- public static final String SERIALIZED_NAME_DATA = "data";
- @SerializedName(SERIALIZED_NAME_DATA)
- private QueuedTranslationCompletedEventData data;
+ public static final String SERIALIZED_NAME_CREATED = "created";
+ @SerializedName(SERIALIZED_NAME_CREATED)
+ private OffsetDateTime created;
- public static final String SERIALIZED_NAME_LINKS = "links";
- @SerializedName(SERIALIZED_NAME_LINKS)
- private Map links = null;
+ public static final String SERIALIZED_NAME_TOPIC = "topic";
+ @SerializedName(SERIALIZED_NAME_TOPIC)
+ private String topic;
public QueuedTranslationCompletedEvent() {
}
- public QueuedTranslationCompletedEvent data(QueuedTranslationCompletedEventData data) {
+ public QueuedTranslationCompletedEvent created(OffsetDateTime created) {
- this.data = data;
+ this.created = created;
return this;
}
/**
- * Get data
- * @return data
+ * Get created
+ * @return created
**/
@javax.annotation.Nonnull
- @ApiModelProperty(required = true, value = "")
+ @ApiModelProperty(example = "2020-01-01T12:00Z", required = true, value = "")
- public QueuedTranslationCompletedEventData getData() {
- return data;
+ public OffsetDateTime getCreated() {
+ return created;
}
- public void setData(QueuedTranslationCompletedEventData data) {
- this.data = data;
+ public void setCreated(OffsetDateTime created) {
+ this.created = created;
}
- public QueuedTranslationCompletedEvent links(Map links) {
+ public QueuedTranslationCompletedEvent topic(String topic) {
- this.links = links;
- return this;
- }
-
- public QueuedTranslationCompletedEvent putLinksItem(String key, Link linksItem) {
- if (this.links == null) {
- this.links = new HashMap<>();
- }
- this.links.put(key, linksItem);
+ this.topic = topic;
return this;
}
/**
- * Get links
- * @return links
+ * Get topic
+ * @return topic
**/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
+ @javax.annotation.Nonnull
+ @ApiModelProperty(example = "some-string", required = true, value = "")
- public Map getLinks() {
- return links;
+ public String getTopic() {
+ return topic;
}
- public void setLinks(Map links) {
- this.links = links;
+ public void setTopic(String topic) {
+ this.topic = topic;
}
@@ -108,21 +96,21 @@ public boolean equals(Object o) {
return false;
}
QueuedTranslationCompletedEvent queuedTranslationCompletedEvent = (QueuedTranslationCompletedEvent) o;
- return Objects.equals(this.data, queuedTranslationCompletedEvent.data) &&
- Objects.equals(this.links, queuedTranslationCompletedEvent.links);
+ return Objects.equals(this.created, queuedTranslationCompletedEvent.created) &&
+ Objects.equals(this.topic, queuedTranslationCompletedEvent.topic);
}
@Override
public int hashCode() {
- return Objects.hash(data, links);
+ return Objects.hash(created, topic);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class QueuedTranslationCompletedEvent {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" links: ").append(toIndentedString(links)).append("\n");
+ sb.append(" created: ").append(toIndentedString(created)).append("\n");
+ sb.append(" topic: ").append(toIndentedString(topic)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/com/vertexvis/model/QueuedTranslationCompletedEventData.java b/src/main/java/com/vertexvis/model/QueuedTranslationCompletedEventData.java
deleted file mode 100644
index 22d2934..0000000
--- a/src/main/java/com/vertexvis/model/QueuedTranslationCompletedEventData.java
+++ /dev/null
@@ -1,231 +0,0 @@
-/*
- * Vertex Platform API
- * The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
- *
- * The version of the OpenAPI document: 1.0
- * Contact: support@vertexvis.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package com.vertexvis.model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import com.vertexvis.model.Link;
-import com.vertexvis.model.QueuedSceneItemCompletedEventDataAttributes;
-import com.vertexvis.model.WebhookEventDataRelationships;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-
-/**
- * QueuedTranslationCompletedEventData
- */
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class QueuedTranslationCompletedEventData {
- public static final String SERIALIZED_NAME_TYPE = "type";
- @SerializedName(SERIALIZED_NAME_TYPE)
- private String type;
-
- public static final String SERIALIZED_NAME_ID = "id";
- @SerializedName(SERIALIZED_NAME_ID)
- private UUID id;
-
- public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
- @SerializedName(SERIALIZED_NAME_ATTRIBUTES)
- private QueuedSceneItemCompletedEventDataAttributes attributes;
-
- public static final String SERIALIZED_NAME_RELATIONSHIPS = "relationships";
- @SerializedName(SERIALIZED_NAME_RELATIONSHIPS)
- private WebhookEventDataRelationships relationships;
-
- public static final String SERIALIZED_NAME_LINKS = "links";
- @SerializedName(SERIALIZED_NAME_LINKS)
- private Map links = null;
-
- public QueuedTranslationCompletedEventData() {
- }
-
- public QueuedTranslationCompletedEventData type(String type) {
-
- this.type = type;
- return this;
- }
-
- /**
- * Get type
- * @return type
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(example = "webhook-event", required = true, value = "")
-
- public String getType() {
- return type;
- }
-
-
- public void setType(String type) {
- this.type = type;
- }
-
-
- public QueuedTranslationCompletedEventData id(UUID id) {
-
- this.id = id;
- return this;
- }
-
- /**
- * ID of the resource.
- * @return id
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(example = "f79d4760-0b71-44e4-ad0b-22743fdd4ca3", required = true, value = "ID of the resource.")
-
- public UUID getId() {
- return id;
- }
-
-
- public void setId(UUID id) {
- this.id = id;
- }
-
-
- public QueuedTranslationCompletedEventData attributes(QueuedSceneItemCompletedEventDataAttributes attributes) {
-
- this.attributes = attributes;
- return this;
- }
-
- /**
- * Get attributes
- * @return attributes
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(required = true, value = "")
-
- public QueuedSceneItemCompletedEventDataAttributes getAttributes() {
- return attributes;
- }
-
-
- public void setAttributes(QueuedSceneItemCompletedEventDataAttributes attributes) {
- this.attributes = attributes;
- }
-
-
- public QueuedTranslationCompletedEventData relationships(WebhookEventDataRelationships relationships) {
-
- this.relationships = relationships;
- return this;
- }
-
- /**
- * Get relationships
- * @return relationships
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
-
- public WebhookEventDataRelationships getRelationships() {
- return relationships;
- }
-
-
- public void setRelationships(WebhookEventDataRelationships relationships) {
- this.relationships = relationships;
- }
-
-
- public QueuedTranslationCompletedEventData links(Map links) {
-
- this.links = links;
- return this;
- }
-
- public QueuedTranslationCompletedEventData putLinksItem(String key, Link linksItem) {
- if (this.links == null) {
- this.links = new HashMap<>();
- }
- this.links.put(key, linksItem);
- return this;
- }
-
- /**
- * Get links
- * @return links
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
-
- public Map getLinks() {
- return links;
- }
-
-
- public void setLinks(Map links) {
- this.links = links;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- QueuedTranslationCompletedEventData queuedTranslationCompletedEventData = (QueuedTranslationCompletedEventData) o;
- return Objects.equals(this.type, queuedTranslationCompletedEventData.type) &&
- Objects.equals(this.id, queuedTranslationCompletedEventData.id) &&
- Objects.equals(this.attributes, queuedTranslationCompletedEventData.attributes) &&
- Objects.equals(this.relationships, queuedTranslationCompletedEventData.relationships) &&
- Objects.equals(this.links, queuedTranslationCompletedEventData.links);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(type, id, attributes, relationships, links);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class QueuedTranslationCompletedEventData {\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n");
- sb.append(" links: ").append(toIndentedString(links)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/src/main/java/com/vertexvis/model/SceneCreatedEvent.java b/src/main/java/com/vertexvis/model/SceneCreatedEvent.java
index 998ea0d..c2d79fd 100644
--- a/src/main/java/com/vertexvis/model/SceneCreatedEvent.java
+++ b/src/main/java/com/vertexvis/model/SceneCreatedEvent.java
@@ -20,11 +20,10 @@
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
-import com.vertexvis.model.Link;
-import com.vertexvis.model.SceneCreatedEventData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
+import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -34,68 +33,95 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SceneCreatedEvent {
- public static final String SERIALIZED_NAME_DATA = "data";
- @SerializedName(SERIALIZED_NAME_DATA)
- private SceneCreatedEventData data;
+ public static final String SERIALIZED_NAME_CREATED = "created";
+ @SerializedName(SERIALIZED_NAME_CREATED)
+ private OffsetDateTime created;
- public static final String SERIALIZED_NAME_LINKS = "links";
- @SerializedName(SERIALIZED_NAME_LINKS)
- private Map links = null;
+ public static final String SERIALIZED_NAME_TOPIC = "topic";
+ @SerializedName(SERIALIZED_NAME_TOPIC)
+ private String topic;
+
+ public static final String SERIALIZED_NAME_METADATA = "metadata";
+ @SerializedName(SERIALIZED_NAME_METADATA)
+ private Map metadata = null;
public SceneCreatedEvent() {
}
- public SceneCreatedEvent data(SceneCreatedEventData data) {
+ public SceneCreatedEvent created(OffsetDateTime created) {
+
+ this.created = created;
+ return this;
+ }
+
+ /**
+ * Get created
+ * @return created
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(example = "2020-01-01T12:00Z", required = true, value = "")
+
+ public OffsetDateTime getCreated() {
+ return created;
+ }
+
+
+ public void setCreated(OffsetDateTime created) {
+ this.created = created;
+ }
+
+
+ public SceneCreatedEvent topic(String topic) {
- this.data = data;
+ this.topic = topic;
return this;
}
/**
- * Get data
- * @return data
+ * Get topic
+ * @return topic
**/
@javax.annotation.Nonnull
- @ApiModelProperty(required = true, value = "")
+ @ApiModelProperty(example = "some-string", required = true, value = "")
- public SceneCreatedEventData getData() {
- return data;
+ public String getTopic() {
+ return topic;
}
- public void setData(SceneCreatedEventData data) {
- this.data = data;
+ public void setTopic(String topic) {
+ this.topic = topic;
}
- public SceneCreatedEvent links(Map links) {
+ public SceneCreatedEvent metadata(Map metadata) {
- this.links = links;
+ this.metadata = metadata;
return this;
}
- public SceneCreatedEvent putLinksItem(String key, Link linksItem) {
- if (this.links == null) {
- this.links = new HashMap<>();
+ public SceneCreatedEvent putMetadataItem(String key, String metadataItem) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
}
- this.links.put(key, linksItem);
+ this.metadata.put(key, metadataItem);
return this;
}
/**
- * Get links
- * @return links
+ * User supplied key-value pairs for a scene. You can supply up to 50 entries, with key names limited to 64 characters and values limited to 256 characters.
+ * @return metadata
**/
@javax.annotation.Nullable
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "User supplied key-value pairs for a scene. You can supply up to 50 entries, with key names limited to 64 characters and values limited to 256 characters. ")
- public Map getLinks() {
- return links;
+ public Map getMetadata() {
+ return metadata;
}
- public void setLinks(Map links) {
- this.links = links;
+ public void setMetadata(Map metadata) {
+ this.metadata = metadata;
}
@@ -108,21 +134,23 @@ public boolean equals(Object o) {
return false;
}
SceneCreatedEvent sceneCreatedEvent = (SceneCreatedEvent) o;
- return Objects.equals(this.data, sceneCreatedEvent.data) &&
- Objects.equals(this.links, sceneCreatedEvent.links);
+ return Objects.equals(this.created, sceneCreatedEvent.created) &&
+ Objects.equals(this.topic, sceneCreatedEvent.topic) &&
+ Objects.equals(this.metadata, sceneCreatedEvent.metadata);
}
@Override
public int hashCode() {
- return Objects.hash(data, links);
+ return Objects.hash(created, topic, metadata);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SceneCreatedEvent {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" links: ").append(toIndentedString(links)).append("\n");
+ sb.append(" created: ").append(toIndentedString(created)).append("\n");
+ sb.append(" topic: ").append(toIndentedString(topic)).append("\n");
+ sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/com/vertexvis/model/SceneCreatedEventData.java b/src/main/java/com/vertexvis/model/SceneCreatedEventData.java
deleted file mode 100644
index 5f31c13..0000000
--- a/src/main/java/com/vertexvis/model/SceneCreatedEventData.java
+++ /dev/null
@@ -1,231 +0,0 @@
-/*
- * Vertex Platform API
- * The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
- *
- * The version of the OpenAPI document: 1.0
- * Contact: support@vertexvis.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package com.vertexvis.model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import com.vertexvis.model.Link;
-import com.vertexvis.model.SceneEventDataAttributes;
-import com.vertexvis.model.WebhookEventDataRelationships;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-
-/**
- * SceneCreatedEventData
- */
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class SceneCreatedEventData {
- public static final String SERIALIZED_NAME_TYPE = "type";
- @SerializedName(SERIALIZED_NAME_TYPE)
- private String type;
-
- public static final String SERIALIZED_NAME_ID = "id";
- @SerializedName(SERIALIZED_NAME_ID)
- private UUID id;
-
- public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
- @SerializedName(SERIALIZED_NAME_ATTRIBUTES)
- private SceneEventDataAttributes attributes;
-
- public static final String SERIALIZED_NAME_RELATIONSHIPS = "relationships";
- @SerializedName(SERIALIZED_NAME_RELATIONSHIPS)
- private WebhookEventDataRelationships relationships;
-
- public static final String SERIALIZED_NAME_LINKS = "links";
- @SerializedName(SERIALIZED_NAME_LINKS)
- private Map links = null;
-
- public SceneCreatedEventData() {
- }
-
- public SceneCreatedEventData type(String type) {
-
- this.type = type;
- return this;
- }
-
- /**
- * Get type
- * @return type
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(example = "webhook-event", required = true, value = "")
-
- public String getType() {
- return type;
- }
-
-
- public void setType(String type) {
- this.type = type;
- }
-
-
- public SceneCreatedEventData id(UUID id) {
-
- this.id = id;
- return this;
- }
-
- /**
- * ID of the resource.
- * @return id
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(example = "f79d4760-0b71-44e4-ad0b-22743fdd4ca3", required = true, value = "ID of the resource.")
-
- public UUID getId() {
- return id;
- }
-
-
- public void setId(UUID id) {
- this.id = id;
- }
-
-
- public SceneCreatedEventData attributes(SceneEventDataAttributes attributes) {
-
- this.attributes = attributes;
- return this;
- }
-
- /**
- * Get attributes
- * @return attributes
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(required = true, value = "")
-
- public SceneEventDataAttributes getAttributes() {
- return attributes;
- }
-
-
- public void setAttributes(SceneEventDataAttributes attributes) {
- this.attributes = attributes;
- }
-
-
- public SceneCreatedEventData relationships(WebhookEventDataRelationships relationships) {
-
- this.relationships = relationships;
- return this;
- }
-
- /**
- * Get relationships
- * @return relationships
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
-
- public WebhookEventDataRelationships getRelationships() {
- return relationships;
- }
-
-
- public void setRelationships(WebhookEventDataRelationships relationships) {
- this.relationships = relationships;
- }
-
-
- public SceneCreatedEventData links(Map links) {
-
- this.links = links;
- return this;
- }
-
- public SceneCreatedEventData putLinksItem(String key, Link linksItem) {
- if (this.links == null) {
- this.links = new HashMap<>();
- }
- this.links.put(key, linksItem);
- return this;
- }
-
- /**
- * Get links
- * @return links
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
-
- public Map getLinks() {
- return links;
- }
-
-
- public void setLinks(Map links) {
- this.links = links;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SceneCreatedEventData sceneCreatedEventData = (SceneCreatedEventData) o;
- return Objects.equals(this.type, sceneCreatedEventData.type) &&
- Objects.equals(this.id, sceneCreatedEventData.id) &&
- Objects.equals(this.attributes, sceneCreatedEventData.attributes) &&
- Objects.equals(this.relationships, sceneCreatedEventData.relationships) &&
- Objects.equals(this.links, sceneCreatedEventData.links);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(type, id, attributes, relationships, links);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class SceneCreatedEventData {\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n");
- sb.append(" links: ").append(toIndentedString(links)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/src/main/java/com/vertexvis/model/SceneDeletedEvent.java b/src/main/java/com/vertexvis/model/SceneDeletedEvent.java
index a5590ff..88d5d7d 100644
--- a/src/main/java/com/vertexvis/model/SceneDeletedEvent.java
+++ b/src/main/java/com/vertexvis/model/SceneDeletedEvent.java
@@ -20,11 +20,10 @@
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
-import com.vertexvis.model.Link;
-import com.vertexvis.model.SceneDeletedEventData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
+import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -34,68 +33,95 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SceneDeletedEvent {
- public static final String SERIALIZED_NAME_DATA = "data";
- @SerializedName(SERIALIZED_NAME_DATA)
- private SceneDeletedEventData data;
+ public static final String SERIALIZED_NAME_CREATED = "created";
+ @SerializedName(SERIALIZED_NAME_CREATED)
+ private OffsetDateTime created;
- public static final String SERIALIZED_NAME_LINKS = "links";
- @SerializedName(SERIALIZED_NAME_LINKS)
- private Map links = null;
+ public static final String SERIALIZED_NAME_TOPIC = "topic";
+ @SerializedName(SERIALIZED_NAME_TOPIC)
+ private String topic;
+
+ public static final String SERIALIZED_NAME_METADATA = "metadata";
+ @SerializedName(SERIALIZED_NAME_METADATA)
+ private Map metadata = null;
public SceneDeletedEvent() {
}
- public SceneDeletedEvent data(SceneDeletedEventData data) {
+ public SceneDeletedEvent created(OffsetDateTime created) {
+
+ this.created = created;
+ return this;
+ }
+
+ /**
+ * Get created
+ * @return created
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(example = "2020-01-01T12:00Z", required = true, value = "")
+
+ public OffsetDateTime getCreated() {
+ return created;
+ }
+
+
+ public void setCreated(OffsetDateTime created) {
+ this.created = created;
+ }
+
+
+ public SceneDeletedEvent topic(String topic) {
- this.data = data;
+ this.topic = topic;
return this;
}
/**
- * Get data
- * @return data
+ * Get topic
+ * @return topic
**/
@javax.annotation.Nonnull
- @ApiModelProperty(required = true, value = "")
+ @ApiModelProperty(example = "some-string", required = true, value = "")
- public SceneDeletedEventData getData() {
- return data;
+ public String getTopic() {
+ return topic;
}
- public void setData(SceneDeletedEventData data) {
- this.data = data;
+ public void setTopic(String topic) {
+ this.topic = topic;
}
- public SceneDeletedEvent links(Map links) {
+ public SceneDeletedEvent metadata(Map metadata) {
- this.links = links;
+ this.metadata = metadata;
return this;
}
- public SceneDeletedEvent putLinksItem(String key, Link linksItem) {
- if (this.links == null) {
- this.links = new HashMap<>();
+ public SceneDeletedEvent putMetadataItem(String key, String metadataItem) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
}
- this.links.put(key, linksItem);
+ this.metadata.put(key, metadataItem);
return this;
}
/**
- * Get links
- * @return links
+ * User supplied key-value pairs for a scene. You can supply up to 50 entries, with key names limited to 64 characters and values limited to 256 characters.
+ * @return metadata
**/
@javax.annotation.Nullable
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "User supplied key-value pairs for a scene. You can supply up to 50 entries, with key names limited to 64 characters and values limited to 256 characters. ")
- public Map getLinks() {
- return links;
+ public Map getMetadata() {
+ return metadata;
}
- public void setLinks(Map links) {
- this.links = links;
+ public void setMetadata(Map metadata) {
+ this.metadata = metadata;
}
@@ -108,21 +134,23 @@ public boolean equals(Object o) {
return false;
}
SceneDeletedEvent sceneDeletedEvent = (SceneDeletedEvent) o;
- return Objects.equals(this.data, sceneDeletedEvent.data) &&
- Objects.equals(this.links, sceneDeletedEvent.links);
+ return Objects.equals(this.created, sceneDeletedEvent.created) &&
+ Objects.equals(this.topic, sceneDeletedEvent.topic) &&
+ Objects.equals(this.metadata, sceneDeletedEvent.metadata);
}
@Override
public int hashCode() {
- return Objects.hash(data, links);
+ return Objects.hash(created, topic, metadata);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SceneDeletedEvent {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" links: ").append(toIndentedString(links)).append("\n");
+ sb.append(" created: ").append(toIndentedString(created)).append("\n");
+ sb.append(" topic: ").append(toIndentedString(topic)).append("\n");
+ sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/com/vertexvis/model/SceneDeletedEventData.java b/src/main/java/com/vertexvis/model/SceneDeletedEventData.java
deleted file mode 100644
index 11da4ee..0000000
--- a/src/main/java/com/vertexvis/model/SceneDeletedEventData.java
+++ /dev/null
@@ -1,231 +0,0 @@
-/*
- * Vertex Platform API
- * The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
- *
- * The version of the OpenAPI document: 1.0
- * Contact: support@vertexvis.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package com.vertexvis.model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import com.vertexvis.model.Link;
-import com.vertexvis.model.SceneEventDataAttributes;
-import com.vertexvis.model.WebhookEventDataRelationships;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-
-/**
- * SceneDeletedEventData
- */
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class SceneDeletedEventData {
- public static final String SERIALIZED_NAME_TYPE = "type";
- @SerializedName(SERIALIZED_NAME_TYPE)
- private String type;
-
- public static final String SERIALIZED_NAME_ID = "id";
- @SerializedName(SERIALIZED_NAME_ID)
- private UUID id;
-
- public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
- @SerializedName(SERIALIZED_NAME_ATTRIBUTES)
- private SceneEventDataAttributes attributes;
-
- public static final String SERIALIZED_NAME_RELATIONSHIPS = "relationships";
- @SerializedName(SERIALIZED_NAME_RELATIONSHIPS)
- private WebhookEventDataRelationships relationships;
-
- public static final String SERIALIZED_NAME_LINKS = "links";
- @SerializedName(SERIALIZED_NAME_LINKS)
- private Map links = null;
-
- public SceneDeletedEventData() {
- }
-
- public SceneDeletedEventData type(String type) {
-
- this.type = type;
- return this;
- }
-
- /**
- * Get type
- * @return type
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(example = "webhook-event", required = true, value = "")
-
- public String getType() {
- return type;
- }
-
-
- public void setType(String type) {
- this.type = type;
- }
-
-
- public SceneDeletedEventData id(UUID id) {
-
- this.id = id;
- return this;
- }
-
- /**
- * ID of the resource.
- * @return id
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(example = "f79d4760-0b71-44e4-ad0b-22743fdd4ca3", required = true, value = "ID of the resource.")
-
- public UUID getId() {
- return id;
- }
-
-
- public void setId(UUID id) {
- this.id = id;
- }
-
-
- public SceneDeletedEventData attributes(SceneEventDataAttributes attributes) {
-
- this.attributes = attributes;
- return this;
- }
-
- /**
- * Get attributes
- * @return attributes
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(required = true, value = "")
-
- public SceneEventDataAttributes getAttributes() {
- return attributes;
- }
-
-
- public void setAttributes(SceneEventDataAttributes attributes) {
- this.attributes = attributes;
- }
-
-
- public SceneDeletedEventData relationships(WebhookEventDataRelationships relationships) {
-
- this.relationships = relationships;
- return this;
- }
-
- /**
- * Get relationships
- * @return relationships
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
-
- public WebhookEventDataRelationships getRelationships() {
- return relationships;
- }
-
-
- public void setRelationships(WebhookEventDataRelationships relationships) {
- this.relationships = relationships;
- }
-
-
- public SceneDeletedEventData links(Map links) {
-
- this.links = links;
- return this;
- }
-
- public SceneDeletedEventData putLinksItem(String key, Link linksItem) {
- if (this.links == null) {
- this.links = new HashMap<>();
- }
- this.links.put(key, linksItem);
- return this;
- }
-
- /**
- * Get links
- * @return links
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
-
- public Map getLinks() {
- return links;
- }
-
-
- public void setLinks(Map links) {
- this.links = links;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SceneDeletedEventData sceneDeletedEventData = (SceneDeletedEventData) o;
- return Objects.equals(this.type, sceneDeletedEventData.type) &&
- Objects.equals(this.id, sceneDeletedEventData.id) &&
- Objects.equals(this.attributes, sceneDeletedEventData.attributes) &&
- Objects.equals(this.relationships, sceneDeletedEventData.relationships) &&
- Objects.equals(this.links, sceneDeletedEventData.links);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(type, id, attributes, relationships, links);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class SceneDeletedEventData {\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n");
- sb.append(" links: ").append(toIndentedString(links)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/src/main/java/com/vertexvis/model/SceneEventDataAttributes.java b/src/main/java/com/vertexvis/model/SceneEventDataAttributes.java
deleted file mode 100644
index cf513c1..0000000
--- a/src/main/java/com/vertexvis/model/SceneEventDataAttributes.java
+++ /dev/null
@@ -1,170 +0,0 @@
-/*
- * Vertex Platform API
- * The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
- *
- * The version of the OpenAPI document: 1.0
- * Contact: support@vertexvis.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package com.vertexvis.model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.io.IOException;
-import java.time.OffsetDateTime;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * SceneEventDataAttributes
- */
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class SceneEventDataAttributes {
- public static final String SERIALIZED_NAME_CREATED = "created";
- @SerializedName(SERIALIZED_NAME_CREATED)
- private OffsetDateTime created;
-
- public static final String SERIALIZED_NAME_TOPIC = "topic";
- @SerializedName(SERIALIZED_NAME_TOPIC)
- private String topic;
-
- public static final String SERIALIZED_NAME_METADATA = "metadata";
- @SerializedName(SERIALIZED_NAME_METADATA)
- private Map metadata = null;
-
- public SceneEventDataAttributes() {
- }
-
- public SceneEventDataAttributes created(OffsetDateTime created) {
-
- this.created = created;
- return this;
- }
-
- /**
- * Get created
- * @return created
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(example = "2020-01-01T12:00Z", required = true, value = "")
-
- public OffsetDateTime getCreated() {
- return created;
- }
-
-
- public void setCreated(OffsetDateTime created) {
- this.created = created;
- }
-
-
- public SceneEventDataAttributes topic(String topic) {
-
- this.topic = topic;
- return this;
- }
-
- /**
- * Get topic
- * @return topic
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(example = "some-string", required = true, value = "")
-
- public String getTopic() {
- return topic;
- }
-
-
- public void setTopic(String topic) {
- this.topic = topic;
- }
-
-
- public SceneEventDataAttributes metadata(Map metadata) {
-
- this.metadata = metadata;
- return this;
- }
-
- public SceneEventDataAttributes putMetadataItem(String key, String metadataItem) {
- if (this.metadata == null) {
- this.metadata = new HashMap<>();
- }
- this.metadata.put(key, metadataItem);
- return this;
- }
-
- /**
- * User supplied key-value pairs for a scene. You can supply up to 50 entries, with key names limited to 64 characters and values limited to 256 characters.
- * @return metadata
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "User supplied key-value pairs for a scene. You can supply up to 50 entries, with key names limited to 64 characters and values limited to 256 characters. ")
-
- public Map getMetadata() {
- return metadata;
- }
-
-
- public void setMetadata(Map metadata) {
- this.metadata = metadata;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SceneEventDataAttributes sceneEventDataAttributes = (SceneEventDataAttributes) o;
- return Objects.equals(this.created, sceneEventDataAttributes.created) &&
- Objects.equals(this.topic, sceneEventDataAttributes.topic) &&
- Objects.equals(this.metadata, sceneEventDataAttributes.metadata);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(created, topic, metadata);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class SceneEventDataAttributes {\n");
- sb.append(" created: ").append(toIndentedString(created)).append("\n");
- sb.append(" topic: ").append(toIndentedString(topic)).append("\n");
- sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/src/main/java/com/vertexvis/model/SceneUpdatedEvent.java b/src/main/java/com/vertexvis/model/SceneUpdatedEvent.java
index 00017d7..8043c81 100644
--- a/src/main/java/com/vertexvis/model/SceneUpdatedEvent.java
+++ b/src/main/java/com/vertexvis/model/SceneUpdatedEvent.java
@@ -20,11 +20,10 @@
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
-import com.vertexvis.model.Link;
-import com.vertexvis.model.SceneUpdatedEventData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
+import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -34,68 +33,95 @@
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SceneUpdatedEvent {
- public static final String SERIALIZED_NAME_DATA = "data";
- @SerializedName(SERIALIZED_NAME_DATA)
- private SceneUpdatedEventData data;
+ public static final String SERIALIZED_NAME_CREATED = "created";
+ @SerializedName(SERIALIZED_NAME_CREATED)
+ private OffsetDateTime created;
- public static final String SERIALIZED_NAME_LINKS = "links";
- @SerializedName(SERIALIZED_NAME_LINKS)
- private Map links = null;
+ public static final String SERIALIZED_NAME_TOPIC = "topic";
+ @SerializedName(SERIALIZED_NAME_TOPIC)
+ private String topic;
+
+ public static final String SERIALIZED_NAME_METADATA = "metadata";
+ @SerializedName(SERIALIZED_NAME_METADATA)
+ private Map metadata = null;
public SceneUpdatedEvent() {
}
- public SceneUpdatedEvent data(SceneUpdatedEventData data) {
+ public SceneUpdatedEvent created(OffsetDateTime created) {
+
+ this.created = created;
+ return this;
+ }
+
+ /**
+ * Get created
+ * @return created
+ **/
+ @javax.annotation.Nonnull
+ @ApiModelProperty(example = "2020-01-01T12:00Z", required = true, value = "")
+
+ public OffsetDateTime getCreated() {
+ return created;
+ }
+
+
+ public void setCreated(OffsetDateTime created) {
+ this.created = created;
+ }
+
+
+ public SceneUpdatedEvent topic(String topic) {
- this.data = data;
+ this.topic = topic;
return this;
}
/**
- * Get data
- * @return data
+ * Get topic
+ * @return topic
**/
@javax.annotation.Nonnull
- @ApiModelProperty(required = true, value = "")
+ @ApiModelProperty(example = "some-string", required = true, value = "")
- public SceneUpdatedEventData getData() {
- return data;
+ public String getTopic() {
+ return topic;
}
- public void setData(SceneUpdatedEventData data) {
- this.data = data;
+ public void setTopic(String topic) {
+ this.topic = topic;
}
- public SceneUpdatedEvent links(Map links) {
+ public SceneUpdatedEvent metadata(Map metadata) {
- this.links = links;
+ this.metadata = metadata;
return this;
}
- public SceneUpdatedEvent putLinksItem(String key, Link linksItem) {
- if (this.links == null) {
- this.links = new HashMap<>();
+ public SceneUpdatedEvent putMetadataItem(String key, String metadataItem) {
+ if (this.metadata == null) {
+ this.metadata = new HashMap<>();
}
- this.links.put(key, linksItem);
+ this.metadata.put(key, metadataItem);
return this;
}
/**
- * Get links
- * @return links
+ * User supplied key-value pairs for a scene. You can supply up to 50 entries, with key names limited to 64 characters and values limited to 256 characters.
+ * @return metadata
**/
@javax.annotation.Nullable
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "User supplied key-value pairs for a scene. You can supply up to 50 entries, with key names limited to 64 characters and values limited to 256 characters. ")
- public Map getLinks() {
- return links;
+ public Map getMetadata() {
+ return metadata;
}
- public void setLinks(Map links) {
- this.links = links;
+ public void setMetadata(Map metadata) {
+ this.metadata = metadata;
}
@@ -108,21 +134,23 @@ public boolean equals(Object o) {
return false;
}
SceneUpdatedEvent sceneUpdatedEvent = (SceneUpdatedEvent) o;
- return Objects.equals(this.data, sceneUpdatedEvent.data) &&
- Objects.equals(this.links, sceneUpdatedEvent.links);
+ return Objects.equals(this.created, sceneUpdatedEvent.created) &&
+ Objects.equals(this.topic, sceneUpdatedEvent.topic) &&
+ Objects.equals(this.metadata, sceneUpdatedEvent.metadata);
}
@Override
public int hashCode() {
- return Objects.hash(data, links);
+ return Objects.hash(created, topic, metadata);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SceneUpdatedEvent {\n");
- sb.append(" data: ").append(toIndentedString(data)).append("\n");
- sb.append(" links: ").append(toIndentedString(links)).append("\n");
+ sb.append(" created: ").append(toIndentedString(created)).append("\n");
+ sb.append(" topic: ").append(toIndentedString(topic)).append("\n");
+ sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/com/vertexvis/model/SceneUpdatedEventData.java b/src/main/java/com/vertexvis/model/SceneUpdatedEventData.java
deleted file mode 100644
index 2be3505..0000000
--- a/src/main/java/com/vertexvis/model/SceneUpdatedEventData.java
+++ /dev/null
@@ -1,231 +0,0 @@
-/*
- * Vertex Platform API
- * The Vertex distributed cloud rendering platform includes a set of APIs and SDKs, which together allow easily integrating 3D product data into your business application. See our [Developer Guides](https://developer.vertexvis.com/docs/guides/render-your-first-scene) to get started. Notes about the Postman collection and API Reference code samples: - They include all required and optional body parameters for completeness. Remove any optional parameters as desired. - They use auto-generated IDs and other values that may share the same value for ease of documentation only. In actual requests and responses, the IDs should uniquely identify their corresponding resource.
- *
- * The version of the OpenAPI document: 1.0
- * Contact: support@vertexvis.com
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package com.vertexvis.model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import com.vertexvis.model.Link;
-import com.vertexvis.model.SceneEventDataAttributes;
-import com.vertexvis.model.WebhookEventDataRelationships;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-
-/**
- * SceneUpdatedEventData
- */
-@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class SceneUpdatedEventData {
- public static final String SERIALIZED_NAME_TYPE = "type";
- @SerializedName(SERIALIZED_NAME_TYPE)
- private String type;
-
- public static final String SERIALIZED_NAME_ID = "id";
- @SerializedName(SERIALIZED_NAME_ID)
- private UUID id;
-
- public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
- @SerializedName(SERIALIZED_NAME_ATTRIBUTES)
- private SceneEventDataAttributes attributes;
-
- public static final String SERIALIZED_NAME_RELATIONSHIPS = "relationships";
- @SerializedName(SERIALIZED_NAME_RELATIONSHIPS)
- private WebhookEventDataRelationships relationships;
-
- public static final String SERIALIZED_NAME_LINKS = "links";
- @SerializedName(SERIALIZED_NAME_LINKS)
- private Map links = null;
-
- public SceneUpdatedEventData() {
- }
-
- public SceneUpdatedEventData type(String type) {
-
- this.type = type;
- return this;
- }
-
- /**
- * Get type
- * @return type
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(example = "webhook-event", required = true, value = "")
-
- public String getType() {
- return type;
- }
-
-
- public void setType(String type) {
- this.type = type;
- }
-
-
- public SceneUpdatedEventData id(UUID id) {
-
- this.id = id;
- return this;
- }
-
- /**
- * ID of the resource.
- * @return id
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(example = "f79d4760-0b71-44e4-ad0b-22743fdd4ca3", required = true, value = "ID of the resource.")
-
- public UUID getId() {
- return id;
- }
-
-
- public void setId(UUID id) {
- this.id = id;
- }
-
-
- public SceneUpdatedEventData attributes(SceneEventDataAttributes attributes) {
-
- this.attributes = attributes;
- return this;
- }
-
- /**
- * Get attributes
- * @return attributes
- **/
- @javax.annotation.Nonnull
- @ApiModelProperty(required = true, value = "")
-
- public SceneEventDataAttributes getAttributes() {
- return attributes;
- }
-
-
- public void setAttributes(SceneEventDataAttributes attributes) {
- this.attributes = attributes;
- }
-
-
- public SceneUpdatedEventData relationships(WebhookEventDataRelationships relationships) {
-
- this.relationships = relationships;
- return this;
- }
-
- /**
- * Get relationships
- * @return relationships
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
-
- public WebhookEventDataRelationships getRelationships() {
- return relationships;
- }
-
-
- public void setRelationships(WebhookEventDataRelationships relationships) {
- this.relationships = relationships;
- }
-
-
- public SceneUpdatedEventData links(Map links) {
-
- this.links = links;
- return this;
- }
-
- public SceneUpdatedEventData putLinksItem(String key, Link linksItem) {
- if (this.links == null) {
- this.links = new HashMap<>();
- }
- this.links.put(key, linksItem);
- return this;
- }
-
- /**
- * Get links
- * @return links
- **/
- @javax.annotation.Nullable
- @ApiModelProperty(value = "")
-
- public Map getLinks() {
- return links;
- }
-
-
- public void setLinks(Map links) {
- this.links = links;
- }
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- SceneUpdatedEventData sceneUpdatedEventData = (SceneUpdatedEventData) o;
- return Objects.equals(this.type, sceneUpdatedEventData.type) &&
- Objects.equals(this.id, sceneUpdatedEventData.id) &&
- Objects.equals(this.attributes, sceneUpdatedEventData.attributes) &&
- Objects.equals(this.relationships, sceneUpdatedEventData.relationships) &&
- Objects.equals(this.links, sceneUpdatedEventData.links);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(type, id, attributes, relationships, links);
- }
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class SceneUpdatedEventData {\n");
- sb.append(" type: ").append(toIndentedString(type)).append("\n");
- sb.append(" id: ").append(toIndentedString(id)).append("\n");
- sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
- sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n");
- sb.append(" links: ").append(toIndentedString(links)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(Object o) {
- if (o == null) {
- return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEventDataAttributes.java b/src/main/java/com/vertexvis/model/WebhookEvent.java
similarity index 56%
rename from src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEventDataAttributes.java
rename to src/main/java/com/vertexvis/model/WebhookEvent.java
index a00df0c..2a2d1d9 100644
--- a/src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEventDataAttributes.java
+++ b/src/main/java/com/vertexvis/model/WebhookEvent.java
@@ -20,70 +20,82 @@
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
+import com.vertexvis.model.Link;
+import com.vertexvis.model.WebhookEventData;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
-import java.time.OffsetDateTime;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
/**
- * QueuedSceneItemCompletedEventDataAttributes
+ * WebhookEvent
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class QueuedSceneItemCompletedEventDataAttributes {
- public static final String SERIALIZED_NAME_CREATED = "created";
- @SerializedName(SERIALIZED_NAME_CREATED)
- private OffsetDateTime created;
+public class WebhookEvent {
+ public static final String SERIALIZED_NAME_DATA = "data";
+ @SerializedName(SERIALIZED_NAME_DATA)
+ private WebhookEventData data;
- public static final String SERIALIZED_NAME_TOPIC = "topic";
- @SerializedName(SERIALIZED_NAME_TOPIC)
- private String topic;
+ public static final String SERIALIZED_NAME_LINKS = "links";
+ @SerializedName(SERIALIZED_NAME_LINKS)
+ private Map links = null;
- public QueuedSceneItemCompletedEventDataAttributes() {
+ public WebhookEvent() {
}
- public QueuedSceneItemCompletedEventDataAttributes created(OffsetDateTime created) {
+ public WebhookEvent data(WebhookEventData data) {
- this.created = created;
+ this.data = data;
return this;
}
/**
- * Get created
- * @return created
+ * Get data
+ * @return data
**/
@javax.annotation.Nonnull
- @ApiModelProperty(example = "2020-01-01T12:00Z", required = true, value = "")
+ @ApiModelProperty(required = true, value = "")
- public OffsetDateTime getCreated() {
- return created;
+ public WebhookEventData getData() {
+ return data;
}
- public void setCreated(OffsetDateTime created) {
- this.created = created;
+ public void setData(WebhookEventData data) {
+ this.data = data;
}
- public QueuedSceneItemCompletedEventDataAttributes topic(String topic) {
+ public WebhookEvent links(Map links) {
- this.topic = topic;
+ this.links = links;
+ return this;
+ }
+
+ public WebhookEvent putLinksItem(String key, Link linksItem) {
+ if (this.links == null) {
+ this.links = new HashMap<>();
+ }
+ this.links.put(key, linksItem);
return this;
}
/**
- * Get topic
- * @return topic
+ * Get links
+ * @return links
**/
- @javax.annotation.Nonnull
- @ApiModelProperty(example = "some-string", required = true, value = "")
+ @javax.annotation.Nullable
+ @ApiModelProperty(value = "")
- public String getTopic() {
- return topic;
+ public Map getLinks() {
+ return links;
}
- public void setTopic(String topic) {
- this.topic = topic;
+ public void setLinks(Map links) {
+ this.links = links;
}
@@ -95,22 +107,22 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- QueuedSceneItemCompletedEventDataAttributes queuedSceneItemCompletedEventDataAttributes = (QueuedSceneItemCompletedEventDataAttributes) o;
- return Objects.equals(this.created, queuedSceneItemCompletedEventDataAttributes.created) &&
- Objects.equals(this.topic, queuedSceneItemCompletedEventDataAttributes.topic);
+ WebhookEvent webhookEvent = (WebhookEvent) o;
+ return Objects.equals(this.data, webhookEvent.data) &&
+ Objects.equals(this.links, webhookEvent.links);
}
@Override
public int hashCode() {
- return Objects.hash(created, topic);
+ return Objects.hash(data, links);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class QueuedSceneItemCompletedEventDataAttributes {\n");
- sb.append(" created: ").append(toIndentedString(created)).append("\n");
- sb.append(" topic: ").append(toIndentedString(topic)).append("\n");
+ sb.append("class WebhookEvent {\n");
+ sb.append(" data: ").append(toIndentedString(data)).append("\n");
+ sb.append(" links: ").append(toIndentedString(links)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEventData.java b/src/main/java/com/vertexvis/model/WebhookEventData.java
similarity index 75%
rename from src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEventData.java
rename to src/main/java/com/vertexvis/model/WebhookEventData.java
index 6270c00..b63e7de 100644
--- a/src/main/java/com/vertexvis/model/QueuedSceneItemCompletedEventData.java
+++ b/src/main/java/com/vertexvis/model/WebhookEventData.java
@@ -21,7 +21,11 @@
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.vertexvis.model.Link;
-import com.vertexvis.model.QueuedSceneItemCompletedEventDataAttributes;
+import com.vertexvis.model.QueuedSceneItemCompletedEvent;
+import com.vertexvis.model.QueuedTranslationCompletedEvent;
+import com.vertexvis.model.SceneCreatedEvent;
+import com.vertexvis.model.SceneDeletedEvent;
+import com.vertexvis.model.SceneUpdatedEvent;
import com.vertexvis.model.WebhookEventDataRelationships;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@@ -32,10 +36,10 @@
import java.util.UUID;
/**
- * QueuedSceneItemCompletedEventData
+ * WebhookEventData
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
-public class QueuedSceneItemCompletedEventData {
+public class WebhookEventData {
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private String type;
@@ -46,7 +50,7 @@ public class QueuedSceneItemCompletedEventData {
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
- private QueuedSceneItemCompletedEventDataAttributes attributes;
+ private OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent attributes;
public static final String SERIALIZED_NAME_RELATIONSHIPS = "relationships";
@SerializedName(SERIALIZED_NAME_RELATIONSHIPS)
@@ -56,10 +60,10 @@ public class QueuedSceneItemCompletedEventData {
@SerializedName(SERIALIZED_NAME_LINKS)
private Map links = null;
- public QueuedSceneItemCompletedEventData() {
+ public WebhookEventData() {
}
- public QueuedSceneItemCompletedEventData type(String type) {
+ public WebhookEventData type(String type) {
this.type = type;
return this;
@@ -82,7 +86,7 @@ public void setType(String type) {
}
- public QueuedSceneItemCompletedEventData id(UUID id) {
+ public WebhookEventData id(UUID id) {
this.id = id;
return this;
@@ -105,7 +109,7 @@ public void setId(UUID id) {
}
- public QueuedSceneItemCompletedEventData attributes(QueuedSceneItemCompletedEventDataAttributes attributes) {
+ public WebhookEventData attributes(OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent attributes) {
this.attributes = attributes;
return this;
@@ -115,20 +119,20 @@ public QueuedSceneItemCompletedEventData attributes(QueuedSceneItemCompletedEven
* Get attributes
* @return attributes
**/
- @javax.annotation.Nonnull
+ @javax.annotation.Nullable
@ApiModelProperty(required = true, value = "")
- public QueuedSceneItemCompletedEventDataAttributes getAttributes() {
+ public OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent getAttributes() {
return attributes;
}
- public void setAttributes(QueuedSceneItemCompletedEventDataAttributes attributes) {
+ public void setAttributes(OneOfQueuedSceneItemCompletedEventQueuedTranslationCompletedEventSceneCreatedEventSceneDeletedEventSceneUpdatedEvent attributes) {
this.attributes = attributes;
}
- public QueuedSceneItemCompletedEventData relationships(WebhookEventDataRelationships relationships) {
+ public WebhookEventData relationships(WebhookEventDataRelationships relationships) {
this.relationships = relationships;
return this;
@@ -151,13 +155,13 @@ public void setRelationships(WebhookEventDataRelationships relationships) {
}
- public QueuedSceneItemCompletedEventData links(Map links) {
+ public WebhookEventData links(Map links) {
this.links = links;
return this;
}
- public QueuedSceneItemCompletedEventData putLinksItem(String key, Link linksItem) {
+ public WebhookEventData putLinksItem(String key, Link linksItem) {
if (this.links == null) {
this.links = new HashMap<>();
}
@@ -190,12 +194,12 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- QueuedSceneItemCompletedEventData queuedSceneItemCompletedEventData = (QueuedSceneItemCompletedEventData) o;
- return Objects.equals(this.type, queuedSceneItemCompletedEventData.type) &&
- Objects.equals(this.id, queuedSceneItemCompletedEventData.id) &&
- Objects.equals(this.attributes, queuedSceneItemCompletedEventData.attributes) &&
- Objects.equals(this.relationships, queuedSceneItemCompletedEventData.relationships) &&
- Objects.equals(this.links, queuedSceneItemCompletedEventData.links);
+ WebhookEventData webhookEventData = (WebhookEventData) o;
+ return Objects.equals(this.type, webhookEventData.type) &&
+ Objects.equals(this.id, webhookEventData.id) &&
+ Objects.equals(this.attributes, webhookEventData.attributes) &&
+ Objects.equals(this.relationships, webhookEventData.relationships) &&
+ Objects.equals(this.links, webhookEventData.links);
}
@Override
@@ -206,7 +210,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class QueuedSceneItemCompletedEventData {\n");
+ sb.append("class WebhookEventData {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");