-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into main
- Loading branch information
Showing
37 changed files
with
3,592 additions
and
13 deletions.
There are no files selected for viewing
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
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
867 changes: 867 additions & 0 deletions
867
azd/src/main/java/org/azd/distributedtask/DistributedTaskApi.java
Large diffs are not rendered by default.
Oops, something went wrong.
133 changes: 133 additions & 0 deletions
133
azd/src/main/java/org/azd/distributedtask/types/DeploymentGroup.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,133 @@ | ||
package org.azd.distributedtask.types; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import org.azd.release.types.ProjectReference; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
/*** | ||
* Deployment group. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class DeploymentGroup { | ||
/*** | ||
* Description of the deployment group. | ||
*/ | ||
@JsonProperty("description") | ||
private String description; | ||
/*** | ||
* Deployment group identifier. | ||
*/ | ||
@JsonProperty("id") | ||
private int id; | ||
/*** | ||
* Number of deployment targets in the deployment group. | ||
*/ | ||
@JsonProperty("machineCount") | ||
private int machineCount; | ||
/*** | ||
* List of unique tags across all deployment targets in the deployment group. | ||
*/ | ||
@JsonProperty("machineTags") | ||
private String[] machineTags; | ||
/*** | ||
* List of deployment targets in the deployment group. | ||
*/ | ||
@JsonProperty("machines") | ||
private List<DeploymentMachine> machines; | ||
/*** | ||
* Name of the deployment group. | ||
*/ | ||
@JsonProperty("name") | ||
private String name; | ||
/*** | ||
* Deployment pool in which deployment agents are registered. | ||
*/ | ||
@JsonProperty("pool") | ||
private TaskAgentPoolReference pool; | ||
/*** | ||
* Project to which the deployment group belongs. | ||
*/ | ||
@JsonProperty("project") | ||
private ProjectReference project; | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public int getMachineCount() { | ||
return machineCount; | ||
} | ||
|
||
public void setMachineCount(int machineCount) { | ||
this.machineCount = machineCount; | ||
} | ||
|
||
public String[] getMachineTags() { | ||
return machineTags; | ||
} | ||
|
||
public void setMachineTags(String[] machineTags) { | ||
this.machineTags = machineTags; | ||
} | ||
|
||
public List<DeploymentMachine> getMachines() { | ||
return machines; | ||
} | ||
|
||
public void setMachines(List<DeploymentMachine> machines) { | ||
this.machines = machines; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public TaskAgentPoolReference getPool() { | ||
return pool; | ||
} | ||
|
||
public void setPool(TaskAgentPoolReference pool) { | ||
this.pool = pool; | ||
} | ||
|
||
public ProjectReference getProject() { | ||
return project; | ||
} | ||
|
||
public void setProject(ProjectReference project) { | ||
this.project = project; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "DeploymentGroup{" + | ||
"description='" + description + '\'' + | ||
", id=" + id + | ||
", machineCount=" + machineCount + | ||
", machineTags=" + Arrays.toString(machineTags) + | ||
", machines=" + machines + | ||
", name='" + name + '\'' + | ||
", pool=" + pool + | ||
", project=" + project + | ||
'}'; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
azd/src/main/java/org/azd/distributedtask/types/DeploymentGroups.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,33 @@ | ||
package org.azd.distributedtask.types; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.List; | ||
|
||
/*** | ||
* List of deployment group | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class DeploymentGroups { | ||
/*** | ||
* List of deployment group | ||
*/ | ||
@JsonProperty("value") | ||
private List<DeploymentGroup> deploymentGroups; | ||
|
||
@Override | ||
public String toString() { | ||
return "DeploymentGroups{" + | ||
"deploymentGroups=" + deploymentGroups + | ||
'}'; | ||
} | ||
|
||
public List<DeploymentGroup> getDeploymentGroups() { | ||
return deploymentGroups; | ||
} | ||
|
||
public void setDeploymentGroups(List<DeploymentGroup> deploymentGroups) { | ||
this.deploymentGroups = deploymentGroups; | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
azd/src/main/java/org/azd/distributedtask/types/DeploymentMachine.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,77 @@ | ||
package org.azd.distributedtask.types; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.databind.JsonNode; | ||
|
||
import java.util.Arrays; | ||
|
||
/*** | ||
* Deployment target. | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class DeploymentMachine { | ||
/*** | ||
* | ||
* Deployment agent. | ||
*/ | ||
@JsonProperty("agent") | ||
private TaskAgent agent; | ||
/*** | ||
* Deployment target Identifier. | ||
*/ | ||
@JsonProperty("id") | ||
private int id; | ||
/*** | ||
* Properties of the deployment target. | ||
*/ | ||
@JsonProperty("properties") | ||
private JsonNode properties; | ||
/*** | ||
* Tags of the deployment target. | ||
*/ | ||
@JsonProperty("tags") | ||
private String[] tags; | ||
|
||
public TaskAgent getAgent() { | ||
return agent; | ||
} | ||
|
||
public void setAgent(TaskAgent agent) { | ||
this.agent = agent; | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public JsonNode getProperties() { | ||
return properties; | ||
} | ||
|
||
public void setProperties(JsonNode properties) { | ||
this.properties = properties; | ||
} | ||
|
||
public String[] getTags() { | ||
return tags; | ||
} | ||
|
||
public void setTags(String[] tags) { | ||
this.tags = tags; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "DeploymentMachine{" + | ||
"agent=" + agent + | ||
", id=" + id + | ||
", properties=" + properties + | ||
", tags=" + Arrays.toString(tags) + | ||
'}'; | ||
} | ||
} |
Oops, something went wrong.