/// <summary> /// List artifacts in a given artifact source. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='artifactSourceName'> /// The name of the artifact source. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> public static IPage <Artifact> List(this IArtifactsOperations operations, string resourceGroupName, string labName, string artifactSourceName, ODataQuery <Artifact> odataQuery = default(ODataQuery <Artifact>)) { return(operations.ListAsync(resourceGroupName, labName, artifactSourceName, odataQuery).GetAwaiter().GetResult()); }
/// <summary> /// List artifacts for a given Blueprint. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='managementGroupName'> /// azure managementGroup name, which we save the blueprint to. /// </param> /// <param name='blueprintName'> /// name of the blueprint. /// </param> public static IPage <Artifact> ListInManagementGroup(this IArtifactsOperations operations, string managementGroupName, string blueprintName) { var scope = string.Format(Constants.ResourceScopes.ManagementGroupScope, managementGroupName); return(operations.ListAsync(scope, blueprintName).GetAwaiter().GetResult()); }
/// <summary> /// List artifacts for a given blueprint definition. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='scope'> /// The scope of the resource. Valid scopes are: management group (format: /// '/providers/Microsoft.Management/managementGroups/{managementGroup}'), /// subscription (format: '/subscriptions/{subscriptionId}'). /// </param> /// <param name='blueprintName'> /// Name of the blueprint definition. /// </param> public static IPage <Artifact> List(this IArtifactsOperations operations, string scope, string blueprintName) { return(operations.ListAsync(scope, blueprintName).GetAwaiter().GetResult()); }
/// <summary> /// List artifacts for a given Blueprint. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// azure subscriptionId, which we save the blueprint to. /// </param> /// <param name='blueprintName'> /// name of the blueprint. /// </param> public static IPage <Artifact> ListInSubscription(this IArtifactsOperations operations, string subscriptionId, string blueprintName) { var scope = string.Format(Constants.ResourceScopes.SubscriptionScope, subscriptionId); return(operations.ListAsync(scope, blueprintName).GetAwaiter().GetResult()); }