-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 8211af77ca617639df4c4668ca621b6f65c05918 (#2349)
Renamed BuildTask to FileTask and RunTask to EncodedTask
- Loading branch information
1 parent
d72e126
commit 0223b4a
Showing
10 changed files
with
861 additions
and
7 deletions.
There are no files selected for viewing
179 changes: 179 additions & 0 deletions
179
...a/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskRunRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
101 changes: 101 additions & 0 deletions
101
...in/java/com/microsoft/azure/management/containerregistry/v2018_09_01/EncodedTaskStep.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
101 changes: 101 additions & 0 deletions
101
...osoft/azure/management/containerregistry/v2018_09_01/EncodedTaskStepUpdateParameters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
Oops, something went wrong.