Skip to content

Commit

Permalink
Updating Blueprint SDK to use latest swagger (doc updates + RG taggin…
Browse files Browse the repository at this point in the history
…g + lock mode change) (#5421)

* Adding "Tags" property to ResourceGroupDefinition. Taking latest documentation (description) updates

* Bumping version

* Taking another change from the spec repo (lock mode update) and bumping the SDK version

* Bumping version in AssemblyInfo

* Adding changes (metadata) generated via generate.ps1 per request from branch owners
  • Loading branch information
stuartko authored and dsgouda committed Mar 19, 2019
1 parent 6b5f7ed commit 94f686f
Show file tree
Hide file tree
Showing 52 changed files with 433 additions and 394 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,5 @@ public static class AssignmentProvisioningState
public const string Deleting = "Deleting";

}

public static class AssignmentLockMode
{
public const string None = "none";
public const string AllResourcesReadOnly = "allResourcesReadOnly";
public const string AllResourcesDoNotDelete = "allResourcesDoNotDelete";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ internal ArtifactsOperations(BlueprintManagementClient client)
public BlueprintManagementClient Client { get; private set; }

/// <summary>
/// Create or update Blueprint artifact.
/// Create or update blueprint artifact.
/// </summary>
/// <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.
/// Name of the blueprint definition.
/// </param>
/// <param name='artifactName'>
/// name of the artifact.
/// Name of the blueprint artifact.
/// </param>
/// <param name='artifact'>
/// Blueprint artifact to save.
/// Blueprint artifact to create or update.
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
Expand Down Expand Up @@ -267,18 +267,18 @@ internal ArtifactsOperations(BlueprintManagementClient client)
}

/// <summary>
/// Get a Blueprint artifact.
/// Get a blueprint artifact.
/// </summary>
/// <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.
/// Name of the blueprint definition.
/// </param>
/// <param name='artifactName'>
/// name of the artifact.
/// Name of the blueprint artifact.
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
Expand Down Expand Up @@ -469,18 +469,18 @@ internal ArtifactsOperations(BlueprintManagementClient client)
}

/// <summary>
/// Delete a Blueprint artifact.
/// Delete a blueprint artifact.
/// </summary>
/// <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.
/// Name of the blueprint definition.
/// </param>
/// <param name='artifactName'>
/// name of the artifact.
/// Name of the blueprint artifact.
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
Expand Down Expand Up @@ -671,15 +671,15 @@ internal ArtifactsOperations(BlueprintManagementClient client)
}

/// <summary>
/// List artifacts for a given Blueprint.
/// List artifacts for a given blueprint definition.
/// </summary>
/// <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.
/// Name of the blueprint definition.
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
Expand Down Expand Up @@ -864,7 +864,7 @@ internal ArtifactsOperations(BlueprintManagementClient client)
}

/// <summary>
/// List artifacts for a given Blueprint.
/// List artifacts for a given blueprint definition.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.Blueprint
public static partial class ArtifactsOperationsExtensions
{
/// <summary>
/// Create or update Blueprint artifact.
/// Create or update blueprint artifact.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -33,21 +33,21 @@ public static partial class ArtifactsOperationsExtensions
/// subscription (format: '/subscriptions/{subscriptionId}').
/// </param>
/// <param name='blueprintName'>
/// name of the blueprint.
/// Name of the blueprint definition.
/// </param>
/// <param name='artifactName'>
/// name of the artifact.
/// Name of the blueprint artifact.
/// </param>
/// <param name='artifact'>
/// Blueprint artifact to save.
/// Blueprint artifact to create or update.
/// </param>
public static Artifact CreateOrUpdate(this IArtifactsOperations operations, string scope, string blueprintName, string artifactName, Artifact artifact)
{
return operations.CreateOrUpdateAsync(scope, blueprintName, artifactName, artifact).GetAwaiter().GetResult();
}

/// <summary>
/// Create or update Blueprint artifact.
/// Create or update blueprint artifact.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -58,13 +58,13 @@ public static Artifact CreateOrUpdate(this IArtifactsOperations operations, stri
/// subscription (format: '/subscriptions/{subscriptionId}').
/// </param>
/// <param name='blueprintName'>
/// name of the blueprint.
/// Name of the blueprint definition.
/// </param>
/// <param name='artifactName'>
/// name of the artifact.
/// Name of the blueprint artifact.
/// </param>
/// <param name='artifact'>
/// Blueprint artifact to save.
/// Blueprint artifact to create or update.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
Expand All @@ -78,7 +78,7 @@ public static Artifact CreateOrUpdate(this IArtifactsOperations operations, stri
}

/// <summary>
/// Get a Blueprint artifact.
/// Get a blueprint artifact.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -89,18 +89,18 @@ public static Artifact CreateOrUpdate(this IArtifactsOperations operations, stri
/// subscription (format: '/subscriptions/{subscriptionId}').
/// </param>
/// <param name='blueprintName'>
/// name of the blueprint.
/// Name of the blueprint definition.
/// </param>
/// <param name='artifactName'>
/// name of the artifact.
/// Name of the blueprint artifact.
/// </param>
public static Artifact Get(this IArtifactsOperations operations, string scope, string blueprintName, string artifactName)
{
return operations.GetAsync(scope, blueprintName, artifactName).GetAwaiter().GetResult();
}

/// <summary>
/// Get a Blueprint artifact.
/// Get a blueprint artifact.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -111,10 +111,10 @@ public static Artifact Get(this IArtifactsOperations operations, string scope, s
/// subscription (format: '/subscriptions/{subscriptionId}').
/// </param>
/// <param name='blueprintName'>
/// name of the blueprint.
/// Name of the blueprint definition.
/// </param>
/// <param name='artifactName'>
/// name of the artifact.
/// Name of the blueprint artifact.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
Expand All @@ -128,7 +128,7 @@ public static Artifact Get(this IArtifactsOperations operations, string scope, s
}

/// <summary>
/// Delete a Blueprint artifact.
/// Delete a blueprint artifact.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -139,18 +139,18 @@ public static Artifact Get(this IArtifactsOperations operations, string scope, s
/// subscription (format: '/subscriptions/{subscriptionId}').
/// </param>
/// <param name='blueprintName'>
/// name of the blueprint.
/// Name of the blueprint definition.
/// </param>
/// <param name='artifactName'>
/// name of the artifact.
/// Name of the blueprint artifact.
/// </param>
public static Artifact Delete(this IArtifactsOperations operations, string scope, string blueprintName, string artifactName)
{
return operations.DeleteAsync(scope, blueprintName, artifactName).GetAwaiter().GetResult();
}

/// <summary>
/// Delete a Blueprint artifact.
/// Delete a blueprint artifact.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -161,10 +161,10 @@ public static Artifact Delete(this IArtifactsOperations operations, string scope
/// subscription (format: '/subscriptions/{subscriptionId}').
/// </param>
/// <param name='blueprintName'>
/// name of the blueprint.
/// Name of the blueprint definition.
/// </param>
/// <param name='artifactName'>
/// name of the artifact.
/// Name of the blueprint artifact.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
Expand All @@ -178,7 +178,7 @@ public static Artifact Delete(this IArtifactsOperations operations, string scope
}

/// <summary>
/// List artifacts for a given Blueprint.
/// List artifacts for a given blueprint definition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -189,15 +189,15 @@ public static Artifact Delete(this IArtifactsOperations operations, string scope
/// subscription (format: '/subscriptions/{subscriptionId}').
/// </param>
/// <param name='blueprintName'>
/// name of the blueprint.
/// 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.
/// List artifacts for a given blueprint definition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -208,7 +208,7 @@ public static IPage<Artifact> List(this IArtifactsOperations operations, string
/// subscription (format: '/subscriptions/{subscriptionId}').
/// </param>
/// <param name='blueprintName'>
/// name of the blueprint.
/// Name of the blueprint definition.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
Expand All @@ -222,7 +222,7 @@ public static IPage<Artifact> List(this IArtifactsOperations operations, string
}

/// <summary>
/// List artifacts for a given Blueprint.
/// List artifacts for a given blueprint definition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -236,7 +236,7 @@ public static IPage<Artifact> ListNext(this IArtifactsOperations operations, str
}

/// <summary>
/// List artifacts for a given Blueprint.
/// List artifacts for a given blueprint definition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ internal AssignmentOperations(BlueprintManagementClient client)
public BlueprintManagementClient Client { get; private set; }

/// <summary>
/// List Operations for given blueprint assignment within a subscription.
/// List operations for given blueprint assignment within a subscription.
/// </summary>
/// <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='assignmentName'>
/// name of the assignment.
/// Name of the blueprint assignment.
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
Expand Down Expand Up @@ -244,18 +244,18 @@ internal AssignmentOperations(BlueprintManagementClient client)
}

/// <summary>
/// Get a Blueprint assignment operation.
/// Get a blueprint assignment operation.
/// </summary>
/// <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='assignmentName'>
/// name of the assignment.
/// Name of the blueprint assignment.
/// </param>
/// <param name='assignmentOperationName'>
/// Name of the assignment operation.
/// Name of the blueprint assignment operation.
/// </param>
/// <param name='customHeaders'>
/// Headers that will be added to request.
Expand Down Expand Up @@ -446,7 +446,7 @@ internal AssignmentOperations(BlueprintManagementClient client)
}

/// <summary>
/// List Operations for given blueprint assignment within a subscription.
/// List operations for given blueprint assignment within a subscription.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
Expand Down
Loading

0 comments on commit 94f686f

Please sign in to comment.