-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding PS Table role def/assignment commands
- Loading branch information
Showing
21 changed files
with
3,445 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
...sDB/CosmosDB.Management.Sdk/Generated/Models/TableRoleAssignmentCreateUpdateParameters.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is regenerated. | ||
|
||
namespace Microsoft.Azure.Management.CosmosDB.Models | ||
{ | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Parameters to create and update an Azure Cosmos DB SQL Role Assignment. | ||
/// </summary> | ||
[Microsoft.Rest.Serialization.JsonTransformation] | ||
public partial class TableRoleAssignmentCreateUpdateParameters | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the TableRoleAssignmentCreateUpdateParameters class. | ||
/// </summary> | ||
public TableRoleAssignmentCreateUpdateParameters() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the TableRoleAssignmentCreateUpdateParameters class. | ||
/// </summary> | ||
|
||
/// <param name="roleDefinitionId">The unique identifier for the associated Role Definition. | ||
/// </param> | ||
|
||
/// <param name="scope">The data plane resource path for which access is being granted through this | ||
/// Role Assignment. | ||
/// </param> | ||
|
||
/// <param name="principalId">The unique identifier for the associated AAD principal in the AAD graph to | ||
/// which access is being granted through this Role Assignment. Tenant ID for | ||
/// the principal is inferred using the tenant associated with the | ||
/// subscription. | ||
/// </param> | ||
public TableRoleAssignmentCreateUpdateParameters(string roleDefinitionId = default(string), string scope = default(string), string principalId = default(string)) | ||
|
||
{ | ||
this.RoleDefinitionId = roleDefinitionId; | ||
this.Scope = scope; | ||
this.PrincipalId = principalId; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier for the associated Role Definition. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.roleDefinitionId")] | ||
public string RoleDefinitionId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the data plane resource path for which access is being granted | ||
/// through this Role Assignment. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.scope")] | ||
public string Scope { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the unique identifier for the associated AAD principal in the | ||
/// AAD graph to which access is being granted through this Role Assignment. | ||
/// Tenant ID for the principal is inferred using the tenant associated with | ||
/// the subscription. | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.principalId")] | ||
public string PrincipalId { get; set; } | ||
} | ||
} |
Oops, something went wrong.