/// <summary> /// Get an artifact for a published 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> /// <param name='versionId'> /// Version of the published blueprint definition. /// </param> /// <param name='artifactName'> /// Name of the blueprint artifact. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Artifact> GetAsync(this IPublishedArtifactsOperations operations, string scope, string blueprintName, string versionId, string artifactName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(scope, blueprintName, versionId, artifactName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List artifacts for a version of a published blueprint definition. /// </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> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Artifact> > ListNextAsync(this IPublishedArtifactsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get an artifact for a published 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> /// <param name='versionId'> /// version of the published blueprint. /// </param> /// <param name='artifactName'> /// name of the artifact. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Artifact> GetInManagementGroupAsync(this IPublishedArtifactsOperations operations, string managementGroupName, string blueprintName, string versionId, string artifactName, CancellationToken cancellationToken = default(CancellationToken)) { var scope = string.Format(Constants.ResourceScopes.ManagementGroupScope, managementGroupName); using (var _result = await operations.GetWithHttpMessagesAsync(scope, blueprintName, versionId, artifactName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List artifacts for a published 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> /// <param name='versionId'> /// version of the published blueprint. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Artifact> > ListInSubscriptionAsync(this IPublishedArtifactsOperations operations, string subscriptionId, string blueprintName, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { var scope = string.Format(Constants.ResourceScopes.SubscriptionScope, subscriptionId); using (var _result = await operations.ListWithHttpMessagesAsync(scope, blueprintName, versionId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List artifacts for a version of a published 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> /// <param name='versionId'> /// Version of the published blueprint definition. /// </param> public static IPage <Artifact> List(this IPublishedArtifactsOperations operations, string scope, string blueprintName, string versionId) { return(operations.ListAsync(scope, blueprintName, versionId).GetAwaiter().GetResult()); }
/// <summary> /// Get an artifact for a published 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> /// <param name='versionId'> /// Version of the published blueprint definition. /// </param> /// <param name='artifactName'> /// Name of the blueprint artifact. /// </param> public static Artifact Get(this IPublishedArtifactsOperations operations, string scope, string blueprintName, string versionId, string artifactName) { return(operations.GetAsync(scope, blueprintName, versionId, artifactName).GetAwaiter().GetResult()); }
/// <summary> /// List artifacts for a version of a published blueprint definition. /// </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 <Artifact> ListNext(this IPublishedArtifactsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// List artifacts for a published 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> /// <param name='versionId'> /// version of the published blueprint. /// </param> public static IPage <Artifact> ListInManagementGroup(this IPublishedArtifactsOperations operations, string managementGroupName, string blueprintName, string versionId) { var scope = string.Format(Constants.ResourceScopes.ManagementGroupScope, managementGroupName); return(operations.ListAsync(scope, blueprintName, versionId).GetAwaiter().GetResult()); }
/// <summary> /// List artifacts for a published 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> /// <param name='versionId'> /// version of the published blueprint. /// </param> public static IPage <Artifact> ListInSubscription(this IPublishedArtifactsOperations operations, string subscriptionId, string blueprintName, string versionId) { var scope = string.Format(Constants.ResourceScopes.SubscriptionScope, subscriptionId); return(operations.ListAsync(scope, blueprintName, versionId).GetAwaiter().GetResult()); }