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
@@ -0,0 +1,179 @@
/**
* 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.containerregistry.v2018_09_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* The parameters for a quick task run request.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("EncodedTaskRunRequest")
public class EncodedTaskRunRequest extends RunRequest {
/**
* Base64 encoded value of the template/definition file content.
*/
@JsonProperty(value = "encodedTaskContent", required = true)
private String encodedTaskContent;

/**
* Base64 encoded value of the parameters/values file content.
*/
@JsonProperty(value = "encodedValuesContent")
private String encodedValuesContent;

/**
* The collection of overridable values that can be passed when running a
* task.
*/
@JsonProperty(value = "values")
private List<SetValue> values;

/**
* Build timeout in seconds.
*/
@JsonProperty(value = "timeout")
private Integer timeout;

/**
* The platform properties against which the build will happen.
*/
@JsonProperty(value = "platform", required = true)
private PlatformProperties platform;

/**
* The machine configuration of the build agent.
*/
@JsonProperty(value = "agentConfiguration")
private AgentProperties agentConfiguration;

/**
* Get base64 encoded value of the template/definition file content.
*
* @return the encodedTaskContent value
*/
public String encodedTaskContent() {
return this.encodedTaskContent;
}

/**
* Set base64 encoded value of the template/definition file content.
*
* @param encodedTaskContent the encodedTaskContent value to set
* @return the EncodedTaskRunRequest object itself.
*/
public EncodedTaskRunRequest withEncodedTaskContent(String encodedTaskContent) {
this.encodedTaskContent = encodedTaskContent;
return this;
}

/**
* Get base64 encoded value of the parameters/values file content.
*
* @return the encodedValuesContent value
*/
public String encodedValuesContent() {
return this.encodedValuesContent;
}

/**
* Set base64 encoded value of the parameters/values file content.
*
* @param encodedValuesContent the encodedValuesContent value to set
* @return the EncodedTaskRunRequest object itself.
*/
public EncodedTaskRunRequest withEncodedValuesContent(String encodedValuesContent) {
this.encodedValuesContent = encodedValuesContent;
return this;
}

/**
* Get the collection of overridable values that can be passed when running a task.
*
* @return the values value
*/
public List<SetValue> values() {
return this.values;
}

/**
* Set the collection of overridable values that can be passed when running a task.
*
* @param values the values value to set
* @return the EncodedTaskRunRequest object itself.
*/
public EncodedTaskRunRequest withValues(List<SetValue> values) {
this.values = values;
return this;
}

/**
* Get build timeout in seconds.
*
* @return the timeout value
*/
public Integer timeout() {
return this.timeout;
}

/**
* Set build timeout in seconds.
*
* @param timeout the timeout value to set
* @return the EncodedTaskRunRequest object itself.
*/
public EncodedTaskRunRequest withTimeout(Integer timeout) {
this.timeout = timeout;
return this;
}

/**
* Get the platform properties against which the build will happen.
*
* @return the platform value
*/
public PlatformProperties platform() {
return this.platform;
}

/**
* Set the platform properties against which the build will happen.
*
* @param platform the platform value to set
* @return the EncodedTaskRunRequest object itself.
*/
public EncodedTaskRunRequest withPlatform(PlatformProperties platform) {
this.platform = platform;
return this;
}

/**
* Get the machine configuration of the build agent.
*
* @return the agentConfiguration value
*/
public AgentProperties agentConfiguration() {
return this.agentConfiguration;
}

/**
* Set the machine configuration of the build agent.
*
* @param agentConfiguration the agentConfiguration value to set
* @return the EncodedTaskRunRequest object itself.
*/
public EncodedTaskRunRequest withAgentConfiguration(AgentProperties agentConfiguration) {
this.agentConfiguration = agentConfiguration;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/**
* 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.containerregistry.v2018_09_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* The properties of a encoded task step.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("EncodedTask")
public class EncodedTaskStep extends TaskStepProperties {
/**
* Base64 encoded value of the template/definition file content.
*/
@JsonProperty(value = "encodedTaskContent", required = true)
private String encodedTaskContent;

/**
* Base64 encoded value of the parameters/values file content.
*/
@JsonProperty(value = "encodedValuesContent")
private String encodedValuesContent;

/**
* The collection of overridable values that can be passed when running a
* task.
*/
@JsonProperty(value = "values")
private List<SetValue> values;

/**
* Get base64 encoded value of the template/definition file content.
*
* @return the encodedTaskContent value
*/
public String encodedTaskContent() {
return this.encodedTaskContent;
}

/**
* Set base64 encoded value of the template/definition file content.
*
* @param encodedTaskContent the encodedTaskContent value to set
* @return the EncodedTaskStep object itself.
*/
public EncodedTaskStep withEncodedTaskContent(String encodedTaskContent) {
this.encodedTaskContent = encodedTaskContent;
return this;
}

/**
* Get base64 encoded value of the parameters/values file content.
*
* @return the encodedValuesContent value
*/
public String encodedValuesContent() {
return this.encodedValuesContent;
}

/**
* Set base64 encoded value of the parameters/values file content.
*
* @param encodedValuesContent the encodedValuesContent value to set
* @return the EncodedTaskStep object itself.
*/
public EncodedTaskStep withEncodedValuesContent(String encodedValuesContent) {
this.encodedValuesContent = encodedValuesContent;
return this;
}

/**
* Get the collection of overridable values that can be passed when running a task.
*
* @return the values value
*/
public List<SetValue> values() {
return this.values;
}

/**
* Set the collection of overridable values that can be passed when running a task.
*
* @param values the values value to set
* @return the EncodedTaskStep object itself.
*/
public EncodedTaskStep withValues(List<SetValue> values) {
this.values = values;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/**
* 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.containerregistry.v2018_09_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* The properties for updating encoded task step.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("EncodedTask")
public class EncodedTaskStepUpdateParameters extends TaskStepUpdateParameters {
/**
* Base64 encoded value of the template/definition file content.
*/
@JsonProperty(value = "encodedTaskContent")
private String encodedTaskContent;

/**
* Base64 encoded value of the parameters/values file content.
*/
@JsonProperty(value = "encodedValuesContent")
private String encodedValuesContent;

/**
* The collection of overridable values that can be passed when running a
* task.
*/
@JsonProperty(value = "values")
private List<SetValue> values;

/**
* Get base64 encoded value of the template/definition file content.
*
* @return the encodedTaskContent value
*/
public String encodedTaskContent() {
return this.encodedTaskContent;
}

/**
* Set base64 encoded value of the template/definition file content.
*
* @param encodedTaskContent the encodedTaskContent value to set
* @return the EncodedTaskStepUpdateParameters object itself.
*/
public EncodedTaskStepUpdateParameters withEncodedTaskContent(String encodedTaskContent) {
this.encodedTaskContent = encodedTaskContent;
return this;
}

/**
* Get base64 encoded value of the parameters/values file content.
*
* @return the encodedValuesContent value
*/
public String encodedValuesContent() {
return this.encodedValuesContent;
}

/**
* Set base64 encoded value of the parameters/values file content.
*
* @param encodedValuesContent the encodedValuesContent value to set
* @return the EncodedTaskStepUpdateParameters object itself.
*/
public EncodedTaskStepUpdateParameters withEncodedValuesContent(String encodedValuesContent) {
this.encodedValuesContent = encodedValuesContent;
return this;
}

/**
* Get the collection of overridable values that can be passed when running a task.
*
* @return the values value
*/
public List<SetValue> values() {
return this.values;
}

/**
* Set the collection of overridable values that can be passed when running a task.
*
* @param values the values value to set
* @return the EncodedTaskStepUpdateParameters object itself.
*/
public EncodedTaskStepUpdateParameters withValues(List<SetValue> values) {
this.values = values;
return this;
}

}
Loading