Skip to content

Commit

Permalink
Generated from c005ce7c9aa243d60423addfc38563251a1c6644
Browse files Browse the repository at this point in the history
Included default excluded actions per lock mode
  • Loading branch information
SDK Automation committed Jan 7, 2020
1 parent 02c143c commit 13e2926
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,21 @@ public AssignmentLockSettings()
/// 'AllResourcesReadOnly', 'AllResourcesDoNotDelete'</param>
/// <param name="excludedPrincipals">List of AAD principals excluded
/// from blueprint locks. Up to 5 principals are permitted.</param>
public AssignmentLockSettings(string mode = default(string), IList<string> excludedPrincipals = default(IList<string>))
/// <param name="excludedActions">List of management operations that
/// are excluded from blueprint locks. Up to 200 actions are permitted.
/// If the lock mode is set to 'AllResourcesReadOnly', then the
/// following actions are automatically appended to 'excludedActions':
/// '*/read', 'Microsoft.Network/virtualNetworks/subnets/join/action'
/// and 'Microsoft.Authorization/locks/delete'. If the lock mode is set
/// to 'AllResourcesDoNotDelete', then the following actions are
/// automatically appended to 'excludedActions':
/// 'Microsoft.Authorization/locks/delete'. Duplicate actions will get
/// removed.</param>
public AssignmentLockSettings(string mode = default(string), IList<string> excludedPrincipals = default(IList<string>), IList<string> excludedActions = default(IList<string>))
{
Mode = mode;
ExcludedPrincipals = excludedPrincipals;
ExcludedActions = excludedActions;
CustomInit();
}

Expand All @@ -61,5 +72,20 @@ public AssignmentLockSettings()
[JsonProperty(PropertyName = "excludedPrincipals")]
public IList<string> ExcludedPrincipals { get; set; }

/// <summary>
/// Gets or sets list of management operations that are excluded from
/// blueprint locks. Up to 200 actions are permitted. If the lock mode
/// is set to 'AllResourcesReadOnly', then the following actions are
/// automatically appended to 'excludedActions': '*/read',
/// 'Microsoft.Network/virtualNetworks/subnets/join/action' and
/// 'Microsoft.Authorization/locks/delete'. If the lock mode is set to
/// 'AllResourcesDoNotDelete', then the following actions are
/// automatically appended to 'excludedActions':
/// 'Microsoft.Authorization/locks/delete'. Duplicate actions will get
/// removed.
/// </summary>
[JsonProperty(PropertyName = "excludedActions")]
public IList<string> ExcludedActions { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public ParameterDefinition()
/// <param name="description">Description of this
/// parameter/resourceGroup.</param>
/// <param name="strongType">StrongType for UI to render rich
/// experience during blueprint assignment.</param>
/// experience during blueprint assignment. Supported strong types are
/// resourceType, principalId and location.</param>
/// <param name="defaultValue">Default Value for this
/// parameter.</param>
/// <param name="allowedValues">Array of allowed values for this
Expand Down Expand Up @@ -85,7 +86,8 @@ public ParameterDefinition()

/// <summary>
/// Gets or sets strongType for UI to render rich experience during
/// blueprint assignment.
/// blueprint assignment. Supported strong types are resourceType,
/// principalId and location.
/// </summary>
[JsonProperty(PropertyName = "metadata.strongType")]
public string StrongType { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public ResourceGroupDefinition()
/// <param name="description">Description of this
/// parameter/resourceGroup.</param>
/// <param name="strongType">StrongType for UI to render rich
/// experience during blueprint assignment.</param>
/// experience during blueprint assignment. Supported strong types are
/// resourceType, principalId and location.</param>
/// <param name="dependsOn">Artifacts which need to be deployed before
/// this resource group.</param>
/// <param name="tags">Tags to be assigned to this resource
Expand Down Expand Up @@ -97,7 +98,8 @@ public ResourceGroupDefinition()

/// <summary>
/// Gets or sets strongType for UI to render rich experience during
/// blueprint assignment.
/// blueprint assignment. Supported strong types are resourceType,
/// principalId and location.
/// </summary>
[JsonProperty(PropertyName = "metadata.strongType")]
public string StrongType { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,5 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_BlueprintManage
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "[email protected]";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/blueprint/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Workspace\\Git\\azure-sdk-for-net\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "17cd6b2edff44b87012e888876ce58de10129850";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}

0 comments on commit 13e2926

Please sign in to comment.