def get_by_id(deny_assignment_id, custom_headers:nil)
      response = get_by_id_async(deny_assignment_id, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def get_by_id(deny_assignment_id, custom_headers:nil)
      response = get_by_id_async(deny_assignment_id, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Gets a deny assignment by ID.

 @param deny_assignment_id [String] The fully qualified deny assignment ID.
 For example, use the format,
 /subscriptions/{guid}/providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId}
 for subscription level deny assignments, or
 /providers/Microsoft.Authorization/denyAssignments/{denyAssignmentId} for
 tenant level deny assignments.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [DenyAssignment] operation results.