コード例 #1
0
        /// <summary>
        ///   <p>Manage resource provider features.</p>
        ///   <p>For more details, visit the <a href="https://docs.microsoft.com/en-us/cli/azure/feature?view=azure-cli-latest">official website</a>.</p>
        /// </summary>
        public static IReadOnlyCollection <Output> AzureFeatureList(AzureFeatureListSettings toolSettings = null)
        {
            toolSettings = toolSettings ?? new AzureFeatureListSettings();
            var process = ProcessTasks.StartProcess(toolSettings);

            process.AssertZeroExitCode();
            return(process.Output);
        }
コード例 #2
0
 public static AzureFeatureListSettings ResetVerbose(this AzureFeatureListSettings toolSettings)
 {
     toolSettings         = toolSettings.NewInstance();
     toolSettings.Verbose = null;
     return(toolSettings);
 }
コード例 #3
0
 public static AzureFeatureListSettings SetVerbose(this AzureFeatureListSettings toolSettings, string verbose)
 {
     toolSettings         = toolSettings.NewInstance();
     toolSettings.Verbose = verbose;
     return(toolSettings);
 }
コード例 #4
0
 public static AzureFeatureListSettings ResetQuery(this AzureFeatureListSettings toolSettings)
 {
     toolSettings       = toolSettings.NewInstance();
     toolSettings.Query = null;
     return(toolSettings);
 }
コード例 #5
0
 public static AzureFeatureListSettings SetQuery(this AzureFeatureListSettings toolSettings, string query)
 {
     toolSettings       = toolSettings.NewInstance();
     toolSettings.Query = query;
     return(toolSettings);
 }
コード例 #6
0
 public static AzureFeatureListSettings ResetOutput(this AzureFeatureListSettings toolSettings)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Output = null;
     return(toolSettings);
 }
コード例 #7
0
 public static AzureFeatureListSettings SetOutput(this AzureFeatureListSettings toolSettings, AzureOutput output)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Output = output;
     return(toolSettings);
 }
コード例 #8
0
 public static AzureFeatureListSettings SetHelp(this AzureFeatureListSettings toolSettings, string help)
 {
     toolSettings      = toolSettings.NewInstance();
     toolSettings.Help = help;
     return(toolSettings);
 }
コード例 #9
0
 public static AzureFeatureListSettings ResetDebug(this AzureFeatureListSettings toolSettings)
 {
     toolSettings       = toolSettings.NewInstance();
     toolSettings.Debug = null;
     return(toolSettings);
 }
コード例 #10
0
 public static AzureFeatureListSettings SetDebug(this AzureFeatureListSettings toolSettings, string debug)
 {
     toolSettings       = toolSettings.NewInstance();
     toolSettings.Debug = debug;
     return(toolSettings);
 }
コード例 #11
0
 public static AzureFeatureListSettings ResetSubscription(this AzureFeatureListSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.Subscription = null;
     return(toolSettings);
 }
コード例 #12
0
 public static AzureFeatureListSettings SetSubscription(this AzureFeatureListSettings toolSettings, string subscription)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.Subscription = subscription;
     return(toolSettings);
 }
コード例 #13
0
 public static AzureFeatureListSettings SetNamespace(this AzureFeatureListSettings toolSettings, string @namespace)
 {
     toolSettings           = toolSettings.NewInstance();
     toolSettings.Namespace = @namespace;
     return(toolSettings);
 }