Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RoleAssignment"/> class.
 /// </summary>
 /// <param name="options">The http settings for the operations over this resource</param>
 /// <param name="data">The properties of the resource</param>
 public RoleAssignment(AzureResourceManagerClientOptions options, RoleAssignmentData data)
     : base(options, data?.Id)
 {
     Data = data;
 }
Пример #2
0
 /// <summary>
 /// Get RoleAssignment Operations for the given resource and scope.  Note that this is only valid for unconstrained role assignments, so
 /// it is a generation-time decision if we include this.
 /// </summary>
 /// <param name="resource">The subscription containing the role assignment</param>
 /// <param name="role">The object representing the role assignment</param>
 /// <returns>A <see cref="RoleAssignmentOperations"/> that allows getting and deleting RoleAssignments</returns>
 public static RoleAssignmentOperations RoleAssignmentAtScope(this SubscriptionOperations resource, RoleAssignmentData role)
 {
     return(new RoleAssignmentOperations(resource.ClientOptions, role));
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RoleAssignment"/> class.
 /// </summary>
 /// <param name="operations"> The operations class to copy the http settings from. </param>
 /// <param name="data"> The properties of the resource. </param>
 internal RoleAssignment(OperationsBase operations, RoleAssignmentData data)
     : base(operations, data?.Id)
 {
     Data = data;
 }