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

 When providing a scope for the assignment, use
 '/subscriptions/{subscription-id}/' for subscriptions,
 '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for
 resource groups, and
 '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}'
 for resources.

 @param policy_assignment_id [String] The ID of the policy assignment to get.
 Use the format
 '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [PolicyAssignment] operation results.