forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 1191d68215da264cc189215b3672492f0a0f25ba
Add Location back. Add TaskRunNameParameter to restrict the name.
- Loading branch information
SDK Automation
committed
Jul 28, 2020
1 parent
9ee755a
commit e1bc0e6
Showing
51 changed files
with
4,600 additions
and
89 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
220 changes: 220 additions & 0 deletions
220
.../java/com/microsoft/azure/management/containerregistry/v2019_06_01_preview/AgentPool.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,220 @@ | ||
/** | ||
* 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.v2019_06_01_preview; | ||
|
||
import com.microsoft.azure.arm.model.HasInner; | ||
import com.microsoft.azure.management.containerregistry.v2019_06_01_preview.implementation.AgentPoolInner; | ||
import com.microsoft.azure.arm.model.Indexable; | ||
import com.microsoft.azure.arm.model.Refreshable; | ||
import com.microsoft.azure.arm.model.Updatable; | ||
import com.microsoft.azure.arm.model.Appliable; | ||
import com.microsoft.azure.arm.model.Creatable; | ||
import com.microsoft.azure.arm.resources.models.HasManager; | ||
import com.microsoft.azure.management.containerregistry.v2019_06_01_preview.implementation.ContainerRegistryManager; | ||
import java.util.Map; | ||
|
||
/** | ||
* Type representing AgentPool. | ||
*/ | ||
public interface AgentPool extends HasInner<AgentPoolInner>, Indexable, Refreshable<AgentPool>, Updatable<AgentPool.Update>, HasManager<ContainerRegistryManager> { | ||
/** | ||
* @return the count value. | ||
*/ | ||
Integer count(); | ||
|
||
/** | ||
* @return the id value. | ||
*/ | ||
String id(); | ||
|
||
/** | ||
* @return the location value. | ||
*/ | ||
String location(); | ||
|
||
/** | ||
* @return the name value. | ||
*/ | ||
String name(); | ||
|
||
/** | ||
* @return the os value. | ||
*/ | ||
OS os(); | ||
|
||
/** | ||
* @return the provisioningState value. | ||
*/ | ||
ProvisioningState provisioningState(); | ||
|
||
/** | ||
* @return the tags value. | ||
*/ | ||
Map<String, String> tags(); | ||
|
||
/** | ||
* @return the tier value. | ||
*/ | ||
String tier(); | ||
|
||
/** | ||
* @return the type value. | ||
*/ | ||
String type(); | ||
|
||
/** | ||
* @return the virtualNetworkSubnetResourceId value. | ||
*/ | ||
String virtualNetworkSubnetResourceId(); | ||
|
||
/** | ||
* The entirety of the AgentPool definition. | ||
*/ | ||
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithRegistry, DefinitionStages.WithLocation, DefinitionStages.WithCreate { | ||
} | ||
|
||
/** | ||
* Grouping of AgentPool definition stages. | ||
*/ | ||
interface DefinitionStages { | ||
/** | ||
* The first stage of a AgentPool definition. | ||
*/ | ||
interface Blank extends WithRegistry { | ||
} | ||
|
||
/** | ||
* The stage of the agentpool definition allowing to specify Registry. | ||
*/ | ||
interface WithRegistry { | ||
/** | ||
* Specifies resourceGroupName, registryName. | ||
* @param resourceGroupName The name of the resource group to which the container registry belongs | ||
* @param registryName The name of the container registry | ||
* @return the next definition stage | ||
*/ | ||
WithLocation withExistingRegistry(String resourceGroupName, String registryName); | ||
} | ||
|
||
/** | ||
* The stage of the agentpool definition allowing to specify Location. | ||
*/ | ||
interface WithLocation { | ||
/** | ||
* Specifies location. | ||
* @param location The location of the resource. This cannot be changed after the resource is created | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withLocation(String location); | ||
} | ||
|
||
/** | ||
* The stage of the agentpool definition allowing to specify Count. | ||
*/ | ||
interface WithCount { | ||
/** | ||
* Specifies count. | ||
* @param count The count of agent machine | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withCount(Integer count); | ||
} | ||
|
||
/** | ||
* The stage of the agentpool definition allowing to specify Os. | ||
*/ | ||
interface WithOs { | ||
/** | ||
* Specifies os. | ||
* @param os The OS of agent machine. Possible values include: 'Windows', 'Linux' | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withOs(OS os); | ||
} | ||
|
||
/** | ||
* The stage of the agentpool definition allowing to specify Tags. | ||
*/ | ||
interface WithTags { | ||
/** | ||
* Specifies tags. | ||
* @param tags The tags of the resource | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withTags(Map<String, String> tags); | ||
} | ||
|
||
/** | ||
* The stage of the agentpool definition allowing to specify Tier. | ||
*/ | ||
interface WithTier { | ||
/** | ||
* Specifies tier. | ||
* @param tier The Tier of agent machine | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withTier(String tier); | ||
} | ||
|
||
/** | ||
* The stage of the agentpool definition allowing to specify VirtualNetworkSubnetResourceId. | ||
*/ | ||
interface WithVirtualNetworkSubnetResourceId { | ||
/** | ||
* Specifies virtualNetworkSubnetResourceId. | ||
* @param virtualNetworkSubnetResourceId The Virtual Network Subnet Resource Id of the agent machine | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withVirtualNetworkSubnetResourceId(String virtualNetworkSubnetResourceId); | ||
} | ||
|
||
/** | ||
* The stage of the definition which contains all the minimum required inputs for | ||
* the resource to be created (via {@link WithCreate#create()}), but also allows | ||
* for any other optional settings to be specified. | ||
*/ | ||
interface WithCreate extends Creatable<AgentPool>, DefinitionStages.WithCount, DefinitionStages.WithOs, DefinitionStages.WithTags, DefinitionStages.WithTier, DefinitionStages.WithVirtualNetworkSubnetResourceId { | ||
} | ||
} | ||
/** | ||
* The template for a AgentPool update operation, containing all the settings that can be modified. | ||
*/ | ||
interface Update extends Appliable<AgentPool>, UpdateStages.WithCount, UpdateStages.WithTags { | ||
} | ||
|
||
/** | ||
* Grouping of AgentPool update stages. | ||
*/ | ||
interface UpdateStages { | ||
/** | ||
* The stage of the agentpool update allowing to specify Count. | ||
*/ | ||
interface WithCount { | ||
/** | ||
* Specifies count. | ||
* @param count The count of agent machine | ||
* @return the next update stage | ||
*/ | ||
Update withCount(Integer count); | ||
} | ||
|
||
/** | ||
* The stage of the agentpool update allowing to specify Tags. | ||
*/ | ||
interface WithTags { | ||
/** | ||
* Specifies tags. | ||
* @param tags The ARM resource tags | ||
* @return the next update stage | ||
*/ | ||
Update withTags(Map<String, String> tags); | ||
} | ||
|
||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...icrosoft/azure/management/containerregistry/v2019_06_01_preview/AgentPoolQueueStatus.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,25 @@ | ||
/** | ||
* 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.v2019_06_01_preview; | ||
|
||
import com.microsoft.azure.arm.model.HasInner; | ||
import com.microsoft.azure.arm.resources.models.HasManager; | ||
import com.microsoft.azure.management.containerregistry.v2019_06_01_preview.implementation.ContainerRegistryManager; | ||
import com.microsoft.azure.management.containerregistry.v2019_06_01_preview.implementation.AgentPoolQueueStatusInner; | ||
|
||
/** | ||
* Type representing AgentPoolQueueStatus. | ||
*/ | ||
public interface AgentPoolQueueStatus extends HasInner<AgentPoolQueueStatusInner>, HasManager<ContainerRegistryManager> { | ||
/** | ||
* @return the count value. | ||
*/ | ||
Integer count(); | ||
|
||
} |
72 changes: 72 additions & 0 deletions
72
...oft/azure/management/containerregistry/v2019_06_01_preview/AgentPoolUpdateParameters.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,72 @@ | ||
/** | ||
* 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.v2019_06_01_preview; | ||
|
||
import java.util.Map; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.microsoft.rest.serializer.JsonFlatten; | ||
|
||
/** | ||
* The parameters for updating an agent pool. | ||
*/ | ||
@JsonFlatten | ||
public class AgentPoolUpdateParameters { | ||
/** | ||
* The count of agent machine. | ||
*/ | ||
@JsonProperty(value = "properties.count") | ||
private Integer count; | ||
|
||
/** | ||
* The ARM resource tags. | ||
*/ | ||
@JsonProperty(value = "tags") | ||
private Map<String, String> tags; | ||
|
||
/** | ||
* Get the count of agent machine. | ||
* | ||
* @return the count value | ||
*/ | ||
public Integer count() { | ||
return this.count; | ||
} | ||
|
||
/** | ||
* Set the count of agent machine. | ||
* | ||
* @param count the count value to set | ||
* @return the AgentPoolUpdateParameters object itself. | ||
*/ | ||
public AgentPoolUpdateParameters withCount(Integer count) { | ||
this.count = count; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the ARM resource tags. | ||
* | ||
* @return the tags value | ||
*/ | ||
public Map<String, String> tags() { | ||
return this.tags; | ||
} | ||
|
||
/** | ||
* Set the ARM resource tags. | ||
* | ||
* @param tags the tags value to set | ||
* @return the AgentPoolUpdateParameters object itself. | ||
*/ | ||
public AgentPoolUpdateParameters withTags(Map<String, String> tags) { | ||
this.tags = tags; | ||
return this; | ||
} | ||
|
||
} |
64 changes: 64 additions & 0 deletions
64
...java/com/microsoft/azure/management/containerregistry/v2019_06_01_preview/AgentPools.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,64 @@ | ||
/** | ||
* 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.v2019_06_01_preview; | ||
|
||
import com.microsoft.azure.arm.collection.SupportsCreating; | ||
import rx.Completable; | ||
import rx.Observable; | ||
import com.microsoft.azure.management.containerregistry.v2019_06_01_preview.implementation.AgentPoolsInner; | ||
import com.microsoft.azure.arm.model.HasInner; | ||
|
||
/** | ||
* Type representing AgentPools. | ||
*/ | ||
public interface AgentPools extends SupportsCreating<AgentPool.DefinitionStages.Blank>, HasInner<AgentPoolsInner> { | ||
/** | ||
* Gets the count of queued runs for a given agent pool. | ||
* | ||
* @param resourceGroupName The name of the resource group to which the container registry belongs. | ||
* @param registryName The name of the container registry. | ||
* @param agentPoolName The name of the agent pool. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Observable<AgentPoolQueueStatus> getQueueStatusAsync(String resourceGroupName, String registryName, String agentPoolName); | ||
|
||
/** | ||
* Gets the detailed information for a given agent pool. | ||
* | ||
* @param resourceGroupName The name of the resource group to which the container registry belongs. | ||
* @param registryName The name of the container registry. | ||
* @param agentPoolName The name of the agent pool. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Observable<AgentPool> getAsync(String resourceGroupName, String registryName, String agentPoolName); | ||
|
||
/** | ||
* Lists all the agent pools for a specified container registry. | ||
* | ||
* @param resourceGroupName The name of the resource group to which the container registry belongs. | ||
* @param registryName The name of the container registry. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Observable<AgentPool> listAsync(final String resourceGroupName, final String registryName); | ||
|
||
/** | ||
* Deletes a specified agent pool resource. | ||
* | ||
* @param resourceGroupName The name of the resource group to which the container registry belongs. | ||
* @param registryName The name of the container registry. | ||
* @param agentPoolName The name of the agent pool. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Completable deleteAsync(String resourceGroupName, String registryName, String agentPoolName); | ||
|
||
} |
Oops, something went wrong.