コード例 #1
0
 /// <summary>
 /// Create or update a tag rule set for a given sub account resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='monitorName'>
 /// Monitor resource name
 /// </param>
 /// <param name='subAccountName'>
 /// Sub Account resource name
 /// </param>
 /// <param name='ruleSetName'>
 /// </param>
 /// <param name='properties'>
 /// </param>
 public static MonitoringTagRules CreateOrUpdate(this ISubAccountTagRulesOperations operations, string resourceGroupName, string monitorName, string subAccountName, string ruleSetName, MonitoringTagRulesProperties properties = default(MonitoringTagRulesProperties))
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, monitorName, subAccountName, ruleSetName, properties).GetAwaiter().GetResult());
 }
コード例 #2
0
 /// <summary>
 /// List the tag rules for a given sub account resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <MonitoringTagRules> ListNext(this ISubAccountTagRulesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
コード例 #3
0
 /// <summary>
 /// List the tag rules for a given sub account resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='monitorName'>
 /// Monitor resource name
 /// </param>
 /// <param name='subAccountName'>
 /// Sub Account resource name
 /// </param>
 public static IPage <MonitoringTagRules> List(this ISubAccountTagRulesOperations operations, string resourceGroupName, string monitorName, string subAccountName)
 {
     return(operations.ListAsync(resourceGroupName, monitorName, subAccountName).GetAwaiter().GetResult());
 }
コード例 #4
0
 /// <summary>
 /// Delete a tag rule set for a given monitor resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='monitorName'>
 /// Monitor resource name
 /// </param>
 /// <param name='subAccountName'>
 /// Sub Account resource name
 /// </param>
 /// <param name='ruleSetName'>
 /// </param>
 public static SubAccountTagRulesDeleteHeaders Delete(this ISubAccountTagRulesOperations operations, string resourceGroupName, string monitorName, string subAccountName, string ruleSetName)
 {
     return(operations.DeleteAsync(resourceGroupName, monitorName, subAccountName, ruleSetName).GetAwaiter().GetResult());
 }