Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package com.microsoft.azure.cognitiveservices.vision.contentmoderator.models;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
Expand All @@ -30,7 +31,7 @@ public class Body {
* Metadata of the list.
*/
@JsonProperty(value = "Metadata")
private BodyMetadata metadata;
private Map<String, String> metadata;

/**
* Get name of the list.
Expand Down Expand Up @@ -77,7 +78,7 @@ public Body withDescription(String description) {
*
* @return the metadata value
*/
public BodyMetadata metadata() {
public Map<String, String> metadata() {
return this.metadata;
}

Expand All @@ -87,7 +88,7 @@ public BodyMetadata metadata() {
* @param metadata the metadata value to set
* @return the Body object itself.
*/
public Body withMetadata(BodyMetadata metadata) {
public Body withMetadata(Map<String, String> metadata) {
this.metadata = metadata;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package com.microsoft.azure.cognitiveservices.vision.contentmoderator.models;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
Expand Down Expand Up @@ -36,7 +37,7 @@ public class ImageList {
* Image List Metadata.
*/
@JsonProperty(value = "Metadata")
private ImageListMetadata metadata;
private Map<String, String> metadata;

/**
* Get image List Id.
Expand Down Expand Up @@ -103,7 +104,7 @@ public ImageList withDescription(String description) {
*
* @return the metadata value
*/
public ImageListMetadata metadata() {
public Map<String, String> metadata() {
return this.metadata;
}

Expand All @@ -113,7 +114,7 @@ public ImageListMetadata metadata() {
* @param metadata the metadata value to set
* @return the ImageList object itself.
*/
public ImageList withMetadata(ImageListMetadata metadata) {
public ImageList withMetadata(Map<String, String> metadata) {
this.metadata = metadata;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package com.microsoft.azure.cognitiveservices.vision.contentmoderator.models;

import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
Expand All @@ -31,7 +32,7 @@ public class RefreshIndex {
* Advanced info list.
*/
@JsonProperty(value = "AdvancedInfo")
private List<RefreshIndexAdvancedInfoItem> advancedInfo;
private List<Map<String, String>> advancedInfo;

/**
* Refresh index status.
Expand Down Expand Up @@ -90,7 +91,7 @@ public RefreshIndex withIsUpdateSuccess(Boolean isUpdateSuccess) {
*
* @return the advancedInfo value
*/
public List<RefreshIndexAdvancedInfoItem> advancedInfo() {
public List<Map<String, String>> advancedInfo() {
return this.advancedInfo;
}

Expand All @@ -100,7 +101,7 @@ public List<RefreshIndexAdvancedInfoItem> advancedInfo() {
* @param advancedInfo the advancedInfo value to set
* @return the RefreshIndex object itself.
*/
public RefreshIndex withAdvancedInfo(List<RefreshIndexAdvancedInfoItem> advancedInfo) {
public RefreshIndex withAdvancedInfo(List<Map<String, String>> advancedInfo) {
this.advancedInfo = advancedInfo;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package com.microsoft.azure.cognitiveservices.vision.contentmoderator.models;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
Expand Down Expand Up @@ -36,7 +37,7 @@ public class TermList {
* Term list metadata.
*/
@JsonProperty(value = "Metadata")
private TermListMetadata metadata;
private Map<String, String> metadata;

/**
* Get term list Id.
Expand Down Expand Up @@ -103,7 +104,7 @@ public TermList withDescription(String description) {
*
* @return the metadata value
*/
public TermListMetadata metadata() {
public Map<String, String> metadata() {
return this.metadata;
}

Expand All @@ -113,7 +114,7 @@ public TermListMetadata metadata() {
* @param metadata the metadata value to set
* @return the TermList object itself.
*/
public TermList withMetadata(TermListMetadata metadata) {
public TermList withMetadata(Map<String, String> metadata) {
this.metadata = metadata;
return this;
}
Expand Down