Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/main/java/com/autodesk/client/api/DerivativesApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ public ApiResponse<Result> deleteManifest(String urn, Authentication oauth2, Cre
// create path and map variables
String localVarPath = "/modelderivative/v2/designdata/{urn}/manifest".replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()));
if(this.region == "emea") {

if (this.region != null && this.region.equalsIgnoreCase("emea")) {
localVarPath = "/modelderivative/v2/regions/eu/designdata/{urn}/manifest".replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()));
}
Expand Down Expand Up @@ -168,8 +168,8 @@ public ApiResponse<File> getDerivativeManifest(String urn, String derivativeUrn,
.replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()))
.replaceAll("\\{" + "derivativeUrn" + "\\}", apiClient.escapeString(derivativeUrn.toString()));
if(this.region == "emea") {

if (this.region != null && this.region.equalsIgnoreCase("emea")) {
localVarPath = "/modelderivative/v2/regions/eu/designdata/{urn}/manifest/{derivativeUrn}"
.replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()))
Expand Down Expand Up @@ -281,7 +281,7 @@ public ApiResponse<Manifest> getManifest(String urn, String acceptEncoding, Auth
// create path and map variables
String localVarPath = "/modelderivative/v2/designdata/{urn}/manifest".replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()));
if(this.region == "emea") {
if (this.region != null && this.region.equalsIgnoreCase("emea")) {
localVarPath = "/modelderivative/v2/regions/eu/designdata/{urn}/manifest".replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()));
}
Expand Down Expand Up @@ -336,8 +336,8 @@ public ApiResponse<Metadata> getMetadata(String urn, String acceptEncoding, Auth
// create path and map variables
String localVarPath = "/modelderivative/v2/designdata/{urn}/metadata".replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()));
if(this.region == "emea") {

if (this.region != null && this.region.equalsIgnoreCase("emea")) {
localVarPath = "/modelderivative/v2/regions/eu/designdata/{urn}/metadata".replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()));
}
Expand Down Expand Up @@ -405,8 +405,8 @@ public ApiResponse<Metadata> getModelviewMetadata(String urn, String guid, Strin
String localVarPath = "/modelderivative/v2/designdata/{urn}/metadata/{guid}".replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()))
.replaceAll("\\{" + "guid" + "\\}", apiClient.escapeString(guid.toString()));
if(this.region == "emea") {

if (this.region != null && this.region.equalsIgnoreCase("emea")) {
localVarPath = "/modelderivative/v2/regions/eu/designdata/{urn}/metadata/{guid}".replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()))
.replaceAll("\\{" + "guid" + "\\}", apiClient.escapeString(guid.toString()));
Expand Down Expand Up @@ -465,8 +465,8 @@ public ApiResponse<Metadata> getModelviewProperties(String urn, String guid, Str
String localVarPath = "/modelderivative/v2/designdata/{urn}/metadata/{guid}/properties".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()))
.replaceAll("\\{" + "guid" + "\\}", apiClient.escapeString(guid.toString()));
if(this.region == "emea") {

if (this.region != null && this.region.equalsIgnoreCase("emea")) {
localVarPath = "/modelderivative/v2/regions/eu/designdata/{urn}/metadata/{guid}/properties".replaceAll("\\{format\\}","json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()))
.replaceAll("\\{" + "guid" + "\\}", apiClient.escapeString(guid.toString()));
Expand Down Expand Up @@ -555,8 +555,8 @@ public ApiResponse<File> getThumbnail(String urn, Integer width, Integer height,
// create path and map variables
String localVarPath = "/modelderivative/v2/designdata/{urn}/thumbnail".replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()));
if(this.region == "emea") {

if (this.region != null && this.region.equalsIgnoreCase("emea")) {
localVarPath = "/modelderivative/v2/regions/eu/designdata/{urn}/thumbnail".replaceAll("\\{format\\}", "json")
.replaceAll("\\{" + "urn" + "\\}", apiClient.escapeString(urn.toString()));
}
Expand Down