Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR datafactory/resource-manager] Updating User Properties #2257

Merged
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,7 +8,6 @@

package com.microsoft.azure.management.datafactoryv2.v2018_06_01;

import java.util.Map;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
Expand All @@ -25,12 +24,6 @@
@JsonSubTypes.Type(name = "Container", value = ControlActivity.class)
})
public class Activity {
/**
* Unmatched properties from the message are deserialized this collection.
*/
@JsonProperty(value = "")
private Map<String, Object> additionalProperties;

/**
* Activity name.
*/
Expand All @@ -53,27 +46,7 @@ public class Activity {
* Activity user properties.
*/
@JsonProperty(value = "userProperties")
private Map<String, String> userProperties;

/**
* Get unmatched properties from the message are deserialized this collection.
*
* @return the additionalProperties value
*/
public Map<String, Object> additionalProperties() {
return this.additionalProperties;
}

/**
* Set unmatched properties from the message are deserialized this collection.
*
* @param additionalProperties the additionalProperties value to set
* @return the Activity object itself.
*/
public Activity withAdditionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}
private List<UserProperty> userProperties;

/**
* Get activity name.
Expand Down Expand Up @@ -140,7 +113,7 @@ public Activity withDependsOn(List<ActivityDependency> dependsOn) {
*
* @return the userProperties value
*/
public Map<String, String> userProperties() {
public List<UserProperty> userProperties() {
return this.userProperties;
}

Expand All @@ -150,7 +123,7 @@ public Map<String, String> userProperties() {
* @param userProperties the userProperties value to set
* @return the Activity object itself.
*/
public Activity withUserProperties(Map<String, String> userProperties) {
public Activity withUserProperties(List<UserProperty> userProperties) {
this.userProperties = userProperties;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.datafactoryv2.v2018_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* User property.
*/
public class UserProperty {
/**
* User proprety name.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* User proprety value. Type: string (or Expression with resultType
* string).
*/
@JsonProperty(value = "value", required = true)
private Object value;

/**
* Get user proprety name.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set user proprety name.
*
* @param name the name value to set
* @return the UserProperty object itself.
*/
public UserProperty withName(String name) {
this.name = name;
return this;
}

/**
* Get user proprety value. Type: string (or Expression with resultType string).
*
* @return the value value
*/
public Object value() {
return this.value;
}

/**
* Set user proprety value. Type: string (or Expression with resultType string).
*
* @param value the value value to set
* @return the UserProperty object itself.
*/
public UserProperty withValue(Object value) {
this.value = value;
return this;
}

}