code: func ResourceAttributesFrom(user user.Info, in authorizationapi.ResourceAttributes) authorizer.AttributesRecord {
  	return authorizer.AttributesRecord{
  		User:            user,
  		Verb:            in.Verb,
  		Namespace:       in.Namespace,
  		APIGroup:        in.Group,
  		APIVersion:      in.Version,
  		Resource:        in.Resource,
  		Subresource:     in.Subresource,
  		Name:            in.Name,
  		ResourceRequest: true,
  	}
  }
docs: // ResourceAttributesFrom combines the API object information and the user.Info from the context to build a full authorizer.AttributesRecord for resource access