Skip to content

Commit a89c017

Browse files
authored
Microsoft.Resources SDK readme update (#24131)
* Update readme for resources sdk * Update Readme.md and generate in repo * Addressed some of the review comments * Update readme to reference commits instead of main * Update readme to reference a single commit * Suppress CI errors relating to autorest csharp
1 parent a0cc2b1 commit a89c017

File tree

90 files changed

+4617
-30071
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+4617
-30071
lines changed

src/Resources/ResourceManager/SdkModels/DeploymentStacks/PSDeploymentStack.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ internal PSDeploymentStack(DeploymentStack deploymentStack)
8888
this.provisioningState = deploymentStack.ProvisioningState;
8989
this.deploymentScope = deploymentStack.DeploymentScope;
9090
this.description = deploymentStack.Description;
91-
this.resources = deploymentStack.Resources;
91+
this.resources = deploymentStack.ResourcesProperty;
9292
this.denySettings = deploymentStack.DenySettings;
9393
this.detachedResources = deploymentStack.DetachedResources;
9494
this.deletedResources = deploymentStack.DeletedResources;

src/Resources/Resources.Sdk/Generated/DataPolicyManifestsOperations.cs

Lines changed: 0 additions & 604 deletions
This file was deleted.

src/Resources/Resources.Sdk/Generated/DataPolicyManifestsOperationsExtensions.cs

Lines changed: 0 additions & 175 deletions
This file was deleted.

src/Resources/Resources.Sdk/Generated/DeploymentScriptsOperations.cs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ internal DeploymentScriptsOperations(DeploymentScriptsClient client)
128128
{
129129
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
130130
}
131-
if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
132-
{
133-
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
134-
}
135131
}
136132
if (scriptName == null)
137133
{
@@ -352,10 +348,6 @@ internal DeploymentScriptsOperations(DeploymentScriptsClient client)
352348
{
353349
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
354350
}
355-
if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
356-
{
357-
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
358-
}
359351
}
360352
if (scriptName == null)
361353
{
@@ -567,10 +559,6 @@ internal DeploymentScriptsOperations(DeploymentScriptsClient client)
567559
{
568560
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
569561
}
570-
if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
571-
{
572-
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
573-
}
574562
}
575563
if (scriptName == null)
576564
{
@@ -939,10 +927,6 @@ internal DeploymentScriptsOperations(DeploymentScriptsClient client)
939927
{
940928
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
941929
}
942-
if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
943-
{
944-
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
945-
}
946930
}
947931
if (scriptName == null)
948932
{
@@ -1161,10 +1145,6 @@ internal DeploymentScriptsOperations(DeploymentScriptsClient client)
11611145
{
11621146
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
11631147
}
1164-
if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
1165-
{
1166-
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
1167-
}
11681148
}
11691149
if (scriptName == null)
11701150
{
@@ -1380,10 +1360,6 @@ internal DeploymentScriptsOperations(DeploymentScriptsClient client)
13801360
{
13811361
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
13821362
}
1383-
if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
1384-
{
1385-
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
1386-
}
13871363
}
13881364
if (Client.ApiVersion == null)
13891365
{
@@ -1583,10 +1559,6 @@ internal DeploymentScriptsOperations(DeploymentScriptsClient client)
15831559
{
15841560
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
15851561
}
1586-
if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
1587-
{
1588-
throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
1589-
}
15901562
}
15911563
if (scriptName == null)
15921564
{

src/Resources/Resources.Sdk/Generated/IDataPolicyManifestsOperations.cs

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)