-
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.
Merge pull request #1202 from jianghaolu/listbytag
Separate ListingByTag into group & subscription level
- Loading branch information
Showing
8 changed files
with
63 additions
and
16 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
31 changes: 31 additions & 0 deletions
31
...oft/azure/management/resources/fluentcore/arm/collection/SupportsListingInGroupByTag.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,31 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
*/ | ||
|
||
package com.microsoft.azure.management.resources.fluentcore.arm.collection; | ||
|
||
import com.microsoft.azure.PagedList; | ||
import com.microsoft.azure.management.apigeneration.LangDefinition; | ||
import com.microsoft.azure.management.apigeneration.LangDefinition.MethodConversion; | ||
|
||
/** | ||
* Provides access to listing Azure resources of a specific type based on their tag. | ||
* <p> | ||
* (Note: this interface is not intended to be implemented by user code) | ||
* | ||
* @param <T> the fluent type of the resource | ||
*/ | ||
@LangDefinition(ContainerName = "CollectionActions", MethodConversionType = MethodConversion.OnlyMethod) | ||
public interface SupportsListingInGroupByTag<T> { | ||
/** | ||
* Lists all the resources with the specified tag. | ||
* | ||
* @param resourceGroupName the name of the resource group | ||
* @param tagName tag's name as the key | ||
* @param tagValue tag's value | ||
* @return list of resources | ||
*/ | ||
PagedList<T> listByTag(String resourceGroupName, String tagName, String tagValue); | ||
} |
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
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
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